diff options
author | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2011-03-03 18:03:25 +0530 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2011-06-13 16:36:36 -0500 |
commit | 0b496c630d81f1009fcb4b236c7f649084532f17 (patch) | |
tree | 6aa0c9d233245fecc87e18ab9b339cf069dfcc4d /arch/arm/mach-omap2/omap4-common.c | |
parent | fd651ebd47f9560c8f152eb666f462e664159cbf (diff) | |
download | kernel_samsung_tuna-0b496c630d81f1009fcb4b236c7f649084532f17.zip kernel_samsung_tuna-0b496c630d81f1009fcb4b236c7f649084532f17.tar.gz kernel_samsung_tuna-0b496c630d81f1009fcb4b236c7f649084532f17.tar.bz2 |
OMAP4: PM: 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>
Cc: 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 | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index 700e439..c533d37 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c @@ -24,15 +24,25 @@ #include <mach/omap-wakeupgen.h> #ifdef CONFIG_CACHE_L2X0 -void __iomem *l2cache_base; +static void __iomem *l2cache_base; #endif -void __iomem *gic_dist_base_addr; +static void __iomem *gic_dist_base_addr; +static void __iomem *gic_cpu_base; +void __iomem *omap4_get_gic_dist_base(void) +{ + return gic_dist_base_addr; +} + +void __iomem *omap4_get_gic_cpu_base(void) +{ + return gic_cpu_base; +} + void __init gic_init_irq(void) { - void __iomem *gic_cpu_base; /* Static mapping, never released */ gic_dist_base_addr = ioremap(OMAP44XX_GIC_DIST_BASE, SZ_4K); @@ -51,6 +61,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 */ |