/* omap_hwecc_init - Initialize the Hardware ECC for NAND flash in GPMC controller @mtd: MTD device structure  */
static void omap_hwecc_init(struct nand_chip *chip)
/* omap_hwecc_init - Initialize the Hardware ECC for NAND flash in GPMC controller @mtd: MTD device structure  */
static void omap_hwecc_init(struct nand_chip *chip)
{
	writel(ECCCLEAR | ECCRESULTREG1, &gpmc_cfg->ecc_control);
	writel(ECCSIZE1 | ECCSIZE0 | ECCSIZE0SEL, &gpmc_cfg->ecc_size_config);
}