mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
api: export LCD device to external apps
This patch exports LCD info-query and bitmap-rendering functions to external apps. This patch is tested on a Seaboard. Because the LCD driver is not yet upstreamed, the test was done in a local downstream repo. Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
This commit is contained in:
committed by
Anatolij Gustschin
parent
d3983ee853
commit
a2a5729fc1
@@ -402,3 +402,34 @@ const char * ub_env_enum(const char *last)
|
||||
|
||||
return env_name;
|
||||
}
|
||||
|
||||
/****************************************
|
||||
*
|
||||
* display
|
||||
*
|
||||
****************************************/
|
||||
|
||||
int ub_display_get_info(int type, struct display_info *di)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
if (!syscall(API_DISPLAY_GET_INFO, &err, (uint32_t)type, (uint32_t)di))
|
||||
return API_ESYSC;
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
int ub_display_draw_bitmap(ulong bitmap, int x, int y)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
if (!syscall(API_DISPLAY_DRAW_BITMAP, &err, bitmap, x, y))
|
||||
return API_ESYSC;
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
void ub_display_clear(void)
|
||||
{
|
||||
syscall(API_DISPLAY_CLEAR, NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user