[PATCH 17/17] aspeed: Network Driver configuration for EVB

Maxim Sloyko maxims at google.com
Fri Mar 17 08:36:24 AEDT 2017


Enable Network Driver along with network related commands -- ping, dhcp,
mii -- in ast2500 Eval Board's defconfig.

Add MAC devices' configuration to Eval Board Device Tree.

Signed-off-by: Maxim Sloyko <maxims at google.com>

---


---
 arch/arm/dts/ast2500-evb.dts  | 14 ++++++++++++++
 configs/evb-ast2500_defconfig |  7 +++++++
 2 files changed, 21 insertions(+)

diff --git a/arch/arm/dts/ast2500-evb.dts b/arch/arm/dts/ast2500-evb.dts
index 723941ac0b..c47ad684a5 100644
--- a/arch/arm/dts/ast2500-evb.dts
+++ b/arch/arm/dts/ast2500-evb.dts
@@ -36,3 +36,17 @@
 	u-boot,dm-pre-reloc;
 	status = "okay";
 };
+
+&mac0 {
+	compatible = "aspeed,ast2500-nic";
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_mac1link_default>, <&pinctrl_mdio1_default>;
+};
+
+&mac1 {
+	compatible = "aspeed,ast2500-nic";
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_mac2link_default>, <&pinctrl_mdio2_default>;
+};
diff --git a/configs/evb-ast2500_defconfig b/configs/evb-ast2500_defconfig
index 08b5f85a34..d1548f7f3c 100644
--- a/configs/evb-ast2500_defconfig
+++ b/configs/evb-ast2500_defconfig
@@ -21,3 +21,10 @@ CONFIG_PINCTRL=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_ASPEED=y
 CONFIG_CMD_I2C=y
+CONFIG_DM_ETH=y
+CONFIG_AST_NIC=y
+CONFIG_CMD_NET=y
+CONFIG_CMD_PING=y
+CONFIG_CMD_DHCP=y
+CONFIG_MII=y
+CONFIG_CMD_MII=y
-- 
2.12.0.367.g23dc2f6d3c-goog



More information about the openbmc mailing list