]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARC: [plat-arcfpga] Add arc_emac to AA4 board DT description
authorAlexey Brodkin <abrodkin@synopsys.com>
Wed, 26 Jun 2013 10:02:18 +0000 (14:02 +0400)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 27 Jun 2013 02:30:00 +0000 (08:00 +0530)
With this patch we introduce DT "arc_emac" description for ARCangel4.
Description is based on info/example in
"Documentation/devicetree/bindings/net/arc_emac.txt".

[vgupta: tweaked patch subject]
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Francois Romieu <romieu@fr.zoreil.com>
Cc: Joe Perches <joe@perches.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Mischa Jonker <mjonker@synopsys.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-kernel@vger.kernel.org
Cc: devicetree-discuss@lists.ozlabs.org
Cc: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/boot/dts/angel4.dts
arch/arc/plat-arcfpga/include/plat/irq.h
arch/arc/plat-arcfpga/include/plat/memmap.h

index bae4f936cb0314f14371680ee4b1380e5b2b99ce..4fb2d6f655bdf4162d40b6d72ae6f329b0b32ec0 100644 (file)
                        current-speed = <115200>;
                        status = "okay";
                };
+
+               ethernet@c0fc2000 {
+                       compatible = "snps,arc-emac";
+                       reg = <0xc0fc2000 0x3c>;
+                       interrupts = <6>;
+                       mac-address = [ 00 11 22 33 44 55 ];
+                       clock-frequency = <80000000>;
+                       max-speed = <100>;
+                       phy = <&phy0>;
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       phy0: ethernet-phy@0 {
+                               reg = <1>;
+                       };
+               };
        };
 };
index 41e335670f60c1bc695678bb76d9141490bf3d63..6adbc53c3a5b21e658cc5f03c06604d7c0b4412d 100644 (file)
@@ -16,8 +16,6 @@
 #define UART1_IRQ      10
 #define UART2_IRQ      11
 
-#define VMAC_IRQ       6
-
 #define IDE_IRQ                13
 #define PCI_IRQ                14
 #define PS2_IRQ                15
index 1663f338808544bf80d5d334d21a62f4f5daee69..5c78e6135a1fc264277833aded4d5209c25304a3 100644 (file)
@@ -15,8 +15,6 @@
 #define UART0_BASE              0xC0FC1000
 #define UART1_BASE              0xC0FC1100
 
-#define VMAC_REG_BASEADDR       0xC0FC2000
-
 #define IDE_CONTROLLER_BASE     0xC0FC9000
 
 #define AHB_PCI_HOST_BRG_BASE   0xC0FD0000