mx31lilly: prevent ulpi calls if !USB_CONFIG_ULPI
Subsystems (2)
PATCH 1/1 mx31lilly: prevent ulpi calls if !USB_CONFIG_ULPI
Signed-off-by Jonathan Cameron <[email protected]>
---
All of the mx3 boards that use ulpi are suitably protected. This currently makes mx3_defconfig fail as highlighted by Kautobuild. Sorry for noise if a fix is already on it's way!
arch/arm/mach-mx3/mach-mx31lilly.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-mx3/mach-mx31lilly.c +4 -0
@@ -114,6 +114,7 @@ static struct platform_device physmap_flash_device = { };/* USB */ +#if defined(CONFIG_USB_ULPI )#define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \ PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU)
@@ -243,6 +244,7 @@ static struct mxc_usbh_platform_data usbh2_pdata = { .portsc = MXC_EHCI_MODE_ULPI | MXC_EHCI_UTMI_8BIT, .flags = MXC_EHCI_POWER_PINS_ENABLED, }; +#endif /* USB_ULPI */ static struct platform_device *devices[]__initdata = { &smsc91x_device,
@@ -321,6 +323,7 @@ static void __init mx31lilly_board_init(void)platform_add_devices (devices,ARRAY_SIZE (devices));/* USB */ +#if defined(CONFIG_USB_ULPI ) usbotg_pdata.otg =otg_ulpi_create (&mxc_ulpi_access_ops,USB_OTG_DRV_VBUS |USB_OTG_DRV_VBUS_EXT ); usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops,
@@ -328,6 +331,7 @@ static void __init mx31lilly_board_init(void)mxc_register_device (&mxc_usbh1, &usbh1_pdata);mxc_register_device (&mxc_usbh2, &usbh2_pdata); +#endif }static void __init mx31lilly_timer_init (void )
Signature · 1 line
1.6.4.4
PATCH 1/1 mx31lilly: prevent ulpi calls if !USB_CONFIG_ULPI
Quoted 5 lines · Jonathan Cameron
Signed-off-by Jonathan Cameron <[email protected]>---
All of the mx3 boards that use ulpi are suitably protected. This currently makesmx3_defconfigfail as highlighted by Kautobuild. Sorry for noise if a fix is already on it's way!
There is actually. Have a look at Sascha's mxc trees.
Thanks, anyway :)
Daniel
Quoted 48 lines
arch/arm/mach-mx3/mach-mx31lilly.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)arch/arm/mach-mx3/mach-mx31lilly.c +4
-0@@ -114,6 +114,7 @@ static struct platform_device physmap_flash_device = { };/* USB */ +#if defined(CONFIG_USB_ULPI )#define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \ PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU)@@ -243,6 +244,7 @@ static struct mxc_usbh_platform_data usbh2_pdata = { .portsc = MXC_EHCI_MODE_ULPI | MXC_EHCI_UTMI_8BIT, .flags = MXC_EHCI_POWER_PINS_ENABLED, }; +#endif /* USB_ULPI */ static struct platform_device *devices[]__initdata = { &smsc91x_device,@@ -321,6 +323,7 @@ static void __init mx31lilly_board_init(void)platform_add_devices (devices,ARRAY_SIZE (devices));/* USB */ +#if defined(CONFIG_USB_ULPI ) usbotg_pdata.otg =otg_ulpi_create (&mxc_ulpi_access_ops,USB_OTG_DRV_VBUS |USB_OTG_DRV_VBUS_EXT ); usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops,@@ -328,6 +331,7 @@ static void __init mx31lilly_board_init(void)mxc_register_device (&mxc_usbh1, &usbh1_pdata);mxc_register_device (&mxc_usbh2, &usbh2_pdata); +#endif }static void __init mx31lilly_timer_init (void )Signature · 7 lines
1.6.4.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel