Advertisement
Guest User

Untitled

a guest
Aug 28th, 2013
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.51 KB | None | 0 0
  1. ;A20 PAD application
  2. ;-------------------------------------------------------------------------------
  3. ; 说明:
  4. ; 1. 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
  5. ; 2. 新增主键和子键的名称必须控制在32个字符以内,不包括32个
  6. ; 3. 所以的注释以“;”开始,单独占据一行
  7. ; 4. 注释不可和配置项同行,例如:主键和子健后面不能添加任何形式的注释
  8. ;
  9. ; gpio的描述形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
  10. ; 例如:port:PA0<0><default><default><default>
  11. ;-------------------------------------------------------------------------------
  12.  
  13. [product]
  14. version = "100"
  15. machine = "k70-v10"
  16.  
  17. [platform]
  18. eraseflag = 0
  19.  
  20. [target]
  21. boot_clock = 912
  22. dcdc2_vol = 1400
  23. dcdc3_vol = 1250
  24. ldo2_vol = 3000
  25. ldo3_vol = 2800
  26. ldo4_vol = 2800
  27. power_start = 0
  28. storage_type = -1
  29.  
  30. [clock]
  31. pll3 = 297
  32. pll4 = 300
  33. pll6 = 600
  34. pll7 = 297
  35. pll8 = 336
  36.  
  37. [card_boot]
  38. logical_start = 40960
  39. sprite_gpio0 =
  40.  
  41. [card0_boot_para]
  42. card_ctrl = 0
  43. card_high_speed = 1
  44. card_line = 4
  45. sdc_d1 = port:PF0<2><1><default><default>
  46. sdc_d0 = port:PF1<2><1><default><default>
  47. sdc_clk = port:PF2<2><1><default><default>
  48. sdc_cmd = port:PF3<2><1><default><default>
  49. sdc_d3 = port:PF4<2><1><default><default>
  50. sdc_d2 = port:PF5<2><1><default><default>
  51.  
  52. [card2_boot_para]
  53. card_ctrl = 2
  54. card_high_speed = 1
  55. card_line = 4
  56. sdc_cmd = port:PC6<3><1>
  57. sdc_clk = port:PC7<3><1>
  58. sdc_d0 = port:PC8<3><1>
  59. sdc_d1 = port:PC9<3><1>
  60. sdc_d2 = port:PC10<3><1>
  61. sdc_d3 = port:PC11<3><1>
  62.  
  63. [twi_para]
  64. twi_port = 0
  65. twi_scl = port:PB0<2><default><default><default>
  66. twi_sda = port:PB1<2><default><default><default>
  67.  
  68. [uart_para]
  69. uart_debug_port = 0
  70. uart_debug_tx = port:PB22<2><1><default><default>
  71. uart_debug_rx = port:PB23<2><1><default><default>
  72.  
  73. [uart_force_debug]
  74. uart_debug_port = 0
  75. uart_debug_tx =port:PF2<4><1><default><default>
  76. uart_debug_rx =port:PF4<4><1><default><default>
  77.  
  78. [jtag_para]
  79. jtag_enable = 1
  80. jtag_ms = port:PB14<3><default><default><default>
  81. jtag_ck = port:PB15<3><default><default><default>
  82. jtag_do = port:PB16<3><default><default><default>
  83. jtag_di = port:PB17<3><default><default><default>
  84.  
  85. ;---------------------------------------------------------------------------------------------------------
  86. ; if 1 == standby_mode, then support super standby;
  87. ; else, support normal standby.
  88. ;---------------------------------------------------------------------------------------------------------
  89. [pm_para]
  90. standby_mode = 1
  91.  
  92. ;-------------------------------------------------------------------------------
  93. ;sdram configuration
  94. ;-------------------------------------------------------------------------------
  95. [dram_para]
  96. dram_baseaddr = 0x40000000
  97. dram_clk = 384
  98. dram_type = 3
  99. dram_rank_num = 0xffffffff
  100. dram_chip_density = 0xffffffff
  101. dram_io_width = 0xffffffff
  102. dram_bus_width = 0xffffffff
  103. dram_cas = 9
  104. dram_zq = 0x7f
  105. dram_odt_en = 0
  106. dram_size = 0xffffffff
  107. dram_tpr0 = 0x42d899b7
  108. dram_tpr1 = 0xa090
  109. dram_tpr2 = 0x22a00
  110. dram_tpr3 = 0x0
  111. dram_tpr4 = 0x0
  112. dram_tpr5 = 0x0
  113. dram_emr1 = 0x4
  114. dram_emr2 = 0x10
  115. dram_emr3 = 0x0
  116.  
  117. ;-------------------------------------------------------------------------------
  118. ;Mali configuration
  119. ;-------------------------------------------------------------------------------
  120. [mali_para]
  121. mali_used = 1
  122. mali_clkdiv = 1
  123.  
  124. ;-------------------------------------------------------------------------------
  125. ;Ethernet MAC configuration
  126. ;-------------------------------------------------------------------------------
  127. [emac_para]
  128. emac_used = 0
  129. emac_rxd3 = port:PA00<2><default><default><default>
  130. emac_rxd2 = port:PA01<2><default><default><default>
  131. emac_rxd1 = port:PA02<2><default><default><default>
  132. emac_rxd0 = port:PA03<2><default><default><default>
  133. emac_txd3 = port:PA04<2><default><default><default>
  134. emac_txd2 = port:PA05<2><default><default><default>
  135. emac_txd1 = port:PA06<2><default><default><default>
  136. emac_txd0 = port:PA07<2><default><default><default>
  137. emac_rxclk = port:PA08<2><default><default><default>
  138. emac_rxerr = port:PA09<2><default><default><default>
  139. emac_rxdV = port:PA10<2><default><default><default>
  140. emac_mdc = port:PA11<2><default><default><default>
  141. emac_mdio = port:PA12<2><default><default><default>
  142. emac_txen = port:PA13<2><default><default><default>
  143. emac_txclk = port:PA14<2><default><default><default>
  144. emac_crs = port:PA15<2><default><default><default>
  145. emac_col = port:PA16<2><default><default><default>
  146. emac_reset = port:PA17<1><default><default><default>
  147.  
  148. ;-------------------------------------------------------------------------------
  149. ;i2c configuration
  150. ;-------------------------------------------------------------------------------
  151. [twi0_para]
  152. twi0_used = 1
  153. twi0_scl = port:PB0<2><default><default><default>
  154. twi0_sda = port:PB1<2><default><default><default>
  155.  
  156. [twi1_para]
  157. twi1_used = 1
  158. twi1_scl = port:PB18<2><default><default><default>
  159. twi1_sda = port:PB19<2><default><default><default>
  160.  
  161. [twi2_para]
  162. twi2_used = 1
  163. twi2_scl = port:PB20<2><default><default><default>
  164. twi2_sda = port:PB21<2><default><default><default>
  165.  
  166. ;-------------------------------------------------------------------------------
  167. ;uart configuration
  168. ;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
  169. ;-------------------------------------------------------------------------------
  170. [uart_para0]
  171. uart_used = 1
  172. uart_port = 0
  173. uart_type = 2
  174. uart_tx = port:PB22<2><1><default><default>
  175. uart_rx = port:PB23<2><1><default><default>
  176.  
  177. [uart_para1]
  178. uart_used = 0
  179. uart_port = 1
  180. uart_type = 8
  181. uart_tx = port:PA10<4><1><default><default>
  182. uart_rx = port:PA11<4><1><default><default>
  183. uart_rts = port:PA12<4><1><default><default>
  184. uart_cts = port:PA13<4><1><default><default>
  185. uart_dtr = port:PA14<4><1><default><default>
  186. uart_dsr = port:PA15<4><1><default><default>
  187. uart_dcd = port:PA16<4><1><default><default>
  188. uart_ring = port:PA17<4><1><default><default>
  189.  
  190. [uart_para2]
  191. uart_used = 0
  192. uart_port = 2
  193. uart_type = 4
  194. uart_tx = port:PI18<3><1><default><default>
  195. uart_rx = port:PI19<3><1><default><default>
  196. uart_rts = port:PI16<3><1><default><default>
  197. uart_cts = port:PI17<3><1><default><default>
  198.  
  199. [uart_para3]
  200. uart_used = 0
  201. uart_port = 3
  202. uart_type = 4
  203. uart_tx = port:PH00<4><1><default><default>
  204. uart_rx = port:PH01<4><1><default><default>
  205. uart_rts = port:PH02<4><1><default><default>
  206. uart_cts = port:PH03<4><1><default><default>
  207.  
  208. [uart_para4]
  209. uart_used = 0
  210. uart_port = 4
  211. uart_type = 2
  212. uart_tx = port:PH04<4><1><default><default>
  213. uart_rx = port:PH05<4><1><default><default>
  214.  
  215. [uart_para5]
  216. uart_used = 0
  217. uart_port = 5
  218. uart_type = 2
  219. uart_tx = port:PH06<4><1><default><default>
  220. uart_rx = port:PH07<4><1><default><default>
  221.  
  222. [uart_para6]
  223. uart_used = 0
  224. uart_port = 6
  225. uart_type = 2
  226. uart_tx = port:PA12<4><1><default><default>
  227. uart_rx = port:PA13<4><1><default><default>
  228.  
  229. [uart_para7]
  230. uart_used = 0
  231. uart_port = 7
  232. uart_type = 2
  233. uart_tx = port:PA14<4><1><default><default>
  234. uart_rx = port:PA15<4><1><default><default>
  235.  
  236. ;-------------------------------------------------------------------------------
  237. ;spi configuration
  238. ;-------------------------------------------------------------------------------
  239. [spi0_para]
  240. spi_used = 0
  241. spi_cs_bitmap = 1
  242. spi_cs0 = port:PI10<2><default><default><default>
  243. spi_cs1 = port:PI14<2><default><default><default>
  244. spi_sclk = port:PI11<2><default><default><default>
  245. spi_mosi = port:PI12<2><default><default><default>
  246. spi_miso = port:PI13<2><default><default><default>
  247.  
  248. [spi1_para]
  249. spi_used = 0
  250. spi_cs_bitmap = 1
  251. spi_cs0 = port:PA00<3><default><default><default>
  252. spi_cs1 = port:PA04<3><default><default><default>
  253. spi_sclk = port:PA01<3><default><default><default>
  254. spi_mosi = port:PA02<3><default><default><default>
  255. spi_miso = port:PA03<3><default><default><default>
  256.  
  257. [spi2_para]
  258. spi_used = 0
  259. spi_cs_bitmap = 1
  260. spi_cs0 = port:PC19<3><default><default><default>
  261. spi_cs1 = port:PB13<2><default><default><default>
  262. spi_sclk = port:PC20<3><default><default><default>
  263. spi_mosi = port:PC21<3><default><default><default>
  264. spi_miso = port:PC22<3><default><default><default>
  265.  
  266. [spi3_para]
  267. spi_used = 0
  268. spi_cs_bitmap = 1
  269. spi_cs0 = port:PA05<3><default><default><default>
  270. spi_cs1 = port:PA09<3><default><default><default>
  271. spi_sclk = port:PA06<3><default><default><default>
  272. spi_mosi = port:PA07<3><default><default><default>
  273. spi_miso = port:PA08<3><default><default><default>
  274.  
  275. ;-------------------------------------------------------------------------------
  276. ;capacitor tp configuration
  277. ;external int function
  278. ;wakeup output function
  279. ;notice:
  280. ; tp_int_port & tp_io_port use the same port
  281. ;-------------------------------------------------------------------------------
  282. [ctp_para]
  283. ctp_used = 1
  284. ctp_name = "gsl1680"
  285. ctp_twi_id = 2
  286. ctp_twi_addr = 0x40
  287. ctp_screen_max_x = 1024
  288. ctp_screen_max_y = 600
  289. ctp_revert_x_flag = 0
  290. ctp_revert_y_flag = 0
  291. ctp_exchange_x_y_flag = 1
  292.  
  293. ctp_int_port = port:PH21<6><default><default><default>
  294. ctp_wakeup = port:PB13<1><default><default><1>
  295.  
  296. ;-------------------------------------------------------------------------------
  297. ;touch key configuration
  298. ;-------------------------------------------------------------------------------
  299. [tkey_para]
  300. tkey_used = 0
  301. tkey_twi_id = 2
  302. tkey_twi_addr = 0x62
  303. tkey_int = port:PI13<6><default><default><default>
  304.  
  305. ;-------------------------------------------------------------------------------
  306. ;motor configuration
  307. ;-------------------------------------------------------------------------------
  308. [motor_para]
  309. motor_used = 0
  310. motor_shake = port:PB03<1><default><default><1>
  311.  
  312. ;-------------------------------------------------------------------------------
  313. ;nand flash configuration
  314. ;-------------------------------------------------------------------------------
  315. [nand_para]
  316. nand_used = 1
  317. nand_we = port:PC00<2><default><default><default>
  318. nand_ale = port:PC01<2><default><default><default>
  319. nand_cle = port:PC02<2><default><default><default>
  320. nand_ce1 = port:PC03<2><default><default><default>
  321. nand_ce0 = port:PC04<2><default><default><default>
  322. nand_nre = port:PC05<2><default><default><default>
  323. nand_rb0 = port:PC06<2><default><default><default>
  324. nand_rb1 = port:PC07<2><default><default><default>
  325. nand_d0 = port:PC08<2><default><default><default>
  326. nand_d1 = port:PC09<2><default><default><default>
  327. nand_d2 = port:PC10<2><default><default><default>
  328. nand_d3 = port:PC11<2><default><default><default>
  329. nand_d4 = port:PC12<2><default><default><default>
  330. nand_d5 = port:PC13<2><default><default><default>
  331. nand_d6 = port:PC14<2><default><default><default>
  332. nand_d7 = port:PC15<2><default><default><default>
  333. nand_wp = port:PC16<2><default><default><default>
  334. nand_ce2 = port:PC17<2><default><default><default>
  335. nand_ce3 = port:PC18<2><default><default><default>
  336. nand_ce4 =
  337. nand_ce5 =
  338. nand_ce6 =
  339. nand_ce7 =
  340. nand_spi = port:PC23<3><default><default><default>
  341. nand_ndqs = port:PC24<2><default><default><default>
  342. good_block_ratio = 0
  343.  
  344. ;-------------------------------------------------------------------------------
  345. ;disp init configuration
  346. ;
  347. ;disp_mode (0:screen0<screen0,fb0> 1:screen1<screen1,fb0> 2:two_diff_screen_diff_contents<screen0,screen1,fb0,fb1>
  348. ; 3:two_same_screen_diff_contets<screen0,screen1,fb0> 4:two_diff_screen_same_contents<screen0,screen1,fb0>)
  349. ;screenx_output_type (0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga)
  350. ;screenx_output_mode (used for tv/hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50 5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60 11:pal 14:ntsc)
  351. ;screenx_output_mode (used for vga output, 0:1680*1050 1:1440*900 2:1360*768 3:1280*1024 4:1024*768 5:800*600 6:640*480 10:1920*1080 11:1280*720)
  352. ;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
  353. ;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA) --- 0 for linux, 2 for android
  354. ;lcd0_bright (lcd0 init bright,the range:[0,256],default:197
  355. ;lcd1_bright (lcd1 init bright,the range:[0,256],default:197
  356. ;-------------------------------------------------------------------------------
  357. [disp_init]
  358. disp_init_enable = 1
  359. ;disp_mode = 0
  360. disp_mode = 0
  361.  
  362. ;screen0_output_type = 1
  363. ;screen0_output_mode = 4
  364. screen0_output_type = 1
  365. screen0_output_mode = 4
  366.  
  367. ;screen0_output_type = 1
  368. ;screen0_output_mode = 4
  369. screen1_output_type = 1
  370. screen1_output_mode = 4
  371.  
  372. fb0_framebuffer_num = 2
  373. fb0_format = 10
  374. fb0_pixel_sequence = 0
  375. fb0_scaler_mode_enable = 0
  376.  
  377. fb1_framebuffer_num = 2
  378. fb1_format = 10
  379. fb1_pixel_sequence = 0
  380. fb1_scaler_mode_enable = 0
  381.  
  382. lcd0_backlight = 197
  383. lcd1_backlight = 197
  384.  
  385. lcd0_bright = 50
  386. lcd0_contrast = 50
  387. lcd0_saturation = 57
  388. lcd0_hue = 50
  389.  
  390. lcd1_bright = 50
  391. lcd1_contrast = 50
  392. lcd1_saturation = 57
  393. lcd1_hue = 50
  394.  
  395. ;-------------------------------------------------------------------------------
  396. ;lcd0 configuration
  397.  
  398. ;lcd_dclk_freq: in MHZ unit
  399. ;lcd_pwm_freq: in HZ unit
  400. ;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:hv2dsi
  401. ;lcd_hbp: hsync back porch
  402. ;lcd_ht: hsync total cycle
  403. ;lcd_vbp: vsync back porch
  404. ;lcd_vt: vysnc total cycle *2
  405. ;lcd_hv_if: 0:hv parallel 1:hv serial
  406. ;lcd_hv_smode: 0:RGB888 1:CCIR656
  407. ;lcd_hv_s888_if serial RGB format
  408. ;lcd_hv_syuv_if: serial YUV format
  409. ;lcd_hspw: hsync plus width
  410. ;lcd_vspw: vysnc plus width
  411. ;lcd_lvds_ch: 0:single channel; 1:dual channel
  412. ;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
  413. ;lcd_lvds_bitwidth: 0:24bit; 1:18bit
  414. ;lcd_lvds_io_cross: 0:normal; 1:pn cross
  415. ;lcd_cpu_if: 0:18bit; 1:16bit mode0; 2:16bit mode1; 3:16bit mode2; 4:16bit mode3; 5:9bit; 6:8bit 256K; 7:8bit 65K
  416. ;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
  417.  
  418. ;lcd_gpio_0: SCL
  419. ;lcd_gpio_1 SDA
  420. ;-------------------------------------------------------------------------------
  421. [lcd0_para]
  422. lcd_used = 1
  423.  
  424. ;1024x600
  425. lcd_x = 1024
  426. lcd_y = 600
  427. lcd_dclk_freq = 51
  428. lcd_pwm_not_used = 0
  429. lcd_pwm_ch = 0
  430. lcd_pwm_freq = 10000
  431. lcd_pwm_pol = 1
  432. lcd_if = 0
  433. lcd_hbp = 158
  434. lcd_ht = 1344
  435. lcd_vbp = 25
  436. lcd_vt = 1270
  437. lcd_vspw = 3
  438. lcd_hspw = 20
  439. lcd_hv_if = 0
  440. lcd_hv_smode = 0
  441. lcd_hv_s888_if = 0
  442. lcd_hv_syuv_if = 0
  443. lcd_lvds_ch = 0
  444. lcd_lvds_mode = 0
  445. lcd_lvds_bitwidth = 0
  446. lcd_lvds_io_cross = 0
  447. lcd_cpu_if = 0
  448. lcd_frm = 1
  449. lcd_io_cfg0 = 0x00000000
  450. lcd_gamma_correction_en = 0
  451. lcd_gamma_tbl_0 = 0x00000000
  452. lcd_gamma_tbl_1 = 0x00010101
  453. lcd_gamma_tbl_255 = 0x00ffffff
  454.  
  455. lcd_bl_en_used = 1
  456. lcd_bl_en = port:PH07<1><0><default><1>
  457.  
  458. lcd_power_used = 1
  459. lcd_power = port:PH08<1><0><default><1>
  460.  
  461. lcd_pwm_used = 1
  462. lcd_pwm = port:PB02<2><0><default><default>
  463.  
  464. lcdd0 = port:PD00<2><0><default><default>
  465. lcdd1 = port:PD01<2><0><default><default>
  466. lcdd2 = port:PD02<2><0><default><default>
  467. lcdd3 = port:PD03<2><0><default><default>
  468. lcdd4 = port:PD04<2><0><default><default>
  469. lcdd5 = port:PD05<2><0><default><default>
  470. lcdd6 = port:PD06<2><0><default><default>
  471. lcdd7 = port:PD07<2><0><default><default>
  472. lcdd8 = port:PD08<2><0><default><default>
  473. lcdd9 = port:PD09<2><0><default><default>
  474. lcdd10 = port:PD10<2><0><default><default>
  475. lcdd11 = port:PD11<2><0><default><default>
  476. lcdd12 = port:PD12<2><0><default><default>
  477. lcdd13 = port:PD13<2><0><default><default>
  478. lcdd14 = port:PD14<2><0><default><default>
  479. lcdd15 = port:PD15<2><0><default><default>
  480. lcdd16 = port:PD16<2><0><default><default>
  481. lcdd17 = port:PD17<2><0><default><default>
  482. lcdd18 = port:PD18<2><0><default><default>
  483. lcdd19 = port:PD19<2><0><default><default>
  484. lcdd20 = port:PD20<2><0><default><default>
  485. lcdd21 = port:PD21<2><0><default><default>
  486. lcdd22 = port:PD22<2><0><default><default>
  487. lcdd23 = port:PD23<2><0><default><default>
  488. lcdclk = port:PD24<2><0><default><default>
  489. lcdde = port:PD25<2><0><default><default>
  490. lcdhsync = port:PD26<2><0><default><default>
  491. lcdvsync = port:PD27<2><0><default><default>
  492.  
  493. ;----------------------------------------------------------------------------------
  494. ;lcd1 configuration
  495.  
  496. ;lcd_dclk_freq: in MHZ unit
  497. ;lcd_pwm_freq: in HZ unit
  498. ;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds
  499. ;lcd_hbp: hsync back porch
  500. ;lcd_ht: hsync total cycle
  501. ;lcd_vbp: vsync back porch
  502. ;lcd_vt: vysnc total cycle *2
  503. ;lcd_hv_if: 0:hv parallel 1:hv serial
  504. ;lcd_hv_smode: 0:RGB888 1:CCIR656
  505. ;lcd_hv_s888_if serial RGB format
  506. ;lcd_hv_syuv_if: serial YUV format
  507. ;lcd_hspw: hsync plus width
  508. ;lcd_vspw: vysnc plus width
  509. ;lcd_lvds_ch: 0:single channel; 1:dual channel
  510. ;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
  511. ;lcd_lvds_bitwidth: 0:24bit; 1:18bit
  512. ;lcd_lvds_io_cross: 0:normal; 1:pn cross
  513. ;lcd_cpu_if: 0:18bit; 1:16bit mode0; 2:16bit mode1; 3:16bit mode2; 4:16bit mode3; 5:9bit; 6:8bit 256K; 7:8bit 65K
  514. ;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
  515.  
  516. ;lcd_gpio_0: SCL
  517. ;lcd_gpio_1 SDA
  518. ;----------------------------------------------------------------------------------
  519. [lcd1_para]
  520. lcd_used = 0
  521.  
  522. lcd_x = 0
  523. lcd_y = 0
  524. lcd_dclk_freq = 0
  525. lcd_pwm_not_used = 0
  526. lcd_pwm_ch = 1
  527. lcd_pwm_freq = 0
  528. lcd_pwm_pol = 0
  529. lcd_if = 0
  530. lcd_hbp = 0
  531. lcd_ht = 0
  532. lcd_vbp = 0
  533. lcd_vt = 0
  534. lcd_vspw = 0
  535. lcd_hspw = 0
  536. lcd_hv_if = 0
  537. lcd_hv_smode = 0
  538. lcd_hv_s888_if = 0
  539. lcd_hv_syuv_if = 0
  540. lcd_lvds_ch = 0
  541. lcd_lvds_mode = 0
  542. lcd_lvds_bitwidth = 0
  543. lcd_lvds_io_cross = 0
  544. lcd_cpu_if = 0
  545. lcd_frm = 0
  546. lcd_io_cfg0 = 0
  547. lcd_gamma_correction_en = 0
  548. lcd_gamma_tbl_0 = 0x00000000
  549. lcd_gamma_tbl_1 = 0x00010101
  550. lcd_gamma_tbl_255 = 0x00ffffff
  551.  
  552. lcd_bl_en_used = 0
  553. lcd_bl_en =
  554.  
  555. lcd_power_used = 0
  556. lcd_power =
  557.  
  558. lcd_pwm_used = 1
  559. lcd_pwm = port:PI03<2><0><default><default>
  560.  
  561. lcd_gpio_0 =
  562. lcd_gpio_1 =
  563. lcd_gpio_2 =
  564. lcd_gpio_3 =
  565.  
  566. lcdd0 = port:PH00<2><0><default><default>
  567. lcdd1 = port:PH01<2><0><default><default>
  568. lcdd2 = port:PH02<2><0><default><default>
  569. lcdd3 = port:PH03<2><0><default><default>
  570. lcdd4 = port:PH04<2><0><default><default>
  571. lcdd5 = port:PH05<2><0><default><default>
  572. lcdd6 = port:PH06<2><0><default><default>
  573. lcdd7 = port:PH07<2><0><default><default>
  574. lcdd8 = port:PH08<2><0><default><default>
  575. lcdd9 = port:PH09<2><0><default><default>
  576. lcdd10 = port:PH10<2><0><default><default>
  577. lcdd11 = port:PH11<2><0><default><default>
  578. lcdd12 = port:PH12<2><0><default><default>
  579. lcdd13 = port:PH13<2><0><default><default>
  580. lcdd14 = port:PH14<2><0><default><default>
  581. lcdd15 = port:PH15<2><0><default><default>
  582. lcdd16 = port:PH16<2><0><default><default>
  583. lcdd17 = port:PH17<2><0><default><default>
  584. lcdd18 = port:PH18<2><0><default><default>
  585. lcdd19 = port:PH19<2><0><default><default>
  586. lcdd20 = port:PH20<2><0><default><default>
  587. lcdd21 = port:PH21<2><0><default><default>
  588. lcdd22 = port:PH22<2><0><default><default>
  589. lcdd23 = port:PH23<2><0><default><default>
  590. lcdclk = port:PH24<2><0><default><default>
  591. lcdde = port:PH25<2><0><default><default>
  592. lcdhsync = port:PH26<2><0><default><default>
  593. lcdvsync = port:PH27<2><0><default><default>
  594.  
  595. ;-------------------------------------------------------------------------------
  596. ;tv out dac configuration
  597. ;dacx_src: 0:composite; 1:luma; 2:chroma; 4:Y; 5:Pb; 6: Pr; 7:none
  598. ;-------------------------------------------------------------------------------
  599. [tv_out_dac_para]
  600. dac_used = 1
  601. dac0_src = 4
  602. dac1_src = 5
  603. dac2_src = 6
  604. dac3_src = 0
  605.  
  606. ;----------------------------------------------------------------------------------
  607. ;hdmi configuration
  608. ;----------------------------------------------------------------------------------
  609. [hdmi_para]
  610. hdmi_used = 1
  611.  
  612.  
  613. [camera_list_para]
  614. camera_list_para_used = 1
  615. ov7670 = 0
  616. gc0308 = 1
  617. gt2005 = 0
  618. hi704 = 0
  619. sp0838 = 0
  620. mt9m112 = 0
  621. mt9m113 = 0
  622. ov2655 = 0
  623. hi253 = 0
  624. gc0307 = 0
  625. mt9d112 = 0
  626. ov5640 = 1
  627. gc2015 = 0
  628. ov2643 = 0
  629. gc0329 = 0
  630. gc0309 = 0
  631. tvp5150 = 0
  632. s5k4ec = 0
  633. ov5650_mv9335 = 0
  634. siv121d = 0
  635.  
  636. ;--------------------------------------------------------------------------------
  637. ;csi gpio configuration
  638. ;csi_if: 0:hv_8bit 1:hv_16bit 2:hv_24bit 3:bt656 1ch 4:bt656 2ch 5:bt656 4ch
  639. ;csi_mode: 0:sample one csi to one buffer 1:sample two csi to one buffer
  640. ;csi_dev_qty: The quantity of devices linked to csi interface
  641. ;csi_vflip: flip in vertical direction 0:disable 1:enable
  642. ;csi_hflip: flip in horizontal direction 0:disable 1:enable
  643. ;csi_stby_mode: 0:not shut down power at standby 1:shut down power at standby
  644. ;csi_iovdd: camera module io power , pmu power supply
  645. ;csi_avdd: camera module analog power , pmu power supply
  646. ;csi_dvdd: camera module core power , pmu power supply
  647. ;pmu_ldo3: fill "axp20_pll"
  648. ;pmu_ldo4: fill "axp20_hdmi"
  649. ;fill "" when not using any pmu power supply
  650. ;csi_flash_pol: the active polority of the flash light IO 0:low active 1:high active
  651. ;--------------------------------------------------------------------------------
  652.  
  653. [csi0_para]
  654. csi_used = 1
  655.  
  656. csi_dev_qty = 2
  657. csi_stby_mode = 0
  658. csi_mname = "gc2035"
  659. csi_twi_id = 1
  660. csi_twi_addr = 0x78
  661. csi_if = 0
  662. csi_vflip = 0
  663. csi_hflip = 0
  664. csi_iovdd = "axp20_pll"
  665. csi_avdd = ""
  666. csi_dvdd = ""
  667. csi_vol_iovdd = 2800
  668. csi_vol_dvdd =
  669. csi_vol_avdd =
  670. csi_flash_pol = 0
  671.  
  672. csi_mname_b = "gc0308"
  673. csi_twi_id_b = 1
  674. csi_twi_addr_b = 0x42
  675. csi_if_b = 0
  676. csi_vflip_b = 1
  677. csi_hflip_b = 0
  678. csi_iovdd_b = "axp20_pll"
  679. csi_avdd_b = ""
  680. csi_dvdd_b = ""
  681. csi_vol_iovdd_b = 2800
  682. csi_vol_avdd_b =
  683. csi_vol_dvdd_b =
  684. csi_flash_pol_b = 0
  685.  
  686. csi_pck = port:PE00<3><default><default><default>
  687. csi_ck = port:PE01<3><default><default><default>
  688. csi_hsync = port:PE02<3><default><default><default>
  689. csi_vsync = port:PE03<3><default><default><default>
  690. csi_d0 = port:PE04<3><default><default><default>
  691. csi_d1 = port:PE05<3><default><default><default>
  692. csi_d2 = port:PE06<3><default><default><default>
  693. csi_d3 = port:PE07<3><default><default><default>
  694. csi_d4 = port:PE08<3><default><default><default>
  695. csi_d5 = port:PE09<3><default><default><default>
  696. csi_d6 = port:PE10<3><default><default><default>
  697. csi_d7 = port:PE11<3><default><default><default>
  698. csi_reset = port:PH13<1><default><default><0>
  699. csi_power_en = port:PH16<1><default><default><0>
  700. csi_stby = port:PH19<1><default><default><0>
  701. csi_flash =
  702. csi_af_en =
  703. csi_reset_b = port:PH13<1><default><default><0>
  704. csi_power_en_b =
  705. csi_stby_b = port:PH18<1><default><default><0>
  706. csi_flash_b =
  707. csi_af_en_b =
  708.  
  709. [csi1_para]
  710. csi_used = 0
  711.  
  712. csi_dev_qty = 1
  713. csi_stby_mode = 0
  714. csi_mname = "gc0308"
  715. csi_if = 0
  716. csi_iovdd = "axp20_pll"
  717. csi_avdd = ""
  718. csi_dvdd = ""
  719. csi_vol_iovdd = 2800
  720. csi_vol_dvdd =
  721. csi_vol_avdd =
  722. csi_vflip = 0
  723. csi_hflip = 0
  724. csi_flash_pol = 0
  725. csi_facing = 1
  726.  
  727. csi_twi_id = 1
  728. csi_twi_addr = 0x42
  729. csi_pck = port:PG00<3><default><default><default>
  730. csi_ck = port:PG01<3><default><default><default>
  731. csi_hsync = port:PG02<3><default><default><default>
  732. csi_vsync = port:PG03<3><default><default><default>
  733. csi_d0 = port:PG04<3><default><default><default>
  734. csi_d1 = port:PG05<3><default><default><default>
  735. csi_d2 = port:PG06<3><default><default><default>
  736. csi_d3 = port:PG07<3><default><default><default>
  737. csi_d4 = port:PG08<3><default><default><default>
  738. csi_d5 = port:PG09<3><default><default><default>
  739. csi_d6 = port:PG10<3><default><default><default>
  740. csi_d7 = port:PG11<3><default><default><default>
  741. csi_reset = port:PH13<1><default><default><0>
  742. csi_power_en = port:PH16<1><default><default><0>
  743. csi_stby = port:PH19<1><default><default><0>
  744.  
  745. ;-------------------------------------------------------------------------------
  746. ;tv configuration
  747. ;
  748. ;-------------------------------------------------------------------------------
  749. [tvout_para]
  750. tvout_used = 1
  751. tvout_channel_num = 1
  752.  
  753. [tvin_para]
  754. tvin_used = 0
  755. tvin_channel_num = 4
  756.  
  757.  
  758. ;-------------------------------------------------------------------------------
  759. ;sata configuration
  760. ;
  761. ;-------------------------------------------------------------------------------
  762. [sata_para]
  763. sata_used = 1
  764. sata_power_en =
  765.  
  766.  
  767. ;-------------------------------------------------------------------------------
  768. ; SDMMC PINS MAPPING
  769. ; ------------------------------------------------------------------------------
  770. ; Config Guide
  771. ; sdc_used: 1-enable card, 0-disable card
  772. ; sdc_detmode: card detect mode
  773. ; 1-detect card by gpio polling
  774. ; 2-detect card by gpio irq(must use IO with irq function)
  775. ; 3-no detect, always in for boot card
  776. ; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert
  777. ; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit
  778. ; sdc_use_wp: 1-with write protect IO, 0-no write protect IO
  779. ; sdc_isio: for sdio card
  780. ; sdc_regulator: power control.
  781. ; other: GPIO Mapping configuration
  782. ; ------------------------------------------------------------------------------
  783. ; Note:
  784. ; 1 if detmode=2, sdc_det's config=6
  785. ; else if detmode=1, sdc_det's config=0
  786. ; else sdc_det IO is not necessary
  787. ; 2 if the customer wants to support UHS-I and HS200 features, he must provide
  788. ; an independent power supply for the card. This is only used in platforms
  789. ; that supports SD3.0 cards and eMMC4.4+ flashes
  790. ;-------------------------------------------------------------------------------
  791. [mmc0_para]
  792. sdc_used = 1
  793. sdc_detmode = 1
  794. sdc_buswidth = 4
  795. sdc_clk = port:PF02<2><1><2><default>
  796. sdc_cmd = port:PF03<2><1><2><default>
  797. sdc_d0 = port:PF01<2><1><2><default>
  798. sdc_d1 = port:PF00<2><1><2><default>
  799. sdc_d2 = port:PF05<2><1><2><default>
  800. sdc_d3 = port:PF04<2><1><2><default>
  801. sdc_det = port:PH1<0><1><default><default>
  802. sdc_use_wp = 0
  803. sdc_wp =
  804. sdc_isio = 0
  805. sdc_regulator = "none"
  806.  
  807. [mmc1_para]
  808. sdc_used = 0
  809. sdc_detmode = 4
  810. sdc_buswidth = 4
  811. sdc_clk = port:PG00<2><1><2><default>
  812. sdc_cmd = port:PG01<2><1><2><default>
  813. sdc_d0 = port:PG02<2><1><2><default>
  814. sdc_d1 = port:PG03<2><1><2><default>
  815. sdc_d2 = port:PG04<2><1><2><default>
  816. sdc_d3 = port:PG05<2><1><2><default>
  817. sdc_det =
  818. sdc_use_wp = 0
  819. sdc_wp =
  820. sdc_isio = 0
  821. sdc_regulator = "none"
  822.  
  823. [mmc2_para]
  824. sdc_used = 0
  825. sdc_detmode = 3
  826. sdc_buswidth = 4
  827. sdc_cmd = port:PC06<3><1><2><default>
  828. sdc_clk = port:PC07<3><1><2><default>
  829. sdc_d0 = port:PC08<3><1><2><default>
  830. sdc_d1 = port:PC09<3><1><2><default>
  831. sdc_d2 = port:PC10<3><1><2><default>
  832. sdc_d3 = port:PC11<3><1><2><default>
  833. sdc_det =
  834. sdc_use_wp = 0
  835. sdc_wp =
  836. sdc_isio = 0
  837. sdc_regulator = "none"
  838.  
  839. [mmc3_para]
  840. sdc_used = 0
  841. sdc_detmode = 4
  842. sdc_buswidth = 4
  843. sdc_cmd = port:PI04<2><1><2><default>
  844. sdc_clk = port:PI05<2><1><2><default>
  845. sdc_d0 = port:PI06<2><1><2><default>
  846. sdc_d1 = port:PI07<2><1><2><default>
  847. sdc_d2 = port:PI08<2><1><2><default>
  848. sdc_d3 = port:PI09<2><1><2><default>
  849. sdc_det =
  850. sdc_use_wp = 0
  851. sdc_wp =
  852. sdc_isio = 1
  853. sdc_regulator = "none"
  854.  
  855. ; ------------------------------------------------------------------------------
  856. ; memory stick configuration
  857. ;-------------------------------------------------------------------------------
  858. [ms_para]
  859. ms_used = 0
  860. ms_bs = port:PH06<5><default><default><default>
  861. ms_clk = port:PH07<5><default><default><default>
  862. ms_d0 = port:PH08<5><default><default><default>
  863. ms_d1 = port:PH09<5><default><default><default>
  864. ms_d2 = port:PH10<5><default><default><default>
  865. ms_d3 = port:PH11<5><default><default><default>
  866. ms_det =
  867.  
  868. ; ------------------------------------------------------------------------------
  869. ; sim card configuration
  870. ;-------------------------------------------------------------------------------
  871. [smc_para]
  872. smc_used = 0
  873. smc_rst = port:PH13<5><default><default><default>
  874. smc_vppen = port:PH14<5><default><default><default>
  875. smc_vppp = port:PH15<5><default><default><default>
  876. smc_det = port:PH16<5><default><default><default>
  877. smc_vccen = port:PH17<5><default><default><default>
  878. smc_sck = port:PH18<5><default><default><default>
  879. smc_sda = port:PH19<5><default><default><default>
  880.  
  881. ;-------------------------------------------------------------------------------
  882. ;ps2 configuration
  883. ;-------------------------------------------------------------------------------
  884. [ps2_0_para]
  885. ps2_used = 0
  886. ps2_scl = port:PI20<2><1><default><default>
  887. ps2_sda = port:PI21<2><1><default><default>
  888.  
  889. [ps2_1_para]
  890. ps2_used = 0
  891. ps2_scl = port:PI14<3><1><default><default>
  892. ps2_sda = port:PI15<3><1><default><default>
  893.  
  894. ;-------------------------------------------------------------------------------
  895. ;can bus configuration
  896. ;-------------------------------------------------------------------------------
  897. [can_para]
  898. can_used = 0
  899. can_tx = port:PA16<3><default><default><default>
  900. can_rx = port:PA17<3><default><default><default>
  901.  
  902. ;-------------------------------------------------------------------------------
  903. ;key matrix
  904. ;-------------------------------------------------------------------------------
  905. [keypad_para]
  906. kp_used = 0
  907. kp_in_size = 8
  908. kp_out_size = 8
  909. kp_in0 = port:PH08<4><1><default><default>
  910. kp_in1 = port:PH09<4><1><default><default>
  911. kp_in2 = port:PH10<4><1><default><default>
  912. kp_in3 = port:PH11<4><1><default><default>
  913. kp_in4 = port:PH14<4><1><default><default>
  914. kp_in5 = port:PH15<4><1><default><default>
  915. kp_in6 = port:PH16<4><1><default><default>
  916. kp_in7 = port:PH17<4><1><default><default>
  917. kp_out0 = port:PH18<4><1><default><default>
  918. kp_out1 = port:PH19<4><1><default><default>
  919. kp_out2 = port:PH22<4><1><default><default>
  920. kp_out3 = port:PH23<4><1><default><default>
  921. kp_out4 = port:PH24<4><1><default><default>
  922. kp_out5 = port:PH25<4><1><default><default>
  923. kp_out6 = port:PH26<4><1><default><default>
  924. kp_out7 = port:PH27<4><1><default><default>
  925.  
  926.  
  927. ;-------------------------------------------------------------------------------
  928. ;[usbc0]:控制器0的配置。
  929. ;usb_used:USB使能标志。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。
  930. ;usb_port_type:USB端口的使用情况。 0:device only;1:host only;2:OTG
  931. ;usb_detect_type:USB端口的检查方式。0:不做检测;1:vbus/id检查;2:id/dpdm检查
  932. ;usb_id_gpio:USB ID pin脚配置。具体请参考gpio配置说明。
  933. ;usb_det_vbus_gpio:USB DET_VBUS pin脚配置。具体请参考gpio配置说明。
  934. ;usb_drv_vbus_gpio:USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。
  935. ;usb_det_vbus_gpio: "axp_ctrl",表示axp 提供
  936. ;usb_restrict_gpio usb限流控制pin
  937. ;usb_restric_flag: usb限流标置
  938. ;-------------------------------------------------------------------------------
  939. ;-------------------------------------------------------------------------------
  940. ;--- USB0控制标志
  941. ;-------------------------------------------------------------------------------
  942. [usbc0]
  943. usb_used = 1
  944. usb_port_type = 2
  945. usb_detect_type = 1
  946. usb_id_gpio = port:PH04<0><1><default><default>
  947. usb_det_vbus_gpio = "axp_ctrl"
  948. usb_drv_vbus_gpio = port:PB09<1><0><default><0>
  949. usb_ac_enable_gpio = port:PH05<1><0><default><0>
  950. usb_restrict_gpio = 0
  951. usb_host_init_state = 0
  952. usb_restric_flag = 0
  953. usb_restric_voltage = 3550000
  954. usb_restric_capacity= 5
  955.  
  956. ;-------------------------------------------------------------------------------
  957. ;--- USB1控制标志
  958. ;------------------------------------------------------------------------------
  959. [usbc1]
  960. usb_used = 1
  961. usb_port_type = 1
  962. usb_detect_type = 0
  963. usb_drv_vbus_gpio = port:PH06<1><0><default><0>
  964. usb_restrict_gpio =
  965. usb_host_init_state = 1
  966. usb_restric_flag = 0
  967.  
  968. ;------------------------------------------------------------------------------
  969. ;--- USB2控制标志
  970. ;------------------------------------------------------------------------------
  971. [usbc2]
  972. usb_used = 1
  973. usb_port_type = 1
  974. usb_detect_type = 0
  975. usb_drv_vbus_gpio = port:PH03<1><0><default><0>
  976. usb_restrict_gpio =
  977.  
  978. usb_host_init_state = 0
  979. usb_restric_flag = 0
  980.  
  981. ;--------------------------------
  982. ;--- USB Device
  983. ;--------------------------------
  984. [usb_feature]
  985. vendor_id = 0x18D1
  986. mass_storage_id = 0x0001
  987. adb_id = 0x0002
  988.  
  989. manufacturer_name = "USB Developer"
  990. product_name = "Android"
  991. serial_number = "20080411"
  992.  
  993. [msc_feature]
  994. vendor_name = "USB 2.0"
  995. product_name = "USB Flash Driver"
  996. release = 100
  997. luns = 2
  998.  
  999. ;-------------------------------------------------------------------------------
  1000. ; G sensor configuration
  1001. ; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
  1002. ;-------------------------------------------------------------------------------
  1003. [gsensor_para]
  1004. gsensor_used = 1
  1005. gsensor_twi_id = 1
  1006. gsensor_int1 =
  1007. gsensor_int2 =
  1008.  
  1009. ;-------------------------------------------------------------------------------
  1010. ; gps gpio configuration
  1011. ; gps_spi_id --- the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
  1012. ; gps_spi_cs_num --- the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
  1013. ; gps_lradc --- the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
  1014. ;-------------------------------------------------------------------------------
  1015. [gps_para]
  1016. gps_used = 0
  1017. gps_spi_id = 2
  1018. gps_spi_cs_num = 0
  1019. gps_lradc = 1
  1020. gps_clk = port:PI00<2><default><default><default>
  1021. gps_sign = port:PI01<2><default><default><default>
  1022. gps_mag = port:PI02<2><default><default><default>
  1023. gps_vcc_en = port:PC22<1><default><default><0>
  1024. gps_osc_en = port:PI14<1><default><default><0>
  1025. gps_rx_en = port:PI15<1><default><default><0>
  1026.  
  1027. ;--------------------------------------------------------------------------------
  1028. ;wifi configuration
  1029. ;wifi_sdc_id --- 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
  1030. ;wifi_usbc_id --- 0- USB0, 1- USB1, 2- USB2
  1031. ;wifi_usbc_type -- 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
  1032. ;wifi_mod_sel --- 0- none, 1- bcm40181, 2- bcm40183(wifi+bt),
  1033. ; 3 - rtl8723as(wifi+bt), 4- rtl8189es(SM89E00),
  1034. ; 5 - rtl8192cu, 6 - rtl8188eu, 7 - ap6210
  1035. ;--------------------------------------------------------------------------------
  1036. [wifi_para]
  1037. wifi_used = 1
  1038. wifi_sdc_id = 3
  1039. wifi_usbc_id = 2
  1040. wifi_usbc_type = 1
  1041. wifi_mod_sel = 6
  1042. wifi_power = ""
  1043.  
  1044. ; 1 - bcm40181 sdio wifi gpio config
  1045. ;bcm40181_shdn = port:PH09<1><default><default><0>
  1046. ;bcm40181_host_wake = port:PH10<0><default><default><0>
  1047.  
  1048. ; 2 - bcm40183 sdio wifi gpio config
  1049. ;bcm40183_wl_regon = port:PH09<1><default><default><0>
  1050. ;bcm40183_wl_host_wake = port:PH10<0><default><default><0>
  1051. ;bcm40183_bt_rst = port:PB05<1><default><default><0>
  1052. ;bcm40183_bt_regon = port:PB05<1><default><default><0>
  1053. ;bcm40183_bt_wake = port:PI20<1><default><default><0>
  1054. ;bcm40183_bt_host_wake = port:PI21<0><default><default><0>
  1055.  
  1056. ; 3 - rtl8723as sdio wifi + bt gpio config
  1057. rtk_rtl8723as_wl_dis = port:PH09<1><default><default><0>
  1058. rtk_rtl8723as_bt_dis = port:PB05<1><default><default><0>
  1059. rtk_rtl8723as_wl_host_wake = port:PH10<0><default><default><0>
  1060. rtk_rtl8723as_bt_host_wake = port:PI21<0><default><default><0>
  1061.  
  1062. ; 4 - rtl8189es sdio wifi gpio config
  1063. ;rtl8189es_shdn = port:PH09<1><default><default><0>
  1064. ;rtl8189es_wakeup = port:PH10<1><default><default><1>
  1065. ; 5 - rtl8192cu usb wifi
  1066. ; 6 - rtl8188eu usb wifi
  1067. ; 7 - ap6210 sdio wifi + bt gpio config
  1068. ap6xxx_wl_regon = port:PH09<1><default><default><0>
  1069. ap6xxx_wl_host_wake = port:PH10<0><default><default><0>
  1070. ap6xxx_bt_regon = port:PB05<1><default><default><0>
  1071. ap6xxx_bt_wake = port:PI20<1><default><default><0>
  1072. ap6xxx_bt_host_wake = port:PI21<0><default><default><0>
  1073.  
  1074. ;-------------------------------------------------------------------------------
  1075. ;3G configuration
  1076. ;-------------------------------------------------------------------------------
  1077. [3g_para]
  1078. 3g_used = 0
  1079. 3g_usbc_num = 2
  1080. 3g_uart_num = 0
  1081. 3g_pwr =
  1082. 3g_wakeup =
  1083. 3g_int =
  1084.  
  1085. ;-------------------------------------------------------------------------------
  1086. ;gyroscope
  1087. ;-------------------------------------------------------------------------------
  1088. [gy_para]
  1089. gy_used = 0
  1090. gy_twi_id = 1
  1091. gy_twi_addr = 0x00
  1092. gy_int1 = port:PH18<6><1><default><default>
  1093. gy_int2 = port:PH19<6><1><default><default>
  1094.  
  1095. ;-------------------------------------------------------------------------------
  1096. ;light sensor
  1097. ;-------------------------------------------------------------------------------
  1098. [ls_para]
  1099. ls_used = 0
  1100. ls_twi_id = 1
  1101. ls_twi_addr = 0x00
  1102. ls_int = port:PH20<6><1><default><default>
  1103.  
  1104. ;-------------------------------------------------------------------------------
  1105. ;compass
  1106. ;-------------------------------------------------------------------------------
  1107. [compass_para]
  1108. compass_used = 0
  1109. compass_twi_id = 1
  1110. compass_twi_addr = 0x00
  1111. compass_int = port:PI13<6><1><default><default>
  1112.  
  1113. ;-------------------------------------------------------------------------------
  1114. ;blue tooth
  1115. ;bt_used ---- blue tooth used (0- no used, 1- used)
  1116. ;bt_uard_id ---- uart index
  1117. ;-------------------------------------------------------------------------------
  1118. [bt_para]
  1119. bt_used = 0
  1120. bt_uart_id = 2
  1121. bt_wakeup = port:PI20<1><default><default><default>
  1122. bt_gpio = port:PI21<1><default><default><default>
  1123. bt_rst = port:PB05<1><default><default><default>
  1124.  
  1125. [i2s_para]
  1126. i2s_used = 0
  1127. i2s_channel = 2
  1128. i2s_mclk = port:PB5<2><1><default><default>
  1129. i2s_bclk = port:PB6<2><1><default><default>
  1130. i2s_lrclk = port:PB7<2><1><default><default>
  1131. i2s_dout0 = port:PB8<2><1><default><default>
  1132. i2s_dout1 =
  1133. i2s_dout2 =
  1134. i2s_dout3 =
  1135. i2s_din = port:PB12<2><1><default><default>
  1136.  
  1137. [spdif_para]
  1138. spdif_used = 0
  1139. spdif_mclk =
  1140. spdif_dout = port:PB13<4><1><default><default>
  1141. spdif_din =
  1142.  
  1143. [audio_para]
  1144. audio_used = 1
  1145. audio_pa_ctrl = port:PH15<1><default><default><0>
  1146.  
  1147. [switch_para]
  1148. switch_used = 1
  1149.  
  1150. ;-------------------------------------------------------------------------------
  1151. ;ir --- infra remote configuration
  1152. ;-------------------------------------------------------------------------------
  1153. [ir_para]
  1154. ir_used = 0
  1155. ir_rx = port:PB04<2><default><default><default>
  1156.  
  1157.  
  1158. ;-------------------------------------------------------------------------------
  1159. ;pmu_twi_addr ---slave address
  1160. ;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
  1161. ;pmu_irq_id ---irq number (0 irq0,1 irq1,……)
  1162. ;pmu_battery_rdc ---battery initial resistance,mΩ,根据实际电池内阻填写
  1163. ;pmu_battery_cap ---battery capability,mAh,根据实际电池容量填写
  1164. ;pmu_init_chgcur ---set initial charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
  1165. ;pmu_suspend_chgcur ---set suspend charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
  1166. ;pmu_resume_chgcur ---set resume charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
  1167. ;pmu_shutdown_chgcur ---set shutdown charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
  1168. ;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4150/4200/4360
  1169. ;pmu_init_chgend_rate ---set initial charing end current rate,10/15
  1170. ;pmu_init_chg_enabled ---set initial charing enabled,0:关闭,1:打开
  1171. ;pmu_init_adc_freq ---set initial adc frequency,Hz,25/50/100/200
  1172. ;pmu_init_adc_freqc ---set initial coulomb adc coufrequency,Hz,25/50/100/200
  1173. ;pmu_init_chg_pretime ---set initial pre-charging time,min,40/50/60/70
  1174. ;pmu_init_chg_csttime ---set initial constance-charging time,min,360/480/600/720
  1175. ;pmu_bat_para1 ---battery indication at 3.1328V
  1176. ;pmu_bat_para2 ---battery indication at 3.2736V
  1177. ;pmu_bat_para3 ---battery indication at 3.4144V
  1178. ;pmu_bat_para4 ---battery indication at 3.5552V
  1179. ;pmu_bat_para5 ---battery indication at 3.6256V
  1180. ;pmu_bat_para6 ---battery indication at 3.6608V
  1181. ;pmu_bat_para7 ---battery indication at 3.6960V
  1182. ;pmu_bat_para8 ---battery indication at 3.7312V
  1183. ;pmu_bat_para9 ---battery indication at 3.7664V
  1184. ;pmu_bat_para10 ---battery indication at 3.8016V
  1185. ;pmu_bat_para11 ---battery indication at 3.8368V
  1186. ;pmu_bat_para12 ---battery indication at 3.8720V
  1187. ;pmu_bat_para13 ---battery indication at 3.9424V
  1188. ;pmu_bat_para14 ---battery indication at 4.0128V
  1189. ;pmu_bat_para15 ---battery indication at 4.0832V
  1190. ;pmu_bat_para16 ---battery indication at 4.1536V
  1191. ;pmu_usbvol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
  1192. ;pmu_usbcur ---set usb-ac limited voltage level,mA,100/500/900, 0 - not limite
  1193. ;pmu_usbvol_pc ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
  1194. ;pmu_usbcur_pc ---set usb-pc limited voltage level,mA,100/500/900, 0 - not limite
  1195. ;pmu_pwroff_vol ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
  1196. ;pmu_pwron_vol ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
  1197. ;pmu_pekoff_time ---set pek off time,ms, 4000/6000/8000/10000
  1198. ;pmu_pekoff_en ---set pek off enable, 0:关闭,1:打开
  1199. ;pmu_peklong_time ---set pek pek long irq time,ms,1000/1500/2000/2500
  1200. ;pmu_pekon_time ---set pek on time,ms,128/1000/2000/3000
  1201. ;pmu_pwrok_time ---set pmu pwrok delay time,ms,8/64
  1202. ;pmu_pwrnoe_time ---set pmu n_oe power down delay time,ms,128/1000/2000/3000
  1203. ;pmu_intotp_en ---set pmu power down when overtempertur enable,0:关闭,1:打开
  1204. ;pmu_suspendpwroff_vol ---set pmu shutdown voltage when cpu is suspend and battery voltage is low
  1205. ;pmu_batdeten ---set pmu battery detect enabled,0:关闭,1:打开
  1206. ;-------------------------------------------------------------------------------
  1207. [pmu_para]
  1208. pmu_used = 1
  1209. pmu_twi_addr = 0x34
  1210. pmu_twi_id = 0
  1211. pmu_irq_id = 32
  1212. pmu_battery_rdc = 171
  1213. pmu_battery_cap = 2700
  1214. pmu_init_chgcur = 300
  1215. pmu_earlysuspend_chgcur = 600
  1216. pmu_suspend_chgcur = 1000
  1217. pmu_resume_chgcur = 300
  1218. pmu_shutdown_chgcur = 1000
  1219. pmu_init_chgvol = 4200
  1220. pmu_init_chgend_rate = 15
  1221. pmu_init_chg_enabled = 1
  1222. pmu_init_adc_freq = 100
  1223. pmu_init_adc_freqc = 100
  1224. pmu_init_chg_pretime = 50
  1225. pmu_init_chg_csttime = 720
  1226.  
  1227. pmu_bat_para1 = 0
  1228. pmu_bat_para2 = 0
  1229. pmu_bat_para3 = 0
  1230. pmu_bat_para4 = 0
  1231. pmu_bat_para5 = 5
  1232. pmu_bat_para6 = 11
  1233. pmu_bat_para7 = 13
  1234. pmu_bat_para8 = 15
  1235. pmu_bat_para9 = 19
  1236. pmu_bat_para10 = 32
  1237. pmu_bat_para11 = 50
  1238. pmu_bat_para12 = 58
  1239. pmu_bat_para13 = 71
  1240. pmu_bat_para14 = 81
  1241. pmu_bat_para15 = 89
  1242. pmu_bat_para16 = 100
  1243.  
  1244. pmu_usbvol_limit = 1
  1245. pmu_usbcur_limit = 0
  1246. pmu_usbvol = 4000
  1247. pmu_usbcur = 0
  1248.  
  1249. pmu_usbvol_pc = 4400
  1250. pmu_usbcur_pc = 500
  1251.  
  1252. pmu_pwroff_vol = 3300
  1253. pmu_pwron_vol = 2900
  1254.  
  1255. pmu_pekoff_time = 6000
  1256. pmu_pekoff_en = 1
  1257. pmu_peklong_time = 1500
  1258. pmu_pekon_time = 1000
  1259. pmu_pwrok_time = 64
  1260. pmu_pwrnoe_time = 2000
  1261. pmu_intotp_en = 1
  1262.  
  1263. pmu_used2 = 0
  1264. pmu_adpdet = port:PH02<0><default><default><default>
  1265. pmu_init_chgcur2 = 400
  1266. pmu_earlysuspend_chgcur2 = 600
  1267. pmu_suspend_chgcur2 = 1200
  1268. pmu_resume_chgcur2 = 400
  1269. pmu_shutdown_chgcur2 = 1200
  1270.  
  1271. pmu_suspendpwroff_vol = 3500
  1272.  
  1273. pmu_batdeten = 1
  1274.  
  1275. [recovery_key]
  1276. key_min = 4
  1277. key_max = 40
  1278.  
  1279. ;----------------------------------------------------------------------------------
  1280. ; dvfs voltage-frequency table configuration
  1281. ;
  1282. ; max_freq: cpu maximum frequency, based on Hz, can not be more than 1008MHz
  1283. ; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz
  1284. ;
  1285. ; LV_count: count of LV_freq/LV_volt, must be < 16
  1286. ;
  1287. ; LV1: core vdd is 1.45v if cpu frequency is (912Mhz, 1008Mhz]
  1288. ; LV2: core vdd is 1.40v if cpu frequency is (864Mhz, 912Mhz]
  1289. ; LV3: core vdd is 1.30v if cpu frequency is (720Mhz, 864Mhz]
  1290. ; LV4: core vdd is 1.20v if cpu frequency is (528Mhz, 720Mhz]
  1291. ; LV5: core vdd is 1.10v if cpu frequency is (312Mhz, 528Mhz]
  1292. ; LV6: core vdd is 1.00v if cpu frequency is (144Mhz, 312Mhz]
  1293. ; LV7: core vdd is 0.90v if cpu frequency is (60Mhz, 144Mhz]
  1294. ;
  1295. ;----------------------------------------------------------------------------------
  1296. [dvfs_table]
  1297. max_freq = 912000000
  1298. min_freq = 60000000
  1299.  
  1300. LV_count = 7
  1301.  
  1302. LV1_freq = 1008000000
  1303. LV1_volt = 1450
  1304.  
  1305. LV2_freq = 912000000
  1306. LV2_volt = 1400
  1307.  
  1308. LV3_freq = 864000000
  1309. LV3_volt = 1300
  1310.  
  1311. LV4_freq = 720000000
  1312. LV4_volt = 1200
  1313.  
  1314. LV5_freq = 528000000
  1315. LV5_volt = 1100
  1316.  
  1317. LV6_freq = 312000000
  1318. LV6_volt = 1000
  1319.  
  1320. LV7_freq = 144000000
  1321. LV7_volt = 1000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement