# SPDX-License-Identifier: GPL-2.0
#
# add by caizhiyong 2010.11.04
#

menuconfig MTD_NAND_HINFC301
	tristate "Hisilicon NAND Controller v301 device Support"
	depends on MTD_NAND
	depends on (ARCH_SD511x)
	select MTD_BLOCK
	help
	  Hisilicon NAND Controller v301 device Support

if MTD_NAND_HINFC301

config HINFC301_REG_BASE_ADDRESS
	hex "nand controller's register base address"
	default 0x10A30000 if (ARCH_SD511x)
	help
	  register base address of nand controller

config HINFC301_BUFFER_BASE_ADDRESS
	hex "nand controller's buffer base address"
	default 0x20000000 if (ARCH_SD511x)
	help
	  buffer base address of nand controller
config HINFC301_PERIPHERY_REGBASE
	hex "nand controller's peripher base address"
	default 0x0 if (ARCH_SD511x)
	help
	  peripher base address of nand controller,for clk setting

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

choice
	prompt "Pagesize and Ecc Type Select"

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

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

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

endchoice

endif # MTD_NAND_HINFC301
