Index: linux-2.6.17.14-fic4.test/drivers/mtd/nand/s3c2410.c =================================================================== --- linux-2.6.17.14-fic4.test.orig/drivers/mtd/nand/s3c2410.c 2007-02-02 13:02:10.000000000 +0100 +++ linux-2.6.17.14-fic4.test/drivers/mtd/nand/s3c2410.c 2007-02-02 13:03:52.000000000 +0100 @@ -524,7 +524,11 @@ chip->select_chip = s3c2410_nand_select_chip; chip->chip_delay = 50; chip->priv = nmtd; +#ifdef CONFIG_MTD_NAND_S3C2410_BBT + chip->options = NAND_USE_FLASH_BBT; +#else chip->options = 0; +#endif chip->controller = &info->controller; if (info->is_s3c2440) { Index: linux-2.6.17.14-fic4.test/drivers/mtd/nand/Kconfig =================================================================== --- linux-2.6.17.14-fic4.test.orig/drivers/mtd/nand/Kconfig 2007-02-02 13:03:56.000000000 +0100 +++ linux-2.6.17.14-fic4.test/drivers/mtd/nand/Kconfig 2007-02-02 13:04:47.000000000 +0100 @@ -90,6 +90,12 @@ No board specfic support is done by this driver, each board must advertise a platform_device for the driver to attach. +config MTD_NAND_S3C2410_BBT + bool "S3C2410 NAND bad block table" + depends on MTD_NAND_S3C2410 + help + Enable bad block table support for S3C2410 NAND driver + config MTD_NAND_S3C2410_DEBUG bool "S3C2410 NAND driver debug" depends on MTD_NAND_S3C2410