summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Rubini <rubini@gnudd.com>2011-02-14 15:42:29 -0700
committerMathieu J. Poirier <mathieu.poirier@linaro.org>2011-02-14 15:42:29 -0700
commit300bc9027d83330065153eccbf2364fd27eccd27 (patch)
treeb5189e56302780626220fe1e939eebf574e5e16b
parent95bc71442a8024ef4024ab7e0a240359bb00c7d1 (diff)
Adding GPIO config for LAN controller along with FSMC init.
-rw-r--r--board/st/u8500/u8500.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/board/st/u8500/u8500.c b/board/st/u8500/u8500.c
index 0e0aec11a..ec8bd2e85 100644
--- a/board/st/u8500/u8500.c
+++ b/board/st/u8500/u8500.c
@@ -149,6 +149,19 @@ pin_cfg_t gpio_cfg_snowball[] = {
/* eMMC */
GPIO167_GPIO | PIN_OUTPUT_HIGH, /* RSTn_MLC */
+
+ /* LAN */
+ GPIO131_SM_ADQ8,
+ GPIO132_SM_ADQ9,
+ GPIO133_SM_ADQ10,
+ GPIO134_SM_ADQ11,
+ GPIO135_SM_ADQ12,
+ GPIO136_SM_ADQ13,
+ GPIO137_SM_ADQ14,
+ GPIO138_SM_ADQ15,
+
+ /* RSTn_LAN */
+ GPIO141_GPIO | PIN_OUTPUT_HIGH,
};
#define BOARD_ID_MOP500 0
@@ -566,6 +579,9 @@ int board_late_init(void)
printf("error at %s:%i\n", __func__, __LINE__);
goto out;
}
+
+ /* setup FSMC for LAN controler */
+ writel(0x305b, 0x80000000);
}
out: