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 and am4 gpmc

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: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

+65 -78
-1
arch/arm/boot/dts/am335x-nano.dts
··· 238 238 239 239 &gpmc { 240 240 compatible = "ti,am3352-gpmc"; 241 - ti,hwmods = "gpmc"; 242 241 status = "okay"; 243 242 gpmc,num-waitpins = <2>; 244 243 pinctrl-names = "default";
+32 -16
arch/arm/boot/dts/am33xx.dtsi
··· 480 480 ti,no-idle; 481 481 }; 482 482 483 - gpmc: gpmc@50000000 { 484 - compatible = "ti,am3352-gpmc"; 485 - ti,hwmods = "gpmc"; 486 - ti,no-idle-on-init; 487 - reg = <0x50000000 0x2000>; 488 - interrupts = <100>; 489 - dmas = <&edma 52 0>; 490 - dma-names = "rxtx"; 491 - gpmc,num-cs = <7>; 492 - gpmc,num-waitpins = <2>; 493 - #address-cells = <2>; 483 + target-module@50000000 { 484 + compatible = "ti,sysc-omap2", "ti,sysc"; 485 + reg = <0x50000000 4>, 486 + <0x50000010 4>, 487 + <0x50000014 4>; 488 + reg-names = "rev", "sysc", "syss"; 489 + ti,sysc-sidle = <SYSC_IDLE_FORCE>, 490 + <SYSC_IDLE_NO>, 491 + <SYSC_IDLE_SMART>; 492 + ti,syss-mask = <1>; 493 + clocks = <&l3s_clkctrl AM3_L3S_GPMC_CLKCTRL 0>; 494 + clock-names = "fck"; 495 + #address-cells = <1>; 494 496 #size-cells = <1>; 495 - interrupt-controller; 496 - #interrupt-cells = <2>; 497 - gpio-controller; 498 - #gpio-cells = <2>; 499 - status = "disabled"; 497 + ranges = <0x50000000 0x50000000 0x00001000>, /* regs */ 498 + <0x00000000 0x00000000 0x40000000>; /* data */ 499 + 500 + gpmc: gpmc@50000000 { 501 + compatible = "ti,am3352-gpmc"; 502 + reg = <0x50000000 0x2000>; 503 + interrupts = <100>; 504 + dmas = <&edma 52 0>; 505 + dma-names = "rxtx"; 506 + gpmc,num-cs = <7>; 507 + gpmc,num-waitpins = <2>; 508 + #address-cells = <2>; 509 + #size-cells = <1>; 510 + interrupt-controller; 511 + #interrupt-cells = <2>; 512 + gpio-controller; 513 + #gpio-cells = <2>; 514 + status = "disabled"; 515 + }; 500 516 }; 501 517 502 518 sham_target: target-module@53100000 {
+33 -16
arch/arm/boot/dts/am4372.dtsi
··· 434 434 ranges = <0x0 0x54400000 0x80000>; 435 435 }; 436 436 437 - gpmc: gpmc@50000000 { 438 - compatible = "ti,am3352-gpmc"; 439 - ti,hwmods = "gpmc"; 440 - dmas = <&edma 52 0>; 441 - dma-names = "rxtx"; 442 - clocks = <&l3s_gclk>; 437 + target-module@50000000 { 438 + compatible = "ti,sysc-omap2", "ti,sysc"; 439 + reg = <0x50000000 4>, 440 + <0x50000010 4>, 441 + <0x50000014 4>; 442 + reg-names = "rev", "sysc", "syss"; 443 + ti,sysc-sidle = <SYSC_IDLE_FORCE>, 444 + <SYSC_IDLE_NO>, 445 + <SYSC_IDLE_SMART>; 446 + ti,syss-mask = <1>; 447 + clocks = <&l3s_clkctrl AM4_L3S_GPMC_CLKCTRL 0>; 443 448 clock-names = "fck"; 444 - reg = <0x50000000 0x2000>; 445 - interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; 446 - gpmc,num-cs = <7>; 447 - gpmc,num-waitpins = <2>; 448 - #address-cells = <2>; 449 + #address-cells = <1>; 449 450 #size-cells = <1>; 450 - interrupt-controller; 451 - #interrupt-cells = <2>; 452 - gpio-controller; 453 - #gpio-cells = <2>; 454 - status = "disabled"; 451 + ranges = <0x50000000 0x50000000 0x00001000>, /* regs */ 452 + <0x00000000 0x00000000 0x40000000>; /* data */ 453 + 454 + gpmc: gpmc@50000000 { 455 + compatible = "ti,am3352-gpmc"; 456 + dmas = <&edma 52 0>; 457 + dma-names = "rxtx"; 458 + clocks = <&l3s_gclk>; 459 + clock-names = "fck"; 460 + reg = <0x50000000 0x2000>; 461 + interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; 462 + gpmc,num-cs = <7>; 463 + gpmc,num-waitpins = <2>; 464 + #address-cells = <2>; 465 + #size-cells = <1>; 466 + interrupt-controller; 467 + #interrupt-cells = <2>; 468 + gpio-controller; 469 + #gpio-cells = <2>; 470 + status = "disabled"; 471 + }; 455 472 }; 456 473 457 474 target-module@47900000 {
-2
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h
··· 26 26 extern struct omap_hwmod_ocp_if am33xx_l3_s__l3_main; 27 27 extern struct omap_hwmod_ocp_if am33xx_gfx__l3_main; 28 28 extern struct omap_hwmod_ocp_if am33xx_l3_main__gfx; 29 - extern struct omap_hwmod_ocp_if am33xx_l3_s__gpmc; 30 29 extern struct omap_hwmod_ocp_if am33xx_l4_ls__timer2; 31 30 extern struct omap_hwmod_ocp_if am33xx_l3_main__ocmc; 32 31 ··· 40 41 extern struct omap_hwmod am33xx_ocmcram_hwmod; 41 42 extern struct omap_hwmod am33xx_smartreflex0_hwmod; 42 43 extern struct omap_hwmod am33xx_smartreflex1_hwmod; 43 - extern struct omap_hwmod am33xx_gpmc_hwmod; 44 44 45 45 extern struct omap_hwmod_class am33xx_emif_hwmod_class; 46 46 extern struct omap_hwmod_class am33xx_l4_hwmod_class;
-8
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
··· 74 74 .user = OCP_USER_MPU | OCP_USER_SDMA, 75 75 }; 76 76 77 - /* l3s cfg -> gpmc */ 78 - struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = { 79 - .master = &am33xx_l3_s_hwmod, 80 - .slave = &am33xx_gpmc_hwmod, 81 - .clk = "l3s_gclk", 82 - .user = OCP_USER_MPU, 83 - }; 84 - 85 77 /* l3 main -> ocmc */ 86 78 struct omap_hwmod_ocp_if am33xx_l3_main__ocmc = { 87 79 .master = &am33xx_l3_main_hwmod,
-33
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
··· 218 218 .name = "control", 219 219 }; 220 220 221 - 222 - /* gpmc */ 223 - static struct omap_hwmod_class_sysconfig gpmc_sysc = { 224 - .rev_offs = 0x0, 225 - .sysc_offs = 0x10, 226 - .syss_offs = 0x14, 227 - .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE | 228 - SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS), 229 - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), 230 - .sysc_fields = &omap_hwmod_sysc_type1, 231 - }; 232 - 233 - static struct omap_hwmod_class am33xx_gpmc_hwmod_class = { 234 - .name = "gpmc", 235 - .sysc = &gpmc_sysc, 236 - }; 237 - 238 - struct omap_hwmod am33xx_gpmc_hwmod = { 239 - .name = "gpmc", 240 - .class = &am33xx_gpmc_hwmod_class, 241 - .clkdm_name = "l3s_clkdm", 242 - /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */ 243 - .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS, 244 - .main_clk = "l3s_gclk", 245 - .prcm = { 246 - .omap4 = { 247 - .modulemode = MODULEMODE_SWCTRL, 248 - }, 249 - }, 250 - }; 251 - 252 221 static void omap_hwmod_am33xx_clkctrl(void) 253 222 { 254 223 CLKCTRL(am33xx_smartreflex0_hwmod, 255 224 AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET); 256 225 CLKCTRL(am33xx_smartreflex1_hwmod, 257 226 AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET); 258 - CLKCTRL(am33xx_gpmc_hwmod, AM33XX_CM_PER_GPMC_CLKCTRL_OFFSET); 259 227 CLKCTRL(am33xx_l4_ls_hwmod, AM33XX_CM_PER_L4LS_CLKCTRL_OFFSET); 260 228 CLKCTRL(am33xx_l4_wkup_hwmod, AM33XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET); 261 229 CLKCTRL(am33xx_l3_main_hwmod, AM33XX_CM_PER_L3_CLKCTRL_OFFSET); ··· 243 275 AM43XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET); 244 276 CLKCTRL(am33xx_smartreflex1_hwmod, 245 277 AM43XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET); 246 - CLKCTRL(am33xx_gpmc_hwmod, AM43XX_CM_PER_GPMC_CLKCTRL_OFFSET); 247 278 CLKCTRL(am33xx_l4_ls_hwmod, AM43XX_CM_PER_L4LS_CLKCTRL_OFFSET); 248 279 CLKCTRL(am33xx_l4_wkup_hwmod, AM43XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET); 249 280 CLKCTRL(am33xx_l3_main_hwmod, AM43XX_CM_PER_L3_CLKCTRL_OFFSET);
-1
arch/arm/mach-omap2/omap_hwmod_33xx_data.c
··· 214 214 &am33xx_l3_main__debugss, 215 215 &am33xx_l4_wkup__smartreflex0, 216 216 &am33xx_l4_wkup__smartreflex1, 217 - &am33xx_l3_s__gpmc, 218 217 &am33xx_l3_main__ocmc, 219 218 NULL, 220 219 };
-1
arch/arm/mach-omap2/omap_hwmod_43xx_data.c
··· 150 150 &am43xx_l4_wkup__control, 151 151 &am43xx_l4_wkup__smartreflex0, 152 152 &am43xx_l4_wkup__smartreflex1, 153 - &am33xx_l3_s__gpmc, 154 153 &am33xx_l3_main__ocmc, 155 154 NULL, 156 155 };