1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2011 The Chromium OS Authors.
7 #include <api_public.h>
9 #include <video_font.h> /* Get font width and height */
11 /* lcd.h needs BMP_LOGO_HEIGHT to calculate CONSOLE_ROWS */
12 #if defined(CONFIG_LCD_LOGO) && !defined(CONFIG_LCD_INFO_BELOW_LOGO)
16 /* TODO(clchiou): add support of video device */
18 int display_get_info(int type, struct display_info *di)
25 debug("%s: unsupport display device type: %d\n",
29 case DISPLAY_TYPE_LCD:
30 di->pixel_width = panel_info.vl_col;
31 di->pixel_height = panel_info.vl_row;
32 di->screen_rows = lcd_get_screen_rows();
33 di->screen_cols = lcd_get_screen_columns();
42 int display_draw_bitmap(ulong bitmap, int x, int y)
47 return lcd_display_bitmap(bitmap, x, y);
53 void display_clear(void)