/* The internal state is currently limited to the ECC state information.  */
static void s3c2410_nand_update_chip(struct s3c2410_nand_info *info, struct s3c2410_nand_mtd *nmtd)
/* The internal state is currently limited to the ECC state information.  */
static void s3c2410_nand_update_chip(struct s3c2410_nand_info *info, struct s3c2410_nand_mtd *nmtd)
{
	struct nand_chip *chip = &nmtd->chip;
	dev_dbg(info->device, "chip %p => page shift %d\n",
		chip, chip->page_shift);
	if (chip->ecc.mode != NAND_ECC_HW)
		return;
	if (chip->page_shift > 10) {
		chip->ecc.size	    = 256;
		chip->ecc.bytes	    = 3;
	} else {
		chip->ecc.size	    = 512;
		chip->ecc.bytes	    = 3;
		chip->ecc.layout    = &nand_hw_eccoob;
	}
}