diff options
author | Rajendra Nayak <rnayak@ti.com> | 2009-12-08 20:24:49 -0500 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-12-11 19:00:44 -0500 |
commit | 9ef89150ea118fabc1b93f6891ba58417e4260ff (patch) | |
tree | 893e33f9c4cc426966452f6b5ce598874e3280de | |
parent | 0d93d8bb7f52190d76e9dba7f4561aabefaff34a (diff) |
ARM: OMAP4: PM: Fix the PRM and CM base addresses
This patch fixes the PRM and CM base addresses and adds
a new CM2 base address for OMAP4
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Benoit Cousson <b-cousson@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/prcm.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/clock.c | 5 | ||||
-rw-r--r-- | arch/arm/plat-omap/common.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/common.h | 1 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap44xx.h | 6 |
6 files changed, 10 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 610da0515e1f..c638fe0d84e8 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -11,6 +11,7 @@ clock-common = clock.o clock_common_data.o clockdomain.o | |||
11 | 11 | ||
12 | obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(clock-common) | 12 | obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(clock-common) |
13 | obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(clock-common) | 13 | obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(clock-common) |
14 | obj-$(CONFIG_ARCH_OMAP4) += prcm.o | ||
14 | 15 | ||
15 | obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o | 16 | obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o |
16 | 17 | ||
diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c index 79637c2eaf64..3ea8177ffb25 100644 --- a/arch/arm/mach-omap2/prcm.c +++ b/arch/arm/mach-omap2/prcm.c | |||
@@ -34,6 +34,7 @@ | |||
34 | 34 | ||
35 | static void __iomem *prm_base; | 35 | static void __iomem *prm_base; |
36 | static void __iomem *cm_base; | 36 | static void __iomem *cm_base; |
37 | static void __iomem *cm2_base; | ||
37 | 38 | ||
38 | #define MAX_MODULE_ENABLE_WAIT 100000 | 39 | #define MAX_MODULE_ENABLE_WAIT 100000 |
39 | 40 | ||
@@ -258,6 +259,7 @@ void __init omap2_set_globals_prcm(struct omap_globals *omap2_globals) | |||
258 | { | 259 | { |
259 | prm_base = omap2_globals->prm; | 260 | prm_base = omap2_globals->prm; |
260 | cm_base = omap2_globals->cm; | 261 | cm_base = omap2_globals->cm; |
262 | cm2_base = omap2_globals->cm2; | ||
261 | } | 263 | } |
262 | 264 | ||
263 | #ifdef CONFIG_ARCH_OMAP3 | 265 | #ifdef CONFIG_ARCH_OMAP3 |
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c index 681bfc37ebb2..b857d117a45a 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c | |||
@@ -57,11 +57,6 @@ void omap2_clk_prepare_for_reboot(void) | |||
57 | { | 57 | { |
58 | } | 58 | } |
59 | EXPORT_SYMBOL(omap2_clk_prepare_for_reboot); | 59 | EXPORT_SYMBOL(omap2_clk_prepare_for_reboot); |
60 | |||
61 | void omap_prcm_arch_reset(char mode) | ||
62 | { | ||
63 | } | ||
64 | EXPORT_SYMBOL(omap_prcm_arch_reset); | ||
65 | #endif | 60 | #endif |
66 | int clk_enable(struct clk *clk) | 61 | int clk_enable(struct clk *clk) |
67 | { | 62 | { |
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index cc050b3313bd..01ab1e56db1e 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c | |||
@@ -284,12 +284,14 @@ static struct omap_globals omap4_globals = { | |||
284 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP443X_CTRL_BASE), | 284 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP443X_CTRL_BASE), |
285 | .prm = OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE), | 285 | .prm = OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE), |
286 | .cm = OMAP2_L4_IO_ADDRESS(OMAP4430_CM_BASE), | 286 | .cm = OMAP2_L4_IO_ADDRESS(OMAP4430_CM_BASE), |
287 | .cm2 = OMAP2_L4_IO_ADDRESS(OMAP4430_CM2_BASE), | ||
287 | }; | 288 | }; |
288 | 289 | ||
289 | void __init omap2_set_globals_443x(void) | 290 | void __init omap2_set_globals_443x(void) |
290 | { | 291 | { |
291 | omap2_set_globals_tap(&omap4_globals); | 292 | omap2_set_globals_tap(&omap4_globals); |
292 | omap2_set_globals_control(&omap4_globals); | 293 | omap2_set_globals_control(&omap4_globals); |
294 | omap2_set_globals_prcm(&omap4_globals); | ||
293 | } | 295 | } |
294 | #endif | 296 | #endif |
295 | 297 | ||
diff --git a/arch/arm/plat-omap/include/plat/common.h b/arch/arm/plat-omap/include/plat/common.h index e9779676448b..2f816fe3ae86 100644 --- a/arch/arm/plat-omap/include/plat/common.h +++ b/arch/arm/plat-omap/include/plat/common.h | |||
@@ -58,6 +58,7 @@ struct omap_globals { | |||
58 | void __iomem *ctrl; /* System Control Module */ | 58 | void __iomem *ctrl; /* System Control Module */ |
59 | void __iomem *prm; /* Power and Reset Management */ | 59 | void __iomem *prm; /* Power and Reset Management */ |
60 | void __iomem *cm; /* Clock Management */ | 60 | void __iomem *cm; /* Clock Management */ |
61 | void __iomem *cm2; | ||
61 | }; | 62 | }; |
62 | 63 | ||
63 | void omap2_set_globals_242x(void); | 64 | void omap2_set_globals_242x(void); |
diff --git a/arch/arm/plat-omap/include/plat/omap44xx.h b/arch/arm/plat-omap/include/plat/omap44xx.h index e52902a15c1a..ef870de43c29 100644 --- a/arch/arm/plat-omap/include/plat/omap44xx.h +++ b/arch/arm/plat-omap/include/plat/omap44xx.h | |||
@@ -26,8 +26,10 @@ | |||
26 | #define OMAP44XX_EMIF2_BASE 0x4d000000 | 26 | #define OMAP44XX_EMIF2_BASE 0x4d000000 |
27 | #define OMAP44XX_DMM_BASE 0x4e000000 | 27 | #define OMAP44XX_DMM_BASE 0x4e000000 |
28 | #define OMAP4430_32KSYNCT_BASE 0x4a304000 | 28 | #define OMAP4430_32KSYNCT_BASE 0x4a304000 |
29 | #define OMAP4430_CM_BASE 0x4a004000 | 29 | #define OMAP4430_CM1_BASE 0x4a004000 |
30 | #define OMAP4430_PRM_BASE 0x48306000 | 30 | #define OMAP4430_CM_BASE OMAP4430_CM1_BASE |
31 | #define OMAP4430_CM2_BASE 0x4a008000 | ||
32 | #define OMAP4430_PRM_BASE 0x4a306000 | ||
31 | #define OMAP44XX_GPMC_BASE 0x50000000 | 33 | #define OMAP44XX_GPMC_BASE 0x50000000 |
32 | #define OMAP443X_SCM_BASE 0x4a002000 | 34 | #define OMAP443X_SCM_BASE 0x4a002000 |
33 | #define OMAP443X_CTRL_BASE OMAP443X_SCM_BASE | 35 | #define OMAP443X_CTRL_BASE OMAP443X_SCM_BASE |