aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInderpal Singh <inderpal.singh@linaro.org>2012-12-18 15:11:44 +0530
committerTushar Behera <tushar.behera@linaro.org>2013-02-05 10:39:11 +0530
commit9eb4a7766b57a7d26772787b40c2738c3d335dd4 (patch)
treee54c006ae1cf43321021afd75cfe171d28b97d57
parent3d28a181aab5edeb24a8c5ffe3a4162f7462aa2b (diff)
downloadu-boot-linaro-stable-9eb4a7766b57a7d26772787b40c2738c3d335dd4.tar.gz
EXYNOS5: ARNDALE: Implement board_late_init to set preboot and eth h/w address
preboot is used to start usb so that ethernet device could be found automatically. Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
-rw-r--r--board/samsung/smdk5250/smdk5250.c10
-rw-r--r--include/configs/arndale5250.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c
index 76687e505..698bc70fb 100644
--- a/board/samsung/smdk5250/smdk5250.c
+++ b/board/samsung/smdk5250/smdk5250.c
@@ -202,6 +202,16 @@ static int board_i2c_init(void)
}
#endif
+#ifdef CONFIG_BOARD_LATE_INIT
+int board_late_init(void)
+{
+#ifdef CONFIG_PREBOOT
+ setenv("preboot", CONFIG_PREBOOT);
+ setenv("usbethaddr", "00:40:5c:26:0a:5b");
+#endif
+}
+#endif
+
#ifdef CONFIG_BOARD_EARLY_INIT_F
int board_early_init_f(void)
{
diff --git a/include/configs/arndale5250.h b/include/configs/arndale5250.h
index 05b879759..4f43bac56 100644
--- a/include/configs/arndale5250.h
+++ b/include/configs/arndale5250.h
@@ -36,6 +36,7 @@
#define CONFIG_ARCH_CPU_INIT
#define CONFIG_DISPLAY_CPUINFO
#define CONFIG_DISPLAY_BOARDINFO
+#define CONFIG_BOARD_LATE_INIT
/* Keep L2 Cache Disabled */
#define CONFIG_SYS_DCACHE_OFF
@@ -111,6 +112,7 @@
#define CONFIG_USB_EHCI_EXYNOS
#define CONFIG_USB_STORAGE
#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3
+#define CONFIG_PREBOOT "usb start"
/* SYSFLAGS register */
#define CONFIG_SYSFLAGS_ADDR 0x02020000