blob: 2e877a85d1474b3054ca55fc56b651c625c4dbe3 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Che-Liang Chioua2a57292011-10-20 23:04:22 +00002/*
3 * Copyright (c) 2011 The Chromium OS Authors.
Che-Liang Chioua2a57292011-10-20 23:04:22 +00004 */
5
6#include <common.h>
7#include <api_public.h>
Simon Glassf7ae49f2020-05-10 11:40:05 -06008#include <log.h>
Che-Liang Chioua2a57292011-10-20 23:04:22 +00009
10/* TODO(clchiou): add support of video device */
11
12int display_get_info(int type, struct display_info *di)
13{
14 if (!di)
15 return API_EINVAL;
16
17 switch (type) {
18 default:
19 debug("%s: unsupport display device type: %d\n",
20 __FILE__, type);
21 return API_ENODEV;
Che-Liang Chioua2a57292011-10-20 23:04:22 +000022 }
23
24 di->type = type;
25 return 0;
26}
27
28int display_draw_bitmap(ulong bitmap, int x, int y)
29{
30 if (!bitmap)
31 return API_EINVAL;
Che-Liang Chioua2a57292011-10-20 23:04:22 +000032 return API_ENODEV;
Che-Liang Chioua2a57292011-10-20 23:04:22 +000033}
34
35void display_clear(void)
36{
Che-Liang Chioua2a57292011-10-20 23:04:22 +000037}