developer | 2fddd72 | 2022-05-20 11:22:21 +0800 | [diff] [blame] | 1 | |
| 2 | if SOC_MT7621 |
| 3 | |
| 4 | menu "CPU & DDR configuration" |
| 5 | |
| 6 | config MT7621_CPU_FREQ |
| 7 | int "CPU Frequency (MHz)" |
| 8 | range 400 1200 |
| 9 | default 880 |
| 10 | |
| 11 | choice |
| 12 | prompt "DRAM Frequency" |
| 13 | default MT7621_DRAM_FREQ_1200 |
| 14 | |
| 15 | config MT7621_DRAM_FREQ_400 |
| 16 | bool "400MHz" |
| 17 | |
| 18 | config MT7621_DRAM_FREQ_800 |
| 19 | bool "800MHz" |
| 20 | |
| 21 | config MT7621_DRAM_FREQ_1066 |
| 22 | bool "1066MHz" |
| 23 | |
| 24 | config MT7621_DRAM_FREQ_1200 |
| 25 | bool "1200MHz" |
| 26 | |
| 27 | endchoice |
| 28 | |
| 29 | choice |
| 30 | prompt "DDR2 timing parameters" |
| 31 | default MT7621_DRAM_DDR2_1024M |
| 32 | |
| 33 | config MT7621_DRAM_DDR2_512M |
| 34 | bool "64MB" |
| 35 | |
| 36 | config MT7621_DRAM_DDR2_1024M |
| 37 | bool "128MB" |
| 38 | |
| 39 | config MT7621_DRAM_DDR2_512M_W9751G6KB_A02_1066MHZ |
| 40 | bool "W9751G6KB_A02 @ 1066MHz (64MB)" |
| 41 | |
| 42 | config MT7621_DRAM_DDR2_1024M_W971GG6KB25_800MHZ |
| 43 | bool "W971GG6KB25 @ 800MHz (128MB)" |
| 44 | |
| 45 | config MT7621_DRAM_DDR2_1024M_W971GG6KB18_1066MHZ |
| 46 | bool "W971GG6KB18 @ 1066MHz (128MB)" |
| 47 | |
| 48 | endchoice |
| 49 | |
| 50 | choice |
| 51 | prompt "DDR3 timing parameters" |
| 52 | default MT7621_DRAM_DDR3_2048M |
| 53 | |
| 54 | config MT7621_DRAM_DDR3_1024M |
| 55 | bool "128MB" |
| 56 | |
| 57 | config MT7621_DRAM_DDR3_1024M_KGD |
| 58 | bool "128MB KGD (MT7621DA)" |
| 59 | |
| 60 | config MT7621_DRAM_DDR3_2048M |
| 61 | bool "256MB" |
| 62 | |
| 63 | config MT7621_DRAM_DDR3_4096M |
| 64 | bool "512MB" |
| 65 | |
| 66 | endchoice |
| 67 | |
| 68 | endmenu |
| 69 | |
| 70 | config DEBUG_UART_BOARD_INIT |
| 71 | default y |
| 72 | |
| 73 | config MT7621_BOOT_FROM_NAND |
| 74 | bool "Boot from NAND" |
| 75 | help |
| 76 | Select this if u-boot will boot from NAND flash. When booting from |
| 77 | NAND, SPL will be loaded by bootrom directly and no TPL is needed. |
| 78 | |
| 79 | choice |
| 80 | prompt "Board select" |
| 81 | |
developer | e20fe27 | 2022-05-20 11:22:26 +0800 | [diff] [blame] | 82 | config BOARD_MT7621_RFB |
| 83 | bool "MediaTek MT7621 RFB (SPI-NOR)" |
| 84 | help |
| 85 | The reference design of MT7621A (WS3010) booting from SPI-NOR flash. |
| 86 | The board can be configured with DDR2 (64MiB~256MiB) or DDR3 |
| 87 | (128MiB~512MiB). The board has 16 MiB SPI-NOR flash, built-in MT7530 |
| 88 | GbE switch, 1 UART, 1 USB 2.0 host, 1 USB 3.0 host, 1 SDXC, 3 PCIe |
| 89 | sockets, 1 RGMII to external GbE PHY, 2 audio jacks (in/out), |
| 90 | JTAG pins and expansion GPIO pins. |
| 91 | |
| 92 | config BOARD_MT7621_NAND_RFB |
| 93 | bool "MediaTek MT7621 RFB (NAND)" |
| 94 | help |
| 95 | The reference design of MT7621A (WS3010) booting from NAND flash. |
| 96 | The board can be configured with DDR2 (64MiB~256MiB) or DDR3 |
| 97 | (128MiB~512MiB). The board has 128 MiB parallel NAND flash, built-in |
| 98 | MT7530 GbE switch, 1 UART, 1 USB 2.0 host, 1 USB 3.0 host, 3 PCIe |
| 99 | sockets, 1 RGMII to external GbE PHY, 2 audio jacks (in/out), |
| 100 | JTAG pins and expansion GPIO pins. |
| 101 | |
developer | 2fddd72 | 2022-05-20 11:22:21 +0800 | [diff] [blame] | 102 | endchoice |
| 103 | |
| 104 | config SYS_CONFIG_NAME |
| 105 | string "Board configuration name" |
| 106 | default "mt7621" if BOARD_MT7621_RFB || BOARD_MT7621_NAND_RFB |
| 107 | |
| 108 | config SYS_BOARD |
| 109 | string "Board name" |
| 110 | default "mt7621" if BOARD_MT7621_RFB || BOARD_MT7621_NAND_RFB |
| 111 | |
| 112 | config SYS_VENDOR |
| 113 | default "mediatek" if BOARD_MT7621_RFB || BOARD_MT7621_NAND_RFB |
| 114 | |
| 115 | endif |