]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ARMV7: OMAP3: Fix and clean up L2 cache enable/disable functions
authorMans Rullgard <mans@mansr.com>
Wed, 14 Apr 2010 10:08:00 +0000 (11:08 +0100)
committerSandeep Paulraj <s-paulraj@ti.com>
Wed, 8 Sep 2010 18:51:04 +0000 (14:51 -0400)
commit29844707469854d9fab181edd6abe2f25fb5d208
tree15956c1e6c4d6ec6b8af92bd639e4836205df10b
parent7c281c985c33318d0795e43909e0d26f870f98ed
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>
arch/arm/cpu/armv7/omap3/cache.S