From f5843a3e56406f14d226060a51ca76a6ef230441 Mon Sep 17 00:00:00 2001 From: Kyungmin Park Date: Mon, 3 Aug 2009 11:41:43 +0900 Subject: [PATCH] s5pc110: universal: OneNAND command line partition support Signed-off-by: Kyungmin Park --- board/samsung/universal/universal.c | 1 + include/configs/s5pc100_universal.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index 949c730..bc09b02 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -120,6 +120,7 @@ static void check_hw_revision(void) setenv("meminfo", "mem=80M,128M@0x40000000"); setenv("mtdparts", MTDPARTS_DEFAULT_4KB); } else { + setenv("mtdids", "onenand0=samsung-onenand"); setenv("bootk", "onenand read 0x20007FC0 0x60000 0x300000; bootm 0x20007FC0"); setenv("updatek", "onenand erase 0x60000 0x300000; onenand write 0x21008000 0x60000 0x300000"); } diff --git a/include/configs/s5pc100_universal.h b/include/configs/s5pc100_universal.h index 5947d006..7556d9b 100644 --- a/include/configs/s5pc100_universal.h +++ b/include/configs/s5pc100_universal.h @@ -123,13 +123,13 @@ #define CONFIG_MTD_PARTITIONS /* Actual modem binary size is 16MiB. Add 2MiB for bad block handling */ -#define MTDIDS_DEFAULT "onenand0=samsung-onenand" +#define MTDIDS_DEFAULT "onenand0=onenand" #define MTDPARTS_DEFAULT "mtdparts=samsung-onenand:256k(bootloader)"\ ",128k@0x40000(params)"\ ",3m@0x60000(kernel)"\ ",18m@0x360000(modem)"\ ",-(UBI)" -#define MTDPARTS_DEFAULT_4KB "mtdparts=samsung-onenand:256k(bootloader)"\ +#define MTDPARTS_DEFAULT_4KB "mtdparts=onenand:256k(bootloader)"\ ",256k@0x40000(params)"\ ",3m@0x80000(kernel)"\ ",18m@0x380000(modem)"\ -- 2.7.4