[U-Boot] [v3] command/cache: Add flush command

York Sun yorksun at freescale.com
Fri Apr 5 23:09:15 CEST 2013


On 04/05/2013 02:00 PM, Tom Rini wrote:
> On 04/05/2013 04:50 PM, York Sun wrote:
>> When we copy code/data to the main memory, we may need to flush
>> the cache if required by architecture. It uses the existing
>> function flush_cache. Syntax is
> 
>> flush <addr> <size>
> 
>> The addr and size are given in hexadecimal. Like memory command,
>> there is no sanity check for the parameters.
> 
>> Signed-off-by: York Sun <yorksun at freescale.com> --- Change since
>> v2: rename flush_cache to flush
> 
> Wait, why?  flush_cache was clear as to what we were doing, flush less
> so.  At least that's my first reaction.
> 

Scott suggested the underscore is not recommended for the command name.
Shall I change it to cacheflush or flushcache?

York



More information about the U-Boot mailing list