if RALINK_RT2880

choice
        prompt "Soc Hardware Type"
	default RT2880_ASIC

config  RT2880_FPGA 
        bool "RT2880-FPGA"
config  RT2880_ASIC 
        bool "RT2880-ASIC"
endchoice

endif
#-----------------------------

if RALINK_RT2883

choice
        prompt "Soc Hardware Type"
	default RT2883_ASIC

config  RT2883_FPGA 
        bool "RT2883-FPGA"
config  RT2883_ASIC 
        bool "RT2883-ASIC"
endchoice

endif

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

if RALINK_RT3052

choice
        prompt "Soc Hardware Type"
	default RT3052_ASIC

config  RT3052_FPGA 
        bool "RT305x/RT3350-FPGA"
config  RT3052_ASIC 
        bool "RT305x/RT3350-ASIC"
endchoice


#Ricky Cao: Below are added for support to specific U-Media RT3052 PCBA.
if RT3052_ASIC
choice
	prompt "U-Media PCBA support"
	default UMEDIA_NONE

#Ricky Cao: Below is added to define CONFIG_UMEDIA_NONE for the PCBA deosn't be designed by U-Media
config	UMEDIA_NONE
	bool "None U-Media PCBA"

#Dias Kuo: Define CONFIG_UMEDIA_WAP356L for WAP-356L in kernel configuration
config  UMEDIA_WAP356L
        bool "U-Media WAP-356L PCBA"

endchoice
endif
#Ricky Cao: Above are added for support to specific U-Media RT3052 PCBA.

config RALINK_RT3350
	bool "Ralink RT3350 chipset"

endif

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

if RALINK_RT3352

choice
        prompt "Soc Hardware Type"
	default RT3352_ASIC

config  RT3352_FPGA 
        bool "RT3352-FPGA"
config  RT3352_ASIC 
        bool "RT3352-ASIC"
endchoice

endif

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

if RALINK_RT3883

choice
        prompt "Soc Hardware Type"
	default RT3883_FPGA

config  RT3883_FPGA 
        bool "RT3883/RT3662-FPGA"
config  RT3883_ASIC 
        bool "RT3883/RT3662-ASIC"
endchoice

#Ricky Cao: Below are added for support to specific U-Media RT3883 PCBA.
if RT3883_ASIC
choice
	prompt "U-Media PCBA support"
	default UMEDIA_NONE

#Ricky Cao: Below is added to define CONFIG_UMEDIA_NONE for the PCBA deosn't be designed by U-Media
config	UMEDIA_NONE
	bool "None U-Media PCBA"

#Ricky Cao: Added to define CONFIG_UMEDIA_WRT393L for WRT-393L specific set up.
config  UMEDIA_WRT393L
        bool "U-Media WRT-393L PCBA"

#Dias Kuo, July 29, 2010, Add CONFIG_UMEDIA_WAP393L for TEW-690AP
config  UMEDIA_WAP393L
        bool "U-Media WAP-393L PCBA"

#Dias Kuo, Sep. 1, 2010, Add CONFIG_UMEDIA_WST391L for TEW-687GA
config  UMEDIA_WST391L
        bool "U-Media WST-391L PCBA"

endchoice
endif
#Ricky Cao: Below are added for support to specific U-Media RT3883 PCBA.

choice
        prompt "RT3883 PCI architecture"
	default PCIE_PCI_CONCURRENT

config PCIE_PCI_CONCURRENT
        bool "PCIE RC and PCI HOST CONCURRENT"
config PCIE_ONLY
        bool "PCIE RC ONLY"
config PCI_ONLY
        bool "PCI HOST ONLY"
config PCIE_PCI_NONE
        bool "Non-support PCI/PCIe"
endchoice

endif

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

config FLASH_REMAP_NEED
       bool
       default y if (RALINK_RT2880)
choice
       prompt "DRAM Size"
       default RT2880_DRAM_16M

config RT2880_DRAM_8M
       bool "8M"

config RT2880_DRAM_16M
       bool "16M"

config RT2880_DRAM_32M
       bool "32M"

config RT2880_DRAM_64M
       bool "64M"

config RT2880_DRAM_128M
       bool "128M"

endchoice


choice
       prompt "Flash Type"
       default MTD_NOR_RALINK

config MTD_NOR_RALINK
       bool "NOR"
       depends on  !RALINK_RT3352

config MTD_SPI_RALINK
       bool "SPI"
       depends on  !RALINK_RT2880

config MTD_NAND_RALINK
       bool "NAND"
       depends on  !RALINK_RT3352 && !RALINK_RT2880

endchoice


choice
       prompt "Flash Size"
       default RT2880_FLASH_4M
#       depends on  FLASH_REMAP_NEED
       depends on  FLASH_REMAP_NEED || DUAL_IMAGE

config RT2880_FLASH_2M
       bool "2M"
       depends on  !DUAL_IMAGE

config RT2880_FLASH_4M
       bool "4M"

config RT2880_FLASH_8M
       bool "8M"

config RT2880_FLASH_16M
       bool "16M"

endchoice

config  DUAL_IMAGE
	bool 'Dual Image' 

#config  RT2880_FLASH_32M
#        bool "Flash Size 32MB Support"
#	depends on (RALINK_RT3052_MP2 || RALINK_RT3350) && !MTD_SPI_RALINK
#	select MTD_CONCAT if RT2880_FLASH_32M 

config  RALINK_RAM_SIZE
	int 
	default 8 if RT2880_DRAM_8M
	default 16 if RT2880_DRAM_16M
	default 32 if RT2880_DRAM_32M
	default 64 if RT2880_DRAM_64M
	default 128 if RT2880_DRAM_128M

config MTD_PHYSMAP_START
       hex 
       default 0xBFC00000 if RT2880_FLASH_2M && !RALINK_RT3052
       default 0xBFC00000 if RT2880_FLASH_4M && !RALINK_RT3052
       default 0xBF400000 if RT2880_FLASH_8M && !RALINK_RT3052
       default 0xBEC00000 if RT2880_FLASH_16M && !RALINK_RT3052
       default 0xBF000000 if RT2880_FLASH_32M && !RALINK_RT3052
       default 0xBF000000 if !FLASH_REMAP_NEED && RALINK_RT3052
       default 0x1C000000 if !FLASH_REMAP_NEED && RALINK_RT3352
       default 0xBC000000 if !FLASH_REMAP_NEED && RALINK_RT2883
       default 0x1C000000 if !FLASH_REMAP_NEED && RALINK_RT3883

config MTD_PHYSMAP_LEN
       hex 
       default 0x200000 if RT2880_FLASH_2M
       default 0x400000 if RT2880_FLASH_4M
       default 0x800000 if RT2880_FLASH_8M
       default 0x1000000 if RT2880_FLASH_16M
       default 0x2000000 if RT2880_FLASH_32M
       default 0x1000000 if !FLASH_REMAP_NEED

config MTD_PHYSMAP_BUSWIDTH
       int 
       default 2

choice
	prompt "Root File System Type"
	default RT2880_ROOTFS_IN_RAM

config  RT2880_ROOTFS_IN_RAM
        bool "RootFS_in_RAM"
	select BLK_DEV_INITRD 
	select BLK_DEV_RAM 

config  RT2880_ROOTFS_IN_FLASH
        bool "RootFS_in_FLASH"
endchoice

config BLK_DEV_RAM_SIZE
	int 'Default RAM disk size'
	default 8192
	depends on RT2880_ROOTFS_IN_RAM

config	LZMARAMFS
	bool "Compress ramdisk by lzma instead of gzip"
	depends on RT2880_ROOTFS_IN_RAM

config ROOTFS_IN_FLASH_NO_PADDING
	bool 'No Padding between Kernel and RootFS'
	default n
	depends on RT2880_ROOTFS_IN_FLASH && !RT2880_FLASH_32M && !DUAL_IMAGE

config MTD_KERNEL_PART_SIZ
	hex 'MTD Kernel Partition Size (Unit:Bytes)'
	default 0xD0000
	depends on RT2880_ROOTFS_IN_FLASH && !ROOTFS_IN_FLASH_NO_PADDING


config  RALINK_TIMER_DFS
        bool "Ralink DFS Timer"

#config RALINK_EXTERNAL_TIMER
#	bool "Ralink External Timer"
#	depends on RALINK_RT3352

#Dias Kuo, Sep. 06, 2010, Detect DHCP server in network
config  DHCP_SERVER_DETECTOR
        bool "U-Media DHCP Server Detector"
