summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod.c
diff options
context:
space:
mode:
authorAfzal Mohammed <afzal@ti.com>2013-07-05 20:43:00 +0530
committerPaul Walmsley <paul@pwsan.com>2013-07-30 05:13:37 -0600
commit130142d91467e8a07f3a863db369225a89e84d75 (patch)
tree543b3e4b5f2203a9550441a714ebfb11672fe098 /arch/arm/mach-omap2/omap_hwmod.c
parent7268032dfb1180fca6e91a738380b7ac53684247 (diff)
downloadop-kernel-dev-130142d91467e8a07f3a863db369225a89e84d75.zip
op-kernel-dev-130142d91467e8a07f3a863db369225a89e84d75.tar.gz
ARM: OMAP2+: hwmod: rt address space index for DT
Address space is being removed from hwmod database and DT information in <reg> property is being used. Currently the 0th index of device address space is used to map for register target address. This is not always true, eg. cpgmac has it's sysconfig in second address space. Handle it by specifying index of device address space to be used for register target. As default value of this field would be zero with static initialization, existing behaviour of using first address space for register target while using DT would be kept as such. Signed-off-by: Afzal Mohammed <afzal@ti.com> Tested-by: Mugunthan V N <mugunthanvnm@ti.com> [paul@pwsan.com: use u8 rather than int to save memory] Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index 7341eff..7f4db12 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -2386,7 +2386,7 @@ static void __init _init_mpu_rt_base(struct omap_hwmod *oh, void *data)
np = of_dev_hwmod_lookup(of_find_node_by_name(NULL, "ocp"), oh);
if (np)
- va_start = of_iomap(np, 0);
+ va_start = of_iomap(np, oh->mpu_rt_idx);
} else {
va_start = ioremap(mem->pa_start, mem->pa_end - mem->pa_start);
}
OpenPOWER on IntegriCloud