if ARCH_RUBY
	
menu "Ruby board types"

choice
	bool "Supported board configurations"
	default RUBY_BOARD_FPGA
	help
		There are differences in the wiring on the different boards.
		E.g. SPI CS connections is done via GPIO 0:7 on FPGA but
		via GPIO8:0 on the evaluation board.
		
config RUBY_FPGA
	bool "FPGA setup"
	help
		SPI Flash-CS connected to GPIO 0:7 

config RUBY_EVAL_BOARD
	bool "Evaluation board setup"
	help
		SPI Flash-CS connected to GPIO 8:0

endchoice

endmenu

menu "Ruby chip types"

choice
        bool "Supported chip configurations"
        default RUBY_CHIP_A0

config RUBY_CHIP_A0
	bool "Ruby A0"

config RUBY_CHIP_B0
	bool "Ruby B0"

config RUBY_CHIP_C0
	bool "Ruby C0"

config RUBY_CHIP_PW807
	bool "PW807"
endchoice

endmenu

choice
	bool "Supported SPI flash chips"
	default MTD_W25X64
	
config MTD_W25X64
	bool "Winbond W25x64 SPI flash"
	depends on MTD_M25P80 && ARCH_RUBY
	help
		This enables support for the Winbond W25x64 SPI flash.

config MTD_S25SL064A
	bool "Spansion s25sl064a SPI flash"
	depends on MTD_M25P80 && ARCH_RUBY
	help
		This enables support for the Spansion s25sl064a SPI flash.
	
config MTD_S25FL128
	bool "Spansion s25fl128 SPI flash"
	depends on MTD_M25P80 && ARCH_RUBY
	help
		This enables support for the Spansion s25fl128 SPI flash.

endchoice


# drivers which need this use "select RUBY_STATIC_RAL"
config RUBY_STATIC_RAL
	bool
	default n

config RUBY_STATIC
	bool "Enable Pixelworks, Inc. Ruby drivers, built statically"
	help
	  This enables support for building Ruby drivers statically.

config DMA_RUBY_8CH
	depends on RUBY_STATIC
	select RUBY_STATIC_RAL
	bool "Support for Pixelworks Ruby 8-Channel DMA"
	---help---
	  Enable static building of Pixelworks DMA_8CH driver.

endif
