if ARCH_PIXELWORKS

config ARCH_TEXT_BASE
	hex
	default 0x00f84000 if MACH_TOPAZEH_EVAL
	default 0x00f84000 if MACH_TOPAZ_PRIME_EVAL

config BOARDINFO
	default "Pixelworks TopazEH Eval Board" if MACH_TOPAZEH_EVAL
	default "Pixelworks Topaz Prime Eval Board" if MACH_TOPAZ_PRIME_EVAL

# ----------------------------------------

choice
	prompt "Pixelworks SoC type"

config ARCH_PIXELWORKS_TOPAZEH
	bool "Pixelworks TopazEH (ARM1176JZ-S)"
	select CPU_V6
	select GENERIC_GPIO
	select ARCH_HAS_L2X0
	select ARM_AMBA
	select HAVE_CLK
	select CLKDEV_LOOKUP

config ARCH_PIXELWORKS_TOPAZ_PRIME
	bool "Pixelworks Topaz Prime(ARM1176JZ-S)"
	select CPU_V6
	select GENERIC_GPIO
	select ARCH_HAS_L2X0
	select ARM_AMBA
	select HAVE_CLK
	select CLKDEV_LOOKUP
endchoice

# ----------------------------------------

if ARCH_PIXELWORKS_TOPAZEH

choice
	prompt "Pixelworks TopazEH Board Type"

config MACH_TOPAZEH_EVAL
	bool "topazeh_eval"
	help
	  Pixelworks TopazEH evaluation board (boot from SPI flash)

endchoice

endif

if ARCH_PIXELWORKS_TOPAZ_PRIME

choice
	prompt "Pixelworks Topaz Prime Board Type"

config MACH_TOPAZ_PRIME_EVAL
	bool "topaz_prime_eval"
	help
	  Pixelworks Topaz Prime evaluation board (boot from SPI flash)

endchoice

endif

if MACH_TOPAZ_PRIME_EVAL

menu "DDR settings         "

config DDR_SSC
	bool "Enable DDR SSC center"
	default n

choice
	prompt "DDR SS Settings"
	depends on DDR_SSC
	default DDR_SS_050

config DDR_SS_025
	bool "ddr ss with +- 0.25%"
config DDR_SS_050
	bool "ddr ss with +- 0.50%"
config DDR_SS_100
	bool "ddr ss with +- 1.00%"
config DDR_SS_150
	bool "ddr ss with +- 1.50%"

endchoice

choice
    prompt "DDR Grain select"
	default DDR_WINBOND_SAMSUNG

config DDR_WINBOND_SAMSUNG
		    bool "Use Winbond/Samsung DDR in Topaz Prime"

config DDR_MICRON
			bool "Use Micron DDR in Topaz Prime"

endchoice

choice
	prompt "DDR speed select"
	default DDR_1200

config DDR_1200
	bool "DDR speed 1200"

config DDR_1600
	bool "DDR speed 1600"

endchoice

choice
	prompt "DDR bus width select"
	default DDR_32BIT

config DDR_32BIT
	bool "Use DDR 32 bit width"

config DDR_16BIT
	bool "Use DDR 16 bit width"

endchoice

endmenu

endif

if MACH_TOPAZEH_EVAL

menu "DDR settings         "

config DDR_SSC
	bool "Enable DDR SSC center"
	default n

choice
	prompt "DDR size select"
	default DDR_1G

config DDR_2G
	bool "Use 2G bits DDR"

config DDR_1G
	bool "Use 1G bits DDR"

endchoice

choice
	prompt "DDR bus width select"
	default DDR_32BIT

config DDR_32BIT
	bool "Use DDR 32 bit width"

config DDR_16BIT
	bool "Use DDR 16 bit width"

endchoice

endmenu

endif


config PIXELWORKS_PRE_BOOT
	bool "Support Pre-Boot Loader"

if PIXELWORKS_PRE_BOOT

choice
	prompt "Pre-Boot Type"

config PIXELWORKS_PRE_BOOT_SPI
	bool "SPI flash"
	help
	  Boot from SPI flash

endchoice

endif

# ----------------------------------------

endif
