u-boot-brain/cpu
Tom Rix 7a2aa8b681 OMAP3 Move cache routine to cache.S
v7_flush_dcache_all, because it depends on omap ROM code is not
generic.  Rename the function to 'invalidate_dcache' and move it
to the omap cpu directory.

Collect the other omap cache routines l2_cache_enable and
l2_cache_disable with invalide_dcache into cache.S.  This
means removing the old cache.c file that contained l2_cache_enable
and l2_cache_disable.

The conversion from cache.c to cache.S was done most through
disassembling the uboot binary.  The only significant change was
to change the comparision for the return of get_cpu_rev from

   cmp	r0, #0
   beq	earlier_than_label

Which was lost information to

   cmp	r0, #CPU_3XX_ES20
   blt	earlier_than_label

The paths through the enable routine were verified by
adding an infinite loop and seeing the hang.  Then
removing the infinite loop and seeing it continue.

The disable routine is similar enough that it was not
tested with this method.

Run tested by cold booting from nand on beagle and zoom1.
Compile tested on MAKEALL arm.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
2009-10-13 06:17:33 -05:00
..
74xx_7xx relocation: Do not relocate NULL pointers. 2009-10-08 09:33:36 +02:00
arm_cortexa8 OMAP3 Move cache routine to cache.S 2009-10-13 06:17:33 -05:00
arm_intcm arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
arm720t arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
arm920t arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
arm925t arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
arm926ejs Merge branch 'master' of git://git.denx.de/u-boot-arm 2009-09-07 23:12:46 +02:00
arm946es arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
arm1136 arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
arm1176 arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
at32ap Add AVR32 LCD support 2009-07-26 13:12:02 +02:00
blackfin Blackfin: use scratch pad for exception stack 2009-09-02 05:58:38 -04:00
i386 i386: Replace [read, write]_mmcr_[byte, word, long] with memory mapped structure 2009-09-04 21:56:45 +02:00
ixp arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
leon2 Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
leon3 Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
lh7a40x arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
mcf52x2 ColdFire: Add M5208EVB and MCF520x CPU support 2009-07-14 09:27:17 -05:00
mcf523x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf532x ColdFire: Fix compile warning messages 2009-08-26 03:44:31 -05:00
mcf547x_8x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf5227x ColdFire: Fix compile warning messages 2009-08-26 03:44:31 -05:00
mcf5445x Minor coding style cleanup. 2009-08-10 10:38:34 +02:00
microblaze microblaze: Use cache functions (especially cache status) 2009-01-23 10:40:00 +01:00
mips MIPS: Implement ethernet halt for au1x00 2009-05-16 09:20:03 +09:00
mpc5xx relocation: Do not relocate NULL pointers. 2009-10-08 09:33:36 +02:00
mpc5xxx relocation: Do not relocate NULL pointers. 2009-10-08 09:33:36 +02:00
mpc8xx relocation: Do not relocate NULL pointers. 2009-10-08 09:33:36 +02:00
mpc8xxx ppc/p4080: Add various p4080 related defines (and p4040) 2009-09-24 12:05:28 -05:00
mpc83xx relocation: Do not relocate NULL pointers. 2009-10-08 09:33:36 +02:00
mpc85xx relocation: Do not relocate NULL pointers. 2009-10-08 09:33:36 +02:00
mpc86xx relocation: Do not relocate NULL pointers. 2009-10-08 09:33:36 +02:00
mpc512x Merge branch 'reloc' 2009-10-09 00:03:18 +02:00
mpc824x relocation: Do not relocate NULL pointers. 2009-10-08 09:33:36 +02:00
mpc8220 relocation: Do not relocate NULL pointers. 2009-10-08 09:33:36 +02:00
mpc8260 relocation: Do not relocate NULL pointers. 2009-10-08 09:33:36 +02:00
nios General help message cleanup 2009-06-12 20:47:16 +02:00
nios2 General help message cleanup 2009-06-12 20:47:16 +02:00
ppc4xx Merge branch 'reloc' 2009-10-09 00:03:18 +02:00
pxa arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
s3c44b0 arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
sa1100 arm: Remove -fno-strict-aliasing 2009-09-04 22:15:53 +02:00
sh2 sh: unify linker script 2009-07-08 11:43:15 +09:00
sh3 sh: unify linker script 2009-07-08 11:43:15 +09:00
sh4 sh: unify linker script 2009-07-08 11:43:15 +09:00