armv7: Move L2CTLR read/write to common
authorJagan Teki <[email protected]>
Wed, 27 Sep 2017 17:33:10 +0000 (23:03 +0530)
committerPhilipp Tomsich <[email protected]>
Sat, 30 Sep 2017 22:33:33 +0000 (00:33 +0200)
commitd9a7dcf5b8da5460a08305cdc9452f4e62dd34e5
treeed337c8ff2e94ee00af22d7d2129b575a39a0a96
parentf3f6591ca39325f34ef3ec3600be2e493b3a0327
armv7: Move L2CTLR read/write to common

L2CTLR read/write functions are common to armv7 so, move
them in to include/asm/armv7.h and use them where ever it need.

Cc: Tom Warren <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
Acked-by: Philipp Tomsich <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
[Backed out the change to arch/arm/mach-tegra/cache.c:]
Signed-off-by: Philipp Tomsich <[email protected]>
arch/arm/include/asm/armv7.h
arch/arm/mach-rockchip/rk3288-board-spl.c