Skip to content

Commit

Permalink
boards/qemu_x86: Add a dts entry for the e1000 Ethernet controller
Browse files Browse the repository at this point in the history
With approriate fixups.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
  • Loading branch information
Tomasz Bursztyka authored and galak committed Oct 10, 2018
1 parent a804a4f commit 6ebc766
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
8 changes: 8 additions & 0 deletions 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 */
13 changes: 12 additions & 1 deletion boards/x86/qemu_x86/qemu_x86.dts
Expand Up @@ -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 {
Expand All @@ -40,4 +52,3 @@
status = "ok";
current-speed = <115200>;
};

0 comments on commit 6ebc766

Please sign in to comment.