diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-07 12:11:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-07 12:11:16 -0500 |
commit | e0d65113a70f1dc514e625cc4e7a7485a4bf72df (patch) | |
tree | 7320a130dc304623f5cf4b5dd8f67fb1776225ca /arch/arm/mach-ep93xx | |
parent | cf5e15fbd72c13977720aa15b7b7e00e1d8fd8f2 (diff) | |
parent | 48e546b7f281f251893baa40769581fd15f085fb (diff) |
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6: (226 commits)
mtd: tests: annotate as DANGEROUS in Kconfig
mtd: tests: don't use mtd0 as a default
mtd: clean up usage of MTD_DOCPROBE_ADDRESS
jffs2: add compr=lzo and compr=zlib options
jffs2: implement mount option parsing and compression overriding
mtd: nand: initialize ops.mode
mtd: provide an alias for the redboot module name
mtd: m25p80: don't probe device which has status of 'disabled'
mtd: nand_h1900 never worked
mtd: Add DiskOnChip G3 support
mtd: m25p80: add EON flash EN25Q32B into spi flash id table
mtd: mark block device queue as non-rotational
mtd: r852: make r852_pm_ops static
mtd: m25p80: add support for at25df321a spi data flash
mtd: mxc_nand: preset_v1_v2: unlock all NAND flash blocks
mtd: nand: switch `check_pattern()' to standard `memcmp()'
mtd: nand: invalidate cache on unaligned reads
mtd: nand: do not scan bad blocks with NAND_BBT_NO_OOB set
mtd: nand: wait to set BBT version
mtd: nand: scrub BBT on ECC errors
...
Fix up trivial conflicts:
- arch/arm/mach-at91/board-usb-a9260.c
Merged into board-usb-a926x.c
- drivers/mtd/maps/lantiq-flash.c
add_mtd_partitions -> mtd_device_register vs changed to use
mtd_device_parse_register.
Diffstat (limited to 'arch/arm/mach-ep93xx')
-rw-r--r-- | arch/arm/mach-ep93xx/ts72xx.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c index 1ade3c340507..8b2f1435bcac 100644 --- a/arch/arm/mach-ep93xx/ts72xx.c +++ b/arch/arm/mach-ep93xx/ts72xx.c | |||
@@ -116,8 +116,9 @@ static struct mtd_partition ts72xx_nand_parts[] = { | |||
116 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | 116 | .mask_flags = MTD_WRITEABLE, /* force read-only */ |
117 | }, { | 117 | }, { |
118 | .name = "Linux", | 118 | .name = "Linux", |
119 | .offset = MTDPART_OFS_APPEND, | 119 | .offset = MTDPART_OFS_RETAIN, |
120 | .size = 0, /* filled in later */ | 120 | .size = TS72XX_REDBOOT_PART_SIZE, |
121 | /* leave so much for last partition */ | ||
121 | }, { | 122 | }, { |
122 | .name = "RedBoot", | 123 | .name = "RedBoot", |
123 | .offset = MTDPART_OFS_APPEND, | 124 | .offset = MTDPART_OFS_APPEND, |
@@ -126,28 +127,14 @@ static struct mtd_partition ts72xx_nand_parts[] = { | |||
126 | }, | 127 | }, |
127 | }; | 128 | }; |
128 | 129 | ||
129 | static void ts72xx_nand_set_parts(uint64_t size, | ||
130 | struct platform_nand_chip *chip) | ||
131 | { | ||
132 | /* Factory TS-72xx boards only come with 32MiB or 128MiB NAND options */ | ||
133 | if (size == SZ_32M || size == SZ_128M) { | ||
134 | /* Set the "Linux" partition size */ | ||
135 | ts72xx_nand_parts[1].size = size - TS72XX_REDBOOT_PART_SIZE; | ||
136 | |||
137 | chip->partitions = ts72xx_nand_parts; | ||
138 | chip->nr_partitions = ARRAY_SIZE(ts72xx_nand_parts); | ||
139 | } else { | ||
140 | pr_warning("Unknown nand disk size:%lluMiB\n", size >> 20); | ||
141 | } | ||
142 | } | ||
143 | |||
144 | static struct platform_nand_data ts72xx_nand_data = { | 130 | static struct platform_nand_data ts72xx_nand_data = { |
145 | .chip = { | 131 | .chip = { |
146 | .nr_chips = 1, | 132 | .nr_chips = 1, |
147 | .chip_offset = 0, | 133 | .chip_offset = 0, |
148 | .chip_delay = 15, | 134 | .chip_delay = 15, |
149 | .part_probe_types = ts72xx_nand_part_probes, | 135 | .part_probe_types = ts72xx_nand_part_probes, |
150 | .set_parts = ts72xx_nand_set_parts, | 136 | .partitions = ts72xx_nand_parts, |
137 | .nr_partitions = ARRAY_SIZE(ts72xx_nand_parts), | ||
151 | }, | 138 | }, |
152 | .ctrl = { | 139 | .ctrl = { |
153 | .cmd_ctrl = ts72xx_nand_hwcontrol, | 140 | .cmd_ctrl = ts72xx_nand_hwcontrol, |