disable usb uart debug by default

This commit is contained in:
yangkai
2012-09-11 15:54:35 +08:00
parent 7f63633414
commit 17567c86c4
2 changed files with 5 additions and 1 deletions

View File

@@ -166,7 +166,7 @@ config RK_DEBUG_UART
config RK_USB_UART
bool "Support USB UART Bypass Function"
depends on ARCH_RK2928 && (RK_DEBUG_UART = 2)
default y
default n
config RK_CONSOLE_THREAD
bool "Console write by thread"

4
arch/arm/plat-rk/usb_detect.c Normal file → Executable file
View File

@@ -84,6 +84,10 @@ static irqreturn_t bvalid_irq_handler(int irq, void *dev_id)
#ifdef CONFIG_ARCH_RK2928
writel_relaxed((1 << 31) | (1 << 15), RK2928_GRF_BASE + GRF_UOC0_CON5);
#endif
#ifdef CONFIG_RK_USB_UART
/* usb otg dp/dm switch to usb phy */
writel_relaxed((3 << (12 + 16)),RK2928_GRF_BASE + GRF_UOC1_CON4);
#endif
wake_lock_timeout(&usb_wakelock, WAKE_LOCK_TIMEOUT);
rk28_send_wakeup_key();