Re: [U-Boot] [PATCH v2 11/12] sunxi: Add emac glue, enable emac on the cubieboard

2014-06-05 Thread Ian Campbell
On Tue, 2014-06-03 at 21:42 +0200, Hans de Goede wrote:
 Signed-off-by: Hans de Goede hdego...@redhat.com

Acked-by: Ian Campbell i...@hellion.org.uk


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 11/12] sunxi: Add emac glue, enable emac on the cubieboard

2014-06-03 Thread Hans de Goede
Signed-off-by: Hans de Goede hdego...@redhat.com
---
 arch/arm/cpu/armv7/sunxi/board.c | 8 
 boards.cfg   | 2 +-
 include/configs/sunxi-common.h   | 5 +
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c
index 7d86409..024c8c1 100644
--- a/arch/arm/cpu/armv7/sunxi/board.c
+++ b/arch/arm/cpu/armv7/sunxi/board.c
@@ -123,6 +123,14 @@ int cpu_eth_init(bd_t *bis)
 {
int rc;
 
+#ifdef CONFIG_SUNXI_EMAC
+   rc = sunxi_emac_initialize(bis);
+   if (rc  0) {
+   printf(sunxi: failed to initialize emac\n);
+   return rc;
+   }
+#endif
+
 #ifdef CONFIG_SUNXI_GMAC
rc = sunxi_gmac_initialize(bis);
if (rc  0) {
diff --git a/boards.cfg b/boards.cfg
index 827095d..18a8400 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -382,7 +382,7 @@ Active  arm armv7  s5pc1xx samsung  
   goni
 Active  arm armv7  s5pc1xx samsung smdkc100
smdkc100  - 

Minkyu Kang mk7.k...@samsung.com
 Active  arm armv7  socfpga altera  socfpga 
socfpga_cyclone5  - 

-
 Active  arm armv7  sunxi   -   sunxi   
A13-OLinuXinoMsun5i:A13_OLINUXINOM,SPL,CONS_INDEX=2 

Hans de Goede hdego...@redhat.com
-Active  arm armv7  sunxi   -   sunxi   
Cubieboardsun4i:CUBIEBOARD,SPL,AXP209_POWER 

Hans de Goede hdego...@redhat.com
+Active  arm armv7  sunxi   -   sunxi   
Cubieboard
sun4i:CUBIEBOARD,SPL,AXP209_POWER,SUNXI_EMAC
  Hans de Goede 
hdego...@redhat.com
 Active  arm armv7  sunxi   -   sunxi   
Cubietruck
sun7i:CUBIETRUCK,SPL,AXP209_POWER,SUNXI_GMAC,RGMII  
  Ian Campbell 
i...@hellion.org.uk:Hans de Goede hdego...@redhat.com
 Active  arm armv7  sunxi   -   sunxi   
Cubietruck_FEL
sun7i:CUBIETRUCK,SPL_FEL,AXP209_POWER,SUNXI_GMAC,RGMII  
  Ian Campbell 
i...@hellion.org.uk:Hans de Goede hdego...@redhat.com
 Active  arm armv7  sunxi   -   sunxi   
r7-tv-dongle  sun5i:R7DONGLE,SPL,AXP152_POWER   

Hans de Goede hdego...@redhat.com
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index b76227e..a9d104a 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -179,6 +179,11 @@
 #define CONFIG_CONS_INDEX  1   /* UART0 */
 #endif
 
+/* Ethernet support */
+#ifdef CONFIG_SUNXI_EMAC
+#define CONFIG_MII /* MII PHY management   */
+#endif
+
 #ifdef CONFIG_SUNXI_GMAC
 #define CONFIG_DESIGNWARE_ETH  /* GMAC can use designware driver */
 #define CONFIG_DW_AUTONEG
-- 
1.9.0

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot