diff options
author | Sukumar Ghorai <s-ghorai@ti.com> | 2011-01-28 05:12:08 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-02-17 18:32:54 -0500 |
commit | f3d73f362d689a1d044e77964864f0a8ea0217f3 (patch) | |
tree | 78952365f2a575234fe8cfa0bdf04e268080cd1a /arch/arm/mach-omap2/board-flash.c | |
parent | 317379a975c07fe63bc4f86dabd668df96ff3df2 (diff) |
omap3: nand: ecc layout select from board file
This patch makes it possible to select sw or hw (different layout options)
ecc scheme supported by omap nand driver.
Signed-off-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-flash.c')
-rw-r--r-- | arch/arm/mach-omap2/board-flash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-flash.c b/arch/arm/mach-omap2/board-flash.c index 19645095d597..a76819812019 100644 --- a/arch/arm/mach-omap2/board-flash.c +++ b/arch/arm/mach-omap2/board-flash.c | |||
@@ -148,6 +148,7 @@ __init board_nand_init(struct mtd_partition *nand_parts, | |||
148 | board_nand_data.nr_parts = nr_parts; | 148 | board_nand_data.nr_parts = nr_parts; |
149 | board_nand_data.devsize = nand_type; | 149 | board_nand_data.devsize = nand_type; |
150 | 150 | ||
151 | board_nand_data.ecc_opt = OMAP_ECC_HAMMING_CODE_DEFAULT; | ||
151 | board_nand_data.gpmc_irq = OMAP_GPMC_IRQ_BASE + cs; | 152 | board_nand_data.gpmc_irq = OMAP_GPMC_IRQ_BASE + cs; |
152 | gpmc_nand_init(&board_nand_data); | 153 | gpmc_nand_init(&board_nand_data); |
153 | } | 154 | } |