blob: 396fbd014199250fd5095fc8023f9d13f24efc2a [file] [log] [blame]
Stefan Roese4c835a62018-09-05 15:12:35 +02001menu "MediaTek MIPS platforms"
2 depends on ARCH_MT7620
3
4config SYS_MALLOC_F_LEN
5 default 0x1000
6
7config SYS_SOC
8 default "mt7620" if SOC_MT7620
9
10choice
11 prompt "MediaTek MIPS SoC select"
12
13config SOC_MT7620
14 bool "MT7620/8"
15 select MIPS_L1_CACHE_SHIFT_5
16 help
17 This supports MediaTek MIPS MT7620 family.
18
19endchoice
20
21choice
22 prompt "Board select"
23
24endchoice
25
26choice
27 prompt "Boot mode"
28
29config BOOT_RAM
30 bool "RAM boot"
31 depends on SUPPORTS_BOOT_RAM
32 help
33 This builds an image that is linked to a RAM address. It can be used
34 for booting from CFE via TFTP using an ELF image, but it can also be
35 booted from RAM by other bootloaders using a BIN image.
36
37config BOOT_ROM
38 bool "ROM boot"
39 depends on SUPPORTS_BOOT_RAM
40 help
41 This builds an image that is linked to a ROM address. It can be
42 used as main bootloader image which is programmed onto the onboard
43 flash storage (SPI NOR).
44
45endchoice
46
47choice
48 prompt "DDR2 size"
49
50config ONBOARD_DDR2_SIZE_256MBIT
51 bool "256MBit (32MByte) total size"
52 depends on BOOT_ROM
53 help
54 Use 256MBit (32MByte) of DDR total size
55
56config ONBOARD_DDR2_SIZE_512MBIT
57 bool "512MBit (64MByte) total size"
58 depends on BOOT_ROM
59 help
60 Use 512MBit (64MByte) of DDR total size
61
62config ONBOARD_DDR2_SIZE_1024MBIT
63 bool "1024MBit (128MByte) total size"
64 depends on BOOT_ROM
65 help
66 Use 1024MBit (128MByte) of DDR total size
67
68config ONBOARD_DDR2_SIZE_2048MBIT
69 bool "2048MBit (256MByte) total size"
70 depends on BOOT_ROM
71 help
72 Use 2048MBit (256MByte) of DDR total size
73
74endchoice
75
76choice
77 prompt "DDR2 chip width"
78
79config ONBOARD_DDR2_CHIP_WIDTH_8BIT
80 bool "8bit DDR chip width"
81 depends on BOOT_ROM
82 help
83 Use DDR chips with 8bit width
84
85config ONBOARD_DDR2_CHIP_WIDTH_16BIT
86 bool "16bit DDR chip width"
87 depends on BOOT_ROM
88 help
89 Use DDR chips with 16bit width
90
91endchoice
92
93choice
94 prompt "DDR2 bus width"
95
96config ONBOARD_DDR2_BUS_WIDTH_16BIT
97 bool "16bit DDR bus width"
98 depends on BOOT_ROM
99 help
100 Use 16bit DDR bus width
101
102config ONBOARD_DDR2_BUS_WIDTH_32BIT
103 bool "32bit DDR bus width"
104 depends on BOOT_ROM
105 help
106 Use 32bit DDR bus width
107
108endchoice
109
110config SUPPORTS_BOOT_RAM
111 bool
112
113endmenu