#
# drivers/mtd/nand/hinfc504/Kconfig
# add by caizhiyong 2010.11.04
#

menuconfig MTD_NAND_HINFC504
	tristate "Hisilicon NAND Controller v504 device Support"
	depends on MTD_NAND
	default y if (ARCH_HI3535)
	select YAFFS_FS
	select MISC_FILESYSTEMS
	select MTD_BLOCK
	select YAFFS_YAFFS2
	help
	  Hisilicon NAND Controller v504 device Support

if MTD_NAND_HINFC504

config HINFC504_REG_BASE_ADDRESS
	hex "nand controller's register base address"
	default 0x10000000 if (ARCH_HI3535)
	help
	  register base address of nand controller

config HINFC504_BUFFER_BASE_ADDRESS
	hex "nand controller's buffer base address"
	default 0x50000000 if (ARCH_HI3535)
	help
	  buffer base address of nand controller

config HINFC504_PERIPHERY_REGBASE
	hex "nand controller's peripher base address"
	default 0x20030000 if (ARCH_HI3535)
	help
	  peripher base address of nand controller,for clk setting

config HINFC504_MAX_CHIP
	int "number of nand flash chip (1,4)"
	default 1
	help
	  nand controller v504 device only support 1 or 2 nand flash chip,
	  your should not config other value.

config HINFC504_DBG_NAND_PROC_FILE
	bool "Debug: create /proc/nand_logs file"
	help
	  Create /proc/nand_logs file for debug.

config HINFC504_DBG_NAND_PE_PROC_FILE
	bool "Debug: create /proc/nand_erase file"
	help
	  Create /proc/nand_erase file record nand erase times for every block.

config HINFC504_DBG_NAND_EC_NOTICE
	bool "Debug: notice uncorrectable error"
	help
	  Notice nand uncorrectable error

choice
	prompt "Pagesize and Ecc Type Select"

config HINFC504_HARDWARE_PAGESIZE_ECC
	bool "Hardware"
	help
	  pagesize and ecc type use hardware config

config HINFC504_AUTO_PAGESIZE_ECC
	bool "Auto"
	help
	  pagesize and ecc type use hardware config

config HINFC504_PAGESIZE_AUTO_ECC_NONE
	bool "Pagesize Auto, Ecc None"
	help
	  select pagesize 2K, ecc none.

endchoice

endif # MTD_NAND_HINFC504
