Commit 9dbc0902 authored by Peter Korsgaard's avatar Peter Korsgaard Committed by David Woodhouse
Browse files

mtd/nand: s3c6400 support for s3c2410 driver



Add s3c6400 support to the s3c2410 driver. The nand controller in
the s3c64xx devices is compatible with the one in the s3c2412, so
simply reuse that code.

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
Acked-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent e635a01e
Loading
Loading
Loading
Loading
+9 −9
Original line number Original line Diff line number Diff line
@@ -145,27 +145,27 @@ config MTD_NAND_PPCHAMELEONEVB
	  This enables the NAND flash driver on the PPChameleon EVB Board.
	  This enables the NAND flash driver on the PPChameleon EVB Board.


config MTD_NAND_S3C2410
config MTD_NAND_S3C2410
	tristate "NAND Flash support for S3C2410/S3C2440 SoC"
	tristate "NAND Flash support for Samsung S3C SoCs"
	depends on ARCH_S3C2410
	depends on ARCH_S3C2410 || ARCH_S3C64XX
	help
	help
	  This enables the NAND flash controller on the S3C2410 and S3C2440
	  This enables the NAND flash controller on the S3C24xx and S3C64xx
	  SoCs
	  SoCs


	  No board specific support is done by this driver, each board
	  No board specific support is done by this driver, each board
	  must advertise a platform_device for the driver to attach.
	  must advertise a platform_device for the driver to attach.


config MTD_NAND_S3C2410_DEBUG
config MTD_NAND_S3C2410_DEBUG
	bool "S3C2410 NAND driver debug"
	bool "Samsung S3C NAND driver debug"
	depends on MTD_NAND_S3C2410
	depends on MTD_NAND_S3C2410
	help
	help
	  Enable debugging of the S3C2410 NAND driver
	  Enable debugging of the S3C NAND driver


config MTD_NAND_S3C2410_HWECC
config MTD_NAND_S3C2410_HWECC
	bool "S3C2410 NAND Hardware ECC"
	bool "Samsung S3C NAND Hardware ECC"
	depends on MTD_NAND_S3C2410
	depends on MTD_NAND_S3C2410
	help
	help
	  Enable the use of the S3C2410's internal ECC generator when
	  Enable the use of the controller's internal ECC generator when
	  using NAND. Early versions of the chip have had problems with
	  using NAND. Early versions of the chips have had problems with
	  incorrect ECC generation, and if using these, the default of
	  incorrect ECC generation, and if using these, the default of
	  software ECC is preferable.
	  software ECC is preferable.


@@ -177,7 +177,7 @@ config MTD_NAND_NDFC
	 NDFC Nand Flash Controllers are integrated in IBM/AMCC's 4xx SoCs
	 NDFC Nand Flash Controllers are integrated in IBM/AMCC's 4xx SoCs


config MTD_NAND_S3C2410_CLKSTOP
config MTD_NAND_S3C2410_CLKSTOP
	bool "S3C2410 NAND IDLE clock stop"
	bool "Samsung S3C NAND IDLE clock stop"
	depends on MTD_NAND_S3C2410
	depends on MTD_NAND_S3C2410
	default n
	default n
	help
	help
+3 −0
Original line number Original line Diff line number Diff line
@@ -1111,6 +1111,9 @@ static struct platform_device_id s3c24xx_driver_ids[] = {
	}, {
	}, {
		.name		= "s3c2412-nand",
		.name		= "s3c2412-nand",
		.driver_data	= TYPE_S3C2412,
		.driver_data	= TYPE_S3C2412,
	}, {
		.name		= "s3c6400-nand",
		.driver_data	= TYPE_S3C2412, /* compatible with 2412 */
	},
	},
	{ }
	{ }
};
};