diff options
Diffstat (limited to 'arch/arm/mach-omap2/prcm_mpu44xx.c')
| -rw-r--r-- | arch/arm/mach-omap2/prcm_mpu44xx.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prcm_mpu44xx.c b/arch/arm/mach-omap2/prcm_mpu44xx.c index 928dbd4f20ed..c30e44a7fab0 100644 --- a/arch/arm/mach-omap2/prcm_mpu44xx.c +++ b/arch/arm/mach-omap2/prcm_mpu44xx.c | |||
| @@ -20,6 +20,12 @@ | |||
| 20 | #include "prcm_mpu44xx.h" | 20 | #include "prcm_mpu44xx.h" |
| 21 | #include "cm-regbits-44xx.h" | 21 | #include "cm-regbits-44xx.h" |
| 22 | 22 | ||
| 23 | /* | ||
| 24 | * prcm_mpu_base: the virtual address of the start of the PRCM_MPU IP | ||
| 25 | * block registers | ||
| 26 | */ | ||
| 27 | void __iomem *prcm_mpu_base; | ||
| 28 | |||
| 23 | /* PRCM_MPU low-level functions */ | 29 | /* PRCM_MPU low-level functions */ |
| 24 | 30 | ||
| 25 | u32 omap4_prcm_mpu_read_inst_reg(s16 inst, u16 reg) | 31 | u32 omap4_prcm_mpu_read_inst_reg(s16 inst, u16 reg) |
| @@ -43,3 +49,14 @@ u32 omap4_prcm_mpu_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 reg) | |||
| 43 | 49 | ||
| 44 | return v; | 50 | return v; |
| 45 | } | 51 | } |
| 52 | |||
| 53 | /** | ||
| 54 | * omap2_set_globals_prcm_mpu - set the MPU PRCM base address (for early use) | ||
| 55 | * @prcm_mpu: PRCM_MPU base virtual address | ||
| 56 | * | ||
| 57 | * XXX Will be replaced when the PRM/CM drivers are completed. | ||
| 58 | */ | ||
| 59 | void __init omap2_set_globals_prcm_mpu(void __iomem *prcm_mpu) | ||
| 60 | { | ||
| 61 | prcm_mpu_base = prcm_mpu; | ||
| 62 | } | ||
