[U-Boot] [PATCH] vexpress/armv8: Fix incorrect ethernet controller

Bhupesh Sharma bhupesh.sharma at freescale.com
Thu Jan 16 16:47:40 CET 2014


This patch enables ethernet support in ARMv8 foundation model. The ARMv8
foundation model supports a SMSC91C111 integrated MAC and PHY module
which is present at base address 0x01A000000.

The previous implementation had enabled SMSC9115 ethernet controller
which is not present on the ARMv8 foundation model.

Tested on ARMv8 foundation model v1 and v2 by running ping/tftp
between the foundation model and the host PC via a bridged network.

Signed-off-by: Bhupesh Sharma <bhupesh.sharma at freescale.com>
---
To test the ethernet functionality on a ARMv8 foundation model:

- Launch the model with BRIDGED networking option:
	--network=bridged

- This will create an ethernet interface (eth0) inside the model and
  an interface ARM0 on the Host PC.

- Assign appropriate IP addresses:
  	~ On Host:
		$ ifconfig ARM0 10.10.10.11
	~ On foundation model:
		VExpress# setenv ipaddr 10.10.10.10
		VExpress# setenv gatewayip 10.10.10.11
		VExpress# setenv serverip 10.10.10.11

- Now try out ping/tftp tests.

 include/configs/vexpress_aemv8a.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/configs/vexpress_aemv8a.h b/include/configs/vexpress_aemv8a.h
index ce5f384..e851702 100644
--- a/include/configs/vexpress_aemv8a.h
+++ b/include/configs/vexpress_aemv8a.h
@@ -102,9 +102,9 @@
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 128 * 1024)
 
-/* SMSC9115 Ethernet from SMSC9118 family */
-#define CONFIG_SMC9111			1
-#define CONFIG_SMC9111_BASE		(0x1a000000)
+/* SMSC91C111 Ethernet Configuration */
+#define CONFIG_SMC91111			1
+#define CONFIG_SMC91111_BASE		(0x01A000000)
 
 /* PL011 Serial Configuration */
 #define CONFIG_PL011_SERIAL
-- 
1.7.10.4




More information about the U-Boot mailing list