]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: tegra: Harmony: enable ULPI USB port
authorStephen Warren <swarren@nvidia.com>
Fri, 12 Oct 2012 09:45:48 +0000 (09:45 +0000)
committerTom Warren <twarren@nvidia.com>
Mon, 29 Oct 2012 16:07:04 +0000 (09:07 -0700)
The ULPI port is routed onto pins on the mini PCI Express connector. A
standard breakout board may be used to access the port.

* Add required DT entries to configure the ULPI port.
* Setup up the ULPI pinmux in the board code.
* Enable multiple USB controller and ULPI support in the board config.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
board/nvidia/dts/tegra20-harmony.dts
board/nvidia/harmony/harmony.c
include/configs/harmony.h

index ca5facb7fe71b5b20c325bfed3ef36bd5fa557b9..5645a8d4772dbd2c973ab981ac4df2d7f3a93593 100644 (file)
@@ -8,6 +8,7 @@
 
        aliases {
                usb0 = "/usb@c5008000";
+               usb1 = "/usb@c5004000";
        };
 
        memory {
@@ -52,7 +53,7 @@
        };
 
        usb@c5004000 {
-               status = "disabled";
+               nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */
        };
 
        nand-controller@70008000 {
index 32ed9bb7d1af682ea5a2a4ccbf84663418f47bc0..c7590ac6cff8292e814a412fe04a5a75dd8e91a9 100644 (file)
@@ -75,3 +75,12 @@ int board_mmc_init(bd_t *bd)
        return 0;
 }
 #endif
+
+void pin_mux_usb(void)
+{
+       funcmux_select(PERIPH_ID_USB2, FUNCMUX_USB2_ULPI);
+       pinmux_set_func(PINGRP_CDEV2, PMUX_FUNC_PLLP_OUT4);
+       pinmux_tristate_disable(PINGRP_CDEV2);
+       /* USB2 PHY reset GPIO */
+       pinmux_tristate_disable(PINGRP_UAC);
+}
index d582ae1ab6e9cf8d027ee49af403a6d00fc10fa8..040bfe48eb08e63693b12c24f103f3432b4e3f8a 100644 (file)
 #define CONFIG_ENV_OFFSET      (SZ_512M - SZ_128K) /* 128K sector size */
 
 /* USB Host support */
+#define CONFIG_USB_MAX_CONTROLLER_COUNT 3
 #define CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_TEGRA
+#define CONFIG_USB_ULPI
+#define CONFIG_USB_ULPI_VIEWPORT
 #define CONFIG_USB_STORAGE
 #define CONFIG_CMD_USB