#
# hisilicon spi flash controller device version 350
#

menuconfig MTD_HISFC350
	tristate "hisilicon spi flash controller device version 350 driver"
	depends on (ARCH_HI3536)
	default y if (ARCH_HI3536)
	select MTD_SPI_IDS
	help
	  Hisilicon spi flash controller device version 350.
	  Hisilicon spi flash controller version 350 support
	  DMA transfers while reading and write the spi flash,
	  which will improve the performace very much.

if MTD_HISFC350

config HISFC350_SYSCTRL_ADDRESS
	hex "cpu system control register base address"
	default "0x12040000" if (ARCH_HI3536)

config HISFC350_BUFFER_BASE_ADDRESS
	hex "hisfc350 read/write memory base address"
	default "0x15000000" if (ARCH_HI3536)

config HISFC350_REG_BASE_ADDRESS
	hex "hisfc350 register base address"
	default "0x10010000" if (ARCH_HI3536)

config HISFC350_CHIP_NUM
	int "hisfc350 spi chip number"
	default 2 if (ARCH_HI3536)

config HISFC350_SHOW_CYCLE_TIMING
	bool "show spi read/write/erase cycle timing"
	default n if (ARCH_HI3536)
	help
	  Show spi read/write/erase cycle timing, command, clock.
	  This is a debug option. When enabled, some command and
	  cycles uesed on operations will show for you.
	  If unsure, say no.

config HISFC350_ENABLE_CHIPSELECT_0
	bool "use spi device on chipselect 0"
	default n if (ARCH_HI3536)
	help
	  If set this value to y, indicates that enable
	  the chip select 0; set this value to n, means
	  to disable the chip select 0. The default value
	  of HISFC350_ENABLE_CHIPSELECT_0 is n.

config HISFC350_ENABLE_CHIPSELECT_1
	bool "use spi device on chipselect 1"
	default y if (ARCH_HI3536)
	help
	  If set this value to y, indicates that enable
	  the chip select 1; set this value to n, means
	  to disable the chip select 1. The default value
	  of HISFC350_ENABLE_CHIPSELECT_1 is y.

config HISFC350_ENABLE_INTR_DMA
	bool "use the IRQ mode of spi device R/W"
	default n if (ARCH_HI3536)

endif # MTD_HISFC350
