From eec1788e7c8b1b90070c7727dc69c9bfb69e6ddd Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Fri, 21 Jan 2011 13:45:09 +0900 Subject: [PATCH] s5pc210: slp7: add initial setting macro Signed-off-by: Jaehoon Chung --- board/samsung/slp7_c210/slp7.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/samsung/slp7_c210/slp7.c b/board/samsung/slp7_c210/slp7.c index 794fb8a..7c35c19 100644 --- a/board/samsung/slp7_c210/slp7.c +++ b/board/samsung/slp7_c210/slp7.c @@ -189,6 +189,12 @@ static void check_auto_burn(void) unsigned int count = 0; char buf[64]; + /* Initial Setting */ + if (readl(magic_base) == 0x534E5344) { /* ASICC: SNSD */ + puts("Auto buring intiail Setting (boot image)\n"); + count += sprintf(buf + count, "run setupboot; "); + goto done; + } /* OneNAND */ if (readl(magic_base) == 0x426f6f74) { /* ASICC: Boot */ puts("Auto buring bootloader\n"); @@ -209,6 +215,7 @@ static void check_auto_burn(void) count += sprintf(buf + count, "run updatebackup; "); } +done: if (count) { count += sprintf(buf + count, "reset"); setenv("bootcmd", buf); -- 2.7.4