blob: abac54f35387514e37c7f6a92e89ab65eba54d49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
|
#
# Copyright (C) 2017-2020 Alibaba Group Holding Limited
#
# SPDX-License-Identifier: GPL-2.0+
#
if TARGET_LIGHT_C910
config PMIC_VOL_INIT
bool "tuning light-ddr regulators"
default n
config DDR_REGU_0V6
int "uint in uv"
default 600000
config DDR_REGU_0V8
int "uint in uv"
default 800000
config DDR_REGU_1V1
int "uint in uv"
default 1100000
config SYS_CPU
default "c9xx"
config SYS_VENDOR
default "thead"
config SYS_BOARD
default "light-c910"
config SYS_CONFIG_NAME
default "light-c910"
config LIGHT_BOOT_FORCE_SEQ
bool "light boot force sequence"
default n
config LIGHT_SEC_UPGRADE
bool "light secure upgrade"
default n
config LIGHT_ANDROID_BOOT_IMAGE_VAL_A
bool "light board-a android image"
default n
config AVB_USE_OEM_KEY
bool "AVB signature with OEM key"
default n
config AVB_ROLLBACK_ENABLE
bool "AVB rollback index in RPMB"
default n
config AVB_HW_ENGINE_ENABLE
bool "AVB Hardware cryptographic engine enable"
default n
config LIGHT_ANDROID_BOOT_IMAGE_VAL_B
bool "light board-b android image"
default n
config LIGHT_ANDROID_BOOT_IMAGE_VAL_LPI4A
bool "light board-lpi4a android image"
default n
config LIGHT_SEC_BOOT_WITH_VERIFY_VAL_A
bool "light board-a security boot with verification"
default n
config LIGHT_SEC_BOOT_WITH_VERIFY_VAL_B
bool "light board-b security boot with verification"
default n
config LIGHT_SEC_BOOT_WITH_VERIFY_ANT_REF
bool "light ant ref security boot with verification"
default n
config LIGHT_SEC_BOOT_WITH_VERIFY_LPI4A
bool "light lpi4a security boot with verification"
default n
config TARGET_LIGHT_FPGA_FM_C910
bool "light fullmask FPGA board"
default n
config TARGET_LIGHT_FM_C910_VAL_SV
bool "light fullmask VAL board for system validation"
default n
config TARGET_LIGHT_FM_C910_VAL_A
bool "light fullmask VAL board-a for system validation"
default n
config TARGET_LIGHT_FM_C910_A_REF
bool "light fullmask reference A board"
default n
config TARGET_LIGHT_FM_C910_VAL_B
bool "light fullmask VAL board-b for system validation"
default n
config TARGET_LIGHT_FM_C910_B_REF
bool "light fullmask reference B board"
default n
config TARGET_LIGHT_FM_C910_VAL_ANT_REF
bool "light fullmask for ant-ref board "
default n
config TARGET_LIGHT_FM_C910_VAL_ANT_DISCRETE
bool "light fullmask for ant-discrete board "
default n
config TARGET_LIGHT_FM_C910_BEAGLE
bool "light fullmask for beagle board "
default n
config TARGET_LIGHT_FM_C910_LPI4A
bool "light fullmask for Lichee Pi 4A board "
default n
config TARGET_LIGHT_FM_C910_B_POWER
bool "light fullmask for light-b-power board "
default n
config TARGET_LIGHT_FM_C910_MILKV_MELES
bool "light fullmask for Milk-V Meles board "
default n
config SYS_TEXT_BASE
default 0xc0000000 if RISCV_MMODE
default 0x00200000 if RISCV_SMODE
config SPL_TEXT_BASE
hex
default 0xffe0000800 if LIGHT_SEC_BOOT_WITH_VERIFY_VAL_A || LIGHT_SEC_BOOT_WITH_VERIFY_VAL_B || LIGHT_SEC_BOOT_WITH_VERIFY_ANT_REF || LIGHT_SEC_BOOT_WITH_VERIFY_LPI4A
default 0xffe0000000 if !(LIGHT_SEC_BOOT_WITH_VERIFY_VAL_A || LIGHT_SEC_BOOT_WITH_VERIFY_VAL_B || LIGHT_SEC_BOOT_WITH_VERIFY_ANT_REF || LIGHT_SEC_BOOT_WITH_VERIFY_LPI4A)
config SPL_MAX_SIZE
hex
default 0x2f000
config THEAD_PLIC
bool "Light PLIC Setting"
depends on RISCV_MMODE || SPL_RISCV_MMODE
select REGMAP
select SYSCON
default n
help
The Thead PLIC block holds memory-mapped claim and pending registers
associated with software interrupt.
config THEAD_LIGHT_TIMER
bool "Light TIMER0 driver and test"
depends on THEAD_PLIC
default n
help
The timer driver to verify the plic interrupt framework is ready
config THEAD_LIGHT_DIGITAL_SENSOR
bool "Light Digital Sensor Setting"
depends on THEAD_PLIC
default n
help
The security digital sensor driver
config BOARD_SPECIFIC_OPTIONS
def_bool y
select RISCV_THEAD
imply CMD_NET
imply CMD_PING
imply CMD_MEMINFO
imply MII
imply NET_RANDOM_ETHADDR
imply PHY_LIB
imply PHY_MSCC
imply MMC
imply MMC_SPI
imply MMC_BROKEN_CD
imply CMD_MMC
if !TARGET_LIGHT_FPGA_FM_C910
config DDR_LP4X_4266_DUALRANK
bool "LPDDR4X 4266 dualrank configuration"
help
Enabling this will support lpddr4x 4266 dualrank configuration.
config DDR_LP4X_4266_SINGLERANK
bool "LPDDR4X 4266 singlerank configuration"
help
Enabling this will support lpddr4x 4266 singlerank configuration.
config DDR_LP4X_3733_DUALRANK
bool "LPDDR4X 3733 dualrank configuration"
help
Enabling this will support lpddr4x 3733 dualrank configuration.
config DDR_LP4X_3733_SINGLERANK
bool "LPDDR4X 3733 singlerank configuration"
help
Enabling this will support lpddr4x 3733 singlerank configuration.
config DDR_LP4X_3200_DUALRANK
bool "LPDDR4X 3200 dualrank configuration"
help
Enabling this will support lpddr4x 3200 dualrank configuration.
config DDR_LP4X_3200_SINGLERANK
bool "LPDDR4X 3200 singlerank configuration"
help
Enabling this will support lpddr4x 3200 singlerank configuration.
config DDR_LP4X_2133_DUALRANK
bool "LPDDR4X 2133 dualrank configuration"
help
Enabling this will support lpddr4x 2133 dualrank configuration.
config DDR_LP4X_2133_SINGLERANK
bool "LPDDR4X 2133 singlerank configuration"
help
Enabling this will support lpddr4x 2133 singlerank configuration.
config DDR_LP4_4266_DUALRANK
bool "LPDDR4 4266 dualrank configuration"
help
Enabling this will support lpddr4 4266 dualrank configuration.
config DDR_LP4_4266_SINGLERANK
bool "LPDDR4 4266 singlerank configuration"
help
Enabling this will support lpddr4 4266 singlerank configuration.
config DDR_LP4_3733_DUALRANK
bool "LPDDR4 3733 dualrank configuration"
help
Enabling this will support lpddr4 3733 dualrank configuration.
config DDR_LP4_3733_SINGLERANK
bool "LPDDR4 3733 singlerank configuration"
help
Enabling this will support lpddr4 3733 singlerank configuration.
config DDR_LP4_3200_DUALRANK
bool "LPDDR4 3200 dualrank configuration"
help
Enabling this will support lpddr4 3200 dualrank configuration.
config DDR_LP4_3200_SINGLERANK
bool "LPDDR4 3200 singlerank configuration"
help
Enabling this will support lpddr4 3200 singlerank configuration.
config DDR_LP4_2133_DUALRANK
bool "LPDDR4 2133 dualrank configuration"
help
Enabling this will support lpddr4 2133 dualrank configuration.
config DDR_LP4_2133_SINGLERANK
bool "LPDDR4 2133 singlerank configuration"
help
Enabling this will support lpddr4 2133 singlerank configuration.
config DDR_ROW16
bool "LPDDR4/4X 17-bit row address support"
help
Enabling this will support ddr 17-bit row address (16:0).
config DDR_H32_MODE
bool "LPDDR4/4X 32bit mode configuration"
help
Enabling this will support ddr 32bit mode configuration.
config LPDDR4X
def_bool y if DDR_LP4X_4266_DUALRANK || DDR_LP4X_4266_SINGLERANK || DDR_LP4X_3733_DUALRANK || DDR_LP4X_3733_SINGLERANK \
|| DDR_LP4X_3200_DUALRANK || DDR_LP4X_3200_SINGLERANK || DDR_LP4X_2133_DUALRANK || DDR_LP4X_2133_SINGLERANK
config LPDDR4
def_bool y if !LPDDR4X && (DDR_LP4_4266_DUALRANK || DDR_LP4_4266_SINGLERANK || DDR_LP4_3733_DUALRANK || DDR_LP4_3733_SINGLERANK \
|| DDR_LP4_3200_DUALRANK || DDR_LP4_3200_SINGLERANK || DDR_LP4_2133_DUALRANK || DDR_LP4_2133_SINGLERANK)
config LPDDR
def_bool y if LPDDR4X || LPDDR4
config DDR_4266
def_bool y if DDR_LP4X_4266_DUALRANK || DDR_LP4X_4266_SINGLERANK || DDR_LP4_4266_DUALRANK || DDR_LP4_4266_SINGLERANK
config DDR_3733
def_bool y if DDR_LP4X_3733_DUALRANK || DDR_LP4X_3733_SINGLERANK || DDR_LP4_3733_DUALRANK || DDR_LP4_3733_SINGLERANK
config DDR_3200
def_bool y if DDR_LP4X_3200_DUALRANK || DDR_LP4X_3200_SINGLERANK || DDR_LP4_3200_DUALRANK || DDR_LP4_3200_SINGLERANK
config DDR_2133
def_bool y if DDR_LP4X_2133_DUALRANK || DDR_LP4X_2133_SINGLERANK || DDR_LP4_2133_DUALRANK || DDR_LP4_2133_SINGLERANK
config FW_MSG_L3
def_bool n
config FW_MSG_L2
def_bool n if !FW_MSG_L3
config FW_MSG_L1
def_bool n if !FW_MSG_L3 && !FW_MSG_L2
config FW_MSG_TRAIN_1D
def_bool n if FW_MSG_L2
config DDR_MSG
def_bool y if FW_MSG_L1 || FW_MSG_L2 || FW_MSG_L3
config DDR_HARD_2D
def_bool n
config DDR_DUAL_RANK
def_bool y if DDR_LP4X_4266_DUALRANK || DDR_LP4X_3733_DUALRANK || DDR_LP4X_3200_DUALRANK || DDR_LP4X_2133_DUALRANK \
|| DDR_LP4_4266_DUALRANK || DDR_LP4_3733_DUALRANK || DDR_LP4_3200_DUALRANK || DDR_LP4_2133_DUALRANK
config DDR_CHBIT_256B
def_bool y if !DDR_H32_MODE
config DDR_DBI_OFF
def_bool n
config LPDDR_EYE
def_bool n
config LPDDR_TXEYE
def_bool n if LPDDR_EYE
endif
endif
|