Platform init changes for old FS USB code for 2.6.36 merge window
Subsystems (5)
Tony Lindgren
maintainercover Platform init changes for old FS USB code for 2.6.36 merge window
Hi all,
Here are some FS USB platform init changes to allow further improvment of the code for muxing, register access and hwmod.
This set mostly moves the code around to split it between mach-omap1 and mach-omap2.
Regards,
Tony
---
Tony Lindgren (4):
omap: Separate out omap2 FS USB platform init functions
omap: Move omap2 FS USB platform init code into mach-omap2/usb-fs.c
omap: Enable interface clock for omap2 FS USB
omap: Move omap1 USB platform init code into mach-omap1/usb.c
arch/arm/mach-omap1/Makefile | 3 arch/arm/mach-omap1/board-ams-delta.c | 2 arch/arm/mach-omap1/board-generic.c | 4 arch/arm/mach-omap1/board-h2.c | 2 arch/arm/mach-omap1/board-h3.c | 2 arch/arm/mach-omap1/board-htcherald.c | 2 arch/arm/mach-omap1/board-innovator.c | 4 arch/arm/mach-omap1/board-nokia770.c | 2 arch/arm/mach-omap1/board-osk.c | 2 arch/arm/mach-omap1/board-palmte.c | 2 arch/arm/mach-omap1/board-palmtt.c | 2 arch/arm/mach-omap1/board-palmz71.c | 2 arch/arm/mach-omap1/board-sx1.c | 2 arch/arm/mach-omap1/board-voiceblue.c | 2 arch/arm/mach-omap1/usb.c | 530 ++++++++++++++++++++++++++ arch/arm/mach-omap2/Makefile | 2 arch/arm/mach-omap2/board-2430sdp.c | 2 arch/arm/mach-omap2/board-apollon.c | 2 arch/arm/mach-omap2/board-h4.c | 2 arch/arm/mach-omap2/usb-fs.c | 356 +++++++++++++++++ arch/arm/plat-omap/include/plat/board.h | 8 arch/arm/plat-omap/include/plat/usb.h | 49 ++ arch/arm/plat-omap/usb.c | 644 +------------------------------ 23 files changed, 981 insertions(+), 647 deletions(-) create mode 100644 arch/arm/mach-omap1/usb.c create mode 100644 arch/arm/mach-omap2/usb-fs.c
Signature · 1 line
Signature
Tony Lindgren
maintainerPATCH 1/4 omap: Separate out omap2 FS USB platform init functions
We want to split old FS USB platform init code and stop doing pin multiplexing under plat-omap. First move 24xx specific init code into omap2_usb[012]_init functions.
--- arch/arm/plat-omap/usb.c | 252 +++++++++++++++++++++++++++++----------------- 1 files changed, 157 insertions(+), 95 deletions(-)
arch/arm/plat-omap/usb.c +157 -95
@@ -115,15 +115,56 @@ static void omap2_usb2_enable_5pinunitll(void)omap_ctrl_writel (r,OMAP2_CONTROL_DEVCONF0 ); } +static u32 __init omap2_usb0_init (unsigned nwires,unsigned is_device) +{ +u32 syscon1 =0 ; + +omap2_usb_devconf_clear (0 ,USB_BIDIR_TLL ); + +if (nwires ==0 ) +return 0 ; + +if (is_device) +omap_cfg_reg (J20_24XX_USB0_PUEN ); + +omap_cfg_reg (K18_24XX_USB0_DAT ); +omap_cfg_reg (K19_24XX_USB0_TXEN ); +omap_cfg_reg (J14_24XX_USB0_SE0 ); +if (nwires !=3 ) +omap_cfg_reg (J18_24XX_USB0_RCV ); + +switch (nwires) { +case 3 : + syscon1 =2 ; +omap2_usb_devconf_set (0 ,USB_BIDIR ); +break ; +case 4 : + syscon1 =1 ; +omap2_usb_devconf_set (0 ,USB_BIDIR ); +break ; +case 6 : + syscon1 =3 ; +omap_cfg_reg (J19_24XX_USB0_VP ); +omap_cfg_reg (K20_24XX_USB0_VM ); +omap2_usb_devconf_set (0 ,USB_UNIDIR ); +break ; +default : +printk (KERN_ERR "illegal usb%d %d-wire transceiver\n" , +0 , nwires); + } + +return syscon1 <<16 ; +} +static u32 __init omap_usb0_init (unsigned nwires,unsigned is_device) {u32 syscon1 =0 ;if (cpu_is_omap24xx ()) -omap2_usb_devconf_clear (0 ,USB_BIDIR_TLL ); +return omap2_usb0_init (nwires, is_device);if (nwires ==0 ) { -if (cpu_class_is_omap1 () && !cpu_is_omap15xx ()) { +if (!cpu_is_omap15xx ()) {u32 l;/* pulldown D+/D- */
@@ -135,9 +176,7 @@ static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device) }if (is_device) { -if (cpu_is_omap24xx ()) -omap_cfg_reg (J20_24XX_USB0_PUEN ); -else if (cpu_is_omap7xx ()) { +if (cpu_is_omap7xx ()) {omap_cfg_reg (AA17_7XX_USB_DM );omap_cfg_reg (W16_7XX_USB_PU_EN );omap_cfg_reg (W17_7XX_USB_VBUSI );
@@ -147,8 +186,7 @@ static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device)omap_cfg_reg (W4_USB_PUEN ); } -/* internal transceiver (unavailable on 17xx, 24xx) */ -if (!cpu_class_is_omap2 () && nwires ==2 ) { +if (nwires ==2 ) {u32 l;// omap_cfg_reg(P9_USB_DP);
@@ -183,26 +221,18 @@ static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device)return 0 ; } -if (cpu_is_omap24xx ()) { -omap_cfg_reg (K18_24XX_USB0_DAT ); -omap_cfg_reg (K19_24XX_USB0_TXEN ); -omap_cfg_reg (J14_24XX_USB0_SE0 ); -if (nwires !=3 ) -omap_cfg_reg (J18_24XX_USB0_RCV ); - }else { -omap_cfg_reg (V6_USB0_TXD ); -omap_cfg_reg (W9_USB0_TXEN ); -omap_cfg_reg (W5_USB0_SE0 ); -if (nwires !=3 ) -omap_cfg_reg (Y5_USB0_RCV ); - } +omap_cfg_reg (V6_USB0_TXD ); +omap_cfg_reg (W9_USB0_TXEN ); +omap_cfg_reg (W5_USB0_SE0 ); +if (nwires !=3 ) +omap_cfg_reg (Y5_USB0_RCV );/* NOTE: SPEED and SUSP aren't configured here. OTG hosts * may be able to use I2C requests to set those bits along * with VBUS switching and overcurrent detection. */ -if (cpu_class_is_omap1 () && nwires !=6 ) { +if (nwires !=6 ) {u32 l; l =omap_readl (USB_TRANSCEIVER_CTRL );
@@ -213,21 +243,13 @@ static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device)switch (nwires) {case 3 : syscon1 =2 ; -if (cpu_is_omap24xx ()) -omap2_usb_devconf_set (0 ,USB_BIDIR );break ;case 4 : syscon1 =1 ; -if (cpu_is_omap24xx ()) -omap2_usb_devconf_set (0 ,USB_BIDIR );break ;case 6 : syscon1 =3 ; -if (cpu_is_omap24xx ()) { -omap_cfg_reg (J19_24XX_USB0_VP ); -omap_cfg_reg (K20_24XX_USB0_VM ); -omap2_usb_devconf_set (0 ,USB_UNIDIR ); - }else { + {u32 l;omap_cfg_reg (AA9_USB0_VP );
@@ -244,30 +266,66 @@ static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device)return syscon1 <<16 ; } +static u32 __init omap2_usb1_init (unsigned nwires) +{ +u32 syscon1 =0 ; + +omap2_usb_devconf_clear (1 ,USB_BIDIR_TLL ); + +if (nwires ==0 ) +return 0 ; + +/* NOTE: board-specific code must set up pin muxing for usb1, +* since each signal could come out on either of two balls. +*/ + +switch (nwires) { +case 2 : +/* NOTE: board-specific code must override this setting if +* this TLL link is not using DP/DM +*/ + syscon1 =1 ; +omap2_usb_devconf_set (1 ,USB_BIDIR_TLL ); +break ; +case 3 : + syscon1 =2 ; +omap2_usb_devconf_set (1 ,USB_BIDIR ); +break ; +case 4 : + syscon1 =1 ; +omap2_usb_devconf_set (1 ,USB_BIDIR ); +break ; +case 6 : +default : +printk (KERN_ERR "illegal usb%d %d-wire transceiver\n" , +1 , nwires); + } + +return syscon1 <<20 ; +} +static u32 __init omap_usb1_init (unsigned nwires) {u32 syscon1 =0 ; -if (cpu_class_is_omap1 () && !cpu_is_omap15xx () && nwires !=6 ) { +if (cpu_is_omap24xx ()) +return omap2_usb1_init (nwires); + +if (!cpu_is_omap15xx () && nwires !=6 ) {u32 l; l =omap_readl (USB_TRANSCEIVER_CTRL ); l &= ~CONF_USB1_UNI_R ;omap_writel (l,USB_TRANSCEIVER_CTRL ); } -if (cpu_is_omap24xx ()) -omap2_usb_devconf_clear (1 ,USB_BIDIR_TLL ); -if (nwires ==0 )return 0 ;/* external transceiver */ -if (cpu_class_is_omap1 ()) { -omap_cfg_reg (USB1_TXD ); -omap_cfg_reg (USB1_TXEN ); -if (nwires !=3 ) -omap_cfg_reg (USB1_RCV ); - } +omap_cfg_reg (USB1_TXD ); +omap_cfg_reg (USB1_TXEN ); +if (nwires !=3 ) +omap_cfg_reg (USB1_RCV );if (cpu_is_omap15xx ()) {omap_cfg_reg (USB1_SEO );
@@ -280,10 +338,6 @@ static u32 __init omap_usb1_init(unsigned nwires) }else if (cpu_is_omap1710 ()) {omap_cfg_reg (R13_1710_USB1_SE0 );// SUSP - }else if (cpu_is_omap24xx ()) { -/* NOTE: board-specific code must set up pin muxing for usb1, -* since each signal could come out on either of two balls. -*/ }else {pr_debug ("usb%d cpu unrecognized\n" ,1 );return 0 ;
@@ -291,27 +345,14 @@ static u32 __init omap_usb1_init(unsigned nwires)switch (nwires) {case 2 : -if (!cpu_is_omap24xx ()) - goto bad; -/* NOTE: board-specific code must override this setting if -* this TLL link is not using DP/DM -*/ - syscon1 =1 ; -omap2_usb_devconf_set (1 ,USB_BIDIR_TLL ); -break ; + goto bad;case 3 : syscon1 =2 ; -if (cpu_is_omap24xx ()) -omap2_usb_devconf_set (1 ,USB_BIDIR );break ;case 4 : syscon1 =1 ; -if (cpu_is_omap24xx ()) -omap2_usb_devconf_set (1 ,USB_BIDIR );break ;case 6 : -if (cpu_is_omap24xx ()) - goto bad; syscon1 =3 ;omap_cfg_reg (USB1_VP );omap_cfg_reg (USB1_VM );
@@ -331,20 +372,70 @@ bad:return syscon1 <<20 ; } -static u32 __init omap_usb2_init (unsigned nwires,unsigned alt_pingroup) +static u32 __init omap2_usb2_init (unsigned nwires,unsigned alt_pingroup) {u32 syscon1 =0 ; -if (cpu_is_omap24xx ()) { -omap2_usb2_disable_5pinbitll (); - alt_pingroup =0 ; +omap2_usb2_disable_5pinbitll (); + alt_pingroup =0 ; + +/* NOTE omap1 erratum: must leave USB2_UNI_R set if usb0 in use */ +if (alt_pingroup || nwires ==0 ) +return 0 ; + +omap_cfg_reg (Y11_24XX_USB2_DAT ); +omap_cfg_reg (AA10_24XX_USB2_SE0 ); +if (nwires >2 ) +omap_cfg_reg (AA12_24XX_USB2_TXEN ); +if (nwires >3 ) +omap_cfg_reg (AA6_24XX_USB2_RCV ); + +switch (nwires) { +case 2 : +/* NOTE: board-specific code must override this setting if +* this TLL link is not using DP/DM +*/ + syscon1 =1 ; +omap2_usb_devconf_set (2 ,USB_BIDIR_TLL ); +break ; +case 3 : + syscon1 =2 ; +omap2_usb_devconf_set (2 ,USB_BIDIR ); +break ; +case 4 : + syscon1 =1 ; +omap2_usb_devconf_set (2 ,USB_BIDIR ); +break ; +case 5 : +omap_cfg_reg (AA4_24XX_USB2_TLLSE0 ); +/* NOTE: board-specific code must override this setting if +* this TLL link is not using DP/DM. Something must also +* set up OTG_SYSCON2.HMC_TLL{ATTACH,SPEED} +*/ + syscon1 =3 ; +omap2_usb2_enable_5pinunitll (); +break ; +case 6 : +default : +printk (KERN_ERR "illegal usb%d %d-wire transceiver\n" , +2 , nwires); } +return syscon1 <<24 ; +} + +static u32 __init omap_usb2_init (unsigned nwires,unsigned alt_pingroup) +{ +u32 syscon1 =0 ; + +if (cpu_is_omap24xx ()) +return omap2_usb2_init (nwires, alt_pingroup); +/* NOTE omap1 erratum: must leave USB2_UNI_R set if usb0 in use */ if (alt_pingroup || nwires ==0 )return 0 ; -if (cpu_class_is_omap1 () && !cpu_is_omap15xx () && nwires !=6 ) { +if (!cpu_is_omap15xx () && nwires !=6 ) {u32 l; l =omap_readl (USB_TRANSCEIVER_CTRL );
@@ -367,53 +458,24 @@ static u32 __init omap_usb2_init(unsigned nwires, unsigned alt_pingroup)if (nwires !=3 )omap_cfg_reg (Y5_USB2_RCV );// FIXME omap_cfg_reg(USB2_SPEED); - }else if (cpu_is_omap24xx ()) { -omap_cfg_reg (Y11_24XX_USB2_DAT ); -omap_cfg_reg (AA10_24XX_USB2_SE0 ); -if (nwires >2 ) -omap_cfg_reg (AA12_24XX_USB2_TXEN ); -if (nwires >3 ) -omap_cfg_reg (AA6_24XX_USB2_RCV ); }else {pr_debug ("usb%d cpu unrecognized\n" ,1 );return 0 ; } -// if (cpu_class_is_omap1()) omap_cfg_reg(USB2_SUSP); +// omap_cfg_reg(USB2_SUSP); switch (nwires) {case 2 : -if (!cpu_is_omap24xx ()) - goto bad; -/* NOTE: board-specific code must override this setting if -* this TLL link is not using DP/DM -*/ - syscon1 =1 ; -omap2_usb_devconf_set (2 ,USB_BIDIR_TLL ); -break ; + goto bad;case 3 : syscon1 =2 ; -if (cpu_is_omap24xx ()) -omap2_usb_devconf_set (2 ,USB_BIDIR );break ;case 4 : syscon1 =1 ; -if (cpu_is_omap24xx ()) -omap2_usb_devconf_set (2 ,USB_BIDIR );break ;case 5 : -if (!cpu_is_omap24xx ()) - goto bad; -omap_cfg_reg (AA4_24XX_USB2_TLLSE0 ); -/* NOTE: board-specific code must override this setting if -* this TLL link is not using DP/DM. Something must also -* set up OTG_SYSCON2.HMC_TLL{ATTACH,SPEED} -*/ - syscon1 =3 ; -omap2_usb2_enable_5pinunitll (); -break ; + goto bad;case 6 : -if (cpu_is_omap24xx ()) - goto bad; syscon1 =3 ;if (cpu_is_omap15xx ()) {omap_cfg_reg (USB2_VP );
Tony Lindgren
maintainerPATCH 2/4 omap: Move omap2 FS USB platform init code into mach-omap2/usb-fs.c
In reply to Tony LindgrenMove omap2 FS USB platform init code into mach-omap2/usb-fs.c. This will allow further work later on to use omap hwmod for initializing the device.
--- arch/arm/mach-omap2/Makefile | 2 arch/arm/mach-omap2/board-2430sdp.c | 2 arch/arm/mach-omap2/board-apollon.c | 2 arch/arm/mach-omap2/board-h4.c | 2 arch/arm/mach-omap2/usb-fs.c | 345 +++++++++++++++++++++++++++++++ arch/arm/plat-omap/include/plat/board.h | 8 + arch/arm/plat-omap/include/plat/usb.h | 7 + arch/arm/plat-omap/usb.c | 267 ++++++------------------ 8 files changed, 429 insertions(+), 206 deletions(-) create mode 100644 arch/arm/mach-omap2/usb-fs.c
arch/arm/mach-omap2/Makefile +2 -0
@@ -146,6 +146,8 @@ obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o \ hsmmc.o # Platform specific device init code +usbfs-$(CONFIG_ARCH_OMAP_OTG) := usb-fs.o +obj-y += $(usbfs-m) $(usbfs-y) obj-y += usb-musb.o obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o obj-y += usb-ehci.o
arch/arm/mach-omap2/board-2430sdp.c +1 -1
@@ -226,7 +226,7 @@ static void __init omap_2430sdp_init(void)platform_add_devices (sdp2430_devices,ARRAY_SIZE (sdp2430_devices));omap_serial_init ();omap2_hsmmc_init (mmc); -omap_usb_init (&sdp2430_usb_config); +omap2_usbfs_init (&sdp2430_usb_config);usb_musb_init (&musb_board_data);board_smc91x_init ();
arch/arm/mach-omap2/board-apollon.c +1 -1
@@ -306,7 +306,7 @@ static void __init apollon_usb_init(void)omap_cfg_reg (P21_242X_GPIO12 );gpio_request (12 ,"USB suspend" );gpio_direction_output (12 ,0 ); -omap_usb_init (&apollon_usb_config); +omap2_usbfs_init (&apollon_usb_config); }static void __init omap_apollon_init (void )
arch/arm/mach-omap2/board-h4.c +1 -1
@@ -362,7 +362,7 @@ static void __init omap_h4_init(void) ARRAY_SIZE(h4_i2c_board_info));platform_add_devices (h4_devices,ARRAY_SIZE (h4_devices)); -omap_usb_init (&h4_usb_config); +omap2_usbfs_init (&h4_usb_config);omap_serial_init (); }
arch/arm/mach-omap2/usb-fs.c new file +345 -0
345 lines not on this page · raw message
arch/arm/plat-omap/include/plat/board.h +8 -0
@@ -85,6 +85,14 @@ struct omap_usb_config {* 6 == 6 wire unidirectional (or TLL) */ u8 pins[3 ]; + +struct platform_device *udc_device; +struct platform_device *ohci_device; +struct platform_device *otg_device; + +u32 (*usb0_init)(unsigned nwires,unsigned is_device); +u32 (*usb1_init)(unsigned nwires); +u32 (*usb2_init)(unsigned nwires,unsigned alt_pingroup); };struct omap_lcd_config {
arch/arm/plat-omap/include/plat/usb.h +7 -0
@@ -81,7 +81,14 @@ extern void usb_ohci_init(const struct ohci_hcd_omap_platform_data *pdata);#endif +void omap_otg_init (struct omap_usb_config *config);void omap_usb_init (struct omap_usb_config *pdata); +void omap2_usbfs_init (struct omap_usb_config *pdata); +#else +static inline omap2_usbfs_init(struct omap_usb_config *pdata) +{ +} +#endif /*-------------------------------------------------------------------------*/
arch/arm/plat-omap/usb.c +64 -203
388 lines not on this page · raw message
Tony Lindgren
maintainerPATCH 3/4 omap: Enable interface clock for omap2 FS USB
In reply to Tony LindgrenLooks like this code was only working on boards that had the usb_l4_ick enabled in the bootloader.
--- arch/arm/mach-omap2/usb-fs.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/usb-fs.c +11 -0
@@ -24,6 +24,8 @@#include <linux/errno.h> #include <linux/init.h> #include <linux/platform_device.h> +#include <linux/clk.h> +#include <linux/err.h> #include <asm/irq.h>
@@ -330,9 +332,16 @@ static u32 __init omap2_usb2_init(unsigned nwires, unsigned alt_pingroup)void __init omap2_usbfs_init (struct omap_usb_config *pdata) { +struct clk *ick; +if (!cpu_is_omap24xx ())return ; + ick =clk_get (NULL ,"usb_l4_ick" ); +if (IS_ERR (ick)) +return ; + +clk_enable (ick); pdata->usb0_init = omap2_usb0_init; pdata->usb1_init = omap2_usb1_init; pdata->usb2_init = omap2_usb2_init;
@@ -340,6 +349,8 @@ void __init omap2_usbfs_init(struct omap_usb_config *pdata)ohci_device_init (pdata);otg_device_init (pdata);omap_otg_init (pdata); +clk_disable (ick); + clk_put(ick); }#endif
Tony Lindgren
maintainerPATCH 4/4 omap: Move omap1 USB platform init code into mach-omap1/usb.c
In reply to Tony LindgrenMove omap1 FS USB platform init code into mach-omap1/usb.c
--- arch/arm/mach-omap1/Makefile | 3 arch/arm/mach-omap1/board-ams-delta.c | 2 arch/arm/mach-omap1/board-generic.c | 4 arch/arm/mach-omap1/board-h2.c | 2 arch/arm/mach-omap1/board-h3.c | 2 arch/arm/mach-omap1/board-htcherald.c | 2 arch/arm/mach-omap1/board-innovator.c | 4 arch/arm/mach-omap1/board-nokia770.c | 2 arch/arm/mach-omap1/board-osk.c | 2 arch/arm/mach-omap1/board-palmte.c | 2 arch/arm/mach-omap1/board-palmtt.c | 2 arch/arm/mach-omap1/board-palmz71.c | 2 arch/arm/mach-omap1/board-sx1.c | 2 arch/arm/mach-omap1/board-voiceblue.c | 2 arch/arm/mach-omap1/usb.c | 530 +++++++++++++++++++++++++++++++++ arch/arm/plat-omap/include/plat/usb.h | 42 +++ arch/arm/plat-omap/usb.c | 535 --------------------------------- 17 files changed, 589 insertions(+), 551 deletions(-) create mode 100644 arch/arm/mach-omap1/usb.c
arch/arm/mach-omap1/Makefile +3 -0
@@ -23,6 +23,9 @@ obj-y += $(i2c-omap-m) $(i2c-omap-y) led-y := leds.o +usb-fs-$(CONFIG_USB) := usb.o +obj-y += $(usb-fs-m) $(usb-fs-y) + # Specific board support obj-$(CONFIG_MACH_OMAP_H2) += board-h2.o board-h2-mmc.o obj-$(CONFIG_MACH_OMAP_INNOVATOR) += board-innovator.o
arch/arm/mach-omap1/board-ams-delta.c +1 -1
@@ -235,7 +235,7 @@ static void __init ams_delta_init(void)/* Clear latch2 (NAND, LCD, modem enable) */ ams_delta_latch2_write (~0 ,0 ); -omap_usb_init (&ams_delta_usb_config); +omap1_usb_init (&ams_delta_usb_config);platform_add_devices (ams_delta_devices,ARRAY_SIZE (ams_delta_devices));#ifdef CONFIG_AMS_DELTA_FIQ
arch/arm/mach-omap1/board-generic.c +2 -2
@@ -72,12 +72,12 @@ static void __init omap_generic_init(void)omap_cfg_reg (UART3_TX );omap_cfg_reg (UART3_RX ); - omap_usb_init(&generic1510_usb_config); + omap1_usb_init(&generic1510_usb_config); }#endif #if defined(CONFIG_ARCH_OMAP16XX )if (!cpu_is_omap1510 ()) { -omap_usb_init (&generic1610_usb_config); +omap1_usb_init (&generic1610_usb_config); }#endif
arch/arm/mach-omap1/board-h2.c +1 -1
@@ -452,7 +452,7 @@ static void __init h2_init(void)omap_serial_init ();omap_register_i2c_bus (1 ,100 , h2_i2c_board_info,ARRAY_SIZE (h2_i2c_board_info)); -omap_usb_init (&h2_usb_config); +omap1_usb_init (&h2_usb_config);h2_mmc_init (); }
arch/arm/mach-omap1/board-h3.c +1 -1
@@ -405,7 +405,7 @@ static void __init h3_init(void)omap_serial_init ();omap_register_i2c_bus (1 ,100 , h3_i2c_board_info,ARRAY_SIZE (h3_i2c_board_info)); -omap_usb_init (&h3_usb_config); +omap1_usb_init (&h3_usb_config);h3_mmc_init (); }
arch/arm/mach-omap1/board-htcherald.c +1 -1
@@ -287,7 +287,7 @@ static void __init htcherald_init(void)htcherald_disable_watchdog ();htcherald_usb_enable (); -omap_usb_init (&htcherald_usb_config); +omap1_usb_init (&htcherald_usb_config); }static void __init htcherald_init_irq (void )
arch/arm/mach-omap1/board-innovator.c +2 -2
@@ -422,13 +422,13 @@ static void __init innovator_init(void)#ifdef CONFIG_ARCH_OMAP15XX if (cpu_is_omap1510 ()) { -omap_usb_init (&innovator1510_usb_config); +omap1_usb_init (&innovator1510_usb_config); innovator_config[1 ].data = &innovator1510_lcd_config; }#endif #ifdef CONFIG_ARCH_OMAP16XX if (cpu_is_omap1610 ()) { -omap_usb_init (&h2_usb_config); +omap1_usb_init (&h2_usb_config); innovator_config[1 ].data = &innovator1610_lcd_config; }#endif
arch/arm/mach-omap1/board-nokia770.c +1 -1
@@ -386,7 +386,7 @@ static void __init omap_nokia770_init(void)hwa742_dev_init ();ads7846_dev_init ();mipid_dev_init (); -omap_usb_init (&nokia770_usb_config); +omap1_usb_init (&nokia770_usb_config);nokia770_mmc_init (); }
arch/arm/mach-omap1/board-osk.c +1 -1
@@ -560,7 +560,7 @@ static void __init osk_init(void) l |= (3 <<1 );omap_writel (l,USB_TRANSCEIVER_CTRL ); -omap_usb_init (&osk_usb_config); +omap1_usb_init (&osk_usb_config);/* irq for tps65010 chip */ /* bootloader effectively does: omap_cfg_reg(U19_1610_MPUIO1); */
arch/arm/mach-omap1/board-palmte.c +1 -1
@@ -359,7 +359,7 @@ static void __init omap_palmte_init(void)spi_register_board_info (palmte_spi_info,ARRAY_SIZE (palmte_spi_info));palmte_misc_gpio_setup ();omap_serial_init (); -omap_usb_init (&palmte_usb_config); +omap1_usb_init (&palmte_usb_config);omap_register_i2c_bus (1 ,100 ,NULL ,0 ); }
arch/arm/mach-omap1/board-palmtt.c +1 -1
@@ -307,7 +307,7 @@ static void __init omap_palmtt_init(void)spi_register_board_info (palmtt_boardinfo,ARRAY_SIZE (palmtt_boardinfo));omap_serial_init (); -omap_usb_init (&palmtt_usb_config); +omap1_usb_init (&palmtt_usb_config);omap_register_i2c_bus (1 ,100 ,NULL ,0 ); }
arch/arm/mach-omap1/board-palmz71.c +1 -1
@@ -325,7 +325,7 @@ omap_palmz71_init(void)spi_register_board_info (palmz71_boardinfo,ARRAY_SIZE (palmz71_boardinfo)); -omap_usb_init (&palmz71_usb_config); +omap1_usb_init (&palmz71_usb_config);omap_serial_init ();omap_register_i2c_bus (1 ,100 ,NULL ,0 );palmz71_gpio_setup (0 );
arch/arm/mach-omap1/board-sx1.c +1 -1
@@ -392,7 +392,7 @@ static void __init omap_sx1_init(void) omap_board_config_size =ARRAY_SIZE (sx1_config);omap_serial_init ();omap_register_i2c_bus (1 ,100 ,NULL ,0 ); -omap_usb_init (&sx1_usb_config); +omap1_usb_init (&sx1_usb_config);sx1_mmc_init ();/* turn on USB power */
arch/arm/mach-omap1/board-voiceblue.c +1 -1
@@ -198,7 +198,7 @@ static void __init voiceblue_init(void) omap_board_config = voiceblue_config; omap_board_config_size =ARRAY_SIZE (voiceblue_config);omap_serial_init (); -omap_usb_init (&voiceblue_usb_config); +omap1_usb_init (&voiceblue_usb_config);omap_register_i2c_bus (1 ,100 ,NULL ,0 );/* There is a good chance board is going up, so enable power LED
arch/arm/mach-omap1/usb.c new file +530 -0
530 lines not on this page · raw message
arch/arm/plat-omap/include/plat/usb.h +41 -1
53 lines not on this page · raw message
arch/arm/plat-omap/usb.c +0 -535
569 lines not on this page · raw message