From 6ebc766043ce64ac6d09ad1537c6ad77f23a7918 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 31 Jul 2018 10:35:20 +0200 Subject: [PATCH] boards/qemu_x86: Add a dts entry for the e1000 Ethernet controller With approriate fixups. Signed-off-by: Tomasz Bursztyka Signed-off-by: Oleg Zhurakivskyy --- boards/x86/qemu_x86/dts.fixup | 8 ++++++++ boards/x86/qemu_x86/qemu_x86.dts | 13 ++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 boards/x86/qemu_x86/dts.fixup diff --git a/boards/x86/qemu_x86/dts.fixup b/boards/x86/qemu_x86/dts.fixup new file mode 100644 index 00000000000..42c1725040d --- /dev/null +++ b/boards/x86/qemu_x86/dts.fixup @@ -0,0 +1,8 @@ +/* Board level DTS fixup file */ + +#define CONFIG_ETH_E1000_BASE_ADDRESS INTEL_E1000_FEBC0000_BASE_ADDRESS +#define CONFIG_ETH_E1000_IRQ INTEL_E1000_FEBC0000_IRQ_0 +#define CONFIG_ETH_E1000_IRQ_PRIORITY INTEL_E1000_FEBC0000_IRQ_0_PRIORITY +#define CONFIG_ETH_E1000_IRQ_FLAGS INTEL_E1000_FEBC0000_IRQ_0_SENSE + +/* End of Board Level DTS fixup file */ diff --git a/boards/x86/qemu_x86/qemu_x86.dts b/boards/x86/qemu_x86/qemu_x86.dts index cef8c4a7a38..ae98f8c2f05 100644 --- a/boards/x86/qemu_x86/qemu_x86.dts +++ b/boards/x86/qemu_x86/qemu_x86.dts @@ -29,6 +29,18 @@ zephyr,uart-pipe = &uart1; zephyr,bt-mon-uart = &uart1; }; + + soc { + eth0: eth@febc0000 { + compatible = "intel,e1000"; + reg = <0xfebc0000 0x100>; + label = "eth0"; + interrupts = <11 IRQ_TYPE_EDGE_RISING 3>; + interrupt-parent = <&intc>; + + status = "ok"; + }; + }; }; &uart0 { @@ -40,4 +52,3 @@ status = "ok"; current-speed = <115200>; }; -