# SPDX-License-Identifier: GPL-2.0
#
# hisilicon spi flash controller device version 300
#

menuconfig MTD_HISFC300
	tristate "hisilicon spi flash controller device version 300 driver"
	depends on (ARCH_SD511x)
	default y if (ARCH_SD511x)
	help
		hisilicon spi flash controller device version 300.

if MTD_HISFC300

config SPI_FLASH_SMALL
	bool "SPI flash support < 4M Bytes"
	default n if (ARCH_SD511x)

config SPI_FLASH_MID
	bool "SPI flash support 4M/8M Bytes"
	default y if (ARCH_SD511x)

config SPI_FLASH_BIG
	bool "SPI flash support > 8M bytes"
	default y if (ARCH_SD511x)

config HISFC300_BUFFER_BASE_ADDRESS
	hex "hisfc300 read/write memory base address"
	default "0x1C000000" if (ARCH_SD511x)

config HISFC300_REG_BASE_ADDRESS
	hex "hisfc300 register base address"
	default "0x10A20000" if (ARCH_SD511x)

config HISFC300_PERIPHERY_REGBASE
	hex "hisfc300 periphery register base address(clk)"
	default "0x0" if (ARCH_SD511x)

config HISFC300_CHIP_NUM
	int "hisfc300 spi chip number"
	default 2 if (ARCH_SD511x)

endif # MTD_HISFC300
