Patchwork [U-Boot,V2,RESEND,13/24] SPEAr: Enable udc and usb-console support only for usbtty configuration

login
register
mail settings
Submitter Amit Virdi
Date May 7, 2012, 7:36 a.m.
Message ID <ab599ad3e7327a5ae4ccda1b09ab8ed81664f3d9.1336376035.git.amit.virdi@st.com>
Download mbox | patch
Permalink /patch/157259/
State Accepted
Delegated to: Stefan Roese
Headers show

Comments

Amit Virdi - May 7, 2012, 7:36 a.m.
From: Vipin KUMAR <vipin.kumar@st.com>

This patch enables the UDC and usb-console support only for usbtty
configurations

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
Acked-by: Stefan Roese <sr@denx.de>
---
 include/configs/spear-common.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/include/configs/spear-common.h b/include/configs/spear-common.h
index 9b63fbe..41e7992 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 */