[U-Boot] [PATCH 7/7] video: add an option to skip cfb console init

Tom Rini trini at ti.com
Tue Aug 6 17:30:59 CEST 2013


On Sat, Aug 03, 2013 at 07:22:53AM +0200, Heiko Schocher wrote:

> This patch add an option to skip cfb console init for boards
> who want to show a logo, but not use the cfb console. This is
> needed for the siemens boards, which have a bmp bootlogo, but
> do not need the cfb console.
> 
> Signed-off-by: Heiko Schocher <hs at denx.de>
> Cc: Anatolij Gustschin <agust at denx.de>
> ---
>  drivers/video/cfb_console.c | 18 ++++++++++++++++++
>  1 Datei ge??ndert, 18 Zeilen hinzugef??gt(+)
> 
> diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c
> index 96ef8f9..822ed28 100644
> --- a/drivers/video/cfb_console.c
> +++ b/drivers/video/cfb_console.c
> @@ -431,6 +431,19 @@ static const int video_font_draw_table32[16][4] = {
>  	{0x00ffffff, 0x00ffffff, 0x00ffffff, 0x00ffffff}
>  };
>  
> +/*
> + * Implement a weak default function for boards that optionally
> + * need to skip the cfb initialization.
> + */
> +int __board_cfb_skip(void)
> +{
> +	/* As default, don't skip cfb init */
> +	return 0;
> +}
> +
> +int board_cfb_skip(void)
> +	__attribute__ ((weak, alias("__board_cfb_skip")));

Add <linux/compiler.h> and use '__weak int board_cfb_skip(void)'.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130806/180dd933/attachment.pgp>


More information about the U-Boot mailing list