[PATCH 17/18] arm: pcm051: enable USB pinmux

Christoph Fritz chf.fritz at googlemail.com
Fri Jun 13 00:54:34 PDT 2014


---
 arch/arm/boards/phytec-phycore-am335x/board.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boards/phytec-phycore-am335x/board.c b/arch/arm/boards/phytec-phycore-am335x/board.c
index 9482b80..70b5db6 100644
--- a/arch/arm/boards/phytec-phycore-am335x/board.c
+++ b/arch/arm/boards/phytec-phycore-am335x/board.c
@@ -27,8 +27,10 @@
 #include <asm/armlinux.h>
 #include <generated/mach-types.h>
 #include <linux/phy.h>
+#include <mach/am33xx-mux.h>
 #include <mach/am33xx-generic.h>
 #include <mach/am33xx-silicon.h>
+#include <mach/am33xx-clock.h>
 #include <mach/bbu.h>
 
 
@@ -56,6 +58,12 @@ static char *xloadslots[] = {
 	"/dev/nand0.xload_backup3.bb"
 };
 
+static void pcm051_usb_init(void)
+{
+	am33xx_enable_usb0_pin_mux();
+	am33xx_enable_usb1_pin_mux();
+}
+
 static int pcm051_devices_init(void)
 {
 	if (!of_machine_is_compatible("phytec,pcm051"))
@@ -81,6 +89,8 @@ static int pcm051_devices_init(void)
 	am33xx_bbu_nand_xloadslots_register_handler("MLO.nand",
 		xloadslots, ARRAY_SIZE(xloadslots));
 
+	pcm051_usb_init();
+
 	return 0;
 }
 device_initcall(pcm051_devices_init);
-- 
1.7.10.4




More information about the barebox mailing list