blob: 008a28f991ca9de2e71b7359d0ef8a9bd0cf9d38 [file] [log] [blame]
developer2fddd722022-05-20 11:22:21 +08001
2if SOC_MT7621
3
4menu "CPU & DDR configuration"
5
6config MT7621_CPU_FREQ
7 int "CPU Frequency (MHz)"
8 range 400 1200
9 default 880
10
11choice
12 prompt "DRAM Frequency"
13 default MT7621_DRAM_FREQ_1200
14
15config MT7621_DRAM_FREQ_400
16 bool "400MHz"
17
18config MT7621_DRAM_FREQ_800
19 bool "800MHz"
20
21config MT7621_DRAM_FREQ_1066
22 bool "1066MHz"
23
24config MT7621_DRAM_FREQ_1200
25 bool "1200MHz"
26
27endchoice
28
29choice
30 prompt "DDR2 timing parameters"
31 default MT7621_DRAM_DDR2_1024M
32
33config MT7621_DRAM_DDR2_512M
34 bool "64MB"
35
36config MT7621_DRAM_DDR2_1024M
37 bool "128MB"
38
39config MT7621_DRAM_DDR2_512M_W9751G6KB_A02_1066MHZ
40 bool "W9751G6KB_A02 @ 1066MHz (64MB)"
41
42config MT7621_DRAM_DDR2_1024M_W971GG6KB25_800MHZ
43 bool "W971GG6KB25 @ 800MHz (128MB)"
44
45config MT7621_DRAM_DDR2_1024M_W971GG6KB18_1066MHZ
46 bool "W971GG6KB18 @ 1066MHz (128MB)"
47
48endchoice
49
50choice
51 prompt "DDR3 timing parameters"
52 default MT7621_DRAM_DDR3_2048M
53
54config MT7621_DRAM_DDR3_1024M
55 bool "128MB"
56
57config MT7621_DRAM_DDR3_1024M_KGD
58 bool "128MB KGD (MT7621DA)"
59
60config MT7621_DRAM_DDR3_2048M
61 bool "256MB"
62
63config MT7621_DRAM_DDR3_4096M
64 bool "512MB"
65
66endchoice
67
68endmenu
69
70config DEBUG_UART_BOARD_INIT
71 default y
72
73config 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
79choice
80 prompt "Board select"
81
developere20fe272022-05-20 11:22:26 +080082config 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
92config 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
developer2fddd722022-05-20 11:22:21 +0800102endchoice
103
104config SYS_CONFIG_NAME
105 string "Board configuration name"
106 default "mt7621" if BOARD_MT7621_RFB || BOARD_MT7621_NAND_RFB
107
108config SYS_BOARD
109 string "Board name"
110 default "mt7621" if BOARD_MT7621_RFB || BOARD_MT7621_NAND_RFB
111
112config SYS_VENDOR
113 default "mediatek" if BOARD_MT7621_RFB || BOARD_MT7621_NAND_RFB
114
115endif