diff options
author | Anatolij Gustschin <agust@denx.de> | 2009-12-12 21:20:57 +0100 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2010-01-27 21:23:30 +0100 |
commit | a6e42ed097220a82870a32f4e60ac8863a8b05ab (patch) | |
tree | 8ae656e7dce2f98a69a360afc9751aad662d5e72 /common/lcd.c | |
parent | d841978ea616e661e48f8da4045a71d6217823bd (diff) | |
download | u-boot-imx-a6e42ed097220a82870a32f4e60ac8863a8b05ab.zip u-boot-imx-a6e42ed097220a82870a32f4e60ac8863a8b05ab.tar.gz u-boot-imx-a6e42ed097220a82870a32f4e60ac8863a8b05ab.tar.bz2 |
lcd: remove CONFIG_ATMEL_LCD ifdefs from lcd_setfgcolor
Not all boards defining LCD_COLOR16 are able to set
lcd_color_fg/lcd_color_bg correctly. The issue seems to
be caused by CONFIG_ATMEL_LCD ifdefs in lcd_setfgcolor()
and lcd_setbgcolor(). Actually, the color values passed
to these functions are already correct, we don't need
to fix them. So remove ifdefs here.
Reported-by: Alessandro Rubini <rubini@unipv.it>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'common/lcd.c')
-rw-r--r-- | common/lcd.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/common/lcd.c b/common/lcd.c index 4e31618..db799db 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -456,22 +456,14 @@ ulong lcd_setmem (ulong addr) static void lcd_setfgcolor (int color) { -#ifdef CONFIG_ATMEL_LCD lcd_color_fg = color; -#else - lcd_color_fg = color & 0x0F; -#endif } /*----------------------------------------------------------------------*/ static void lcd_setbgcolor (int color) { -#ifdef CONFIG_ATMEL_LCD lcd_color_bg = color; -#else - lcd_color_bg = color & 0x0F; -#endif } /*----------------------------------------------------------------------*/ |