]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - api/api_display.c
2 * Copyright (c) 2011 The Chromium OS Authors.
3 * See file CREDITS for list of people who contributed to this
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of
9 * the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 #include <api_public.h>
25 #include <video_font.h> /* Get font width and height */
27 /* lcd.h needs BMP_LOGO_HEIGHT to calculate CONSOLE_ROWS */
28 #if defined(CONFIG_LCD_LOGO) && !defined(CONFIG_LCD_INFO_BELOW_LOGO)
32 /* TODO(clchiou): add support of video device */
34 int display_get_info(int type
, struct display_info
*di
)
41 debug("%s: unsupport display device type: %d\n",
45 case DISPLAY_TYPE_LCD
:
46 di
->pixel_width
= panel_info
.vl_col
;
47 di
->pixel_height
= panel_info
.vl_row
;
48 di
->screen_rows
= lcd_get_screen_rows();
49 di
->screen_cols
= lcd_get_screen_columns();
58 int display_draw_bitmap(ulong bitmap
, int x
, int y
)
63 return lcd_display_bitmap(bitmap
, x
, y
);
69 void display_clear(void)