/* Enable HW ECC : unused on most chips  */
static void atmel_nand_hwctl(struct mtd_info *mtd, int mode)
/* Enable HW ECC : unused on most chips  */
static void atmel_nand_hwctl(struct mtd_info *mtd, int mode)
{
	if (cpu_is_at32ap7000()) {
		struct nand_chip *nand_chip = mtd->priv;
		struct atmel_nand_host *host = nand_chip->priv;
		ecc_writel(host->ecc, CR, ATMEL_ECC_RST);
	}
}