• Tom Rix's avatar
    OMAP3 Move cache routine to cache.S · 7a2aa8b6
    Tom Rix authored
    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: default avatarTom Rix <Tom.Rix@windriver.com>
    7a2aa8b6
Name
Last commit
Last update
api Loading commit data...
board Loading commit data...
common Loading commit data...
cpu Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib_arm Loading commit data...
lib_avr32 Loading commit data...
lib_blackfin Loading commit data...
lib_generic Loading commit data...
lib_i386 Loading commit data...
lib_m68k Loading commit data...
lib_microblaze Loading commit data...
lib_mips Loading commit data...
lib_nios Loading commit data...
lib_nios2 Loading commit data...
lib_ppc Loading commit data...
lib_sh Loading commit data...
lib_sparc Loading commit data...
libfdt Loading commit data...
nand_spl Loading commit data...
net Loading commit data...
onenand_ipl Loading commit data...
post Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
CHANGELOG Loading commit data...
CHANGELOG-before-U-Boot-1.1.5 Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
MAINTAINERS Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
config.mk Loading commit data...
mkconfig Loading commit data...
rules.mk Loading commit data...