Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Unified Diff: common/lcd.c

Issue 5989010: Create Chrome OS recovery firmware procedure. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/u-boot-next.git
Patch Set: add kernel verification and more Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: common/lcd.c
diff --git a/common/lcd.c b/common/lcd.c
index 99f640e27be30a1a2772ed173471c989d42774da..9ebb01706398ed711bf321f83bcdc6d6e8f3df71 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -80,7 +80,8 @@ static inline void lcd_putc_xy(ushort x, ushort y, uchar c);
static int lcd_init(void *lcdbase);
-static int lcd_clear(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
+static int do_lcd_clear(cmd_tbl_t *cmdtp, int flag, int argc,
+ char *const argv[]);
robotboy 2011/03/08 21:07:26 This should be a separate CL so that rebasing is e
Tom Wai-Hong Tam 2011/03/09 10:15:05 Done.
static void *lcd_logo(void);
int lcd_display_bitmap_24(ulong bmp_image, int x, int y);
@@ -399,7 +400,7 @@ int drv_lcd_init(void)
}
/*----------------------------------------------------------------------*/
-static int lcd_clear(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int lcd_clear()
Che-Liang Chiou 2011/03/09 02:37:53 Maybe you should put a declaration of lcd_clear()
Tom Wai-Hong Tam 2011/03/09 10:15:05 Done.
{
#if LCD_BPP == LCD_MONOCHROME
/* Setting the palette */
@@ -444,8 +445,14 @@ static int lcd_clear(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
return 0;
}
+static int do_lcd_clear(cmd_tbl_t *cmdtp, int flag, int argc,
+ char *const argv[])
+{
+ return lcd_clear();
+}
+
U_BOOT_CMD(
- cls, 1, 1, lcd_clear,
+ cls, 1, 1, do_lcd_clear,
"clear screen",
""
);
@@ -459,7 +466,7 @@ static int lcd_init(void *lcdbase)
lcd_ctrl_init(lcdbase);
lcd_is_enabled = 1;
- lcd_clear(NULL, 1, 1, NULL); /* dummy args */
+ lcd_clear(); /* dummy args */
#ifdef CONFIG_QSD8X50_LCDC
lcd_enable();
#endif

Powered by Google App Engine
This is Rietveld 408576698