[U-Boot] [PATCH v2 1/3] ARM: cache: add an empty stub function for invalidate/flush dcache

Marek Vasut marex at denx.de
Fri Jun 5 15:18:49 CEST 2015


On Friday, June 05, 2015 at 09:47:30 AM, Josh Wu wrote:
> Since some driver like ohci, lcd used dcache functions. But some ARM
> cpu don't implement the invalidate_dcache_range()/flush_dcache_range()
> functions.
> 
> To avoid compiling errors this patch adds an weak empty stub function
> for all ARM cpu.
> 
> And each cpu can implement its own implementation. If not implemented
> by default it will use an empty function.
> 
> Signed-off-by: Josh Wu <josh.wu at atmel.com>
> ---
> 
> Changes in v2: new added
> 
>  arch/arm/lib/cache.c | 9 +++++++++
>  1 file changed, 9 insertions(+)

So, why exactly can't this be entirely common code , but a CPU-specific
code ? :)

Best regards,
Marek Vasut


More information about the U-Boot mailing list