[U-Boot] [PATCH 12/17] lcd: Add support for flushing LCD fb from dcache after update

Mike Frysinger vapier at gentoo.org
Sun Jan 15 02:42:05 CET 2012


On Saturday 14 January 2012 19:47:24 Simon Glass wrote:
> --- a/common/cmd_echo.c
> +++ b/common/cmd_echo.c
> @@ -44,8 +44,9 @@ int do_echo(cmd_tbl_t *cmdtp, int flag, int argc, char *
> const argv[]) }
>  	}
> 
> +	/* Use puts() so that the LCD sees it as a new line */
>  	if (putnl)
> -		putc('\n');
> +		puts("\n");
> 
>  	return 0;
>  }

this sounds like a hack for a broken LCD core and so the fix should be 
somewhere in there

> --- a/common/lcd.c
> +++ b/common/lcd.c
> 
> +static char lcd_flush_dcache;

seems like it'd be better as a CONFIG knob

> +	/*
> +	 * flush_dcache_range() is declared in common.h but it seems that some
> +	 * architectures do not actually implement it. Is there a way to find
> +	 * out whether it exists? For now, ARM is safe.
> +	 */

if those arches don't implement this func, then the failure is on their head.  
people should feel free to use the cache api we expose in common.h.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120114/bf47057f/attachment.pgp>


More information about the U-Boot mailing list