vexpress64: juno: support SMC9118 ethernet
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Feb 2015 10:35:25 +0000 (11:35 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 6 Mar 2015 01:49:42 +0000 (20:49 -0500)
This configures the Juno board to enable ethernet using the
SMSC9118 ethernet controller found in the board. Tested by
TFTP-booting a kernel over ethernet.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
board/armltd/vexpress64/vexpress64.c
include/configs/vexpress_aemv8a.h

index 58973185ecdae7951ed324dd49fdb27ad76a781d..20db81222e796b80ca2d988b377457807b05ced1 100644 (file)
@@ -142,6 +142,9 @@ int board_eth_init(bd_t *bis)
        int rc = 0;
 #ifdef CONFIG_SMC91111
        rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
+#endif
+#ifdef CONFIG_SMC911X
+       rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
 #endif
        return rc;
 }
index 7fb28a54ba175f5bba12a4c7e6a20ea304202577..cfe3f2f7aff3684b7fdbd8fa44ce8f3ebacd5425 100644 (file)
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + (8 << 20))
 
-/* SMSC91C111 Ethernet Configuration */
+/* Ethernet Configuration */
+#ifdef CONFIG_TARGET_VEXPRESS64_JUNO
+/* The real hardware Versatile express uses SMSC9118 */
+#define CONFIG_SMC911X                 1
+#define CONFIG_SMC911X_32_BIT          1
+#define CONFIG_SMC911X_BASE            (0x018000000)
+#else
+/* The Vexpress64 simulators use SMSC91C111 */
 #define CONFIG_SMC91111                        1
 #define CONFIG_SMC91111_BASE           (0x01A000000)
+#endif
 
 /* PL011 Serial Configuration */
 #define CONFIG_PL011_SERIAL
                                        "fdt_addr_r=0x83000000\0"               \
                                        "fdt_high=0xa0000000\0"
 
-#define CONFIG_BOOTARGS                        "console=ttyAMA0 root=/dev/ram0"
+#define CONFIG_BOOTARGS                        "console=ttyAMA0,115200n8 root=/dev/ram0"
 #define CONFIG_BOOTCOMMAND             "bootm $kernel_addr_r " \
                                        "$initrd_addr_r:$initrd_size $fdt_addr_r"
 #define CONFIG_BOOTDELAY               -1