]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ARM: at91: dt: enable usb ehci for sam9g45 and sam9x5
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Tue, 22 Nov 2011 04:11:13 +0000 (12:11 +0800)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Thu, 15 Mar 2012 16:40:59 +0000 (00:40 +0800)
make the ECHI depends on ARCH_AT91

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: devicetree-discuss@lists.ozlabs.org
arch/arm/boot/dts/at91sam9g25ek.dts
arch/arm/boot/dts/at91sam9g45.dtsi
arch/arm/boot/dts/at91sam9m10g45ek.dts
arch/arm/boot/dts/at91sam9x5.dtsi
arch/arm/mach-at91/at91sam9g45.c
arch/arm/mach-at91/at91sam9x5.c
drivers/usb/Kconfig

index 93d5e361533f515398143c84c3d4b58169c014d4..ac0dc0031dda310caac9ff77f54c56131c0281b6 100644 (file)
@@ -41,5 +41,9 @@
                                           &pioD 20 0
                                          >;
                };
+
+               usb1: ehci@00700000 {
+                       status = "okay";
+               };
        };
 };
index 4ab8a2502697d8197aa6f7eff6d4c3a4e93574fb..3d0c32fb218f4682a1400b38fc00e51195f85752 100644 (file)
                        interrupts = <22 4>;
                        status = "disabled";
                };
+
+               usb1: ehci@00800000 {
+                       compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
+                       reg = <0x00800000 0x100000>;
+                       interrupts = <22 4>;
+                       status = "disabled";
+               };
        };
 
        i2c@0 {
index 0c101ada9d8f4eafc26a8e9366cbbcb02e56cbf2..c4c8ae4123d522d4f342f2ebc8ddff1e69126a05 100644 (file)
                        atmel,vbus-gpio = <&pioD 1 0
                                           &pioD 3 0>;
                };
+
+               usb1: ehci@00800000 {
+                       status = "okay";
+               };
        };
 
        leds {
index 1d8b6ac945f8f29d11dd004e32b2226f686711f9..c111001f254ea1d414a510f6258c3c94831cf79a 100644 (file)
                        interrupts = <22 4>;
                        status = "disabled";
                };
+
+               usb1: ehci@00700000 {
+                       compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
+                       reg = <0x00700000 0x100000>;
+                       interrupts = <22 4>;
+                       status = "disabled";
+               };
        };
 
        i2c@0 {
index f58775e763259ac811845fad749724da197a0aaf..df3bceacc86c13ce560135010deb7f1d54c5ef08 100644 (file)
@@ -233,6 +233,7 @@ static struct clk_lookup periph_clocks_lookups[] = {
        CLKDEV_CON_DEV_ID("t0_clk", "fff7c000.timer", &tcb0_clk),
        CLKDEV_CON_DEV_ID("t0_clk", "fffd4000.timer", &tcb0_clk),
        CLKDEV_CON_DEV_ID("hclk", "700000.ohci", &uhphs_clk),
+       CLKDEV_CON_DEV_ID("ehci_clk", "800000.ehci", &uhphs_clk),
        /* fake hclk clock */
        CLKDEV_CON_DEV_ID("hclk", "at91_ohci", &uhphs_clk),
        CLKDEV_CON_ID("pioA", &pioA_clk),
index ec65ef7abfc949267e55c4824510db785fe67fc9..b6831eeb7b767c92d8abcc1343ef6b8b47656ca9 100644 (file)
@@ -232,6 +232,7 @@ static struct clk_lookup periph_clocks_lookups[] = {
        CLKDEV_CON_DEV_ID("hclk", "f8030000.ethernet", &macb1_clk),
        CLKDEV_CON_DEV_ID("hclk", "600000.ohci", &uhphs_clk),
        CLKDEV_CON_DEV_ID("ohci_clk", "600000.ohci", &uhphs_clk),
+       CLKDEV_CON_DEV_ID("ehci_clk", "700000.ehci", &uhphs_clk),
 };
 
 /*
index 75823a1abeb66bebdf58f41de4cecbc7048ce0be..7fe4902d9e5103b51d8ea99ff29d506fa6c990b6 100644 (file)
@@ -65,7 +65,7 @@ config USB_ARCH_HAS_EHCI
        default y if PPC_MPC512x
        default y if ARCH_IXP4XX
        default y if ARCH_W90X900
-       default y if ARCH_AT91SAM9G45
+       default y if ARCH_AT91
        default y if ARCH_MXC
        default y if ARCH_OMAP3
        default y if ARCH_CNS3XXX