ARM: OMAP2+: hwmod: AM335x: fix cpgmac address space
authorAfzal Mohammed <[email protected]>
Fri, 5 Jul 2013 15:13:17 +0000 (20:43 +0530)
committerPaul Walmsley <[email protected]>
Tue, 30 Jul 2013 11:13:37 +0000 (05:13 -0600)
Register target address to be used for cpgmac is the second device
address space. By default, hwmod picks first address space (0th index)
for register target.

With removal of address space from hwmod and using DT instead, cpgmac
is getting wrong address space for register target.

Fix it by indicating the address space to be used for register target.

Signed-off-by: Afzal Mohammed <[email protected]>
Tested-by: Mugunthan V N <[email protected]>
Signed-off-by: Paul Walmsley <[email protected]>
arch/arm/mach-omap2/omap_hwmod_33xx_data.c

index d4114a919df783152bc8d91fb4c39b5e1e426159..eb2f3b93b51c9a4d7ce32eed8f23d63cb3083d33 100644 (file)
@@ -562,6 +562,7 @@ static struct omap_hwmod am33xx_cpgmac0_hwmod = {
        .clkdm_name     = "cpsw_125mhz_clkdm",
        .flags          = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
        .main_clk       = "cpsw_125mhz_gclk",
+       .mpu_rt_idx     = 1,
        .prcm           = {
                .omap4  = {
                        .clkctrl_offs   = AM33XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET,