[U-Boot] [PATCH 06/13] lcd: mpc823: move mpc823 specific lcd_logo_set_cmap code to mpc8xx_lcd.c

Simon Glass sjg at chromium.org
Sat Jan 31 01:24:39 CET 2015


On 29 January 2015 at 04:21, Nikita Kiryanov <nikita at compulab.co.il> wrote:
> Reduce the bitmap_plot #ifdef complexity by extracting MPC823 specific code for
> setting cmap into its own implementation of lcd_logo_set_cmap(), implemented in
> mpc8xx_lcd.c. In the MPC823 implementation, ARRAY_SIZE(bmp_logo_palette) is
> switched for BMP_LOGO_COLORS to avoid having to include bmp_logo_data.h, which
> would cause a compilation error because the logo data and palette arrays would
> be defined twice.
>
> Signed-off-by: Nikita Kiryanov <nikita at compulab.co.il>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Anatolij Gustschin <agust at denx.de>
> ---
>  common/lcd.c               | 10 +---------
>  drivers/video/mpc8xx_lcd.c | 15 +++++++++++++++
>  2 files changed, 16 insertions(+), 9 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list