]> git.sur5r.net Git - u-boot/commitdiff
arm: socfpga: misc: Probe ethernet GMAC from OF
authorMarek Vasut <marex@denx.de>
Sat, 25 Jul 2015 16:47:02 +0000 (18:47 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:08 +0000 (14:14 +0200)
The GMAC can now be probed from OF, so enable DM ethernet and remove the
old ad-hoc designware_initialize() invocation.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
arch/arm/mach-socfpga/misc.c
configs/socfpga_cyclone5_defconfig
configs/socfpga_socrates_defconfig
include/configs/socfpga_arria5.h
include/configs/socfpga_cyclone5.h

index 27193e08f7075ae1b0f7347d900dc85f4076084c..4205fb7b52e1cc2a0c7e548c15d34f4a4e3b22ca 100644 (file)
@@ -82,9 +82,7 @@ int cpu_eth_init(bd_t *bis)
        /* Release the EMAC controller from reset */
        socfpga_per_reset(reset, 0);
 
-       /* initialize and register the emac */
-       return designware_initialize(CONFIG_EMAC_BASE,
-                                    CONFIG_PHY_INTERFACE_MODE);
+       return 0;
 }
 #endif
 
index 992ce7e0de51e83d540fdf8713619456750110b3..75ed347f0ecc20827b089aaa8facf4908572b908 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_SPL=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_OF_CONTROL=y
 CONFIG_SPI_FLASH=y
+CONFIG_DM_ETH=y
 CONFIG_NETDEVICES=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_SPL_DM=y
index 98894bb28361e11263506c2d7e33baa688bdc5ba..2e50ce9a2c601067b7b8fb8261c2bf38210fecba 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_SPL=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_OF_CONTROL=y
 CONFIG_SPI_FLASH=y
+CONFIG_DM_ETH=y
 CONFIG_NETDEVICES=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_SPL_DM=y
index 2d31df8a4547d6c18d223a1f3690a83ee80e440d..ff02ed53931f625eff2bc1973c73d5acdd2c2d51 100644 (file)
@@ -49,7 +49,6 @@
 /* Ethernet on SoC (EMAC) */
 #if defined(CONFIG_CMD_NET)
 #define CONFIG_EMAC_BASE               SOCFPGA_EMAC1_ADDRESS
-#define CONFIG_PHY_INTERFACE_MODE      PHY_INTERFACE_MODE_RGMII
 
 /* PHY */
 #define CONFIG_PHY_MICREL
index 96d5412b1eb0a2f113c56892326c370cad78ede2..90ba0c9f76a6596c153288343e9bddc2505ed039 100644 (file)
@@ -49,7 +49,6 @@
 /* Ethernet on SoC (EMAC) */
 #if defined(CONFIG_CMD_NET)
 #define CONFIG_EMAC_BASE               SOCFPGA_EMAC1_ADDRESS
-#define CONFIG_PHY_INTERFACE_MODE      PHY_INTERFACE_MODE_RGMII
 
 /* PHY */
 #define CONFIG_PHY_MICREL