Commit d3be1bcae7a8207e0a79ffd035d0e90f80378295
Committed by
Jean-Christophe PLAGNIOL-VILLARD
1 parent
0d8c6eab24
Exists in
master
and in
54 other branches
Enable Ethernet for Nomadik 8815 Evaluation Kit
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>
Showing 2 changed files with 7 additions and 1 deletions Side-by-side Diff
board/st/nmdk8815/nmdk8815.c
... | ... | @@ -49,8 +49,11 @@ |
49 | 49 | writel(0x00000000, NOMADIK_GPIO1_BASE + 0x28); |
50 | 50 | writel(readl(NOMADIK_SRC_BASE) | 0x8000, NOMADIK_SRC_BASE); |
51 | 51 | |
52 | - icache_enable(); | |
52 | + /* Set up SMCS1 for Ethernet: sram-like, enabled, timing values */ | |
53 | + writel(0x0000305b, REG_FSMC_BCR1); | |
54 | + writel(0x00033f33, REG_FSMC_BTR1); | |
53 | 55 | |
56 | + icache_enable(); | |
54 | 57 | return 0; |
55 | 58 | } |
56 | 59 |
include/configs/nmdk8815.h
... | ... | @@ -37,8 +37,11 @@ |
37 | 37 | |
38 | 38 | /* commands */ |
39 | 39 | #include <config_cmd_default.h> |
40 | + | |
41 | +#define CONFIG_CMD_NET | |
40 | 42 | #define CONFIG_CMD_PING |
41 | 43 | #define CONFIG_CMD_DHCP |
44 | +#define CONFIG_CMD_NFS | |
42 | 45 | /* There is no NOR flash, so undefine these commands */ |
43 | 46 | #undef CONFIG_CMD_FLASH |
44 | 47 | #undef CONFIG_CMD_IMLS |