Skip to content

Commit

Permalink
common/lcd: fix build breakage for at91sam9x5ek and trats boards
Browse files Browse the repository at this point in the history
Commit 203c37b
(common lcd: simplify core functions)

and commit bfdcc65
(common lcd: simplify lcd_display_bitmap)

caused build breakage for at91sam9x5ek board configurations
and for trats board. Fix these build errors.

Signed-off-by: Anatolij Gustschin <[email protected]>
Acked-by: Nikita Kiryanov <[email protected]>
  • Loading branch information
vdsao committed Sep 24, 2012
1 parent 15b8338 commit d23019f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions common/lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,14 @@ static inline ushort *configuration_get_cmap(void)
return (ushort *)&(cp->lcd_cmap[255 * sizeof(ushort)]);
#elif defined(CONFIG_ATMEL_LCD)
return (ushort *)(panel_info.mmio + ATMEL_LCDC_LUT(0));
#elif !defined(CONFIG_ATMEL_HLCD) && !defined(CONFIG_EXYNOS_FB)
return panel_info.cmap;
#else
return (ushort *)panel_info.cmap;
#if defined(CONFIG_LCD_LOGO)
return bmp_logo_palette;
#else
return NULL;
#endif
#endif
}

Expand Down Expand Up @@ -636,10 +642,10 @@ static void splash_align_axis(int *axis, unsigned long panel_size,
}
#endif

#if defined CONFIG_CPU_PXA || defined(CONFIG_ATMEL_LCD)
#define FB_PUT_BYTE(fb, from) *(fb)++ = *(from)++
#elif defined(CONFIG_MPC823) || defined(CONFIG_MCC200)
#if defined(CONFIG_MPC823) || defined(CONFIG_MCC200)
#define FB_PUT_BYTE(fb, from) *(fb)++ = (255 - *(from)++)
#else
#define FB_PUT_BYTE(fb, from) *(fb)++ = *(from)++
#endif

#if defined(CONFIG_BMP_16BPP)
Expand Down

0 comments on commit d23019f

Please sign in to comment.