diff options
author | Roman Yeryomin <roman@advem.lv> | 2013-02-06 22:37:31 +0200 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2013-05-26 00:48:31 +0300 |
commit | a5441969be39cf46aaec5574ec2f2495f1569af5 (patch) | |
tree | b8baca5a89667faeaa16cecc9622019f69a26a4b /target/linux/realtek/files/arch | |
parent | d76a86507530dd3d3a63a73523b4f48bd656aed9 (diff) |
Add missing files an fixup patch to make it compilable out of the box.
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/files/arch')
l--------- | target/linux/realtek/files/arch/rlx/config.in | 1 | ||||
-rw-r--r-- | target/linux/realtek/files/arch/rlx/config.in.8196c | 352 | ||||
-rw-r--r-- | target/linux/realtek/files/arch/rlx/config.in.8198 | 386 |
3 files changed, 739 insertions, 0 deletions
diff --git a/target/linux/realtek/files/arch/rlx/config.in b/target/linux/realtek/files/arch/rlx/config.in new file mode 120000 index 000000000..c701b264c --- /dev/null +++ b/target/linux/realtek/files/arch/rlx/config.in @@ -0,0 +1 @@ +config.in.8196c
\ No newline at end of file diff --git a/target/linux/realtek/files/arch/rlx/config.in.8196c b/target/linux/realtek/files/arch/rlx/config.in.8196c new file mode 100644 index 000000000..b90184c3d --- /dev/null +++ b/target/linux/realtek/files/arch/rlx/config.in.8196c @@ -0,0 +1,352 @@ +config RTL_819X + def_bool y + +config RTL_8196C + def_bool y + +# +# Processor Config +# +config ARCH_32BIT + bool + default y + +config ARCH_CPU_RLX4181 + bool + default y + +config ARCH_CPU_EB + bool + default y + +config ARCH_CPU_EL + bool + default n + +config ARCH_CPU_RADIAX + bool + default n + +config ARCH_CPU_SLEEP + bool + default y + +config ARCH_CPU_ULS + bool + default y + +config ARCH_CPU_LLSC + bool + default n + +config ARCH_CPU_SYNC + bool + default n + +config ARCH_CACHE_WBC + bool + default y + +config ARCH_CACHE_L2C + bool + default n + +config ARCH_IRQ_CPU + bool + default y + +config ARCH_IRQ_VEC + bool + default y + +config ARCH_BUS_USB + bool + default n + +config ARCH_BUS_PCI + bool + default y + +config ARCH_BUS_PCI_MSI + bool + default n + +# +# System Config +# +menu "System Configuration" +choice + prompt "System Type" + default RTL_8196C_GW + +config RTL_8196C_GW + bool "RTL8196C Demo Board" + help + This enables support for Realtek RTL8196C demo board + +config RTL_8196C_iNIC + bool "RTL8196C iNIC AP" + select RTL_EAP_RELAY + select RTL_HOSTAPD_SUPPORT + help + This enables support for Realtek RTL8196C iNIC AP support + +config RTL_8196C_ICT + bool "RTL8196C IC Test" + #select FPGA_PLATFORM + +endchoice + +config RTL8196C_REVISION_B + bool + default y if RTL_8196C_GW + default y if RTL_8196C_iNIC + +config RTL8196C_GREEN_ETHERNET + bool + default y if RTL_8196C_GW + +config FPGA_PLATFORM + bool + +config RTL_PCIE_SIMPLE_INIT + bool + default y if RTL8192SE + default y if RTL8192CD + +config RTL_WTDOG + bool "Enable watchdog timer support" + +config RTL_TIMER_ADJUSTMENT + bool "Enable timer adjustment support" + +config RTL_WEBPAGES_IN_ROOTFS + bool "Webpages in rootfs support" + +config RTL819X_SPI_FLASH + bool "SPI flash support" + +config RTL_FLASH_DUAL_IMAGE_ENABLE + bool "Enable Flash Dual Bank support" +comment "Second Bank Offset" + depends on RTL_FLASH_DUAL_IMAGE_ENABLE +config RTL_FLASH_DUAL_IMAGE_OFFSET + hex "offset of Flash" + depends on RTL_819X && RTL_FLASH_DUAL_IMAGE_ENABLE + default "0x200000" + help + offset of second bank, Normally should be 2M or 4M. +config RTL_FLASH_MAPPING_ENABLE + bool "Enable Flash Mapping" + +config POCKET_ROUTER_SUPPORT + bool "Pocket router support" + +config POCKET_AP_SUPPORT + bool "Pocket AP support" + +config DOMAIN_NAME_QUERY_SUPPORT + bool "Domain name query support" + +config USB3G_SUPPORT + bool "USB3G support" + select HOTPLUG + #select UEVENT_HELPER_PATH + select FW_LOADER + select FIRMWARE_IN_KERNEL + #select EXTRA_FIRMWARE="" + select SCSI + select SCSI_DMA + select BLK_DEV_SD + select BLK_DEV_SR + select SCSI_MULTI_LUN + select PPP + select PPP_MULTILINK + select PPP_FILTER + select PPP_DEFLATE + select PPP_BSDCOMP + select DEFAULTS_KERNEL_2_6 + select USB_SUPPORT + select USB_ARCH_HAS_HCD + select USB_ARCH_HAS_OHCI + select USB_ARCH_HAS_EHCI + select USB + select USB_ANNOUNCE_NEW_DEVICES + select USB_DEVICEFS + select USB_DEVICE_CLASS + select USB_MON + select USB_EHCI_HCD + select USB_EHCI_ROOT_HUB_TT + select USB_EHCI_TT_NEWSCHED + select USB_OHCI_HCD + select USB_OHCI_LITTLE_ENDIAN + select USB_STORAGE + select USB_SERIAL + select USB_SERIAL_CONSOLE + select USB_SERIAL_GENERIC + select USB_SERIAL_OPTION + select CONFIGFS_FS + select ZLIB_DEFLATE + default n + +config HTTP_FILE_SERVER_SUPPORT + bool "Http File server support" + +comment "Support two spi flash" +config RTL_TWO_SPI_FLASH_ENABLE + bool "two spi flash support" + default n +config RTL_SPI_FLASH1_SIZE + hex "Config 1st flash size" + depends on RTL_819X && RTL_TWO_SPI_FLASH_ENABLE + default "0x400000" + help + Normally should be 0x400000 or 0x800000. + +config RTL_SPI_FLASH2_SIZE + hex "Config 2nd flash size" + depends on RTL_819X && RTL_TWO_SPI_FLASH_ENABLE + default "0x400000" + help + Normally should be 0x400000 or 0x800000. + +comment "Flash size 2M or 4M, default 2M" + depends on RTL_FLASH_MAPPING_ENABLE +comment "USB3G is enable, please set to 0x400000" + depends on RTL_FLASH_MAPPING_ENABLE && USB3G_SUPPORT +config RTL_FLASH_SIZE + hex "Size of Flash" + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0x200000" + help + Size of Flash, Normally should be 2M or 4M. + +comment "Hardware setting offset,should be 4K alignment" + depends on RTL_FLASH_MAPPING_ENABLE +config RTL_HW_SETTING_OFFSET + hex "Hardware setting offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0x6000" + help + Hardware Setting store in flash from the offset. + it should be 4k alignment. + +comment "Default setting offset,should be 4K alignment." + depends on RTL_FLASH_MAPPING_ENABLE +comment "size of default and current setting should be same." + depends on RTL_FLASH_MAPPING_ENABLE +config RTL_DEFAULT_SETTING_OFFSET + hex "Default setting offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0x8000" + help + Default Setting store in flash from the offset. + normally the default setting shoud save before current settting. + NOTE: make sure it's size is enough for default setting, + default size is 16K. + +comment "Current setting offset,should be 4K alignment." + depends on RTL_FLASH_MAPPING_ENABLE +config RTL_CURRENT_SETTING_OFFSET + hex "Current setting offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0xC000" + help + Current Setting store in flash from the offset. + normally the current setting saved after default setting. + NOTE: make sure it's size is enough for current setting, + default size is 16K. + +comment "Webpage image offset,should be 4K alignment." + depends on RTL_FLASH_MAPPING_ENABLE +comment "size of web page is normally about 100K." + depends on RTL_FLASH_MAPPING_ENABLE +config RTL_WEB_PAGES_OFFSET + hex "webpages image offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0x10000" + help + Webpages image store in flash from the offset. + NOTE: default size is 128K. + +comment "Linux image offset,should be 4K alignment." + depends on RTL_FLASH_MAPPING_ENABLE +comment "this offset MUST between 0x10000~0x40000." + depends on RTL_FLASH_MAPPING_ENABLE +config RTL_LINUX_IMAGE_OFFSET + hex "linux image offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0x30000" + help + linux image store in flash from the offset. + +comment "Root image offset,should be 64K alignment." + depends on RTL_FLASH_MAPPING_ENABLE +comment "USB3G is enable, please set to 0x130000." + depends on RTL_FLASH_MAPPING_ENABLE && USB3G_SUPPORT +config RTL_ROOT_IMAGE_OFFSET + hex "root image offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0xF0000" + help + root image store in flash from the offset. + +# KERNE_STACK_SIZE = PAGE_SIZE<<KERNEL_STACK_SIZE_ORDER +config KERNEL_STACK_SIZE_ORDER + int "Kenel Stack Size Order Configuration" + default "2" + help + With Page Size 4K + 1 for 8K kenel stack size + 2 for 16K kernel stack size + 3 for 32K kernel stack size + etc... + +config RTL_EAP_RELAY + bool + +config RTL_HOSTAPD_SUPPORT + bool + +#------------------------------------------------------------------------ +comment "Build rootfs options" + +choice + prompt "File system to mount root" + help + This option is mainly to assist to decide how to build rootfs, because + echo kind of file system for rootfs will uses different flow in our design. + +config ROOTFS_RAMFS + bool "linux built-in ramfs" + depends on INITRAMFS_SOURCE != "" + +#config ROOTFS_RAMDISK +# bool "ramdisk" +# depends on BLK_DEV_RAM + +config ROOTFS_SQUASH + bool "squash fs" + depends on SQUASHFS + +config ROOTFS_JFFS2 + bool "JFFS2 (work on u-boot only)" + depends on JFFS2_FS + +endchoice + +config JFFS2_ERASE_SIZE + hex "Erase size for JFFS2 tool" + depends on ROOTFS_JFFS2 + default 0x10000 + help + This value is for mkfs.jffs2 tool, so bad value may cause kernel + boot failure. + Given 0x1000 and 0x10000 for 4k and 64k flash respectively. + +#------------------------------------------------------------------------ + +endmenu + +# remove this line when make SDK +#source "../target/Kconfig.ictest" diff --git a/target/linux/realtek/files/arch/rlx/config.in.8198 b/target/linux/realtek/files/arch/rlx/config.in.8198 new file mode 100644 index 000000000..919bbbedd --- /dev/null +++ b/target/linux/realtek/files/arch/rlx/config.in.8198 @@ -0,0 +1,386 @@ +config RTL_819X + def_bool y + +config RTL_8198 + def_bool y + +# rock: remove RTL_8196B in the future +#config RTL_8196B +# def_bool y + +# +# Processor Config +# +config ARCH_32BIT + bool + default y + +config ARCH_CPU_RLX5281 + bool + default y + +config ARCH_CPU_EB + bool + default y + +config ARCH_CPU_EL + bool + default n + +config ARCH_CPU_RADIAX + bool + default n + +config ARCH_CPU_SLEEP + bool + default n + +config ARCH_CPU_ULS + bool + default y + +config ARCH_CPU_LLSC + bool + default y + +config ARCH_CPU_SYNC + bool + default y + +config ARCH_CACHE_WBC + bool + default y + +config ARCH_CACHE_L2C + bool + default n + +config ARCH_IRQ_CPU + bool + default y + +config ARCH_IRQ_VEC + bool + default y + +config ARCH_BUS_USB + bool + default n + +config ARCH_BUS_PCI + bool + default y + +config ARCH_BUS_PCI_MSI + bool + default n +config RTL8198_REVISION_B + bool + default y + +# +# System Config +# +menu "System Configuration" +choice + prompt "System Type" + default RTL_8198_GW + +config RTL_8198_GW + bool "RTL8198 Demo Board" + #select FPGA_PLATFORM + select SYS_HAS_EARLY_PRINTK + help + This enables support for Realtek RTL8198 demo board + +config RTL_8198_AP_ROOT + bool "RTL8198 AP mode package" + help + This enables support for Realtek RTL8198 demo board running AP mode + +config RTL_8198_NFBI_BOARD_HOSTAPD + bool "RTL8198 NFBI board" + select RTL_8198_NFBI_BOARD + select RTL_NFBI_MDIO + select RTL_EAP_RELAY + select RTL_HOSTAPD_SUPPORT + help + This enables support for Realtek RTL8198 NFBI board + +config RTL_8198_NFBI_RTK_INBAND_AP + bool "RTL8198 NFBI AP using rtk inband-ctl" + select RTL_8198_NFBI_BOARD + select RTL_NFBI_MDIO + select RTK_INBAND_HOST_HACK + help + This enables support for Realtek RTL8198 NFBI board and inband control + +config RTL_8198_INBAND_AP + bool "RTL8198 INBAND AP" + select RTL_EAP_RELAY + select RTL_HOSTAPD_SUPPORT + help + This enables support for Realtek RTL8198 AP with inband control +endchoice + +config FPGA_PLATFORM + bool + +config RTL_PCIE_SIMPLE_INIT + bool + default y if RTL8192SE + default y if RTL8192CD + +config RTL_WTDOG + bool "Enable watchdog timer support" + +config 8198_PORT5_GMII + bool "8198 port5 GMII" + +config 8198_PORT5_RGMII + bool "8198 port5 RGMII for RTL8370" +config RTL_8197B + bool "8197B support" +config RTL_TIMER_ADJUSTMENT + bool "Enable timer adjustment support" + +config RTL_WEBPAGES_IN_ROOTFS + bool "Webpages in rootfs support" + +config RTL819X_SPI_FLASH + bool "SPI flash support" + +config PHY_EAT_40MHZ + bool "8198 clock source at 40Mhz" if RTL_8198 + default y + +config RTL_FLASH_DUAL_IMAGE_ENABLE + bool "Enable Flash Dual Bank support" + +comment "Second Bank Offset" + depends on RTL_FLASH_DUAL_IMAGE_ENABLE +config RTL_FLASH_DUAL_IMAGE_OFFSET + hex "offset of Flash" + depends on RTL_819X && RTL_FLASH_DUAL_IMAGE_ENABLE + default "0x200000" + help + offset of second bank, Normally should be 2M or 4M. + +config RTL_FLASH_MAPPING_ENABLE + bool "Enable Flash Mapping" + +config USB3G_SUPPORT + bool "USB3G support" + select HOTPLUG + #select UEVENT_HELPER_PATH + select FW_LOADER + select FIRMWARE_IN_KERNEL + #select EXTRA_FIRMWARE="" + select SCSI + select SCSI_DMA + select BLK_DEV_SD + select BLK_DEV_SR + select SCSI_MULTI_LUN + select PPP + select PPP_MULTILINK + select PPP_FILTER + select PPP_DEFLATE + select PPP_BSDCOMP + select DEFAULTS_KERNEL_2_6 + select USB_SUPPORT + select USB_ARCH_HAS_HCD + select USB_ARCH_HAS_OHCI + select USB_ARCH_HAS_EHCI + select USB + select USB_ANNOUNCE_NEW_DEVICES + select USB_DEVICEFS + select USB_DEVICE_CLASS + select USB_MON + select USB_EHCI_HCD + select USB_EHCI_ROOT_HUB_TT + select USB_EHCI_TT_NEWSCHED + select USB_OHCI_HCD + select USB_OHCI_LITTLE_ENDIAN + select USB_STORAGE + select USB_SERIAL + select USB_SERIAL_CONSOLE + select USB_SERIAL_GENERIC + select USB_SERIAL_OPTION + select CONFIGFS_FS + select ZLIB_DEFLATE + default n + +config RTL_USB_IP_HOST_SPEEDUP + bool "Seedup usb samba performance" + +config HTTP_FILE_SERVER_SUPPORT + bool "Http File server support" + +comment "Support two spi flash" +config RTL_TWO_SPI_FLASH_ENABLE + bool "two spi flash support" + default n +config RTL_SPI_FLASH1_SIZE + hex "Config 1st flash size" + depends on RTL_819X && RTL_TWO_SPI_FLASH_ENABLE + default "0x400000" + help + Normally should be 0x400000 or 0x800000. + +config RTL_SPI_FLASH2_SIZE + hex "Config 2nd flash size" + depends on RTL_819X && RTL_TWO_SPI_FLASH_ENABLE + default "0x400000" + help + Normally should be 0x400000 or 0x800000. + +comment "Flash size 2M or 4M, default 2M" + depends on RTL_FLASH_MAPPING_ENABLE +comment "USB3G is enable, please set to 0x400000" + depends on RTL_FLASH_MAPPING_ENABLE && USB3G_SUPPORT +config RTL_FLASH_SIZE + hex "Size of Flash" + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0x200000" + help + Size of Flash, Normally should be 2M or 4M. + +comment "Hardware setting offset,should be 4K alignment" + depends on RTL_FLASH_MAPPING_ENABLE +config RTL_HW_SETTING_OFFSET + hex "Hardware setting offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0x6000" + help + Hardware Setting store in flash from the offset. + it should be 4k alignment. + +comment "Default setting offset,should be 4K alignment." + depends on RTL_FLASH_MAPPING_ENABLE +comment "size of default and current setting should be same." + depends on RTL_FLASH_MAPPING_ENABLE +config RTL_DEFAULT_SETTING_OFFSET + hex "Default setting offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0x8000" + help + Default Setting store in flash from the offset. + normally the default setting shoud save before current settting. + NOTE: make sure it's size is enough for default setting, + default size is 16K. + +comment "Current setting offset,should be 4K alignment." + depends on RTL_FLASH_MAPPING_ENABLE +config RTL_CURRENT_SETTING_OFFSET + hex "Current setting offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0xC000" + help + Current Setting store in flash from the offset. + normally the current setting saved after default setting. + NOTE: make sure it's size is enough for current setting, + default size is 16K. + +comment "Webpage image offset,should be 4K alignment." + depends on RTL_FLASH_MAPPING_ENABLE +comment "size of web page is normally about 100K." + depends on RTL_FLASH_MAPPING_ENABLE +config RTL_WEB_PAGES_OFFSET + hex "webpages image offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0x10000" + help + Webpages image store in flash from the offset. + NOTE: default size is 128K. + +comment "Linux image offset,should be 4K alignment." + depends on RTL_FLASH_MAPPING_ENABLE +comment "this offset MUST between 0x10000~0x40000." + depends on RTL_FLASH_MAPPING_ENABLE +config RTL_LINUX_IMAGE_OFFSET + hex "linux image offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0x30000" + help + linux image store in flash from the offset. + +comment "Root image offset,should be 64K alignment." + depends on RTL_FLASH_MAPPING_ENABLE +comment "USB3G is enable, please set to 0x130000." + depends on RTL_FLASH_MAPPING_ENABLE && USB3G_SUPPORT +config RTL_ROOT_IMAGE_OFFSET + hex "root image offset in flash." + depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE + default "0xF0000" + help + root image store in flash from the offset. + +# KERNE_STACK_SIZE = PAGE_SIZE<<KERNEL_STACK_SIZE_ORDER +config KERNEL_STACK_SIZE_ORDER + int "Kenel Stack Size Order Configuration" + default "2" + help + With Page Size 4K + 1 for 8K kenel stack size + 2 for 16K kernel stack size + 3 for 32K kernel stack size + etc... + +config RTL_8198_NFBI_BOARD + bool + +config RTL_NFBI_MDIO + bool + +config RTL_EAP_RELAY + bool + +config RTL_HOSTAPD_SUPPORT + bool + +config RTK_INBAND_HOST_HACK + bool + +#------------------------------------------------------------------------ +comment "Build rootfs options" + +choice + prompt "File system to mount root" + help + This option is mainly to assist to decide how to build rootfs, because + echo kind of file system for rootfs will uses different flow in our design. + +config ROOTFS_RAMFS + bool "linux built-in ramfs" + depends on INITRAMFS_SOURCE != "" + +#config ROOTFS_RAMDISK +# bool "ramdisk" +# depends on BLK_DEV_RAM + +config ROOTFS_SQUASH + bool "squash fs" + depends on SQUASHFS + +config ROOTFS_JFFS2 + bool "JFFS2 (work on u-boot only)" + depends on JFFS2_FS + +endchoice + +config JFFS2_ERASE_SIZE + hex "Erase size for JFFS2 tool" + depends on ROOTFS_JFFS2 + default 0x10000 + help + This value is for mkfs.jffs2 tool, so bad value may cause kernel + boot failure. + Given 0x1000 and 0x10000 for 4k and 64k flash respectively. + +#------------------------------------------------------------------------ + +endmenu + +# removed by pk +# remove this line when make SDK +#source "../target/Kconfig.ictest" |