huangcm
2024-08-23 d76fb8c8c6d079a3cee81da7072347dcb8bbbc70
longan/device/config/chips/a133/configs/c3/sys_config.fex
....@@ -11,7 +11,7 @@
1111 [platform]
1212 eraseflag = 1
1313 next_work = 3
14
-debug_mode = 3
14
+debug_mode = 10
1515
1616 ;----------------------------------------------------------------------------------
1717 ;[target] system bootup configuration
....@@ -24,7 +24,8 @@
2424 [target]
2525 boot_clock = 1008
2626 storage_type = -1
27
-burn_key = 1
27
+burn_key = 0
28
+; for dragonboard test
2829 dragonboard_test = 0
2930 power_mode = 0
3031
....@@ -60,7 +61,7 @@
6061
6162 [card_boot]
6263 logical_start = 40960
63
-sprite_gpio0 = port:PH6<1><default><default><1>
64
+;sprite_gpio0 = port:PH6<1><default><default><1>
6465
6566 ;----------------------------------------------------------------------------------
6667 ;fastboot key
....@@ -133,12 +134,12 @@
133134 uart_debug_tx = port:PB09<2><1><default><default>
134135 uart_debug_rx = port:PB10<2><1><default><default>
135136
136
-[jtag_para]
137
-jtag_enable = 1
138
-jtag_ms = port:PH9<3><default><default><default>
139
-jtag_ck = port:PH10<3><default><default><default>
140
-jtag_do = port:PH11<3><default><default><default>
141
-jtag_di = port:PH12<3><default><default><default>
137
+;[jtag_para]
138
+;jtag_enable = 1
139
+;jtag_ms = port:PH9<3><default><default><default>
140
+;jtag_ck = port:PH10<3><default><default><default>
141
+;jtag_do = port:PH11<3><default><default><default>
142
+;jtag_di = port:PH12<3><default><default><default>
142143
143144 [clock]
144145 pll4 = 300
....@@ -163,53 +164,120 @@
163164 [dram_select_para]
164165 select_mode = 0
165166 gpadc_channel = 1
166
-select_gpio0 = port:PB7<0><1><default><default>
167
+;select_gpio0 = port:PB7<0><1><default><default>
167168 select_gpio1 = port:PB4<0><1><default><default>
168
-select_gpio2 = port:PH1<0><1><default><default>
169
-select_gpio3 = port:PH0<0><1><default><default>
169
+;select_gpio2 = port:PH1<0><1><default><default>
170
+;select_gpio3 = port:PH0<0><1><default><default>
170171
172
+
173
+
174
+[dram_para]
175
+dram_clk = 648
176
+dram_type = 3
177
+dram_dx_odt = 0x07070707
178
+dram_dx_dri = 0x0c0c0c0c
179
+dram_ca_dri = 0x0e0e
180
+dram_para0 = 0x15101212
181
+dram_para1 = 0x30FA
182
+dram_para2 = 0x0000
183
+dram_mr0 = 0x840
184
+dram_mr1 = 0x4
185
+dram_mr2 = 0x8
186
+dram_mr3 = 0x0
187
+dram_mr4 = 0x0
188
+dram_mr5 = 0x0
189
+dram_mr6 = 0x0
190
+dram_mr11 = 0x0
191
+dram_mr12 = 0x0
192
+dram_mr13 = 0x0
193
+dram_mr14 = 0x0
194
+dram_mr16 = 0x0
195
+dram_mr17 = 0x0
196
+dram_mr22 = 0x0
197
+dram_tpr0 = 0x0
198
+dram_tpr1 = 0x0
199
+dram_tpr2 = 0x0
200
+dram_tpr3 = 0x0
201
+dram_tpr6 = 0x33808080
202
+dram_tpr10 = 0x002f7458
203
+dram_tpr11 = 0x0f0b0e0c
204
+dram_tpr12 = 0x19191818
205
+dram_tpr13 = 0x00
206
+dram_tpr14 = 0x26232323
171207
172208 ;*****************************************************************************
173209 ;sdram configuration
174210 ;
175211 ;*****************************************************************************
176
-[dram_para]
177
-dram_clk = 792
178
-dram_type = 8
179
-dram_dx_odt = 0x07070707
180
-dram_dx_dri = 0x0d0d0d0d
181
-dram_ca_dri = 0x0e0e
182
-dram_para0 = 0x0d0a050c
183
-dram_para1 = 0x30ea
184
-dram_para2 = 0x1000
185
-dram_mr0 = 0x0
186
-dram_mr1 = 0x34
187
-dram_mr2 = 0x1b
188
-dram_mr3 = 0x33
189
-dram_mr4 = 0x3
190
-dram_mr5 = 0x0
191
-dram_mr6 = 0x0
192
-dram_mr11 = 0x04
193
-dram_mr12 = 0x72
194
-dram_mr13 = 0x0
195
-dram_mr14 = 0x7
196
-dram_mr16 = 0x0
197
-dram_mr17 = 0x0
198
-dram_mr22 = 0x26
199
-dram_tpr0 = 0x06060606
200
-dram_tpr1 = 0x04040404
201
-dram_tpr2 = 0x0
202
-dram_tpr3 = 0x0
203
-dram_tpr6 = 0x48010101
204
-dram_tpr10 = 0x00273333
205
-dram_tpr11 = 0x241f1923
206
-dram_tpr12 = 0x14151313
207
-dram_tpr13 = 0x81d20
208
-dram_tpr14 = 0x2023211f
209
-test_list = 0x00000000
212
+;[dram_para]
213
+;dram_clk = 648
214
+;dram_type = 3
215
+;dram_dx_odt = 0x03030303
216
+;dram_dx_dri = 0x0e0e0e0e
217
+;dram_ca_dri = 0x1c12
218
+;dram_odt_en = 0
219
+;dram_para1 = 0x30fb
220
+;dram_para2 = 0x0000
221
+;dram_mr0 = 0x840
222
+;dram_mr1 = 0x4
223
+;dram_mr2 = 0x8
224
+;dram_mr3 = 0x0
225
+;dram_mr4 = 0x0
226
+;dram_mr5 = 0x0
227
+;dram_mr6 = 0x0
228
+;dram_mr11 = 0x0
229
+;dram_mr12 = 0x0
230
+;dram_mr13 = 0x0
231
+;dram_mr14 = 0x0
232
+;dram_mr16 = 0x0
233
+;dram_mr17 = 0x0
234
+;dram_mr22 = 0x0
235
+;dram_tpr0 = 0xC0000C05
236
+;dram_tpr1 = 0x0
237
+;dram_tpr2 = 0x0
238
+;dram_tpr3 = 0x0
239
+;dram_tpr6 = 0x33808080
240
+;dram_tpr10 = 0x002F0007
241
+;dram_tpr11 = 0xffffdddd
242
+;dram_tpr12 = 0xfedf7557
243
+;dram_tpr13 = 0x40
244
+
245
+;[dram_para]
246
+;dram_clk = 648
247
+;dram_type = 3
248
+;dram_dx_odt = 0x07070707
249
+;dram_dx_dri = 0x0d0d0d0d
250
+;dram_ca_dri = 0x0e0e
251
+;dram_para0 = 0x0d0a050c
252
+;dram_para1 = 0x30ea
253
+;dram_para2 = 0x1000
254
+;dram_mr0 = 0x0
255
+;dram_mr1 = 0x34
256
+;dram_mr2 = 0x1b
257
+;dram_mr3 = 0x33
258
+;dram_mr4 = 0x3
259
+;dram_mr5 = 0x0
260
+;dram_mr6 = 0x0
261
+;dram_mr11 = 0x04
262
+;dram_mr12 = 0x72
263
+;dram_mr13 = 0x0
264
+;dram_mr14 = 0x7
265
+;dram_mr16 = 0x0
266
+;dram_mr17 = 0x0
267
+;dram_mr22 = 0x26
268
+;dram_tpr0 = 0x06060606
269
+;dram_tpr1 = 0x04040404
270
+;dram_tpr2 = 0x0
271
+;dram_tpr3 = 0x0
272
+;dram_tpr6 = 0x48010101
273
+;dram_tpr10 = 0x00273333
274
+;dram_tpr11 = 0x241f1923
275
+;dram_tpr12 = 0x14151313
276
+;dram_tpr13 = 0x81d20
277
+;dram_tpr14 = 0x2023211f
278
+;test_list = 0x00000000
210279
211280 [dram_para1]
212
-
213281 dram_clk = 672
214282 dram_type = 7
215283 dram_dx_odt = 0x06060606
....@@ -790,4 +858,27 @@
790858 ;drm_region_mbytes = 0
791859 ;drm_region_start_mbytes = 0
792860
793
-
861
+;XR829
862
+[sdc1]
863
+sdc1_used = 1
864
+bus-width = 4
865
+sdc1_clk = port:PG00<2><1><0><default>
866
+sdc1_cmd = port:PG01<2><1><0><default>
867
+sdc1_d0 = port:PG02<2><1><0><default>
868
+sdc1_d1 = port:PG03<2><1><0><default>
869
+sdc1_d2 = port:PG04<2><1><0><default>
870
+sdc1_d3 = port:PG05<2><1><0><default>
871
+;non-removable =
872
+;cd-gpios =
873
+;sunxi-power-save-mode =
874
+ctl-spec-caps = 0x1
875
+sunxi-power-save-mode =
876
+sunxi-dis-signal-vol-sw =
877
+;sd-uhs-sdr50 =
878
+;sd-uhs-ddr50 =
879
+;sd-uhs-sdr104 =
880
+;cap-sdio-irq =
881
+keep-power-in-suspend =
882
+ignore-pm-notify =
883
+;max-frequency = 150000000
884
+min-frequency = 150000