[PATCH 1/1] vexpress: fix smc911x in defconfig

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu Nov 28 09:17:38 EST 2013


today we select smc91111

to make the net work under qemu you will have to fix the lan9118 driver

with this patch

diff --git a/hw/net/lan9118.c b/hw/net/lan9118.c
index 2315f99..a48c32d 100644
--- a/hw/net/lan9118.c
+++ b/hw/net/lan9118.c
@@ -1030,6 +1030,8 @@ static void lan9118_writel(void *opaque, hwaddr offset,
         s->int_en = val & ~RESERVED_INT;
         s->int_sts |= val & SW_INT;
         break;
+    case CSR_BYTE_TEST:
+        break;
     case CSR_FIFO_INT:
         DPRINTF("FIFO INT levels %08x\n", val);
         s->fifo_int = val;

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 arch/arm/configs/vexpress_ca9_defconfig | 2 +-
 arch/arm/configs/vexpress_defconfig     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/configs/vexpress_ca9_defconfig b/arch/arm/configs/vexpress_ca9_defconfig
index f16a8ca..e8cf703 100644
--- a/arch/arm/configs/vexpress_ca9_defconfig
+++ b/arch/arm/configs/vexpress_ca9_defconfig
@@ -50,7 +50,7 @@ CONFIG_NET_PING=y
 CONFIG_NET_NETCONSOLE=y
 CONFIG_NET_RESOLV=y
 CONFIG_SERIAL_AMBA_PL011=y
-CONFIG_DRIVER_NET_SMC91111=y
+CONFIG_DRIVER_NET_SMC911X=y
 # CONFIG_SPI is not set
 CONFIG_DRIVER_CFI=y
 # CONFIG_DRIVER_CFI_AMD is not set
diff --git a/arch/arm/configs/vexpress_defconfig b/arch/arm/configs/vexpress_defconfig
index e166078..dafaf18 100644
--- a/arch/arm/configs/vexpress_defconfig
+++ b/arch/arm/configs/vexpress_defconfig
@@ -49,7 +49,7 @@ CONFIG_NET_PING=y
 CONFIG_NET_NETCONSOLE=y
 CONFIG_NET_RESOLV=y
 CONFIG_SERIAL_AMBA_PL011=y
-CONFIG_DRIVER_NET_SMC91111=y
+CONFIG_DRIVER_NET_SMC911X=y
 # CONFIG_SPI is not set
 CONFIG_DRIVER_CFI=y
 # CONFIG_DRIVER_CFI_AMD is not set
-- 
1.8.4.3




More information about the barebox mailing list