Merge branch 'imx-for-2.6.35' of git://git.pengutronix.de/git/imx/linux-2.6

+22 -11
+22 -11
arch/arm/mach-mx3/mach-mx31lilly.c
··· 115 116 /* USB */ 117 118 #define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \ 119 PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU) 120 ··· 246 .flags = MXC_EHCI_POWER_PINS_ENABLED, 247 }; 248 249 - static struct platform_device *devices[] __initdata = { 250 - &smsc91x_device, 251 - &physmap_flash_device, 252 - }; 253 254 /* SPI */ 255 ··· 289 .bus_num = 1, 290 .chip_select = 0, 291 .platform_data = &mc13783_pdata, 292 }; 293 294 static int mx31lilly_baseboard; ··· 338 platform_add_devices(devices, ARRAY_SIZE(devices)); 339 340 /* USB */ 341 - usbotg_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, 342 - USB_OTG_DRV_VBUS | USB_OTG_DRV_VBUS_EXT); 343 - usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, 344 - USB_OTG_DRV_VBUS | USB_OTG_DRV_VBUS_EXT); 345 - 346 - mxc_register_device(&mxc_usbh1, &usbh1_pdata); 347 - mxc_register_device(&mxc_usbh2, &usbh2_pdata); 348 } 349 350 static void __init mx31lilly_timer_init(void)
··· 115 116 /* USB */ 117 118 + #if defined(CONFIG_USB_ULPI) 119 + 120 #define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \ 121 PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU) 122 ··· 244 .flags = MXC_EHCI_POWER_PINS_ENABLED, 245 }; 246 247 + static void lilly1131_usb_init(void) 248 + { 249 + usbotg_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, 250 + USB_OTG_DRV_VBUS | USB_OTG_DRV_VBUS_EXT); 251 + usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, 252 + USB_OTG_DRV_VBUS | USB_OTG_DRV_VBUS_EXT); 253 + 254 + mxc_register_device(&mxc_usbh1, &usbh1_pdata); 255 + mxc_register_device(&mxc_usbh2, &usbh2_pdata); 256 + } 257 + 258 + #else 259 + static inline void lilly1131_usb_init(void) {} 260 + #endif /* CONFIG_USB_ULPI */ 261 262 /* SPI */ 263 ··· 277 .bus_num = 1, 278 .chip_select = 0, 279 .platform_data = &mc13783_pdata, 280 + }; 281 + 282 + static struct platform_device *devices[] __initdata = { 283 + &smsc91x_device, 284 + &physmap_flash_device, 285 }; 286 287 static int mx31lilly_baseboard; ··· 321 platform_add_devices(devices, ARRAY_SIZE(devices)); 322 323 /* USB */ 324 + lilly1131_usb_init(); 325 } 326 327 static void __init mx31lilly_timer_init(void)