choice
	prompt "Selected partition.ini"
	depends on PARTITION_INTREE
	help
	  Select partition.ini
	  Partition is very important.
	  User use flash to save binary according to partition.ini.
	  Need to select partition.ini according to using memory.

config PARTITION_NOR_16MB
	bool "partition_nor_16MB.ini"
	help
	  Select nor 16MB partition.ini.
	  Partition is very important.
	  User use flash to save binary according to partition.ini.
	  Need to select partition.ini according to using memory.
	  When using spi nor flash as memory, need to select nor 16MB
	  partition.

config PARTITION_NAND_128MB
	bool "partition_nand_128MB.ini"
	help
	  Select nand 128MB partition.ini.
	  Partition is very important.
	  User use flash to save binary according to partition.ini.
	  Need to select partition.ini according to using memory.
	  When using spi nand flash as memory, need to select nand
	  128MB partition.

config PARTITION_RAMFS
	bool "partition_ramfs.ini"
	help
	  Select ramfs partition.ini

config PARTITION_EMMC
	bool "partition_emmc.ini"
	help
	  Select emmc partition.ini.
	  Partition is very important.
	  User use flash to save binary according to partition.ini.
	  Need to select partition.ini according to using memory.
	  When using emmc as memory, need to select emmc partition.
endchoice

config FLASH_START
	bool "uboot run on flash"
	depends on RTS_EMMC_BOOT
	select CMD_SF
	select SPI_FLASH
	select RTS_QSPI
	select RTS3915_BGA325_DDR3_GENERAL
	select RTS3915_DDR_1866
	default n
	help
	  uboot run on flash, kernel image on emmc
choice
	prompt "DDR Type Selection"
	default RTS3915_BGA325_DDR3_GENERAL
	help
	  Select ddr type

config RTS3915_QFN88_DDR2_512MBIT
	bool "QFN88 DDR2 MCM(512Mbit)"
	depends on TARGET_ASIC && (RTS_NOR_BOOT || RTS_NAND_BOOT)
	select QFN88_PACKAGE
	help
	 Enable option for QFN88 DDR2 512Mbit

config RTS3915_QFN88_DDR3_1GBIT
	bool "QFN88 DDR3 MCM(1Gbit)"
	depends on TARGET_ASIC && (RTS_NOR_BOOT || RTS_NAND_BOOT)
	select QFN88_PACKAGE
	help
	 Enable option for QFN88 DDR3 1Gbit

config RTS3915_QFN128_DDR3_2GBIT
	bool "QFN128 DDR3 MCM(2Gbit)"
	depends on BOARD_RTS3915
	select QFN128_PACKAGE
	help
	  Enable option for QFN128 DDR3 2Gbit
	  It is for RTS3916D MCM DDR
	  the speed is up to DDR-2133
	  only support DQ16

config RTS3915_BGA325_DDR3_GENERAL
	bool "BGA325 EVB DDR3 External"
	depends on BOARD_RTS3915
	help
	  Enable option for 1Gbit or 2Gbit DDR on demo board

config RTS3915_BGA325_DDR3_K525
	bool "BGA325 K525 DDR3"
	depends on BOARD_RTS3915
	help
	  Enable option for ddr on sony K525 board
	  It is for RTS3916 external DDR
	  the speed is up to DDR-1866
	  it can support DQ16 or DQ32

config RTS3915_BGA325_DDR3_K525A1
	bool "BGA325 K525_A1 DDR3"
	depends on BOARD_RTS3915
	help
	  Enable option for ddr on sony K525_A1 board
	  It is for RTS3916 external DDR
	  the speed is up to DDR-1866
	  it can support DQ16 or DQ32


config RTS3915_DDR_H5TQ2G
	bool "DDR3 H5TQ2G(Hynix 256MB)"
	depends on TARGET_FPGA
	help
	  Enable option for DDR H5TQ2G
endchoice

choice
	prompt "DDR Speed Selection"
	default RTS3915_DDR_1066
	help
	  Select ddr clock

config RTS3915_DDR_800
	bool "DDR-800"
	depends on RTS3915_QFN88_DDR2_512MBIT
	help
	  Select ddr dqs clock to 800/2

config RTS3915_DDR_1066
	bool "DDR-1066"
	depends on TARGET_ASIC && (RTS_NOR_BOOT || RTS_NAND_BOOT)
	help
	  Select ddr dqs clock to 1066/2

config RTS3915_DDR_1333
	bool "DDR-1333"
	depends on TARGET_ASIC && (RTS_NOR_BOOT || RTS_NAND_BOOT)
	help
	  Select ddr dqs clock to 1333/2

config RTS3915_DDR_1866
	bool "DDR-1866"
	depends on !RTS3915_QFN88_DDR2_512MBIT
	help
	  Select ddr dqs clock to 1866/2

config RTS3915_DDR_2133
	bool "DDR-2133"
	depends on RTS3915_QFN88_DDR3_1GBIT || RTS3915_QFN128_DDR3_2GBIT
	help
	  Select ddr dqs clock to 2133/2

endchoice

choice
	prompt "DDR DQ Selection"
	default RTS3915_DDR_DQ16
	depends on RTS3915_BGA325_DDR3_GENERAL || RTS3915_BGA325_DDR3_K525 \
	|| RTS3915_BGA325_DDR3_K525A1
	help
	  Select ddr dq number

config RTS3915_DDR_DQ16
	bool "DQ16"
	help
	  Select ddr dq number to 16

config RTS3915_DDR_DQ32
	bool "DQ32"
	depends on RTS3915_DDR_1866 || RTS_EMMC_BOOT
	help
	  Select ddr dq number to 32
endchoice

menu "DDR SSC function"

config DDR_SSC_ENABLE
	bool "DDR SSC function"
	depends on RTS3915_BGA325_DDR3_K525 && RTS3915_DDR_1866
	default n
	help
	  Enable DDR PLL SSC function.
	  It is used for fix EMI issue.
	  The function is down spread
	  spectrum. The SSC width is
	  33KHz. The SSC depth can be
	  set to 3 percent or 5 percent.
	  Customer can select reasonable
	  SSC depth to fix EMI issue.

choice
	prompt "DDR SSC percentage selection"
	default SSC_3_PERCENT
	depends on DDR_SSC_ENABLE
	help
	  Select percentage of DDR SSC

config SSC_3_PERCENT
	bool "3% SSC"
	help
	  Select 3 percent SSC
	  The clock is set down to
	  97% of the base frequency.
	  The SSC width is 33KHz

config SSC_5_PERCENT
	bool "5% SSC"
	help
	  Select 5 percent SSC
	  The clock is set down to
	  95% of the base frequency.
	  The SSC width is 33KHz.
endchoice

endmenu

