diff options
author | Tony Lindgren <tony@atomide.com> | 2018-08-08 10:07:04 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2018-08-17 16:22:39 +0200 |
commit | 1dbcb97c656eed1a244c960b8b3a469c3d20ce7b (patch) | |
tree | b4c89d8fd284d36f18afc99f849498cf01e1d8ab /arch/arm/plat-samsung | |
parent | ARM: OMAP2+: Fix null hwmod for ti-sysc debug (diff) | |
download | linux-1dbcb97c656eed1a244c960b8b3a469c3d20ce7b.tar.xz linux-1dbcb97c656eed1a244c960b8b3a469c3d20ce7b.zip |
ARM: OMAP2+: Fix module address for modules using mpu_rt_idx
If we use device tree data for a module interconnect target we want
to map the control registers from the module start. Legacy hwmod platform
data however is using child IP offsets for cpsw module with mpu_rt_idx.
In cases where we have the interconnect target module already using device
tree data with legacy hwmod platform data still around, the sysc register
area is not adjusted for mpu_rt_idx causing wrong registers being accessed.
Let's fix the issue for mixed dts and platform data mode by ioremapping
the module registers using child IP offset if mpu_rt_idx is set. For
device tree only data there's no reason to use mpu_rt_idx.
Fixes: 6c72b3550672 ("ARM: OMAP2+: Parse module IO range from dts for legacy
"ti,hwmods" support")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-samsung')
0 files changed, 0 insertions, 0 deletions