]> git.baikalelectronics.ru Git - uboot.git/commitdiff
bmips: enable nb4-ser enet support
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 1 Dec 2018 18:00:31 +0000 (19:00 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 19 Dec 2018 14:23:01 +0000 (15:23 +0100)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
arch/mips/dts/sfr,nb4-ser.dts
configs/sfr_nb4-ser_ram_defconfig

index bdc6f8ae4559060a409552c161f1cd3bcf7bea4e..dfbc4148dcdb7133543e8db2996d9b6859cb88dc 100644 (file)
        status = "okay";
 };
 
+&enet0 {
+       status = "okay";
+       phy = <&enet0phy>;
+       phy-mode = "internal";
+
+       enet0phy: fixed-link {
+               reg = <1>;
+               speed = <100>;
+               full-duplex;
+       };
+};
+
+&enet1 {
+       status = "okay";
+       phy = <&enet1phy>;
+       phy-mode = "mii";
+
+       enet1phy: fixed-link {
+               reg = <1>;
+               speed = <100>;
+               full-duplex;
+       };
+};
+
 &gpio0 {
        status = "okay";
 };
index 12adfb01e7f900e88dbf174f4bb9ef3cc4c52cc2..39622875b15b5309a376c837a10491be07706a88 100644 (file)
@@ -26,11 +26,14 @@ CONFIG_CMD_LICENSE=y
 CONFIG_CMD_MEMINFO=y
 # CONFIG_CMD_LOADS is not set
 CONFIG_CMD_USB=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
 # CONFIG_CMD_MISC is not set
 CONFIG_OF_EMBED=y
 CONFIG_DEFAULT_DEVICE_TREE="sfr,nb4-ser"
-# CONFIG_NET is not set
+CONFIG_NET_RANDOM_ETHADDR=y
 # CONFIG_DM_DEVICE_REMOVE is not set
+CONFIG_BCM6348_IUDMA=y
 CONFIG_DM_GPIO=y
 CONFIG_BCM6345_GPIO=y
 CONFIG_LED=y
@@ -42,6 +45,9 @@ CONFIG_FLASH_CFI_DRIVER=y
 CONFIG_CFI_FLASH=y
 CONFIG_SYS_FLASH_PROTECTION=y
 CONFIG_SYS_FLASH_CFI=y
+CONFIG_PHY_FIXED=y
+CONFIG_DM_ETH=y
+CONFIG_BCM6348_ETH=y
 CONFIG_PHY=y
 CONFIG_BCM6358_USBH_PHY=y
 CONFIG_DM_RESET=y