[U-Boot] [PATCH v3 13/18] lcd: Add support for flushing LCD fb from dcache after update

Mike Frysinger vapier at gentoo.org
Thu Jul 19 16:01:12 CEST 2012


On Thursday 12 July 2012 11:25:13 Simon Glass wrote:
> --- a/common/lcd.c
> +++ b/common/lcd.c
> 
> +/* Flush LCD activity to the caches */
> +void lcd_sync(void)
> +{
> +	/*
> +	 * 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.
> +	 */
> +#ifdef CONFIG_ARM
> +	int line_length;
> +
> +	if (lcd_flush_dcache)
> +		flush_dcache_range((u32)lcd_base,
> +			(u32)(lcd_base + lcd_get_size(&line_length)));
> +#endif
> +}

we should just let those people build fail imo so they'll be forced to add 
this
-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/20120719/7d261710/attachment.pgp>


More information about the U-Boot mailing list