#
# For a description of the syntax of this configuration file,
# see kconfig-language at https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
#

if ARCH_BOARD_SIDK_S5JT200

config SIDK_S5JT200_TLC59116
	bool "Support TLC59116 IC"
	default n
	depends on S5J_I2C
	---help---
		SIDK S5JT200 evaluation board has TLC59116 IC attached to
		its I2C bus. It can generate PWM signals to control RGB LEDs.

config SIDK_S5JT200_S8300
	bool "Support S8300 IC"
	default n
	depends on S5J_PWM
	---help---
		SIDK S5JT200 evaluation board has S8300 linear LED driver IC
		which is driven by PWMs from S5J chipset.

config SIDK_S5JT200_M93C66WMN6T
	bool "Support M93C66WMN6T EEPROM"
	default n
	depends on SPI_BITBANG
	depends on SPI_BITBANG_VARWIDTH
	---help---
		SIDK S5JT200 evaluation board has an SPI MicroWire serial
		access EEPROM attached to GPIO pins.

config SIDK_S5JT200_PWM_CHNUM
	int "Number of PWM channel"
	default 6
	depends on S5J_PWM
	---help---
		Sets the number of pwm channel exposed on SIDK S5JT200
		evaluation board

config SIDK_S5JT200_FLASH_CAPACITY
	int "Size of external flash memory (in bytes)"
	default 8388608
	depends on S5J_SFLASH
	---help---
		Sets the capacity of the external flash memory
		on the SIDK S5JT200 evaluation board.

config SIDK_S5JT200_FLASH_PAGE_SIZE
	int "Page size of external flash memory (in bytes)"
	default 4096
	depends on S5J_SFLASH
	---help---
		Sets the page size of the external flash memory
		on the SIDK S5JT200 evaluation board. It can be the
		size of erase unit flash memory supports.

config SIDK_S5JT200_FLASH_MINOR
	int "Minor number for the FLASH /dev/smart entry"
	default 0
	depends on S5J_SFLASH
	---help---
		Sets the minor number for /dev node of the external flash
		device.

config SIDK_S5JT200_FLASH_PART
	bool "Enable partition support on FLASH"
	default n
	select MTD
	select MTD_PARTITION
	select MTD_PROGMEM
	depends on S5J_SFLASH
	---help---
		Enables creation of partitions on the FLASH

config SIDK_S5JT200_FLASH_PART_LIST
	string "Flash partition size list (in KBytes)"
	default "8192,"
	depends on SIDK_S5JT200_FLASH_PART
	---help---
		Comma separated list of partition sizes in KB.

config SIDK_S5JT200_FLASH_PART_TYPE
	string "Flash partition type list"
	default "none,"
	---help---
		Comma separated list of partition types that can be
		one of followings: none, smartfs, config

config SIDK_S5JT200_FLASH_PART_NAME
	string "FLash partition name list"
	default "mx25,"
	depends on SIDK_S5JT200_FLASH_PART
	depends on MTD_PARTITION_NAMES
	---help---
		Comma separated list of partition names.

config SIDK_S5JT200_AUTOMOUNT
	bool "Automount partitions"
	default n
	depends on SIDK_S5JT200_FLASH_PART
	depends on !DISABLE_MOUNTPOINT
	---help---
		If enabled, mount userrw and sssrw partitions at boot.

config SIDK_S5JT200_AUTOMOUNT_ROMFS
	bool "Automount ROM read only partiton"
	default n
	depends on SIDK_S5JT200_AUTOMOUNT
	depends on FS_ROMFS
	---help---
		If enabled, rom readonly partition will be mounted automatically
		at boot.

config SIDK_S5JT200_AUTOMOUNT_ROMFS_MOUNTPOINT
	string "Mountpoint of the partition for rom read only file system"
	default "/rom"
	depends on SIDK_S5JT200_AUTOMOUNT_ROMFS
	---help---
		Specifies the mount point where rom readonly file system
		will be mounted at.

config SIDK_S5JT200_AUTOMOUNT_USERFS
	bool "Automount user r/w partiton"
	default n
	depends on SIDK_S5JT200_AUTOMOUNT
	---help---
		If enabled, user r/w partition will be mounted automatically
		at boot.

config SIDK_S5JT200_AUTOMOUNT_USERFS_DEVNAME
	string "Device name of the partition for user r/w file system"
	default "/dev/smart0p13"
	depends on SIDK_S5JT200_AUTOMOUNT_USERFS
	---help---
		Specifies the device name (/dev/smart0pX) of the partition
		for user r/w file system.

config SIDK_S5JT200_AUTOMOUNT_USERFS_MOUNTPOINT
	string "Mountpoint of the partition for user r/w file system"
	default "/mnt"
	depends on SIDK_S5JT200_AUTOMOUNT_USERFS
	---help---
		Specifies the mount point where user r/w file system
		will be mounted at.

config SIDK_S5JT200_AUTOMOUNT_SSSRW
	bool "Automount sss r/w partiton"
	default n
	depends on SIDK_S5JT200_AUTOMOUNT
	---help---
		If enabled, SSS r/w partition will be mounted automatically
		at boot.

config SIDK_S5JT200_AUTOMOUNT_SSSRW_DEVNAME
	string "Device name of the partition for SSS r/w file system"
	default "/dev/smart0p14"
	depends on SIDK_S5JT200_AUTOMOUNT_SSSRW
	---help---
		Specifies the device name (/dev/smart0pX) of the partition
		for SSS r/w file system.

config SIDK_S5JT200_AUTOMOUNT_SSSRW_MOUNTPOINT
	string "Mountpoint of the partition for SSS r/w file system"
	default "/sss"
	depends on SIDK_S5JT200_AUTOMOUNT_SSSRW
	---help---
		Specifies the mount point where SSS r/w file system
		will be mounted at.

if RAMMTD
config SIDK_S5JT200_RAMMTD_NEBLOCKS
		int "RAM MTD erase block count"
		default 64
		---help---
				Ramfs size will be RAMMTD_ERASESIZE * SIDK_S5JT200_RAMMTD_NEBLOCKS.
				You have to consider total ramsize to alloc ramfs size.

config SIDK_S5JT200_RAMMTD_DEV_NUMBER
		int "device number for mtd of smartfs"
		default 3

config SIDK_S5JT200_RAMMTD_DEV_POINT
		string "Device name of the partition for ramfs r/w file system"
		default "/dev/smart3"

config SIDK_S5JT200_RAMMTD_MOUNT_POINT
		string "Mountpoint of the partition for ramfs r/w file system"
		default "/ramfs"
endif
endif
