Stefan Roese | 4c835a6 | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 1 | menu "MediaTek MIPS platforms" |
Weijie Gao | 16b9490 | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 2 | depends on ARCH_MTMIPS |
Stefan Roese | 4c835a6 | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 3 | |
| 4 | config SYS_MALLOC_F_LEN |
| 5 | default 0x1000 |
| 6 | |
| 7 | config SYS_SOC |
Weijie Gao | 16b9490 | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 8 | default "mt7628" if SOC_MT7628 |
Stefan Roese | 4c835a6 | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 9 | |
| 10 | choice |
| 11 | prompt "MediaTek MIPS SoC select" |
| 12 | |
Weijie Gao | 16b9490 | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 13 | config SOC_MT7628 |
| 14 | bool "MT7628" |
Stefan Roese | 4c835a6 | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 15 | select MIPS_L1_CACHE_SHIFT_5 |
Weijie Gao | 3f851c9 | 2019-09-25 17:45:43 +0800 | [diff] [blame] | 16 | select PINCTRL_MT7628 |
| 17 | select MTK_SERIAL |
Stefan Roese | 4c835a6 | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 18 | help |
Weijie Gao | 16b9490 | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 19 | This supports MediaTek MT7628/MT7688. |
Stefan Roese | 4c835a6 | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 20 | |
| 21 | endchoice |
| 22 | |
| 23 | choice |
| 24 | prompt "Board select" |
| 25 | |
Stefan Roese | 88dc409 | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 26 | config BOARD_GARDENA_SMART_GATEWAY_MT7688 |
Stefan Roese | eacbdd6 | 2019-03-15 09:09:34 +0100 | [diff] [blame] | 27 | bool "GARDENA smart Gateway" |
Weijie Gao | 16b9490 | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 28 | depends on SOC_MT7628 |
Stefan Roese | b1f51fc | 2018-10-09 08:59:13 +0200 | [diff] [blame] | 29 | select BOARD_LATE_INIT |
Stefan Roese | 88dc409 | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 30 | select SUPPORTS_BOOT_RAM |
| 31 | help |
Stefan Roese | eacbdd6 | 2019-03-15 09:09:34 +0100 | [diff] [blame] | 32 | GARDENA smart Gateway boards have a MT7688 SoC with 128 MiB of RAM |
Stefan Roese | 88dc409 | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 33 | and 8 MiB of flash (SPI NOR) and additional SPI NAND storage. |
| 34 | |
Stefan Roese | b02f76a | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 35 | config BOARD_LINKIT_SMART_7688 |
| 36 | bool "LinkIt Smart 7688" |
Weijie Gao | 16b9490 | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 37 | depends on SOC_MT7628 |
Stefan Roese | b02f76a | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 38 | select SUPPORTS_BOOT_RAM |
| 39 | help |
| 40 | Seeed LinkIt Smart 7688 boards have a MT7688 SoC with 128 MiB of RAM |
| 41 | and 32 MiB of flash (SPI). |
| 42 | Between its different peripherals there's an integrated switch with 4 |
| 43 | ethernet ports, 1 USB port, 1 UART, GPIO buttons and LEDs, and |
| 44 | a MT7688 (PCIe). |
| 45 | |
Stefan Roese | 4c835a6 | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 46 | endchoice |
| 47 | |
| 48 | choice |
| 49 | prompt "Boot mode" |
| 50 | |
| 51 | config BOOT_RAM |
| 52 | bool "RAM boot" |
| 53 | depends on SUPPORTS_BOOT_RAM |
| 54 | help |
| 55 | This builds an image that is linked to a RAM address. It can be used |
| 56 | for booting from CFE via TFTP using an ELF image, but it can also be |
| 57 | booted from RAM by other bootloaders using a BIN image. |
| 58 | |
| 59 | config BOOT_ROM |
| 60 | bool "ROM boot" |
| 61 | depends on SUPPORTS_BOOT_RAM |
| 62 | help |
| 63 | This builds an image that is linked to a ROM address. It can be |
| 64 | used as main bootloader image which is programmed onto the onboard |
| 65 | flash storage (SPI NOR). |
| 66 | |
| 67 | endchoice |
| 68 | |
| 69 | choice |
| 70 | prompt "DDR2 size" |
| 71 | |
| 72 | config ONBOARD_DDR2_SIZE_256MBIT |
| 73 | bool "256MBit (32MByte) total size" |
| 74 | depends on BOOT_ROM |
| 75 | help |
| 76 | Use 256MBit (32MByte) of DDR total size |
| 77 | |
| 78 | config ONBOARD_DDR2_SIZE_512MBIT |
| 79 | bool "512MBit (64MByte) total size" |
| 80 | depends on BOOT_ROM |
| 81 | help |
| 82 | Use 512MBit (64MByte) of DDR total size |
| 83 | |
| 84 | config ONBOARD_DDR2_SIZE_1024MBIT |
| 85 | bool "1024MBit (128MByte) total size" |
| 86 | depends on BOOT_ROM |
| 87 | help |
| 88 | Use 1024MBit (128MByte) of DDR total size |
| 89 | |
| 90 | config ONBOARD_DDR2_SIZE_2048MBIT |
| 91 | bool "2048MBit (256MByte) total size" |
| 92 | depends on BOOT_ROM |
| 93 | help |
| 94 | Use 2048MBit (256MByte) of DDR total size |
| 95 | |
| 96 | endchoice |
| 97 | |
| 98 | choice |
| 99 | prompt "DDR2 chip width" |
| 100 | |
| 101 | config ONBOARD_DDR2_CHIP_WIDTH_8BIT |
| 102 | bool "8bit DDR chip width" |
| 103 | depends on BOOT_ROM |
| 104 | help |
| 105 | Use DDR chips with 8bit width |
| 106 | |
| 107 | config ONBOARD_DDR2_CHIP_WIDTH_16BIT |
| 108 | bool "16bit DDR chip width" |
| 109 | depends on BOOT_ROM |
| 110 | help |
| 111 | Use DDR chips with 16bit width |
| 112 | |
| 113 | endchoice |
| 114 | |
| 115 | choice |
| 116 | prompt "DDR2 bus width" |
| 117 | |
| 118 | config ONBOARD_DDR2_BUS_WIDTH_16BIT |
| 119 | bool "16bit DDR bus width" |
| 120 | depends on BOOT_ROM |
| 121 | help |
| 122 | Use 16bit DDR bus width |
| 123 | |
| 124 | config ONBOARD_DDR2_BUS_WIDTH_32BIT |
| 125 | bool "32bit DDR bus width" |
| 126 | depends on BOOT_ROM |
| 127 | help |
| 128 | Use 32bit DDR bus width |
| 129 | |
| 130 | endchoice |
| 131 | |
| 132 | config SUPPORTS_BOOT_RAM |
| 133 | bool |
| 134 | |
Stefan Roese | 88dc409 | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 135 | source "board/gardena/smart-gateway-mt7688/Kconfig" |
Stefan Roese | b02f76a | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 136 | source "board/seeed/linkit-smart-7688/Kconfig" |
| 137 | |
Stefan Roese | 4c835a6 | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 138 | endmenu |