diff options
Diffstat (limited to 'arch/arm/mach-omap2/sram-fn.S')
-rw-r--r-- | arch/arm/mach-omap2/sram-fn.S | 42 |
1 files changed, 17 insertions, 25 deletions
diff --git a/arch/arm/mach-omap2/sram-fn.S b/arch/arm/mach-omap2/sram-fn.S index b27576690f8d..4a9e49140716 100644 --- a/arch/arm/mach-omap2/sram-fn.S +++ b/arch/arm/mach-omap2/sram-fn.S | |||
@@ -27,19 +27,11 @@ | |||
27 | #include <asm/arch/io.h> | 27 | #include <asm/arch/io.h> |
28 | #include <asm/hardware.h> | 28 | #include <asm/hardware.h> |
29 | 29 | ||
30 | #include "prcm-regs.h" | 30 | #include "sdrc.h" |
31 | #include "prm.h" | ||
32 | #include "cm.h" | ||
31 | 33 | ||
32 | #define TIMER_32KSYNCT_CR_V IO_ADDRESS(OMAP24XX_32KSYNCT_BASE + 0x010) | 34 | #define TIMER_32KSYNCT_CR_V IO_ADDRESS(OMAP2420_32KSYNCT_BASE + 0x010) |
33 | |||
34 | #define CM_CLKSEL2_PLL_V IO_ADDRESS(OMAP24XX_PRCM_BASE + 0x544) | ||
35 | #define PRCM_VOLTCTRL_V IO_ADDRESS(OMAP24XX_PRCM_BASE + 0x050) | ||
36 | #define PRCM_CLKCFG_CTRL_V IO_ADDRESS(OMAP24XX_PRCM_BASE + 0x080) | ||
37 | #define CM_CLKEN_PLL_V IO_ADDRESS(OMAP24XX_PRCM_BASE + 0x500) | ||
38 | #define CM_IDLEST_CKGEN_V IO_ADDRESS(OMAP24XX_PRCM_BASE + 0x520) | ||
39 | #define CM_CLKSEL1_PLL_V IO_ADDRESS(OMAP24XX_PRCM_BASE + 0x540) | ||
40 | |||
41 | #define SDRC_DLLA_CTRL_V IO_ADDRESS(OMAP24XX_SDRC_BASE + 0x060) | ||
42 | #define SDRC_RFR_CTRL_V IO_ADDRESS(OMAP24XX_SDRC_BASE + 0x0a4) | ||
43 | 35 | ||
44 | .text | 36 | .text |
45 | 37 | ||
@@ -131,11 +123,11 @@ volt_delay: | |||
131 | 123 | ||
132 | /* relative load constants */ | 124 | /* relative load constants */ |
133 | cm_clksel2_pll: | 125 | cm_clksel2_pll: |
134 | .word CM_CLKSEL2_PLL_V | 126 | .word OMAP2420_CM_REGADDR(PLL_MOD, CM_CLKSEL2) |
135 | sdrc_dlla_ctrl: | 127 | sdrc_dlla_ctrl: |
136 | .word SDRC_DLLA_CTRL_V | 128 | .word OMAP242X_SDRC_REGADDR(SDRC_DLLA_CTRL) |
137 | prcm_voltctrl: | 129 | prcm_voltctrl: |
138 | .word PRCM_VOLTCTRL_V | 130 | .word OMAP2420_PRM_REGADDR(OCP_MOD, 0x50) |
139 | prcm_mask_val: | 131 | prcm_mask_val: |
140 | .word 0xFFFF3FFC | 132 | .word 0xFFFF3FFC |
141 | timer_32ksynct_cr: | 133 | timer_32ksynct_cr: |
@@ -225,13 +217,13 @@ volt_delay_c: | |||
225 | mov pc, lr @ back to caller | 217 | mov pc, lr @ back to caller |
226 | 218 | ||
227 | ddr_cm_clksel2_pll: | 219 | ddr_cm_clksel2_pll: |
228 | .word CM_CLKSEL2_PLL_V | 220 | .word OMAP2420_CM_REGADDR(PLL_MOD, CM_CLKSEL2) |
229 | ddr_sdrc_dlla_ctrl: | 221 | ddr_sdrc_dlla_ctrl: |
230 | .word SDRC_DLLA_CTRL_V | 222 | .word OMAP242X_SDRC_REGADDR(SDRC_DLLA_CTRL) |
231 | ddr_sdrc_rfr_ctrl: | 223 | ddr_sdrc_rfr_ctrl: |
232 | .word SDRC_RFR_CTRL_V | 224 | .word OMAP242X_SDRC_REGADDR(SDRC_RFR_CTRL_0) |
233 | ddr_prcm_voltctrl: | 225 | ddr_prcm_voltctrl: |
234 | .word PRCM_VOLTCTRL_V | 226 | .word OMAP2420_PRM_REGADDR(OCP_MOD, 0x50) |
235 | ddr_prcm_mask_val: | 227 | ddr_prcm_mask_val: |
236 | .word 0xFFFF3FFC | 228 | .word 0xFFFF3FFC |
237 | ddr_timer_32ksynct: | 229 | ddr_timer_32ksynct: |
@@ -316,17 +308,17 @@ wait_dll_lock: | |||
316 | ldmfd sp!, {r0-r12, pc} @ restore regs and return | 308 | ldmfd sp!, {r0-r12, pc} @ restore regs and return |
317 | 309 | ||
318 | set_config: | 310 | set_config: |
319 | .word PRCM_CLKCFG_CTRL_V | 311 | .word OMAP2420_PRM_REGADDR(OCP_MOD, 0x80) |
320 | pll_ctl: | 312 | pll_ctl: |
321 | .word CM_CLKEN_PLL_V | 313 | .word OMAP2420_CM_REGADDR(PLL_MOD, CM_FCLKEN1) |
322 | pll_stat: | 314 | pll_stat: |
323 | .word CM_IDLEST_CKGEN_V | 315 | .word OMAP2420_CM_REGADDR(PLL_MOD, CM_IDLEST1) |
324 | pll_div: | 316 | pll_div: |
325 | .word CM_CLKSEL1_PLL_V | 317 | .word OMAP2420_CM_REGADDR(PLL_MOD, CM_CLKSEL) |
326 | sdrc_rfr: | 318 | sdrc_rfr: |
327 | .word SDRC_RFR_CTRL_V | 319 | .word OMAP242X_SDRC_REGADDR(SDRC_RFR_CTRL_0) |
328 | dlla_ctrl: | 320 | dlla_ctrl: |
329 | .word SDRC_DLLA_CTRL_V | 321 | .word OMAP242X_SDRC_REGADDR(SDRC_DLLA_CTRL) |
330 | 322 | ||
331 | ENTRY(sram_set_prcm_sz) | 323 | ENTRY(sram_set_prcm_sz) |
332 | .word . - sram_set_prcm | 324 | .word . - sram_set_prcm |