[PATCH 2/3] eukrea_cpuimx35: use OTG workaround only when gadget is selected
Eric Bénard
eric at eukrea.com
Fri Feb 25 09:39:24 EST 2011
Signed-off-by: Eric Bénard <eric at eukrea.com>
---
arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c b/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c
index f7a6169..f377793 100644
--- a/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c
+++ b/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c
@@ -199,11 +199,12 @@ static int eukrea_cpuimx35_devices_init(void)
imx35_usb_init();
register_device(&usbh2_dev);
#endif
+#ifdef CONFIG_USB_GADGET
/* Workaround ENGcm09152 */
tmp = readl(IMX_OTG_BASE + 0x608);
writel(tmp | (1 << 23), IMX_OTG_BASE + 0x608);
register_device(&usbotg_dev);
-
+#endif
armlinux_add_dram(&sdram_dev);
armlinux_set_bootparams((void *)0x80000100);
armlinux_set_architecture(MACH_TYPE_EUKREA_CPUIMX35);
--
1.7.4
More information about the barebox
mailing list