diff options
author | Gary King <gking@nvidia.com> | 2010-06-28 15:01:43 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2012-03-21 22:10:45 -0700 |
commit | a0aa587454e93a0fa46144b0c2c6366e4df31960 (patch) | |
tree | 5543b87a64fb78d24c5e03321f6fd98d57a2ee1d /arch/arm/mach-tegra/board-harmony.c | |
parent | 676a25ba5ff57f40f55dd089389094b4a4c3b474 (diff) |
[ARM] tegra: harmony: remove hard-coded partition table
use the partition information provided on the kernel command line rather
than a fixed table that is subject to change.
Change-Id: I650f634bf49b8658debb75535e94f2a497ef3432
Signed-off-by: Gary King <gking@nvidia.com>
Rebase-Id: R9879ce568dabd1ec64cd685c7fa41c8ffc9d62a2
Diffstat (limited to 'arch/arm/mach-tegra/board-harmony.c')
-rw-r--r-- | arch/arm/mach-tegra/board-harmony.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/arch/arm/mach-tegra/board-harmony.c b/arch/arm/mach-tegra/board-harmony.c index ce827a9e8e64..69fc7efc45f0 100644 --- a/arch/arm/mach-tegra/board-harmony.c +++ b/arch/arm/mach-tegra/board-harmony.c @@ -113,61 +113,10 @@ static struct tegra_nand_chip_parms nand_chip_parms[] = { }, }; -/* Current layout is: - * - * BCT @ 0 (0x300000) -- boot config table - * PT @ 0x300000 (0x1000) -- partition table - * EBT @ 0x301000 (0x100000) -- bootloader - * BMP @ 0x401000 (0x148c) -- rgb565 bitmap - * WAV @ 0x40248c (0x2a000) -- wav audio clip - * ARG @ 0x42c48c (0x800) -- ?? - * DRM @ 0x42cc8c (0x19000) -- bleh? - * UIP @ 0x445c8c (0x800) -- update information partition - * USP @ 0x44648c (0x600000) -- update staging partition - * USR @ 0xa4648c (THE REST) -- <available> - * - * What we will do is we will actually just skip the first 16MB, and just - * mark it as vendor, and then layout our partitions. - * - * so: - * - * - */ -static struct mtd_partition harmony_nand_partitions[] = { - [0] = { - .name = "recovery", - .offset = 0x1b80*0x800, - .size = 0xa00*0x800, - .mask_flags = MTD_WRITEABLE, /* r/o */ - }, - [1] = { - .name = "boot", - .offset = 0x2680*0x800, - .size = 0x1000*0x800, - }, - [2] = { - .name = "system", - .offset = 0x3780*0x800, - .size = 0xef40*0x800, - }, - [3] = { - .name = "cache", - .offset = 0x127c0*0x800, - .size = 0x4000*0x800, - }, - [4] = { - .name = "userdata", - .offset = 0x168c0*0x800, - .size = 0x29640*0x800, - }, -}; - struct tegra_nand_platform harmony_nand_data = { .max_chips = 8, .chip_parms = nand_chip_parms, .nr_chip_parms = ARRAY_SIZE(nand_chip_parms), - .parts = harmony_nand_partitions, - .nr_parts = ARRAY_SIZE(harmony_nand_partitions), }; static struct resource resources_nand[] = { |