Enable Ethernet for Nomadik 8815 Evaluation Kit
authorAlessandro Rubini <rubini@unipv.it>
Mon, 9 Feb 2009 14:53:33 +0000 (15:53 +0100)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 22 Feb 2009 12:40:31 +0000 (13:40 +0100)
This trivially enables Ethernet support in the debug board
by setting up the proper chip select.

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stnwireless.com>
board/st/nmdk8815/nmdk8815.c
include/configs/nmdk8815.h

index c54eac12c7ef1bed4e538300ffc92e307ac7ff79..edf46262f5d7c3ba564199466c1931ab73c61494 100644 (file)
@@ -49,8 +49,11 @@ int board_init(void)
        writel(0x00000000, NOMADIK_GPIO1_BASE + 0x28);
        writel(readl(NOMADIK_SRC_BASE) | 0x8000, NOMADIK_SRC_BASE);
 
-       icache_enable();
+       /* Set up SMCS1 for Ethernet: sram-like, enabled, timing values */
+       writel(0x0000305b, REG_FSMC_BCR1);
+       writel(0x00033f33, REG_FSMC_BTR1);
 
+       icache_enable();
        return 0;
 }
 
index 0df989f325c75790897949a62eed9113a7d3afa1..b37352e0bcbb9398e35252cd60a013701376207a 100644 (file)
 
 /* commands */
 #include <config_cmd_default.h>
+
+#define CONFIG_CMD_NET
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_NFS
 /* There is no NOR flash, so undefine these commands */
 #undef CONFIG_CMD_FLASH
 #undef CONFIG_CMD_IMLS