
Hi,
From: Abraham V. [abraham.varricatt@vvdntech.com]
Pekon Gupta pekon@ti.com wrote: OMAP NAND drivers support various ecc-schemes like (HAM1, BCH4, BCH8..) And, each ecc-scheme usually has 2 implementations
- HAM1_HW or BCHx_HW (using in-build h/w engine for all computation)
- HAM1_SW or BCHx_HW_DETECTION_SW) (using software library for some computation)
If I make similar changes as these patches suggest, would I be able to enable NAND support for OMAP4-based boards as well? (OMAP 4460) Or are some additional changes needed to support NAND on the next OMAP version?
drivers/mtd/nand/omap-gpmc.c is common driver for all OMAP and AMxxxx platforms like AM33xx, OMAP3, OMAP4, OMAP5. So these patches would work with OMAP4 also. You need to just enable GPMC and ELM drivers for OMAP4 board. And update your board file. - #define CONFIG_NAND_OMAP_GPMC: enables GPMC driver - #define CONFIG_NAND_OMAP_ELM: enables ELM driver As there is no OMAP4 board with NAND flash on it, so these driver are not enabled by default.
Following steps should help you proceed... Step-1: As reference copy whatever is under 'CONFIG_NAND' in include/configs/am335x_evm.h include/configs/<your_board.h> Step-2: update CONFIG_xx_NAND_yy for device on your board Step-3: add pin-mux for NAND. Step-4: update arch/arm/cpu/armv7/omap-common/mem-common.c (if required)
with regards, pekon