Signed-off-by: Christoph Fritz <chf.fr...@googlemail.com> --- arch/arm/mach-omap/am33xx_mux.c | 24 ++++++++++++++++++++++++ arch/arm/mach-omap/include/mach/am33xx-mux.h | 2 ++ 2 files changed, 26 insertions(+)
diff --git a/arch/arm/mach-omap/am33xx_mux.c b/arch/arm/mach-omap/am33xx_mux.c index 8318713..8779f00 100644 --- a/arch/arm/mach-omap/am33xx_mux.c +++ b/arch/arm/mach-omap/am33xx_mux.c @@ -253,6 +253,20 @@ static const __maybe_unused struct module_pin_mux spi1_pin_mux[] = { {-1}, }; +static const __maybe_unused struct module_pin_mux usb0_pin_mux[] = { + {OFFSET(usb0_drvvbus), MODE(0)}, + /* MCASP0_AHCLKR gpio3_17 */ + {OFFSET(mcasp0_ahclkr), MODE(7) | PULLUDEN | RXACTIVE | PULLUP_EN}, + {-1}, +}; + +static const __maybe_unused struct module_pin_mux usb1_pin_mux[] = { + {OFFSET(usb1_drvvbus), MODE(0)}, + /* MCASP0_ACLKR gpio3_18 */ + {OFFSET(mcasp0_aclkr), MODE(7) | PULLUDEN | RXACTIVE | PULLUP_EN}, + {-1}, +}; + /* * Configure the pin mux for the module */ @@ -321,3 +335,13 @@ void am33xx_enable_nand_pin_mux(void) { configure_module_pin_mux(nand_pin_mux); } + +void am33xx_enable_usb0_pin_mux(void) +{ + configure_module_pin_mux(usb0_pin_mux); +} + +void am33xx_enable_usb1_pin_mux(void) +{ + configure_module_pin_mux(usb1_pin_mux); +} diff --git a/arch/arm/mach-omap/include/mach/am33xx-mux.h b/arch/arm/mach-omap/include/mach/am33xx-mux.h index fe3168b..64ad078 100644 --- a/arch/arm/mach-omap/include/mach/am33xx-mux.h +++ b/arch/arm/mach-omap/include/mach/am33xx-mux.h @@ -258,5 +258,7 @@ extern void am33xx_enable_uart2_pin_mux(void); extern void am33xx_enable_mmc0_pin_mux(void); extern void am33xx_enable_spi0_pin_mux(void); extern void am33xx_enable_nand_pin_mux(void); +extern void am33xx_enable_usb0_pin_mux(void); +extern void am33xx_enable_usb1_pin_mux(void); #endif /*__AM33XX_MUX_H__ */ -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox