Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: OMAP2+: Drop legacy platform data for am3 wkup_m3

We can now probe devices with ti-sysc interconnect driver and dts
data. Let's drop the related platform data and custom ti,hwmods
dts property.

As we're just dropping data, and the early platform data init
is based on the custom ti,hwmods property, we want to drop both
the platform data and ti,hwmods property in a single patch.

Cc: Dave Gerlach <d-gerlach@ti.com>
Cc: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

-44
-1
arch/arm/boot/dts/am33xx-l4.dtsi
··· 32 32 33 33 target-module@0 { /* 0x44d00000, ap 4 28.0 */ 34 34 compatible = "ti,sysc-omap4", "ti,sysc"; 35 - ti,hwmods = "wkup_m3"; 36 35 reg = <0x0 0x4>; 37 36 reg-names = "rev"; 38 37 clocks = <&l4_wkup_aon_clkctrl AM3_L4_WKUP_AON_WKUP_M3_CLKCTRL 0>;
-43
arch/arm/mach-omap2/omap_hwmod_33xx_data.c
··· 57 57 }, 58 58 }; 59 59 60 - static struct omap_hwmod_rst_info am33xx_wkup_m3_resets[] = { 61 - { .name = "wkup_m3", .rst_shift = 3, .st_shift = 5 }, 62 - }; 63 - 64 - /* wkup_m3 */ 65 - static struct omap_hwmod am33xx_wkup_m3_hwmod = { 66 - .name = "wkup_m3", 67 - .class = &am33xx_wkup_m3_hwmod_class, 68 - .clkdm_name = "l4_wkup_aon_clkdm", 69 - /* Keep hardreset asserted */ 70 - .flags = HWMOD_INIT_NO_RESET | HWMOD_NO_IDLEST, 71 - .main_clk = "dpll_core_m4_div2_ck", 72 - .prcm = { 73 - .omap4 = { 74 - .clkctrl_offs = AM33XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET, 75 - .rstctrl_offs = AM33XX_RM_WKUP_RSTCTRL_OFFSET, 76 - .rstst_offs = AM33XX_RM_WKUP_RSTST_OFFSET, 77 - .modulemode = MODULEMODE_SWCTRL, 78 - }, 79 - }, 80 - .rst_lines = am33xx_wkup_m3_resets, 81 - .rst_lines_cnt = ARRAY_SIZE(am33xx_wkup_m3_resets), 82 - }; 83 - 84 - 85 60 /* 86 61 * Modules omap_hwmod structures 87 62 * ··· 177 202 .user = OCP_USER_MPU | OCP_USER_SDMA, 178 203 }; 179 204 180 - /* wkup m3 -> l4 wkup */ 181 - static struct omap_hwmod_ocp_if am33xx_wkup_m3__l4_wkup = { 182 - .master = &am33xx_wkup_m3_hwmod, 183 - .slave = &am33xx_l4_wkup_hwmod, 184 - .clk = "dpll_core_m4_div2_ck", 185 - .user = OCP_USER_MPU | OCP_USER_SDMA, 186 - }; 187 - 188 - /* l4 wkup -> wkup m3 */ 189 - static struct omap_hwmod_ocp_if am33xx_l4_wkup__wkup_m3 = { 190 - .master = &am33xx_l4_wkup_hwmod, 191 - .slave = &am33xx_wkup_m3_hwmod, 192 - .clk = "dpll_core_m4_div2_ck", 193 - .user = OCP_USER_MPU | OCP_USER_SDMA, 194 - }; 195 - 196 205 /* l3_main -> debugss */ 197 206 static struct omap_hwmod_ocp_if am33xx_l3_main__debugss = { 198 207 .master = &am33xx_l3_main_hwmod, ··· 211 252 &am33xx_l3_main__l3_s, 212 253 &am33xx_l3_main__l3_instr, 213 254 &am33xx_l3_s__l3_main, 214 - &am33xx_wkup_m3__l4_wkup, 215 255 &am33xx_l3_main__debugss, 216 - &am33xx_l4_wkup__wkup_m3, 217 256 &am33xx_l4_wkup__smartreflex0, 218 257 &am33xx_l4_wkup__smartreflex1, 219 258 &am33xx_l3_s__gpmc,