ARM: OMAP2+: Drop legacy platform data for dra7 rtcss
authorTony Lindgren <tony@atomide.com>
Fri, 3 Jul 2020 16:07:31 +0000 (09:07 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 24 Aug 2020 05:40:03 +0000 (08:40 +0300)
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: Keerthy <j-keerthy@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/dra7-l4.dtsi
arch/arm/mach-omap2/omap_hwmod_7xx_data.c

index 27a6a83cc60c044d9a2f7eea16600ea310ac77e5..f43b764cc0c7b6565089d2070d30cc5cac45946a 100644 (file)
 
                rtctarget: target-module@38000 {                        /* 0x48838000, ap 29 12.0 */
                        compatible = "ti,sysc-omap4-simple", "ti,sysc";
-                       ti,hwmods = "rtcss";
                        reg = <0x38074 0x4>,
                              <0x38078 0x4>;
                        reg-names = "rev", "sysc";
index adb07848de96da3a217e8de39954bb951427409c..7d4e49b0a57f6ebc56367566480063350588c4ac 100644 (file)
@@ -418,41 +418,6 @@ static struct omap_hwmod dra7xx_qspi_hwmod = {
        },
 };
 
-/*
- * 'rtcss' class
- *
- */
-static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = {
-       .rev_offs       = 0x0074,
-       .sysc_offs      = 0x0078,
-       .sysc_flags     = SYSC_HAS_SIDLEMODE,
-       .idlemodes      = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
-                          SIDLE_SMART_WKUP),
-       .sysc_fields    = &omap_hwmod_sysc_type3,
-};
-
-static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = {
-       .name   = "rtcss",
-       .sysc   = &dra7xx_rtcss_sysc,
-       .unlock = &omap_hwmod_rtc_unlock,
-       .lock   = &omap_hwmod_rtc_lock,
-};
-
-/* rtcss */
-static struct omap_hwmod dra7xx_rtcss_hwmod = {
-       .name           = "rtcss",
-       .class          = &dra7xx_rtcss_hwmod_class,
-       .clkdm_name     = "rtc_clkdm",
-       .main_clk       = "sys_32k_ck",
-       .prcm = {
-               .omap4 = {
-                       .clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET,
-                       .context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET,
-                       .modulemode   = MODULEMODE_SWCTRL,
-               },
-       },
-};
-
 /*
  * 'sata' class
  *
@@ -702,14 +667,6 @@ static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
        .user           = OCP_USER_MPU | OCP_USER_SDMA,
 };
 
-/* l4_per3 -> rtcss */
-static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = {
-       .master         = &dra7xx_l4_per3_hwmod,
-       .slave          = &dra7xx_rtcss_hwmod,
-       .clk            = "l4_root_clk_div",
-       .user           = OCP_USER_MPU | OCP_USER_SDMA,
-};
-
 /* l4_cfg -> sata */
 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
        .master         = &dra7xx_l4_cfg_hwmod,
@@ -786,7 +743,6 @@ static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
 };
 
 static struct omap_hwmod_ocp_if *rtc_hwmod_ocp_ifs[] __initdata = {
-       &dra7xx_l4_per3__rtcss,
        NULL,
 };