[U-Boot] cache_flush() function
Mike Frysinger
vapier at gentoo.org
Tue Dec 7 20:51:26 CET 2010
On Tuesday, December 07, 2010 07:44:53 Sergey Mironov wrote:
> I'm porting u-boot on our arm1176-based SoC which uses greth as
> ethernet controller. I have removed sparc code from greth.c and now
> almost ready to send the patch. Last thing to fix is cache flusher
> function which is required by the driver. Originally algorithm used
> sparc_flush_cachces which is not suitable for the driver.
>
> Is there any 'official' guidelines on using the caches? What
> hardware-abstract function should I prefer?
if the func is defined in include/*.h, it tends to be OK to use portability
(ignoring the arch-specific files which shouldnt be in include/). in terms of
cache, a simple grep tells you the answer:
grep cache include/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/20101207/a288a28d/attachment.pgp
More information about the U-Boot
mailing list