]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: OMAP2+: Fix MMC address space mismatch for am33xx and am43xx
authorTony Lindgren <tony@atomide.com>
Tue, 29 Aug 2017 17:03:32 +0000 (10:03 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 19 Sep 2017 18:04:33 +0000 (11:04 -0700)
The address space currently set up for the interconnect data
is different compared to the dts data. We have hwmod data with
offset 0x100 to account for the revision, sysc and syss
register offsets. Let's fix the issue by correcting the MMC
register offsets in hwmod data and removing the unnecessary
duplicate IO range data that we get from device tree anyways.

Cc: Lokesh Vutla <lokeshvutla@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c

index 8236e5c49ec3e4ec54a4e695e0c4a46e4f8f869e..a88cb013fef9c3cc1830f7611d1b7e458405e1c8 100644 (file)
@@ -286,56 +286,26 @@ struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp1 = {
 };
 
 /* l4 ls -> mmc0 */
-static struct omap_hwmod_addr_space am33xx_mmc0_addr_space[] = {
-       {
-               .pa_start       = 0x48060100,
-               .pa_end         = 0x48060100 + SZ_4K - 1,
-               .flags          = ADDR_TYPE_RT,
-       },
-       { }
-};
-
 struct omap_hwmod_ocp_if am33xx_l4_ls__mmc0 = {
        .master         = &am33xx_l4_ls_hwmod,
        .slave          = &am33xx_mmc0_hwmod,
        .clk            = "l4ls_gclk",
-       .addr           = am33xx_mmc0_addr_space,
        .user           = OCP_USER_MPU,
 };
 
 /* l4 ls -> mmc1 */
-static struct omap_hwmod_addr_space am33xx_mmc1_addr_space[] = {
-       {
-               .pa_start       = 0x481d8100,
-               .pa_end         = 0x481d8100 + SZ_4K - 1,
-               .flags          = ADDR_TYPE_RT,
-       },
-       { }
-};
-
 struct omap_hwmod_ocp_if am33xx_l4_ls__mmc1 = {
        .master         = &am33xx_l4_ls_hwmod,
        .slave          = &am33xx_mmc1_hwmod,
        .clk            = "l4ls_gclk",
-       .addr           = am33xx_mmc1_addr_space,
        .user           = OCP_USER_MPU,
 };
 
 /* l3 s -> mmc2 */
-static struct omap_hwmod_addr_space am33xx_mmc2_addr_space[] = {
-       {
-               .pa_start       = 0x47810100,
-               .pa_end         = 0x47810100 + SZ_64K - 1,
-               .flags          = ADDR_TYPE_RT,
-       },
-       { }
-};
-
 struct omap_hwmod_ocp_if am33xx_l3_s__mmc2 = {
        .master         = &am33xx_l3_s_hwmod,
        .slave          = &am33xx_mmc2_hwmod,
        .clk            = "l3s_gclk",
-       .addr           = am33xx_mmc2_addr_space,
        .user           = OCP_USER_MPU,
 };
 
index de06a1d5ffab5a15e418e560e24a8dde6bf3818d..4bcf9f3e15448fb60d81faeb0c03a4716322e2d4 100644 (file)
@@ -778,9 +778,9 @@ struct omap_hwmod am33xx_mcasp1_hwmod = {
 
 /* 'mmc' class */
 static struct omap_hwmod_class_sysconfig am33xx_mmc_sysc = {
-       .rev_offs       = 0x1fc,
-       .sysc_offs      = 0x10,
-       .syss_offs      = 0x14,
+       .rev_offs       = 0x2fc,
+       .sysc_offs      = 0x110,
+       .syss_offs      = 0x114,
        .sysc_flags     = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
                          SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
                          SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),