Skip to content

Commit d0e63ed

Browse files
abrodkinvineetgarc
authored andcommitted
ARC: [plat-arcfpga] Enable arc_emac for ARCAngle4 Board
* Add arc_emac to DeviceTree DT description "Documentation/devicetree/bindings/net/arc_emac.txt". * Update defconfig correspondingly [vgupta: tweaked changelog] Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 7d13205 commit d0e63ed

4 files changed

Lines changed: 19 additions & 4 deletions

File tree

‎arch/arc/boot/dts/angel4.dts‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,21 @@
5151
current-speed = <115200>;
5252
status = "okay";
5353
};
54+
55+
ethernet@c0fc2000 {
56+
compatible = "snps,arc-emac";
57+
reg = <0xc0fc2000 0x3c>;
58+
interrupts = <6>;
59+
mac-address = [ 00 11 22 33 44 55 ];
60+
clock-frequency = <80000000>;
61+
max-speed = <100>;
62+
phy = <&phy0>;
63+
64+
#address-cells = <1>;
65+
#size-cells = <0>;
66+
phy0: ethernet-phy@0 {
67+
reg = <1>;
68+
};
69+
};
5470
};
5571
};

‎arch/arc/configs/fpga_defconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ CONFIG_INET=y
3838
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
3939
# CONFIG_FIRMWARE_IN_KERNEL is not set
4040
# CONFIG_BLK_DEV is not set
41+
CONFIG_NETDEVICES=y
42+
CONFIG_ARC_EMAC=y
43+
CONFIG_LXT_PHY=y
4144
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
4245
# CONFIG_INPUT_KEYBOARD is not set
4346
# CONFIG_INPUT_MOUSE is not set

‎arch/arc/plat-arcfpga/include/plat/irq.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#define UART1_IRQ 10
1717
#define UART2_IRQ 11
1818

19-
#define VMAC_IRQ 6
20-
2119
#define IDE_IRQ 13
2220
#define PCI_IRQ 14
2321
#define PS2_IRQ 15

‎arch/arc/plat-arcfpga/include/plat/memmap.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#define UART0_BASE 0xC0FC1000
1616
#define UART1_BASE 0xC0FC1100
1717

18-
#define VMAC_REG_BASEADDR 0xC0FC2000
19-
2018
#define IDE_CONTROLLER_BASE 0xC0FC9000
2119

2220
#define AHB_PCI_HOST_BRG_BASE 0xC0FD0000

0 commit comments

Comments
 (0)