diff options
author | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2011-03-03 13:33:25 +0100 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-12-08 20:28:59 +0100 |
commit | 02afe8a7f23d562cec76743ae34c4735d2819345 (patch) | |
tree | 68ffe470f552464de0e3fb55d6adb7069e4261d1 /arch/arm/mach-omap2/omap4-common.c | |
parent | ARM: OMAP4: Use WARN_ON() instead of BUG_ON() with graceful exit (diff) | |
download | linux-02afe8a7f23d562cec76743ae34c4735d2819345.tar.xz linux-02afe8a7f23d562cec76743ae34c4735d2819345.zip |
ARM: OMAP4: Export omap4_get_base*() rather than global address pointers
This patch exports APIs to get base address for GIC
distributor, CPU interface, SCU and PL310 L2 Cache which
are used in OMAP4 PM code.
This was suggested by Kevin Hilman <khilman@ti.com> during
OMAP4 PM code review.
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Jean Pihet <j-pihet@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap4-common.c')
-rw-r--r-- | arch/arm/mach-omap2/omap4-common.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index 21d4821c9612..4a3d2898543b 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c @@ -26,7 +26,7 @@ #include "common.h" #ifdef CONFIG_CACHE_L2X0 -void __iomem *l2cache_base; +static void __iomem *l2cache_base; #endif void __init gic_init_irq(void) @@ -47,6 +47,11 @@ void __init gic_init_irq(void) #ifdef CONFIG_CACHE_L2X0 +void __iomem *omap4_get_l2cache_base(void) +{ + return l2cache_base; +} + static void omap4_l2x0_disable(void) { /* Disable PL310 L2 Cache controller */ |