aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2015-01-14 20:21:00 -0500
committerTony Lindgren <tony@atomide.com>2015-01-14 20:21:00 -0500
commitca662ee7b8a85c54c1cb9ef34b7c6b4f67933a7e (patch)
tree3acb82ec5f0b52ae2f8d865ab1cc6d0cfba15a9a
parentfc24fc650620cbf94b277af5f25fa38cc9fe6656 (diff)
ARM: OMAP2+: Remove unused ti81xx platform init code
The support for 81xx was never working in mainline, and the broken legacy booting support has been removed. There are patches coming to make 81xx boot with device tree, and for that we won't need any of this legacy platform code, so let's just remove it. Cc: Brian Hutchinson <b.hutchman@gmail.com> Reviewed-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/cclock3xxx_data.c6
-rw-r--r--arch/arm/mach-omap2/omap_phy_internal.c35
-rw-r--r--arch/arm/mach-omap2/usb-musb.c12
-rw-r--r--arch/arm/mach-omap2/usb.h2
4 files changed, 3 insertions, 52 deletions
diff --git a/arch/arm/mach-omap2/cclock3xxx_data.c b/arch/arm/mach-omap2/cclock3xxx_data.c
index 644ff3231bb8..e79c80bbc755 100644
--- a/arch/arm/mach-omap2/cclock3xxx_data.c
+++ b/arch/arm/mach-omap2/cclock3xxx_data.c
@@ -3634,10 +3634,6 @@ int __init omap3xxx_clk_init(void)
3634 omap_clocks_register(omap36xx_am35xx_omap3430es2plus_clks, 3634 omap_clocks_register(omap36xx_am35xx_omap3430es2plus_clks,
3635 ARRAY_SIZE(omap36xx_am35xx_omap3430es2plus_clks)); 3635 ARRAY_SIZE(omap36xx_am35xx_omap3430es2plus_clks));
3636 omap_clocks_register(omap3xxx_clks, ARRAY_SIZE(omap3xxx_clks)); 3636 omap_clocks_register(omap3xxx_clks, ARRAY_SIZE(omap3xxx_clks));
3637 } else if (soc_is_am33xx()) {
3638 cpu_mask = RATE_IN_AM33XX;
3639 } else if (cpu_is_ti814x()) {
3640 cpu_mask = RATE_IN_TI814X;
3641 } else if (cpu_is_omap34xx()) { 3637 } else if (cpu_is_omap34xx()) {
3642 if (omap_rev() == OMAP3430_REV_ES1_0) { 3638 if (omap_rev() == OMAP3430_REV_ES1_0) {
3643 cpu_mask = RATE_IN_3430ES1; 3639 cpu_mask = RATE_IN_3430ES1;
@@ -3681,7 +3677,7 @@ int __init omap3xxx_clk_init(void)
3681 * Lock DPLL5 -- here only until other device init code can 3677 * Lock DPLL5 -- here only until other device init code can
3682 * handle this 3678 * handle this
3683 */ 3679 */
3684 if (!cpu_is_ti81xx() && (omap_rev() >= OMAP3430_REV_ES2_0)) 3680 if (omap_rev() >= OMAP3430_REV_ES2_0)
3685 omap3_clk_lock_dpll5(); 3681 omap3_clk_lock_dpll5();
3686 3682
3687 /* Avoid sleeping during omap3_core_dpll_m2_set_rate() */ 3683 /* Avoid sleeping during omap3_core_dpll_m2_set_rate() */
diff --git a/arch/arm/mach-omap2/omap_phy_internal.c b/arch/arm/mach-omap2/omap_phy_internal.c
index 1a19fa096bab..8e903564ede2 100644
--- a/arch/arm/mach-omap2/omap_phy_internal.c
+++ b/arch/arm/mach-omap2/omap_phy_internal.c
@@ -152,38 +152,3 @@ void am35x_set_mode(u8 musb_mode)
152 152
153 omap_ctrl_writel(devconf2, AM35XX_CONTROL_DEVCONF2); 153 omap_ctrl_writel(devconf2, AM35XX_CONTROL_DEVCONF2);
154} 154}
155
156void ti81xx_musb_phy_power(u8 on)
157{
158 void __iomem *scm_base = NULL;
159 u32 usbphycfg;
160
161 scm_base = ioremap(TI81XX_SCM_BASE, SZ_2K);
162 if (!scm_base) {
163 pr_err("system control module ioremap failed\n");
164 return;
165 }
166
167 usbphycfg = readl_relaxed(scm_base + USBCTRL0);
168
169 if (on) {
170 if (cpu_is_ti816x()) {
171 usbphycfg |= TI816X_USBPHY0_NORMAL_MODE;
172 usbphycfg &= ~TI816X_USBPHY_REFCLK_OSC;
173 } else if (cpu_is_ti814x()) {
174 usbphycfg &= ~(USBPHY_CM_PWRDN | USBPHY_OTG_PWRDN
175 | USBPHY_DPINPUT | USBPHY_DMINPUT);
176 usbphycfg |= (USBPHY_OTGVDET_EN | USBPHY_OTGSESSEND_EN
177 | USBPHY_DPOPBUFCTL | USBPHY_DMOPBUFCTL);
178 }
179 } else {
180 if (cpu_is_ti816x())
181 usbphycfg &= ~TI816X_USBPHY0_NORMAL_MODE;
182 else if (cpu_is_ti814x())
183 usbphycfg |= USBPHY_CM_PWRDN | USBPHY_OTG_PWRDN;
184
185 }
186 writel_relaxed(usbphycfg, scm_base + USBCTRL0);
187
188 iounmap(scm_base);
189}
diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c
index bc897231bd10..e4562b2b973b 100644
--- a/arch/arm/mach-omap2/usb-musb.c
+++ b/arch/arm/mach-omap2/usb-musb.c
@@ -82,16 +82,8 @@ void __init usb_musb_init(struct omap_musb_board_data *musb_board_data)
82 musb_plat.mode = board_data->mode; 82 musb_plat.mode = board_data->mode;
83 musb_plat.extvbus = board_data->extvbus; 83 musb_plat.extvbus = board_data->extvbus;
84 84
85 if (soc_is_am35xx()) { 85 oh_name = "usb_otg_hs";
86 oh_name = "am35x_otg_hs"; 86 name = "musb-omap2430";
87 name = "musb-am35x";
88 } else if (cpu_is_ti81xx()) {
89 oh_name = "usb_otg_hs";
90 name = "musb-ti81xx";
91 } else {
92 oh_name = "usb_otg_hs";
93 name = "musb-omap2430";
94 }
95 87
96 oh = omap_hwmod_lookup(oh_name); 88 oh = omap_hwmod_lookup(oh_name);
97 if (WARN(!oh, "%s: could not find omap_hwmod for %s\n", 89 if (WARN(!oh, "%s: could not find omap_hwmod for %s\n",
diff --git a/arch/arm/mach-omap2/usb.h b/arch/arm/mach-omap2/usb.h
index 4ba2ae759895..3395365ef1db 100644
--- a/arch/arm/mach-omap2/usb.h
+++ b/arch/arm/mach-omap2/usb.h
@@ -68,5 +68,3 @@ extern void am35x_musb_reset(void);
68extern void am35x_musb_phy_power(u8 on); 68extern void am35x_musb_phy_power(u8 on);
69extern void am35x_musb_clear_irq(void); 69extern void am35x_musb_clear_irq(void);
70extern void am35x_set_mode(u8 musb_mode); 70extern void am35x_set_mode(u8 musb_mode);
71extern void ti81xx_musb_phy_power(u8 on);
72