u-boot-brain/arch/arm/cpu/armv7/omap3
Mans Rullgard 2984470746 ARMV7: OMAP3: Fix and clean up L2 cache enable/disable functions
On OMAP34xx ES1.0, the L2 enable bit can only be set in secure mode,
so an SMC call to the ROM monitor is required.  On later versions,
and on newer devices, this bit is banked and we can set it directly.

The code checked only the ES revision of the chip, and hence incorrectly
used the ROM call on ES1.0 versions of other devices.

This patch adds a check for chip family as well as revision, and also
removes some code duplication between the enable and disable functions.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
2010-09-08 14:51:04 -04:00
..
board.c ARM: Rename arch/arm/cpu/arm_cortexa8 to armv7 2010-07-05 19:59:55 -04:00
cache.S ARMV7: OMAP3: Fix and clean up L2 cache enable/disable functions 2010-09-08 14:51:04 -04:00
clock.c ARMV7: OMAP3: Add clock setup for OMAP36XX/37XX 2010-09-08 14:50:58 -04:00
emif4.c ARM: Rename arch/arm/cpu/arm_cortexa8 to armv7 2010-07-05 19:59:55 -04:00
gpio.c ARM: Rename arch/arm/cpu/arm_cortexa8 to armv7 2010-07-05 19:59:55 -04:00
lowlevel_init.S ARMV7: OMAP3: Add clock setup for OMAP36XX/37XX 2010-09-08 14:50:58 -04:00
Makefile ARMV7: OMAP: Move syslib.c to omap-common since it can be shared by OMAP3 and OMAP4 2010-09-08 14:50:17 -04:00
mem.c ARM: Rename arch/arm/cpu/arm_cortexa8 to armv7 2010-07-05 19:59:55 -04:00
sdrc.c ARM: Rename arch/arm/cpu/arm_cortexa8 to armv7 2010-07-05 19:59:55 -04:00
sys_info.c ARMV7: OMAP3: Update CPU type detection for AM35XX/OMAP36XX/37XX 2010-09-08 14:50:52 -04:00