aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf537
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2008-02-24 22:38:11 -0500
committerBryan Wu <cooloney@kernel.org>2008-02-24 22:38:11 -0500
commitedf056417d11fe9321ec15a55bd128e4f4c73796 (patch)
tree295617d3f4f86843b845d46981316606e478f956 /arch/blackfin/mach-bf537
parent32320ea0a63003a249773b5e3e459e66bb5fb8f8 (diff)
[Blackfin] arch: fix bug - set right partition size in the board files
- set default u-boot partition size to 256k - modify the offset with the size change - use mtd defines (append for offset and full for size) where applicable rather than churning constants when we dont have to Signed-off-by: Grace Pan <grace.pan@analog.com> Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 9e2277e0d25c..9c6fa70c4064 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -343,7 +343,7 @@ static struct platform_device net2272_bfin_device = {
343static struct mtd_partition stamp_partitions[] = { 343static struct mtd_partition stamp_partitions[] = {
344 { 344 {
345 .name = "Bootloader", 345 .name = "Bootloader",
346 .size = 0x20000, 346 .size = 0x40000,
347 .offset = 0, 347 .offset = 0,
348 }, { 348 }, {
349 .name = "Kernel", 349 .name = "Kernel",
@@ -351,7 +351,7 @@ static struct mtd_partition stamp_partitions[] = {
351 .offset = MTDPART_OFS_APPEND, 351 .offset = MTDPART_OFS_APPEND,
352 }, { 352 }, {
353 .name = "RootFS", 353 .name = "RootFS",
354 .size = 0x400000 - 0x20000 - 0xE0000 - 0x10000, 354 .size = 0x400000 - 0x40000 - 0xE0000 - 0x10000,
355 .offset = MTDPART_OFS_APPEND, 355 .offset = MTDPART_OFS_APPEND,
356 }, { 356 }, {
357 .name = "MAC Address", 357 .name = "MAC Address",
@@ -391,17 +391,17 @@ static struct platform_device stamp_flash_device = {
391static struct mtd_partition bfin_spi_flash_partitions[] = { 391static struct mtd_partition bfin_spi_flash_partitions[] = {
392 { 392 {
393 .name = "bootloader", 393 .name = "bootloader",
394 .size = 0x00020000, 394 .size = 0x00040000,
395 .offset = 0, 395 .offset = 0,
396 .mask_flags = MTD_CAP_ROM 396 .mask_flags = MTD_CAP_ROM
397 }, { 397 }, {
398 .name = "kernel", 398 .name = "kernel",
399 .size = 0xe0000, 399 .size = 0xe0000,
400 .offset = 0x20000 400 .offset = MTDPART_OFS_APPEND,
401 }, { 401 }, {
402 .name = "file system", 402 .name = "file system",
403 .size = 0x700000, 403 .size = MTDPART_SIZ_FULL,
404 .offset = 0x00100000, 404 .offset = MTDPART_OFS_APPEND,
405 } 405 }
406}; 406};
407 407