Skip to content
Snippets Groups Projects
Commit d23019f3 authored by Anatolij Gustschin's avatar Anatolij Gustschin
Browse files

common/lcd: fix build breakage for at91sam9x5ek and trats boards


Commit 203c37b8
(common lcd: simplify core functions)

and commit bfdcc65e
(common lcd: simplify lcd_display_bitmap)

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

Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
Acked-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
parent 15b83386
No related branches found
No related tags found
No related merge requests found
...@@ -509,8 +509,14 @@ static inline ushort *configuration_get_cmap(void) ...@@ -509,8 +509,14 @@ static inline ushort *configuration_get_cmap(void)
return (ushort *)&(cp->lcd_cmap[255 * sizeof(ushort)]); return (ushort *)&(cp->lcd_cmap[255 * sizeof(ushort)]);
#elif defined(CONFIG_ATMEL_LCD) #elif defined(CONFIG_ATMEL_LCD)
return (ushort *)(panel_info.mmio + ATMEL_LCDC_LUT(0)); return (ushort *)(panel_info.mmio + ATMEL_LCDC_LUT(0));
#elif !defined(CONFIG_ATMEL_HLCD) && !defined(CONFIG_EXYNOS_FB)
return panel_info.cmap;
#else #else
return (ushort *)panel_info.cmap; #if defined(CONFIG_LCD_LOGO)
return bmp_logo_palette;
#else
return NULL;
#endif
#endif #endif
} }
...@@ -636,10 +642,10 @@ static void splash_align_axis(int *axis, unsigned long panel_size, ...@@ -636,10 +642,10 @@ static void splash_align_axis(int *axis, unsigned long panel_size,
} }
#endif #endif
#if defined CONFIG_CPU_PXA || defined(CONFIG_ATMEL_LCD) #if defined(CONFIG_MPC823) || defined(CONFIG_MCC200)
#define FB_PUT_BYTE(fb, from) *(fb)++ = *(from)++
#elif defined(CONFIG_MPC823) || defined(CONFIG_MCC200)
#define FB_PUT_BYTE(fb, from) *(fb)++ = (255 - *(from)++) #define FB_PUT_BYTE(fb, from) *(fb)++ = (255 - *(from)++)
#else
#define FB_PUT_BYTE(fb, from) *(fb)++ = *(from)++
#endif #endif
#if defined(CONFIG_BMP_16BPP) #if defined(CONFIG_BMP_16BPP)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment