From: Nikita Kiryanov <nikita@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] common/lcd: fix build breakage for at91sam9x5ek and trats boards
Date: Mon, 24 Sep 2012 14:54:44 +0200 [thread overview]
Message-ID: <50605814.2060003@compulab.co.il> (raw)
In-Reply-To: <1348332953-21275-1-git-send-email-agust@denx.de>
Acked-by: Nikita Kiryanov <nikita@compulab.co.il>
On 09/22/2012 07:55 PM, Anatolij Gustschin wrote:
> Commit 203c37b8c5556aad1901ce4954792afd718c7d42
> (common lcd: simplify core functions)
>
> and commit bfdcc65e1163b4891643c2a670570c478b9af2a4
> (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 <agust@denx.de>
> ---
> common/lcd.c | 14 ++++++++++----
> 1 files changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/common/lcd.c b/common/lcd.c
> index fcc09ac..b6be800 100644
> --- a/common/lcd.c
> +++ b/common/lcd.c
> @@ -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
> }
>
> @@ -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)
>
next prev parent reply other threads:[~2012-09-24 12:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 10:14 [U-Boot] [PATCH V3 0/4] common/lcd cleanup Nikita Kiryanov
2012-08-09 10:14 ` [U-Boot] [PATCH V3 1/4] common lcd: simplify lcd_logo Nikita Kiryanov
2012-08-09 10:14 ` [U-Boot] [PATCH V3 2/4] common lcd: simplify lcd_display Nikita Kiryanov
2012-08-09 10:14 ` [U-Boot] [PATCH V3 3/4] common lcd: simplify core functions Nikita Kiryanov
2012-08-09 10:14 ` [U-Boot] [PATCH V3 4/4] common lcd: simplify lcd_display_bitmap Nikita Kiryanov
2012-08-20 6:15 ` [U-Boot] [PATCH V3 0/4] common/lcd cleanup Nikita Kiryanov
2012-08-28 19:28 ` Nikita Kiryanov
2012-09-05 6:51 ` Igor Grinberg
2012-09-05 6:56 ` Marek Vasut
2012-09-05 8:49 ` Anatolij Gustschin
2012-09-22 16:55 ` [U-Boot] [PATCH] common/lcd: fix build breakage for at91sam9x5ek and trats boards Anatolij Gustschin
2012-09-24 12:54 ` Nikita Kiryanov [this message]
2012-09-24 22:04 ` Anatolij Gustschin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50605814.2060003@compulab.co.il \
--to=nikita@compulab.co.il \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox