diff options
author | Tero Kristo <t-kristo@ti.com> | 2017-05-31 18:00:00 +0300 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2017-06-06 00:13:51 -0700 |
commit | 90129336712c3c8dcd0d81a5dfaea52dd8391e62 (patch) | |
tree | 21e3fd1f2c4ab3ad14dc201f865a76c58b0c6c3a /arch/arm/mach-omap2/cm33xx.c | |
parent | 24d8d498a8703462f0141f2fcdcd325de1ab2bb8 (diff) | |
download | blackbird-op-linux-90129336712c3c8dcd0d81a5dfaea52dd8391e62.tar.gz blackbird-op-linux-90129336712c3c8dcd0d81a5dfaea52dd8391e62.zip |
ARM: OMAP2+: PRCM: store also physical addresses for instances
In some cases the physical address info is needed, so store this
under the existing cm*_base, prm_base and prcm_mpu_base variables.
These are converted now to structs that contain both virtual and
physical address base for the instance.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/cm33xx.c')
-rw-r--r-- | arch/arm/mach-omap2/cm33xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/cm33xx.c b/arch/arm/mach-omap2/cm33xx.c index 6f2d0aec0513..a9e08d89104e 100644 --- a/arch/arm/mach-omap2/cm33xx.c +++ b/arch/arm/mach-omap2/cm33xx.c @@ -50,13 +50,13 @@ /* Read a register in a CM instance */ static inline u32 am33xx_cm_read_reg(u16 inst, u16 idx) { - return readl_relaxed(cm_base + inst + idx); + return readl_relaxed(cm_base.va + inst + idx); } /* Write into a register in a CM */ static inline void am33xx_cm_write_reg(u32 val, u16 inst, u16 idx) { - writel_relaxed(val, cm_base + inst + idx); + writel_relaxed(val, cm_base.va + inst + idx); } /* Read-modify-write a register in CM */ |