MTX1 : fix wrong ifdef leading to USB switch not powered
PATCH 1/3 MTX1 : fix wrong ifdef leading to USB switch not powered
This patch fixes a wrong ifdef in the board setup code, leading to the GPIO pin not being pulled high, and thus the USB switch not being powered at all.
Signed-off-by Felix Fietkau <[email protected]>
Signed-off-by John Crispin <[email protected]>
Signed-off-by Florian Fainelli <[email protected]>
arch/mips/au1000/mtx-1/board_setup.c +1 -1
@@ -54,7 +54,7 @@ void board_reset (void)void __init board_setup (void ) { -#ifdef CONFIG_USB_OHCI +#if defined(CONFIG_USB_OHCI_HCD ) || defined(CONFIG_USB_OHCI_HCD_MODULE )// enable USB power switch au_writel (au_readl (GPIO2_DIR ) |0x10 ,GPIO2_DIR );au_writel (0x100000 ,GPIO2_OUTPUT );