Skip to content

Commit df420fd

Browse files
Lada Trimasovavineetgarc
authored andcommitted
arc: [plat-nsimosci*] use ezchip network driver
Since ezchip network driver was adapted to little endian architecture this patch provides the corresponding arch/arc/{boot/dts,configs}/ updates so we can switch over to this device-model/driver for OSCI platform. Cc: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Lada Trimasova <ltrimas@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent b31ac42 commit df420fd

6 files changed

Lines changed: 10 additions & 9 deletions

File tree

‎arch/arc/boot/dts/nsimosci.dts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@
6565
};
6666

6767
eth0: ethernet@f0003000 {
68-
compatible = "snps,oscilan";
68+
compatible = "ezchip,nps-mgt-enet";
6969
reg = <0xf0003000 0x44>;
70-
interrupts = <7>, <8>;
71-
interrupt-names = "rx", "tx";
70+
interrupts = <7>;
7271
};
7372
};
7473
};

‎arch/arc/boot/dts/nsimosci_hs.dts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@
6565
};
6666

6767
eth0: ethernet@f0003000 {
68-
compatible = "snps,oscilan";
68+
compatible = "ezchip,nps-mgt-enet";
6969
reg = <0xf0003000 0x44>;
70-
interrupts = <25>, <26>;
71-
interrupt-names = "rx", "tx";
70+
interrupts = <25>;
7271
};
7372

7473
arcpct0: pct {

‎arch/arc/boot/dts/nsimosci_hs_idu.dts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@
8585
};
8686

8787
eth0: ethernet@f0003000 {
88-
compatible = "snps,oscilan";
88+
compatible = "ezchip,nps-mgt-enet";
8989
reg = <0xf0003000 0x44>;
9090
interrupt-parent = <&idu_intc>;
91-
interrupts = <1 2>, <2 2>;
92-
interrupt-names = "rx", "tx";
91+
interrupts = <1 2>;
9392
};
9493

9594
arcpct0: pct {

‎arch/arc/configs/nsimosci_defconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ CONFIG_DEVTMPFS=y
3838
# CONFIG_FIRMWARE_IN_KERNEL is not set
3939
# CONFIG_BLK_DEV is not set
4040
CONFIG_NETDEVICES=y
41+
CONFIG_EZCHIP_NPS_MANAGEMENT_ENET=y
4142
# CONFIG_INPUT_MOUSEDEV is not set
4243
CONFIG_INPUT_EVDEV=y
4344
# CONFIG_MOUSE_PS2_ALPS is not set

‎arch/arc/configs/nsimosci_hs_defconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ CONFIG_DEVTMPFS=y
3939
# CONFIG_FIRMWARE_IN_KERNEL is not set
4040
# CONFIG_BLK_DEV is not set
4141
CONFIG_NETDEVICES=y
42+
CONFIG_EZCHIP_NPS_MANAGEMENT_ENET=y
4243
CONFIG_INPUT_EVDEV=y
4344
# CONFIG_MOUSE_PS2_ALPS is not set
4445
# CONFIG_MOUSE_PS2_LOGIPS2PP is not set

‎arch/arc/configs/nsimosci_hs_smp_defconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ CONFIG_MODULES=y
2020
CONFIG_ARC_PLAT_SIM=y
2121
CONFIG_ISA_ARCV2=y
2222
CONFIG_SMP=y
23+
# CONFIG_ARC_HAS_GFRC is not set
2324
CONFIG_ARC_BUILTIN_DTB_NAME="nsimosci_hs_idu"
2425
CONFIG_PREEMPT=y
2526
# CONFIG_COMPACTION is not set
@@ -45,6 +46,7 @@ CONFIG_NETDEVICES=y
4546
# CONFIG_NET_VENDOR_ARC is not set
4647
# CONFIG_NET_CADENCE is not set
4748
# CONFIG_NET_VENDOR_BROADCOM is not set
49+
CONFIG_EZCHIP_NPS_MANAGEMENT_ENET=y
4850
# CONFIG_NET_VENDOR_INTEL is not set
4951
# CONFIG_NET_VENDOR_MARVELL is not set
5052
# CONFIG_NET_VENDOR_MICREL is not set

0 commit comments

Comments
 (0)