diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2013-11-16 13:36:22 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-11-25 18:38:09 -0500 |
commit | 218077a3c03d8c136691a0020424633525fcdc85 (patch) | |
tree | b9a6da0db5120a69a4850c5dc49b65493c55be51 /arch/arm/mach-omap2 | |
parent | b05ef2159dd373034332151ff7341d0231fae799 (diff) |
ARM: OMAP2+: dts: add n8x0 onenand
Convert onenand to DT on n8x0 boards.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/board-n8x0.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index d596571d7750..aead77a4bc6d 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -162,49 +162,6 @@ static struct spi_board_info n800_spi_board_info[] __initdata = { | |||
162 | }, | 162 | }, |
163 | }; | 163 | }; |
164 | 164 | ||
165 | #if defined(CONFIG_MTD_ONENAND_OMAP2) || \ | ||
166 | defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) | ||
167 | |||
168 | static struct mtd_partition onenand_partitions[] = { | ||
169 | { | ||
170 | .name = "bootloader", | ||
171 | .offset = 0, | ||
172 | .size = 0x20000, | ||
173 | .mask_flags = MTD_WRITEABLE, /* Force read-only */ | ||
174 | }, | ||
175 | { | ||
176 | .name = "config", | ||
177 | .offset = MTDPART_OFS_APPEND, | ||
178 | .size = 0x60000, | ||
179 | }, | ||
180 | { | ||
181 | .name = "kernel", | ||
182 | .offset = MTDPART_OFS_APPEND, | ||
183 | .size = 0x200000, | ||
184 | }, | ||
185 | { | ||
186 | .name = "initfs", | ||
187 | .offset = MTDPART_OFS_APPEND, | ||
188 | .size = 0x400000, | ||
189 | }, | ||
190 | { | ||
191 | .name = "rootfs", | ||
192 | .offset = MTDPART_OFS_APPEND, | ||
193 | .size = MTDPART_SIZ_FULL, | ||
194 | }, | ||
195 | }; | ||
196 | |||
197 | static struct omap_onenand_platform_data board_onenand_data[] = { | ||
198 | { | ||
199 | .cs = 0, | ||
200 | .gpio_irq = 26, | ||
201 | .parts = onenand_partitions, | ||
202 | .nr_parts = ARRAY_SIZE(onenand_partitions), | ||
203 | .flags = ONENAND_SYNC_READ, | ||
204 | } | ||
205 | }; | ||
206 | #endif | ||
207 | |||
208 | #if defined(CONFIG_MENELAUS) && \ | 165 | #if defined(CONFIG_MENELAUS) && \ |
209 | (defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)) | 166 | (defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)) |
210 | 167 | ||
@@ -639,7 +596,6 @@ static int __init n8x0_late_initcall(void) | |||
639 | if (!board_caps) | 596 | if (!board_caps) |
640 | return -ENODEV; | 597 | return -ENODEV; |
641 | 598 | ||
642 | gpmc_onenand_init(board_onenand_data); | ||
643 | n8x0_mmc_init(); | 599 | n8x0_mmc_init(); |
644 | n8x0_usb_init(); | 600 | n8x0_usb_init(); |
645 | 601 | ||