diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-09-21 22:46:44 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-10-22 04:02:02 -0400 |
commit | 5cc1c567c1106c22cee3b069c440da3f85f637f0 (patch) | |
tree | 4fa7b931f10b24372389a822fc8bdce6b216469a /arch/blackfin | |
parent | 46284cd6bfc99a38165c41651477ec6497aa38ec (diff) |
Blackfin: bf526-ezbrd/bf527-ezkit: add NAND partition for u-boot
Since these boards can boot out of NAND, make sure we give u-boot its
own partition by default to avoid clobbering it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezbrd.c | 6 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezbrd.c b/arch/blackfin/mach-bf527/boards/ezbrd.c index c975fe88eba3..6cc64a1e78b9 100644 --- a/arch/blackfin/mach-bf527/boards/ezbrd.c +++ b/arch/blackfin/mach-bf527/boards/ezbrd.c | |||
@@ -137,8 +137,12 @@ static struct platform_device ezbrd_flash_device = { | |||
137 | #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) | 137 | #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) |
138 | static struct mtd_partition partition_info[] = { | 138 | static struct mtd_partition partition_info[] = { |
139 | { | 139 | { |
140 | .name = "linux kernel(nand)", | 140 | .name = "bootloader(nand)", |
141 | .offset = 0, | 141 | .offset = 0, |
142 | .size = 0x40000, | ||
143 | }, { | ||
144 | .name = "linux kernel(nand)", | ||
145 | .offset = MTDPART_OFS_APPEND, | ||
142 | .size = 4 * 1024 * 1024, | 146 | .size = 4 * 1024 * 1024, |
143 | }, | 147 | }, |
144 | { | 148 | { |
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index b9eac01d35ff..07c132dc4125 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -222,8 +222,12 @@ static struct platform_device ezkit_flash_device = { | |||
222 | #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) | 222 | #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) |
223 | static struct mtd_partition partition_info[] = { | 223 | static struct mtd_partition partition_info[] = { |
224 | { | 224 | { |
225 | .name = "linux kernel(nand)", | 225 | .name = "bootloader(nand)", |
226 | .offset = 0, | 226 | .offset = 0, |
227 | .size = 0x40000, | ||
228 | }, { | ||
229 | .name = "linux kernel(nand)", | ||
230 | .offset = MTDPART_OFS_APPEND, | ||
227 | .size = 4 * 1024 * 1024, | 231 | .size = 4 * 1024 * 1024, |
228 | }, | 232 | }, |
229 | { | 233 | { |