lcd: remove LCD_MONOCHROME
No one is using LCD_MONOCHROME; remove related code. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Wolfgang Denk <wd@denx.de> Cc: Anatolij Gustschin <agust@denx.de> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Anatolij Gustschin
parent
ad8a245620
commit
f4469f50b0
@@ -357,23 +357,6 @@ lcd_setcolreg (ushort regno, ushort red, ushort green, ushort blue)
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#if LCD_BPP == LCD_MONOCHROME
|
||||
static
|
||||
void lcd_initcolregs (void)
|
||||
{
|
||||
volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
|
||||
volatile cpm8xx_t *cp = &(immr->im_cpm);
|
||||
ushort regno;
|
||||
|
||||
for (regno = 0; regno < 16; regno++) {
|
||||
cp->lcd_cmap[regno * 2] = 0;
|
||||
cp->lcd_cmap[(regno * 2) + 1] = regno & 0x0f;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
void lcd_enable (void)
|
||||
{
|
||||
volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
|
||||
|
||||
@@ -378,21 +378,6 @@ lcd_setcolreg (ushort regno, ushort red, ushort green, ushort blue)
|
||||
}
|
||||
#endif /* LCD_COLOR8 */
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if LCD_BPP == LCD_MONOCHROME
|
||||
void lcd_initcolregs (void)
|
||||
{
|
||||
struct pxafb_info *fbi = &panel_info.pxa;
|
||||
cmap = (ushort *)fbi->palette;
|
||||
ushort regno;
|
||||
|
||||
for (regno = 0; regno < 16; regno++) {
|
||||
cmap[regno * 2] = 0;
|
||||
cmap[(regno * 2) + 1] = regno & 0x0f;
|
||||
}
|
||||
}
|
||||
#endif /* LCD_MONOCHROME */
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
__weak void lcd_enable(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user