From: Felipe Balbi <balbi@ti.com> To: Tony Lindgren <tony@atomide.com> Cc: Linux OMAP Mailing List <linux-omap@vger.kernel.org>, Linux ARM Kernel Mailing List <linux-arm-kernel@lists.infradead.org>, Paul Walmsley <paul@pwsan.com>, Nishanth Menon <nm@ti.com>, devicetree@vger.kernel.org, Felipe Balbi <balbi@ti.com> Subject: [RFC/PATCH 7/7] arm: omap: hwmod: 43xx: remove sysc and class data Date: Tue, 9 Dec 2014 16:27:52 -0600 [thread overview] Message-ID: <1418164072-19087-8-git-send-email-balbi@ti.com> (raw) In-Reply-To: <1418164072-19087-1-git-send-email-balbi@ti.com> now that this data comes from DT, we can safely remove them from this file. Signed-off-by: Felipe Balbi <balbi@ti.com> --- arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 61 ------------------------------ 1 file changed, 61 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c index 5c6c841..f990782 100644 --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c @@ -95,22 +95,10 @@ static struct omap_hwmod am43xx_gpio0_hwmod = { .dev_attr = &gpio_dev_attr, }; -static struct omap_hwmod_class_sysconfig am43xx_synctimer_sysc = { - .rev_offs = 0x0, - .sysc_offs = 0x4, - .sysc_flags = SYSC_HAS_SIDLEMODE, - .idlemodes = (SIDLE_FORCE | SIDLE_NO), - .sysc_fields = &omap_hwmod_sysc_type1, -}; -static struct omap_hwmod_class am43xx_synctimer_hwmod_class = { - .name = "synctimer", - .sysc = &am43xx_synctimer_sysc, -}; static struct omap_hwmod am43xx_synctimer_hwmod = { .name = "counter_32k", - .class = &am43xx_synctimer_hwmod_class, .clkdm_name = "l4_wkup_aon_clkdm", .flags = HWMOD_SWSUP_SIDLE, .main_clk = "synctimer_32kclk", @@ -318,13 +306,9 @@ static struct omap_hwmod am43xx_gpio5_hwmod = { .dev_attr = &gpio_dev_attr, }; -static struct omap_hwmod_class am43xx_ocp2scp_hwmod_class = { - .name = "ocp2scp", -}; static struct omap_hwmod am43xx_ocp2scp0_hwmod = { .name = "ocp2scp0", - .class = &am43xx_ocp2scp_hwmod_class, .clkdm_name = "l4ls_clkdm", .main_clk = "l4ls_gclk", .prcm = { @@ -337,7 +321,6 @@ static struct omap_hwmod am43xx_ocp2scp0_hwmod = { static struct omap_hwmod am43xx_ocp2scp1_hwmod = { .name = "ocp2scp1", - .class = &am43xx_ocp2scp_hwmod_class, .clkdm_name = "l4ls_clkdm", .main_clk = "l4ls_gclk", .prcm = { @@ -348,26 +331,8 @@ static struct omap_hwmod am43xx_ocp2scp1_hwmod = { }, }; -static struct omap_hwmod_class_sysconfig am43xx_usb_otg_ss_sysc = { - .rev_offs = 0x0000, - .sysc_offs = 0x0010, - .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE | - SYSC_HAS_SIDLEMODE), - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | - SIDLE_SMART_WKUP | MSTANDBY_FORCE | - MSTANDBY_NO | MSTANDBY_SMART | - MSTANDBY_SMART_WKUP), - .sysc_fields = &omap_hwmod_sysc_type2, -}; - -static struct omap_hwmod_class am43xx_usb_otg_ss_hwmod_class = { - .name = "usb_otg_ss", - .sysc = &am43xx_usb_otg_ss_sysc, -}; - static struct omap_hwmod am43xx_usb_otg_ss0_hwmod = { .name = "usb_otg_ss0", - .class = &am43xx_usb_otg_ss_hwmod_class, .clkdm_name = "l3s_clkdm", .main_clk = "l3s_gclk", .prcm = { @@ -380,7 +345,6 @@ static struct omap_hwmod am43xx_usb_otg_ss0_hwmod = { static struct omap_hwmod am43xx_usb_otg_ss1_hwmod = { .name = "usb_otg_ss1", - .class = &am43xx_usb_otg_ss_hwmod_class, .clkdm_name = "l3s_clkdm", .main_clk = "l3s_gclk", .prcm = { @@ -391,22 +355,10 @@ static struct omap_hwmod am43xx_usb_otg_ss1_hwmod = { }, }; -static struct omap_hwmod_class_sysconfig am43xx_qspi_sysc = { - .sysc_offs = 0x0010, - .sysc_flags = SYSC_HAS_SIDLEMODE, - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | - SIDLE_SMART_WKUP), - .sysc_fields = &omap_hwmod_sysc_type2, -}; -static struct omap_hwmod_class am43xx_qspi_hwmod_class = { - .name = "qspi", - .sysc = &am43xx_qspi_sysc, -}; static struct omap_hwmod am43xx_qspi_hwmod = { .name = "qspi", - .class = &am43xx_qspi_hwmod_class, .clkdm_name = "l3s_clkdm", .main_clk = "l3s_gclk", .prcm = { @@ -421,23 +373,10 @@ static struct omap_hwmod am43xx_qspi_hwmod = { * 'adc/tsc' class * TouchScreen Controller (Analog-To-Digital Converter) */ -static struct omap_hwmod_class_sysconfig am43xx_adc_tsc_sysc = { - .rev_offs = 0x00, - .sysc_offs = 0x10, - .sysc_flags = SYSC_HAS_SIDLEMODE, - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | - SIDLE_SMART_WKUP), - .sysc_fields = &omap_hwmod_sysc_type2, -}; -static struct omap_hwmod_class am43xx_adc_tsc_hwmod_class = { - .name = "adc_tsc", - .sysc = &am43xx_adc_tsc_sysc, -}; static struct omap_hwmod am43xx_adc_tsc_hwmod = { .name = "adc_tsc", - .class = &am43xx_adc_tsc_hwmod_class, .clkdm_name = "l3s_tsc_clkdm", .main_clk = "adc_tsc_fck", .prcm = { -- 2.2.0
WARNING: multiple messages have this Message-ID (diff)
From: balbi@ti.com (Felipe Balbi) To: linux-arm-kernel@lists.infradead.org Subject: [RFC/PATCH 7/7] arm: omap: hwmod: 43xx: remove sysc and class data Date: Tue, 9 Dec 2014 16:27:52 -0600 [thread overview] Message-ID: <1418164072-19087-8-git-send-email-balbi@ti.com> (raw) In-Reply-To: <1418164072-19087-1-git-send-email-balbi@ti.com> now that this data comes from DT, we can safely remove them from this file. Signed-off-by: Felipe Balbi <balbi@ti.com> --- arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 61 ------------------------------ 1 file changed, 61 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c index 5c6c841..f990782 100644 --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c @@ -95,22 +95,10 @@ static struct omap_hwmod am43xx_gpio0_hwmod = { .dev_attr = &gpio_dev_attr, }; -static struct omap_hwmod_class_sysconfig am43xx_synctimer_sysc = { - .rev_offs = 0x0, - .sysc_offs = 0x4, - .sysc_flags = SYSC_HAS_SIDLEMODE, - .idlemodes = (SIDLE_FORCE | SIDLE_NO), - .sysc_fields = &omap_hwmod_sysc_type1, -}; -static struct omap_hwmod_class am43xx_synctimer_hwmod_class = { - .name = "synctimer", - .sysc = &am43xx_synctimer_sysc, -}; static struct omap_hwmod am43xx_synctimer_hwmod = { .name = "counter_32k", - .class = &am43xx_synctimer_hwmod_class, .clkdm_name = "l4_wkup_aon_clkdm", .flags = HWMOD_SWSUP_SIDLE, .main_clk = "synctimer_32kclk", @@ -318,13 +306,9 @@ static struct omap_hwmod am43xx_gpio5_hwmod = { .dev_attr = &gpio_dev_attr, }; -static struct omap_hwmod_class am43xx_ocp2scp_hwmod_class = { - .name = "ocp2scp", -}; static struct omap_hwmod am43xx_ocp2scp0_hwmod = { .name = "ocp2scp0", - .class = &am43xx_ocp2scp_hwmod_class, .clkdm_name = "l4ls_clkdm", .main_clk = "l4ls_gclk", .prcm = { @@ -337,7 +321,6 @@ static struct omap_hwmod am43xx_ocp2scp0_hwmod = { static struct omap_hwmod am43xx_ocp2scp1_hwmod = { .name = "ocp2scp1", - .class = &am43xx_ocp2scp_hwmod_class, .clkdm_name = "l4ls_clkdm", .main_clk = "l4ls_gclk", .prcm = { @@ -348,26 +331,8 @@ static struct omap_hwmod am43xx_ocp2scp1_hwmod = { }, }; -static struct omap_hwmod_class_sysconfig am43xx_usb_otg_ss_sysc = { - .rev_offs = 0x0000, - .sysc_offs = 0x0010, - .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE | - SYSC_HAS_SIDLEMODE), - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | - SIDLE_SMART_WKUP | MSTANDBY_FORCE | - MSTANDBY_NO | MSTANDBY_SMART | - MSTANDBY_SMART_WKUP), - .sysc_fields = &omap_hwmod_sysc_type2, -}; - -static struct omap_hwmod_class am43xx_usb_otg_ss_hwmod_class = { - .name = "usb_otg_ss", - .sysc = &am43xx_usb_otg_ss_sysc, -}; - static struct omap_hwmod am43xx_usb_otg_ss0_hwmod = { .name = "usb_otg_ss0", - .class = &am43xx_usb_otg_ss_hwmod_class, .clkdm_name = "l3s_clkdm", .main_clk = "l3s_gclk", .prcm = { @@ -380,7 +345,6 @@ static struct omap_hwmod am43xx_usb_otg_ss0_hwmod = { static struct omap_hwmod am43xx_usb_otg_ss1_hwmod = { .name = "usb_otg_ss1", - .class = &am43xx_usb_otg_ss_hwmod_class, .clkdm_name = "l3s_clkdm", .main_clk = "l3s_gclk", .prcm = { @@ -391,22 +355,10 @@ static struct omap_hwmod am43xx_usb_otg_ss1_hwmod = { }, }; -static struct omap_hwmod_class_sysconfig am43xx_qspi_sysc = { - .sysc_offs = 0x0010, - .sysc_flags = SYSC_HAS_SIDLEMODE, - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | - SIDLE_SMART_WKUP), - .sysc_fields = &omap_hwmod_sysc_type2, -}; -static struct omap_hwmod_class am43xx_qspi_hwmod_class = { - .name = "qspi", - .sysc = &am43xx_qspi_sysc, -}; static struct omap_hwmod am43xx_qspi_hwmod = { .name = "qspi", - .class = &am43xx_qspi_hwmod_class, .clkdm_name = "l3s_clkdm", .main_clk = "l3s_gclk", .prcm = { @@ -421,23 +373,10 @@ static struct omap_hwmod am43xx_qspi_hwmod = { * 'adc/tsc' class * TouchScreen Controller (Analog-To-Digital Converter) */ -static struct omap_hwmod_class_sysconfig am43xx_adc_tsc_sysc = { - .rev_offs = 0x00, - .sysc_offs = 0x10, - .sysc_flags = SYSC_HAS_SIDLEMODE, - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | - SIDLE_SMART_WKUP), - .sysc_fields = &omap_hwmod_sysc_type2, -}; -static struct omap_hwmod_class am43xx_adc_tsc_hwmod_class = { - .name = "adc_tsc", - .sysc = &am43xx_adc_tsc_sysc, -}; static struct omap_hwmod am43xx_adc_tsc_hwmod = { .name = "adc_tsc", - .class = &am43xx_adc_tsc_hwmod_class, .clkdm_name = "l3s_tsc_clkdm", .main_clk = "adc_tsc_fck", .prcm = { -- 2.2.0
next prev parent reply other threads:[~2014-12-09 22:27 UTC|newest] Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-12-09 22:27 [RFC/PATCH 0/7] arm: omap: move more HWMOD data to DT Felipe Balbi 2014-12-09 22:27 ` Felipe Balbi 2014-12-09 22:27 ` [RFC/PATCH 1/7] arm: omap: hwmod: add debugfs interface Felipe Balbi 2014-12-09 22:27 ` Felipe Balbi 2014-12-09 22:27 ` [RFC/PATCH 2/7] arm: omap: devicetree: add new properties for OMAP devices Felipe Balbi 2014-12-09 22:27 ` Felipe Balbi 2014-12-10 11:07 ` Lokesh Vutla 2014-12-10 11:07 ` Lokesh Vutla 2014-12-10 15:00 ` Felipe Balbi 2014-12-10 15:00 ` Felipe Balbi 2014-12-11 0:46 ` Sebastian Reichel 2014-12-11 0:46 ` Sebastian Reichel 2014-12-11 14:21 ` Felipe Balbi 2014-12-11 14:21 ` Felipe Balbi 2014-12-11 17:11 ` Tony Lindgren 2014-12-11 17:11 ` Tony Lindgren 2014-12-09 22:27 ` [RFC/PATCH 3/7] arm: omap: hwmod: drop 'const' qualifier from omap_hwmod_class name Felipe Balbi 2014-12-09 22:27 ` Felipe Balbi 2014-12-09 22:27 ` [RFC/PATCH 4/7] arm: omap: device: add support for generating sysconfig data from DT Felipe Balbi 2014-12-09 22:27 ` Felipe Balbi [not found] ` <1418164072-19087-5-git-send-email-balbi-l0cyMroinI0@public.gmane.org> 2014-12-10 10:49 ` Lokesh Vutla 2014-12-10 10:49 ` Lokesh Vutla 2014-12-10 14:48 ` Felipe Balbi 2014-12-10 14:48 ` Felipe Balbi 2014-12-09 22:27 ` [RFC/PATCH 5/7] arm: omap: hwmod: allow for registration of class-less hwmods Felipe Balbi 2014-12-09 22:27 ` Felipe Balbi [not found] ` <1418164072-19087-6-git-send-email-balbi-l0cyMroinI0@public.gmane.org> 2014-12-10 10:50 ` Lokesh Vutla 2014-12-10 10:50 ` Lokesh Vutla 2014-12-10 14:54 ` Felipe Balbi 2014-12-10 14:54 ` Felipe Balbi 2014-12-11 0:52 ` Sebastian Reichel 2014-12-11 0:52 ` Sebastian Reichel 2014-12-11 14:23 ` Felipe Balbi 2014-12-11 14:23 ` Felipe Balbi 2014-12-11 17:44 ` Sebastian Reichel 2014-12-11 17:44 ` Sebastian Reichel 2014-12-11 17:56 ` Tony Lindgren 2014-12-11 17:56 ` Tony Lindgren 2014-12-11 17:32 ` Tony Lindgren 2014-12-11 17:32 ` Tony Lindgren 2014-12-09 22:27 ` [RFC/PATCH 6/7] arm: boot: dts: am4372: add sysconfig data to all HWMODs Felipe Balbi 2014-12-09 22:27 ` Felipe Balbi 2014-12-09 22:27 ` Felipe Balbi [this message] 2014-12-09 22:27 ` [RFC/PATCH 7/7] arm: omap: hwmod: 43xx: remove sysc and class data Felipe Balbi 2014-12-09 22:30 ` [RFC/PATCH 0/7] arm: omap: move more HWMOD data to DT Felipe Balbi 2014-12-09 22:30 ` Felipe Balbi
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1418164072-19087-8-git-send-email-balbi@ti.com \ --to=balbi@ti.com \ --cc=devicetree@vger.kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-omap@vger.kernel.org \ --cc=nm@ti.com \ --cc=paul@pwsan.com \ --cc=tony@atomide.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.