From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amit Virdi Date: Wed, 7 Mar 2012 17:34:03 +0530 Subject: [U-Boot] [PATCH 14/25] SPEAr: Enable udc and usb-console support only for usbtty configuration In-Reply-To: <1331121854-20494-1-git-send-email-amit.virdi@st.com> References: <1331121854-20494-1-git-send-email-amit.virdi@st.com> Message-ID: <1331121854-20494-15-git-send-email-amit.virdi@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Vipin KUMAR This patch enables the UDC and usb-console support only for usbtty configurations Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- include/configs/spear-common.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/configs/spear-common.h b/include/configs/spear-common.h index 14e3ec4..5b6ef72 100644 --- a/include/configs/spear-common.h +++ b/include/configs/spear-common.h @@ -38,6 +38,7 @@ #endif /* USBD driver configuration */ +#if defined(CONFIG_SPEAR_USBTTY) #define CONFIG_DW_UDC #define CONFIG_USB_DEVICE #define CONFIG_USBD_HS @@ -46,6 +47,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 */ -- 1.7.2.2