From: Vipin KUMAR Date: Mon, 7 May 2012 07:36:51 +0000 (+0530) Subject: SPEAr: Enable udc and usb-console support only for usbtty configuration X-Git-Tag: v2012.07-rc1~11^2~28 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b884236ec343ca1c24d4bf740fbf883ae16c1cd2;p=oweals%2Fu-boot.git SPEAr: Enable udc and usb-console support only for usbtty configuration This patch enables the UDC and usb-console support only for usbtty configurations Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Acked-by: Stefan Roese Signed-off-by: Stefan Roese --- diff --git a/include/configs/spear-common.h b/include/configs/spear-common.h index ec97896253..bd54a18465 100644 --- a/include/configs/spear-common.h +++ b/include/configs/spear-common.h @@ -39,6 +39,7 @@ #define CONFIG_PHY_RESET_DELAY 10000 /* in usec */ /* USBD driver configuration */ +#if defined(CONFIG_SPEAR_USBTTY) #define CONFIG_DW_UDC #define CONFIG_USB_DEVICE #define CONFIG_USBD_HS @@ -47,6 +48,8 @@ #define CONFIG_USBD_PRODUCT_NAME "SPEAr SoC" #define CONFIG_USBD_MANUFACTURER "ST Microelectronics" +#endif + #define CONFIG_EXTRA_ENV_USBTTY "usbtty=cdc_acm\0" /* I2C driver configuration */