diff options
| -rw-r--r-- | arch/arm/mach-omap2/Makefile | 1 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-zoom3.c | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 3e6b4d9954b6..f8d536fc244e 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
| @@ -135,6 +135,7 @@ obj-$(CONFIG_MACH_OMAP_ZOOM2) += board-zoom2.o \ | |||
| 135 | board-zoom-debugboard.o | 135 | board-zoom-debugboard.o |
| 136 | obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom3.o \ | 136 | obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom3.o \ |
| 137 | board-zoom-peripherals.o \ | 137 | board-zoom-peripherals.o \ |
| 138 | board-flash.o \ | ||
| 138 | hsmmc.o \ | 139 | hsmmc.o \ |
| 139 | board-zoom-debugboard.o | 140 | board-zoom-debugboard.o |
| 140 | obj-$(CONFIG_MACH_OMAP_3630SDP) += board-3630sdp.o \ | 141 | obj-$(CONFIG_MACH_OMAP_3630SDP) += board-3630sdp.o \ |
diff --git a/arch/arm/mach-omap2/board-zoom3.c b/arch/arm/mach-omap2/board-zoom3.c index 7d1704693acb..79fcad655677 100644 --- a/arch/arm/mach-omap2/board-zoom3.c +++ b/arch/arm/mach-omap2/board-zoom3.c | |||
| @@ -34,6 +34,47 @@ static void __init omap_zoom_map_io(void) | |||
| 34 | static struct omap_board_config_kernel zoom_config[] __initdata = { | 34 | static struct omap_board_config_kernel zoom_config[] __initdata = { |
| 35 | }; | 35 | }; |
| 36 | 36 | ||
| 37 | static struct mtd_partition zoom_nand_partitions[] = { | ||
| 38 | /* All the partition sizes are listed in terms of NAND block size */ | ||
| 39 | { | ||
| 40 | .name = "X-Loader-NAND", | ||
| 41 | .offset = 0, | ||
| 42 | .size = 4 * (64 * 2048), /* 512KB, 0x80000 */ | ||
| 43 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
| 44 | }, | ||
| 45 | { | ||
| 46 | .name = "U-Boot-NAND", | ||
| 47 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x80000 */ | ||
| 48 | .size = 10 * (64 * 2048), /* 1.25MB, 0x140000 */ | ||
| 49 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
| 50 | }, | ||
| 51 | { | ||
| 52 | .name = "Boot Env-NAND", | ||
| 53 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x1c0000 */ | ||
| 54 | .size = 2 * (64 * 2048), /* 256KB, 0x40000 */ | ||
| 55 | }, | ||
| 56 | { | ||
| 57 | .name = "Kernel-NAND", | ||
| 58 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x0200000*/ | ||
| 59 | .size = 240 * (64 * 2048), /* 30M, 0x1E00000 */ | ||
| 60 | }, | ||
| 61 | { | ||
| 62 | .name = "system", | ||
| 63 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x2000000 */ | ||
| 64 | .size = 3328 * (64 * 2048), /* 416M, 0x1A000000 */ | ||
| 65 | }, | ||
| 66 | { | ||
| 67 | .name = "userdata", | ||
| 68 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x1C000000*/ | ||
| 69 | .size = 256 * (64 * 2048), /* 32M, 0x2000000 */ | ||
| 70 | }, | ||
| 71 | { | ||
| 72 | .name = "cache", | ||
| 73 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x1E000000*/ | ||
| 74 | .size = 256 * (64 * 2048), /* 32M, 0x2000000 */ | ||
| 75 | }, | ||
| 76 | }; | ||
| 77 | |||
| 37 | static void __init omap_zoom_init_irq(void) | 78 | static void __init omap_zoom_init_irq(void) |
| 38 | { | 79 | { |
| 39 | omap_board_config = zoom_config; | 80 | omap_board_config = zoom_config; |
| @@ -79,6 +120,8 @@ static void __init omap_zoom_init(void) | |||
| 79 | { | 120 | { |
| 80 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBP); | 121 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBP); |
| 81 | zoom_peripherals_init(); | 122 | zoom_peripherals_init(); |
| 123 | board_nand_init(zoom_nand_partitions, | ||
| 124 | ARRAY_SIZE(zoom_nand_partitions), ZOOM_NAND_CS); | ||
| 82 | zoom_debugboard_init(); | 125 | zoom_debugboard_init(); |
| 83 | 126 | ||
| 84 | omap_mux_init_gpio(64, OMAP_PIN_OUTPUT); | 127 | omap_mux_init_gpio(64, OMAP_PIN_OUTPUT); |
