SHARE
TWEET

Untitled

a guest May 23rd, 2013 138 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;A31 PAD application
  2. ;---------------------------------------------------------------------------------------------------------
  3. ; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
  4. ; 描述gpio的形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
  5. ;---------------------------------------------------------------------------------------------------------
  6.  
  7. [product]
  8. version = "100"
  9. machine = "onda978q9p6"
  10.  
  11. [platform]
  12. eraseflag   = 1
  13.  
  14. [fel_key]
  15. fel_key_type = 1
  16.  
  17. ;----------------------------------------------------------------------------------
  18. ;   system configuration
  19. ;   ?
  20. ;dcdc1_vol                                                      ---set dcdc1 voltage,mV,1600-3400,100mV/step
  21. ;dcdc2_vol                                                      ---set dcdc2 voltage,mV,600-1540,20mV/step
  22. ;dcdc3_vol                                                      ---set dcdc3 voltage,mV,600-1860,20mV/step
  23. ;dcdc4_vol                                                      ---set dcdc4 voltage,mV,600-1540,20mV/step
  24. ;dcdc5_vol                                                      ---set dcdc5 voltage,mV,1000-2550,50mV/step
  25. ;aldo2_vol                                                      ---set aldo2 voltage,mV,700-3300,100mV/step
  26. ;aldo3_vol                                                      ---set aldo3 voltage,mV,700-3300,100mV/step
  27. ;----------------------------------------------------------------------------------
  28. [target]
  29. boot_clock      = 1008
  30. storage_type    = -1
  31.  
  32. [power_sply]
  33. dcdc1_vol                  = 3000
  34. dcdc2_vol                  = 1200
  35. dcdc3_vol                  = 1260
  36. dcdc4_vol                  = 1200
  37. dcdc5_vol                  = 1500
  38. aldo2_vol                  = 1800
  39. aldo3_vol                  = 3000
  40.  
  41. [card_boot]
  42. logical_start   = 40960
  43. sprite_gpio0    =
  44.  
  45. ;---------------------------------------------------------------------------------------------------------
  46. ; if 1 == standby_mode, then support super standby;
  47. ; else, support normal standby.
  48. ;---------------------------------------------------------------------------------------------------------
  49. [pm_para]
  50. standby_mode            = 1
  51.  
  52. [card0_boot_para]
  53. card_ctrl       = 0
  54. card_high_speed = 1
  55. card_line       = 4
  56. sdc_d1          = port:PF0<2><1><default><default>
  57. sdc_d0          = port:PF1<2><1><default><default>
  58. sdc_clk         = port:PF2<2><1><default><default>
  59. sdc_cmd         = port:PF3<2><1><default><default>
  60. sdc_d3          = port:PF4<2><1><default><default>
  61. sdc_d2          = port:PF5<2><1><default><default>
  62.  
  63. [card2_boot_para]
  64. card_ctrl       = 2
  65. card_high_speed = 1
  66. card_line       = 4
  67. sdc_cmd         = port:PC6<3><1><default><default>
  68. sdc_clk         = port:PC7<3><1><default><default>
  69. sdc_d0          = port:PC8<3><1><default><default>
  70. sdc_d1          = port:PC9<3><1><default><default>
  71. sdc_d2          = port:PC10<3><1><default><default>
  72. sdc_d3          = port:PC11<3><1><default><default>
  73.  
  74. [twi_para]
  75. twi_port        = 0
  76. twi_scl         = port:PH14<2><default><default><default>
  77. twi_sda         = port:PH15<2><default><default><default>
  78.  
  79. [uart_para]
  80. uart_debug_port = 0
  81. uart_debug_tx   = port:PH20<2><1><default><default>
  82. uart_debug_rx   = port:PH21<2><1><default><default>
  83.  
  84. [jtag_para]
  85. jtag_enable     = 1
  86. jtag_ms         = port:PH9<3><default><default><default>
  87. jtag_ck         = port:PH10<3><default><default><default>
  88. jtag_do         = port:PH11<3><default><default><default>
  89. jtag_di         = port:PH12<3><default><default><default>
  90.  
  91. [clock]
  92. pll3            = 297
  93. pll4            = 300
  94. pll6            = 600
  95. pll7            = 297
  96. pll8            = 360
  97. pll9            = 297
  98. pll10           = 702
  99.  
  100. ;*****************************************************************************
  101. ;sdram configuration
  102. ;
  103. ;*****************************************************************************
  104. [dram_para]
  105. dram_clk        = 312
  106. dram_type       = 3
  107. dram_zq         = 0xFB
  108. dram_odt_en     = 0
  109. dram_para1      = 0x10F40800
  110. dram_para2      = 0x1211
  111. dram_mr0        = 0x1A50
  112. dram_mr1        = 0x4
  113. dram_mr2        = 0x18
  114. dram_mr3        = 0
  115. dram_tpr0       = 0
  116. dram_tpr1       = 0x80000800
  117. dram_tpr2       = 0x39a70140
  118. dram_tpr3       = 0xa092e74c
  119. dram_tpr4       = 0x2948c209
  120. dram_tpr5       = 0x8944422c
  121. dram_tpr6       = 0x30028480
  122. dram_tpr7       = 0x2a3297
  123. dram_tpr8       = 0x5034fa8
  124. dram_tpr9       = 0x36353d8
  125. dram_tpr10      = 0
  126. dram_tpr11      = 0
  127. dram_tpr12      = 0
  128. dram_tpr13      = 0
  129.  
  130. ;----------------------------------------------------------------------------------
  131. ;os life cycle para configuration
  132. ;----------------------------------------------------------------------------------
  133.  
  134. ;------------------------------------------------------------------------------;
  135. ; 10/100/100Mbps Ethernet MAC Controller Configure                             ;
  136. ;------------------------------------------------------------------------------;
  137. ;   配置选项:                                                                 ;
  138. ;   gmac_used  ---  1: gmac used, 0: not used                                  ;
  139. ;------------------------------------------------------------------------------;
  140. ;         MII  GMII  RGMII        MII  GMII  RGMII        MII  GMII  RGMII     ;
  141. ;PA00~03  *     *      *    PA10        *      *    PA20   *    *      *       ;
  142. ;   PA04        *         PA11~14  *    *      *    PA21   *    *              ;
  143. ;   PA05        *           PA15        *           PA22   *    *              ;
  144. ;   PA06        *           PA16        *           PA23   *    *              ;
  145. ;   PA07        *           PA17        *           PA24   *    *              ;
  146. ;   PA08  *     *           PA18        *           PA25        *      *       ;
  147. ;   PA09  *     *      *    PA19   *    *      *  PA26~27  *    *      *       ;
  148. ;------------------------------------------------------------------------------;
  149. [gmac_para]
  150. gmac_used          = 0
  151. gmac_txd0          = port:PA00<2><default><default><default>
  152. gmac_txd1          = port:PA01<2><default><default><default>
  153. gmac_txd2          = port:PA02<2><default><default><default>
  154. gmac_txd3          = port:PA03<2><default><default><default>
  155. gmac_txd4          = port:PA04<2><default><default><default>
  156. gmac_txd5          = port:PA05<2><default><default><default>
  157. gmac_txd6          = port:PA06<2><default><default><default>
  158. gmac_txd7          = port:PA07<2><default><default><default>
  159. gmac_txclk         = port:PA08<2><default><default><default>
  160. gmac_txen          = port:PA09<2><default><default><default>
  161. gmac_gtxclk        = port:PA10<2><default><default><default>
  162. gmac_rxd0          = port:PA11<2><default><default><default>
  163. gmac_rxd1          = port:PA12<2><default><default><default>
  164. gmac_rxd2          = port:PA13<2><default><default><default>
  165. gmac_rxd3          = port:PA14<2><default><default><default>
  166. gmac_rxd4          = port:PA15<2><default><default><default>
  167. gmac_rxd5          = port:PA16<2><default><default><default>
  168. gmac_rxd6          = port:PA17<2><default><default><default>
  169. gmac_rxd7          = port:PA18<2><default><default><default>
  170. gmac_rxdv          = port:PA19<2><default><default><default>
  171. gmac_rxclk         = port:PA20<2><default><default><default>
  172. gmac_txerr         = port:PA21<2><default><default><default>
  173. gmac_rxerr         = port:PA22<2><default><default><default>
  174. gmac_col           = port:PA23<2><default><default><default>
  175. gmac_crs           = port:PA24<2><default><default><default>
  176. gmac_clkin         = port:PA25<2><default><default><default>
  177. gmac_mdc           = port:PA26<2><default><default><default>
  178. gmac_mdio          = port:PA27<2><default><default><default>
  179.  
  180. ;----------------------------------------------------------------------------------
  181. ;i2c configuration
  182. ;----------------------------------------------------------------------------------
  183. [twi0_para]
  184. twi_used        = 1
  185. twi_scl         = port:PH14<2><default><default><default>
  186. twi_sda         = port:PH15<2><default><default><default>
  187.  
  188. [twi1_para]
  189. twi_used        = 1
  190. twi_scl         = port:PH16<2><default><default><default>
  191. twi_sda         = port:PH17<2><default><default><default>
  192.  
  193. [twi2_para]
  194. twi_used        = 1
  195. twi_scl         = port:PH18<2><default><default><default>
  196. twi_sda         = port:PH19<2><default><default><default>
  197.  
  198. [twi3_para]
  199. twi_used        = 0
  200. twi_scl         = port:PB05<4><default><default><default>
  201. twi_sda         = port:PB06<4><default><default><default>
  202.  
  203. ;----------------------------------------------------------------------------------
  204. ;uart configuration
  205. ;uart_type ---  2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
  206. ;----------------------------------------------------------------------------------
  207. [uart_para0]
  208. uart_used       = 1
  209. uart_port       = 0
  210. uart_type       = 2
  211. uart_tx         = port:PH20<2><1><default><default>
  212. uart_rx         = port:PH21<2><1><default><default>
  213.  
  214. [uart_para1]
  215. uart_used       = 0
  216. uart_port       = 1
  217. uart_type       = 8
  218. uart_tx         = port:PA04<4><1><default><default>
  219. uart_rx         = port:PA05<4><1><default><default>
  220. uart_rts        = port:PA06<4><1><default><default>
  221. uart_cts        = port:PA07<4><1><default><default>
  222. ;uart_dtr       = port:PA00<4><1><default><default>
  223. ;uart_dsr       = port:PA01<4><1><default><default>
  224. ;uart_dcd       = port:PA02<4><1><default><default>
  225. ;uart_ring      = port:PA03<4><1><default><default>
  226.  
  227. [uart_para2]
  228. uart_used       = 0
  229. uart_port       = 2
  230. uart_type       = 4
  231. uart_tx         = port:PG06<2><1><default><default>
  232. uart_rx         = port:PG07<2><1><default><default>
  233. uart_rts        = port:PG08<2><1><default><default>
  234. uart_cts        = port:PG09<2><1><default><default>
  235.  
  236. [uart_para3]
  237. uart_used       = 0
  238. uart_port       = 3
  239. uart_type       = 4
  240. uart_tx         = port:PB05<3><1><default><default>
  241. uart_rx         = port:PB06<3><1><default><default>
  242. uart_rts        = port:PB04<3><1><default><default>
  243. uart_cts        = port:PB00<3><1><default><default>
  244.  
  245. [uart_para4]
  246. uart_used       = 0
  247. uart_port       = 4
  248. uart_type       = 2
  249. uart_tx         = port:PG17<2><1><default><default>
  250. uart_rx         = port:PG18<2><1><default><default>
  251. uart_rts        = port:PB04<3><1><default><default>
  252. uart_cts        = port:PB00<3><1><default><default>
  253.  
  254. [uart_para5]
  255. uart_used       = 0
  256. uart_port       = 5
  257. uart_type       = 4
  258. uart_tx         = port:PE04<3><1><default><default>
  259. uart_rx         = port:PE05<3><1><default><default>
  260. uart_rts        = port:PE06<3><1><default><default>
  261. uart_cts        = port:PE07<3><1><default><default>
  262.  
  263. ;----------------------------------------------------------------------------------
  264. ;spi configuration
  265. ;----------------------------------------------------------------------------------
  266. [spi0_para]
  267. spi_used       = 0
  268. spi_cs_bitmap  = 1
  269. spi_cs0        = port:PC27<3><1><default><default>
  270. spi_sclk       = port:PC02<3><default><default><default>
  271. spi_mosi       = port:PC00<3><default><default><default>
  272. spi_miso       = port:PC01<3><default><default><default>
  273.  
  274. [spi1_para]
  275. spi_used       = 0
  276. spi_cs_bitmap  = 1
  277. spi_cs1        = port:PG12<2><1><default><default>
  278. spi_cs0        = port:PG13<2><1><default><default>
  279. spi_sclk       = port:PG14<2><default><default><default>
  280. spi_mosi       = port:PG15<2><default><default><default>
  281. spi_miso       = port:PG16<2><default><default><default>
  282.  
  283. [spi2_para]
  284. spi_used       = 0
  285. spi_cs_bitmap  = 1
  286. spi_cs0        = port:PH09<2><default><default><default>
  287. spi_sclk       = port:PH10<2><default><default><default>
  288. spi_mosi       = port:PH11<2><default><default><default>
  289. spi_miso       = port:PH12<2><default><default><default>
  290.  
  291. [spi3_para]
  292. spi_used       = 0
  293. spi_cs_bitmap  = 1
  294. spi_cs0        = port:PA21<4><default><default><default>
  295. spi_sclk       = port:PA22<4><default><default><default>
  296. spi_mosi       = port:PA23<4><default><default><default>
  297. spi_miso       = port:PA24<4><default><default><default>
  298. spi_cs1        = port:PA25<4><default><default><default>
  299.  
  300. ;----------------------------------------------------------------------------------
  301. ;resistance tp configuration
  302. ;----------------------------------------------------------------------------------
  303. [rtp_para]
  304. rtp_used                   = 0
  305. rtp_screen_size            = 5
  306. rtp_regidity_level         = 5
  307. rtp_press_threshold_enable = 0
  308. rtp_press_threshold        = 0x1f40
  309. rtp_sensitive_level        = 0xf
  310. rtp_exchange_x_y_flag      = 0
  311.  
  312. ;----------------------------------------------------------------------------------
  313.  
  314. ;----------------------------------------------------------------------------------
  315. ;capacitor tp configuration
  316. ;external int function
  317. ;wakeup output function
  318. ;notice ---    tp_int_port &  tp_io_port use the same port
  319. ;----------------------------------------------------------------------------------
  320. [ctp_para]
  321. ctp_used            = 1
  322. ctp_name            = "gslx680_onda978q9"
  323. ctp_twi_id          = 1
  324. ctp_twi_addr        = 0x40
  325. ctp_screen_max_x    = 2048
  326. ctp_screen_max_y    = 1536
  327. ctp_revert_x_flag   = 1
  328. ctp_revert_y_flag   = 0
  329. ctp_exchange_x_y_flag = 1
  330.  
  331. ctp_int_port        = port:PA03<6><default><default><default>
  332. ctp_wakeup          = port:PA02<1><default><default><1>
  333.  
  334. ;----------------------------------------------------------------------------------
  335. ;touch key configuration
  336. ;----------------------------------------------------------------------------------
  337. [tkey_para]
  338. tkey_used           = 0
  339. tkey_twi_id         =
  340. tkey_twi_addr       =
  341. tkey_int            =
  342.  
  343. ;----------------------------------------------------------------------------------
  344. ;motor configuration
  345. ;----------------------------------------------------------------------------------
  346. [motor_para]
  347. motor_used          = 0
  348. motor_shake         = port:power3<1><default><default><1>
  349.  
  350. [nand0_para]
  351. nand_support_2ch    = 1
  352.  
  353. nand0_used          = 1
  354. good_block_ratio    = 944
  355. nand0_we            = port:PC00<2><default><default><default>
  356. nand0_ale           = port:PC01<2><default><default><default>
  357. nand0_cle           = port:PC02<2><default><default><default>
  358. nand0_ce1           = port:PC03<2><default><default><default>
  359. nand0_ce0           = port:PC04<2><default><default><default>
  360. nand0_nre           = port:PC05<2><default><default><default>
  361. nand0_rb0           = port:PC06<2><default><default><default>
  362. nand0_rb1           = port:PC07<2><default><default><default>
  363. nand0_d0            = port:PC08<2><default><default><default>
  364. nand0_d1            = port:PC09<2><default><default><default>
  365. nand0_d2            = port:PC10<2><default><default><default>
  366. nand0_d3            = port:PC11<2><default><default><default>
  367. nand0_d4            = port:PC12<2><default><default><default>
  368. nand0_d5            = port:PC13<2><default><default><default>
  369. nand0_d6            = port:PC14<2><default><default><default>
  370. nand0_d7            = port:PC15<2><default><default><default>
  371. nand0_ce2           = port:PC25<2><default><default><default>
  372. nand0_ce3           = port:PC26<2><default><default><default>
  373. nand0_ndqs          = port:PC24<2><default><default><default>
  374.  
  375. [nand1_para]
  376. nand1_used          = 1
  377. nand1_we            = port:PH00<2><default><default><default>
  378. nand1_ale           = port:PH01<2><default><default><default>
  379. nand1_cle           = port:PH02<2><default><default><default>
  380. nand1_ce1           = port:PH03<2><default><default><default>
  381. nand1_ce0           = port:PH04<2><default><default><default>
  382. nand1_nre           = port:PH05<2><default><default><default>
  383. nand1_rb0           = port:PH06<2><default><default><default>
  384. nand1_rb1           = port:PH07<2><default><default><default>
  385. nand1_d0            = port:PC16<3><default><default><default>
  386. nand1_d1            = port:PC17<3><default><default><default>
  387. nand1_d2            = port:PC18<3><default><default><default>
  388. nand1_d3            = port:PC19<3><default><default><default>
  389. nand1_d4            = port:PC20<3><default><default><default>
  390. nand1_d5            = port:PC21<3><default><default><default>
  391. nand1_d6            = port:PC22<3><default><default><default>
  392. nand1_d7            = port:PC23<3><default><default><default>
  393. nand1_ce2           = port:PH29<2><default><default><default>
  394. nand1_ce3           = port:PH30<2><default><default><default>
  395. nand1_ndqs          = port:PH08<2><default><default><default>
  396.  
  397. ;----------------------------------------------------------------------------------
  398. ;disp init configuration
  399. ;
  400. ;disp_mode            (0:screen0<screen0,fb0>)
  401. ;screenx_output_type  (0:none; 1:lcd; 3:hdmi;)
  402. ;screenx_output_mode  (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
  403. ;                     (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
  404. ;fbx format           (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
  405. ;fbx pixel sequence   (0:ARGB 1:BGRA 2:ABGR 3:RGBA)
  406. ;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
  407. ;lcdx_backlight       (lcd init backlight,the range:[0,256],default:197
  408. ;lcdx_yy              (lcd init screen bright/contrast/saturation/hue, value:0~100, default:50/50/57/50)
  409. ;----------------------------------------------------------------------------------
  410. [disp_init]
  411. disp_init_enable         = 1
  412. disp_mode                = 0
  413.  
  414. screen0_output_type      = 1
  415. screen0_output_mode      = 4
  416.  
  417. screen1_output_type      = 1
  418. screen1_output_mode      = 4
  419.  
  420. fb0_format               = 10
  421. fb0_pixel_sequence       = 0
  422. fb0_scaler_mode_enable   = 0
  423. fb0_width                = 0
  424. fb0_height               = 0
  425.  
  426. fb1_format               = 10
  427. fb1_pixel_sequence       = 0
  428. fb1_scaler_mode_enable   = 0
  429. fb1_width                = 0
  430. fb1_height               = 0
  431.  
  432. lcd0_backlight           = 50
  433. lcd1_backlight           = 50
  434.  
  435. lcd0_bright              = 50
  436. lcd0_contrast            = 50
  437. lcd0_saturation          = 57
  438. lcd0_hue                 = 50
  439.  
  440. lcd1_bright              = 50
  441. lcd1_contrast            = 50
  442. lcd1_saturation          = 57
  443. lcd1_hue                 = 50
  444.  
  445. ;----------------------------------------------------------------------------------
  446. ;lcd0 configuration
  447.  
  448. ;lcd_if:               0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp
  449. ;lcd_x:                lcd horizontal resolution
  450. ;lcd_y:                lcd vertical resolution
  451. ;lcd_width:            width of lcd in mm
  452. ;lcd_height:           height of lcd in mm
  453. ;lcd_size              lcd panel size, e.g. "8.0","9.7"
  454. ;lcd_model_name        lcd panel model name
  455. ;lcd_dclk_freq:        in MHZ unit
  456. ;lcd_pwm_freq:         in HZ unit
  457. ;lcd_pwm_pol:          lcd backlight PWM polarity
  458. ;lcd_pwm_max_limit     lcd backlight PWM max limit(<=255)
  459. ;lcd_hbp:              hsync back porch
  460. ;lcd_ht:               hsync total cycle
  461. ;lcd_vbp:              vsync back porch
  462. ;lcd_vt:               vysnc total cycle
  463. ;lcd_hspw:             hsync plus width
  464. ;lcd_vspw:             vysnc plus width
  465. ;lcd_edp_tx_ic         0:anx9804;  1:anx6345
  466. ;lcd_edp_tx_rate       1:1.62G;   2:2.7G;    3:5.4G
  467. ;lcd_edp_tx_lane       1/2/4lane
  468. ;lcd_edp_colordepth    0:8bit; 1:6bit
  469. ;lcd_frm:              0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
  470. ;lcd_gamma_en          lcd gamma correction enable
  471. ;lcd_bright_curve_en   lcd bright curve correction enable
  472. ;lcd_cmap_en           lcd color map function enable
  473. ;lcd_gpio_scl:         iic SCL
  474. ;lcd_gpio_sda          iic SDA
  475. ;lcd_gpio_0/1/2/3      lcd gpio
  476. ;deu_mode              0:smoll lcd screen; 1:large lcd screen(larger than 10inch)
  477. ;lcdgamma4iep:         Smart Backlight parameter, lcd gamma vale * 10;
  478. ;                      decrease it while lcd is not bright enough; increase while lcd is too bright
  479. ;smart_color          90:normal lcd screen 65:retina lcd screen(9.7inch)
  480. ;----------------------------------------------------------------------------------
  481. [lcd0_para]
  482. lcd_used            = 1
  483.  
  484. lcd_if              = 5
  485. lcd_x               = 2048
  486. lcd_y               = 1536
  487. lcd_width           = 196
  488. lcd_height          = 147
  489. lcd_size            = "9.7"
  490. lcd_model_name      = "LG LP097QX1-SPA1-8M1_V0"
  491. lcd_dclk_freq       = 208
  492. lcd_pwm_freq        = 50000
  493. lcd_pwm_pol         = 1
  494. lcd_pwm_max_limit   = 150
  495. lcd_hbp             = 10
  496. lcd_ht              = 2208
  497. lcd_hspw            = 5
  498. lcd_vbp             = 10
  499. lcd_vt              = 1570
  500. lcd_vspw            = 1
  501. lcd_frm             = 0
  502. lcd_edp_tx_ic       = 0
  503. lcd_edp_tx_rate     = 1
  504. lcd_edp_tx_lane     = 4
  505. lcd_edp_colordepth  = 0
  506. lcd_gamma_en        = 0
  507. lcd_bright_curve_en = 1
  508. lcd_cmap_en         = 0
  509.  
  510. deu_mode            = 0
  511. lcdgamma4iep        = 22
  512. smartbl_low_limit   = 85
  513. smart_color         = 65
  514.  
  515. lcd_bl_en           = port:PA25<1><0><default><1>
  516. lcd_power           = port:power2<1><0><default><1>
  517. lcd_pwm             = port:PH13<2><0><default><default>
  518.  
  519. lcd_gpio_scl        = port:PA20<0><0><default><default>
  520. lcd_gpio_sda        = port:PA19<0><0><default><default>
  521. lcd_gpio_0          = port:PA23<0><0><default><default>
  522.  
  523. lcdd0               = port:PD00<2><0><3><default>
  524. lcdd1               = port:PD01<2><0><3><default>
  525. lcdd2               = port:PD02<2><0><3><default>
  526. lcdd3               = port:PD03<2><0><3><default>
  527. lcdd4               = port:PD04<2><0><3><default>
  528. lcdd5               = port:PD05<2><0><3><default>
  529. lcdd6               = port:PD06<2><0><3><default>
  530. lcdd7               = port:PD07<2><0><3><default>
  531. lcdd8               = port:PD08<2><0><3><default>
  532. lcdd9               = port:PD09<2><0><3><default>
  533. lcdd10              = port:PD10<2><0><3><default>
  534. lcdd11              = port:PD11<2><0><3><default>
  535. lcdd12              = port:PD12<2><0><3><default>
  536. lcdd13              = port:PD13<2><0><3><default>
  537. lcdd14              = port:PD14<2><0><3><default>
  538. lcdd15              = port:PD15<2><0><3><default>
  539. lcdd16              = port:PD16<2><0><3><default>
  540. lcdd17              = port:PD17<2><0><3><default>
  541. lcdd18              = port:PD18<2><0><3><default>
  542. lcdd19              = port:PD19<2><0><3><default>
  543. lcdd20              = port:PD20<2><0><3><default>
  544. lcdd21              = port:PD21<2><0><3><default>
  545. lcdd22              = port:PD22<2><0><3><default>
  546. lcdd23              = port:PD23<2><0><3><default>
  547. lcdclk              = port:PD24<2><0><3><default>
  548. lcdde               = port:PD25<2><0><3><default>
  549. lcdhsync            = port:PD26<2><0><3><default>
  550. lcdvsync            = port:PD27<2><0><3><default>
  551.  
  552. ;----------------------------------------------------------------------------------
  553. ;hdmi configuration
  554. ;----------------------------------------------------------------------------------
  555. [hdmi_para]
  556. hdmi_used           = 1
  557.  
  558.  
  559.  
  560. ;--------------------------------------------------------------------------------
  561. ;vip (video input port) configuration
  562. ;vip_used: 0:disable 1:enable
  563. ;vip_mode: 0:sample one interface to one buffer 1:sample two interface to one buffer
  564. ;vip_dev_qty: The quantity of devices linked to capture bus
  565. ;vip_dev(x)_isp_used 0:not use isp 1:use isp
  566. ;vip_dev(x)_fmt: 0:yuv 1:bayer raw rgb
  567. ;vip_dev(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
  568. ;vip_dev(x)_vflip: flip in vertical direction 0:disable 1:enable
  569. ;vip_dev(x)_hflip: flip in horizontal direction 0:disable 1:enable
  570. ;vip_dev(x)_iovdd: camera module io power handle string, pmu power supply
  571. ;vip_dev(x)_iovdd_vol: camera module io power voltage, pmu power supply
  572. ;vip_dev(x)_avdd:       camera module analog power handle string, pmu power supply
  573. ;vip_dev(x)_avdd_vol:   camera module analog power voltage, pmu power supply
  574. ;vip_dev(x)_dvdd:       camera module core power handle string, pmu power supply
  575. ;vip_dev(x)_dvdd_vol:   camera module core power voltage, pmu power supply
  576. ;vip_dev(x)_afvdd:      camera module vcm power handle string, pmu power supply
  577. ;vip_dev(x)_afvdd_vol:  camera module vcm power voltage, pmu power supply
  578. ;x indicates the index of the devices which are linked to the same capture bus
  579. ;fill voltage in uV, e.g. iovdd = 2.8V, vip_devx_iovdd_vol = 2800000
  580. ;fill handle string as below:
  581. ;axp22_eldo3
  582. ;axp22_dldo4
  583. ;axp22_eldo2
  584. ;fill handle string "" when not using any pmu power supply
  585. ;--------------------------------------------------------------------------------
  586.  
  587. [vip0_para]
  588.  
  589. vip_used                 = 0
  590. vip_mode                 = 0
  591. vip_dev_qty              = 1
  592. vip_vip_mck                      = port:PE16<2><default><default><default>
  593.  
  594. vip_dev0_mname           = ""
  595. vip_dev0_lane            = 2
  596. vip_dev0_twi_id          = 0
  597. vip_dev0_twi_addr        = 0x6c
  598. vip_dev0_isp_used        = 1
  599. vip_dev0_fmt             = 1
  600. vip_dev0_stby_mode       = 0
  601. vip_dev0_vflip           = 0
  602. vip_dev0_hflip           = 0
  603. vip_dev0_iovdd           = "axp22_dldo3"
  604. vip_dev0_iovdd_vol       = 2800000
  605. vip_dev0_avdd            = "axp22_dldo4"
  606. vip_dev0_avdd_vol        = 2800000
  607. vip_dev0_dvdd            = "axp22_eldo1"
  608. vip_dev0_dvdd_vol        = 1500000
  609. vip_dev0_afvdd           = ""
  610. vip_dev0_afvdd_vol       = 2800000
  611. vip_dev0_power_en        =
  612. vip_dev0_reset           =
  613. vip_dev0_pwdn            =
  614. vip_dev0_flash_en        =
  615. vip_dev0_flash_mode      =
  616. vip_dev0_af_pwdn         =
  617.  
  618. vip_dev0_act_used        = 1
  619. vip_dev0_act_name        = "ad5820_act"
  620. vip_dev0_act_slave       = 0x18
  621.  
  622.  
  623. vip_dev1_mname           = ""
  624. vip_dev1_lane            = 1
  625. vip_dev1_twi_id          = 0
  626. vip_dev1_twi_addr        =
  627. vip_dev1_isp_used        = 0
  628. vip_dev1_fmt             = 1
  629. vip_dev1_stby_mode       = 0
  630. vip_dev1_vflip           = 0
  631. vip_dev1_hflip           = 0
  632. vip_dev1_iovdd           = "axp22_dldo3"
  633. vip_dev1_iovdd_vol       = 2800000
  634. vip_dev1_avdd            = "axp22_dldo4"
  635. vip_dev1_avdd_vol        = 2800000
  636. vip_dev1_dvdd            = "axp22_eldo2"
  637. vip_dev1_dvdd_vol        = 1800000
  638. vip_dev1_afvdd           = ""
  639. vip_dev1_afvdd_vol       = 2800000
  640. vip_dev1_power_en        =
  641. vip_dev1_reset           =
  642. vip_dev1_pwdn            =
  643. vip_dev1_flash_en        =
  644. vip_dev1_flash_mode      =
  645. vip_dev1_af_pwdn         =
  646.  
  647.  
  648.  
  649.  
  650.  
  651. [vip1_para]
  652.  
  653. vip_used                 = 1
  654. vip_mode                 = 0
  655. vip_dev_qty              = 2
  656. vip_csi_pck              = port:PE00<2><default><default><default>
  657. vip_csi_mck              = port:PE01<2><default><default><default>
  658. vip_csi_hsync            = port:PE02<2><default><default><default>
  659. vip_csi_vsync            = port:PE03<2><default><default><default>
  660. vip_csi_d0               =
  661. vip_csi_d1               =
  662. vip_csi_d2               =
  663. vip_csi_d3               =
  664. vip_csi_d4               = port:PE08<2><default><default><default>
  665. vip_csi_d5               = port:PE09<2><default><default><default>
  666. vip_csi_d6               = port:PE10<2><default><default><default>
  667. vip_csi_d7               = port:PE11<2><default><default><default>
  668. vip_csi_d8               = port:PE12<2><default><default><default>
  669. vip_csi_d9               = port:PE13<2><default><default><default>
  670. vip_csi_d10              = port:PE14<2><default><default><default>
  671. vip_csi_d11              = port:PE15<2><default><default><default>
  672.  
  673. vip_dev0_mname           = "ov5640"
  674. vip_dev0_twi_id          = 0
  675. vip_dev0_twi_addr        = 0x78
  676. vip_dev0_isp_used        = 0
  677. vip_dev0_fmt             = 0
  678. vip_dev0_stby_mode       = 0
  679. vip_dev0_vflip           = 0
  680. vip_dev0_hflip           = 1
  681. vip_dev0_iovdd           = "axp22_dldo3"
  682. vip_dev0_iovdd_vol       = 2800000
  683. vip_dev0_avdd            = "axp22_ldoio0"
  684. vip_dev0_avdd_vol        = 2800000
  685. vip_dev0_dvdd            = "axp22_eldo1"
  686. vip_dev0_dvdd_vol        = 1500000
  687. vip_dev0_afvdd           = ""
  688. vip_dev0_afvdd_vol       = 2800000
  689. vip_dev0_power_en        =
  690. vip_dev0_reset           = port:PH22<1><default><default><0>
  691. vip_dev0_pwdn            = port:PH23<1><default><default><1>
  692. vip_dev0_flash_en        =
  693. vip_dev0_flash_mode      =
  694. vip_dev0_af_pwdn         =
  695.  
  696.  
  697. vip_dev0_act_used        = 0
  698. vip_dev0_act_name        = "ad5820_act"
  699. vip_dev0_act_slave       = 0x18
  700.  
  701.  
  702. vip_dev1_mname           = "gc2035"
  703. vip_dev1_twi_id          = 0
  704. vip_dev1_twi_addr        = 0x88
  705. vip_dev1_stby_mode       = 0
  706. vip_dev1_isp_used        = 0
  707. vip_dev1_fmt             = 0
  708. vip_dev1_vflip           = 0
  709. vip_dev1_hflip           = 0
  710. vip_dev1_iovdd           = "axp22_dldo3"
  711. vip_dev1_iovdd_vol       = 2800000
  712. vip_dev1_avdd            = "axp22_dldo4"
  713. vip_dev1_avdd_vol        = 2800000
  714. vip_dev1_dvdd            = "axp22_eldo2"
  715. vip_dev1_dvdd_vol        = 1800000
  716. vip_dev1_afvdd           = ""
  717. vip_dev1_afvdd_vol       = 2800000
  718. vip_dev1_power_en        =
  719. vip_dev1_reset           = port:PE04<1><default><default><0>
  720. vip_dev1_pwdn            = port:PE05<1><default><default><1>
  721. vip_dev1_flash_en        =
  722. vip_dev1_flash_mode      =
  723. vip_dev1_af_pwdn         =
  724.  
  725.  
  726. ;--------------------------------------------------------------------------------
  727. ;tv configuration
  728. ;
  729. ;--------------------------------------------------------------------------------
  730. [tvout_para]
  731. tvout_used          =
  732. tvout_channel_num   =
  733. tv_en               =
  734.  
  735. [tvin_para]
  736. tvin_used           =
  737. tvin_channel_num    =
  738.  
  739. ;--------------------------------------------------------------------------------
  740. ;   SDMMC PINS MAPPING                                                          |
  741. ; ------------------------------------------------------------------------------|
  742. ;   Config Guide                                                                |
  743. ;   sdc_used: 1-enable card, 0-disable card                                     |
  744. ;   sdc_detmode: card detect mode                                               |
  745. ;                1-detect card by gpio polling                                  |
  746. ;                2-detect card by gpio irq(must use IO with irq function)       |
  747. ;                3-no detect, always in for boot card                           |
  748. ;                4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert|
  749. ;   sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit                        |
  750. ;   sdc_use_wp: 1-with write protect IO, 0-no write protect IO                  |
  751. ;   sdc_isio: for sdio card                                                     |
  752. ;   sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for|
  753. ;                  SD3.0 or eMMC4.5, regulator must be configured. the value is |
  754. ;                  the ldo name of AXP221, eg: sdc_regulator = "axp22_eldo2"    |
  755. ;   other: GPIO Mapping configuration                                           |
  756. ; ------------------------------------------------------------------------------|
  757. ;   Note:                                                                       |
  758. ;   1 if detmode=2, sdc_det's config=6                                          |
  759. ;     else if detmode=1, sdc_det's config=0                                     |
  760. ;     else sdc_det IO is not necessary                                          |
  761. ;   2 if the customer wants to support UHS-I and HS200 features, he must provide|
  762. ;     an independent power supply for the card. This is only used in platforms  |
  763. ;     that supports SD3.0 cards and eMMC4.4+ flashes                            |
  764. ;--------------------------------------------------------------------------------
  765. [mmc0_para]
  766. sdc_used          = 1
  767. sdc_detmode       = 2
  768. sdc_buswidth      = 4
  769. sdc_clk           = port:PF02<2><1><2><default>
  770. sdc_cmd           = port:PF03<2><1><2><default>
  771. sdc_d0            = port:PF01<2><1><2><default>
  772. sdc_d1            = port:PF00<2><1><2><default>
  773. sdc_d2            = port:PF05<2><1><2><default>
  774. sdc_d3            = port:PF04<2><1><2><default>
  775. sdc_det           = port:PA08<6><1><2><default>
  776. sdc_use_wp        = 0
  777. sdc_wp            =
  778. sdc_isio          = 0
  779. sdc_regulator     = "none"
  780.  
  781. [mmc1_para]
  782. sdc_used          = 0
  783. sdc_detmode       = 4
  784. sdc_buswidth      = 4
  785. sdc_clk           = port:PG00<2><1><2><default>
  786. sdc_cmd           = port:PG01<2><1><2><default>
  787. sdc_d0            = port:PG02<2><1><2><default>
  788. sdc_d1            = port:PG03<2><1><2><default>
  789. sdc_d2            = port:PG04<2><1><2><default>
  790. sdc_d3            = port:PG05<2><1><2><default>
  791. sdc_det           =
  792. sdc_use_wp        = 0
  793. sdc_wp            =
  794. sdc_isio          = 1
  795. sdc_regulator     = "none"
  796.  
  797. [mmc2_para]
  798. sdc_used          = 0
  799. sdc_detmode       = 3
  800. sdc_buswidth      = 8
  801. sdc_clk           = port:PC07<3><1><2><default>
  802. sdc_cmd           = port:PC06<3><1><2><default>
  803. sdc_d0            = port:PC08<3><1><2><default>
  804. sdc_d1            = port:PC09<3><1><2><default>
  805. sdc_d2            = port:PC10<3><1><2><default>
  806. sdc_d3            = port:PC11<3><1><2><default>
  807. sdc_d4            = port:PC12<3><1><2><default>
  808. sdc_d5            = port:PC13<3><1><2><default>
  809. sdc_d6            = port:PC14<3><1><2><default>
  810. sdc_d7            = port:PC15<3><1><2><default>
  811. emmc_rst          = port:PC24<3><1><2><default>
  812. sdc_det           =
  813. sdc_use_wp        = 0
  814. sdc_wp            =
  815. sdc_isio          = 0
  816. sdc_regulator     = "none"
  817.  
  818. [mmc3_para]
  819. sdc_used          = 0
  820. sdc_detmode       = 2
  821. sdc_buswidth      = 4
  822. sdc_clk           = port:PA10<2><1><2><default>
  823. sdc_cmd           = port:PA09<2><1><2><default>
  824. sdc_d0            = port:PA11<2><1><2><default>
  825. sdc_d1            = port:PA12<2><1><2><default>
  826. sdc_d2            = port:PA13<2><1><2><default>
  827. sdc_d3            = port:PA14<2><1><2><default>
  828. sdc_det           =
  829. sdc_use_wp        = 0
  830. sdc_wp            =
  831. sdc_isio          = 0
  832. sdc_regulator     = "none"
  833.  
  834. ; ------------------------------------------------------------------------------|
  835. ; sim card configuration
  836. ;--------------------------------------------------------------------------------
  837. [smc_para]
  838. smc_used            =
  839. smc_rst             =
  840. smc_vppen           =
  841. smc_vppp            =
  842. smc_det             =
  843. smc_vccen           =
  844. smc_sck             =
  845. smc_sda             =
  846.  
  847.  
  848. ;--------------------------------
  849. ;[usbc0]:控制器0的配置。
  850. ;usb_used:USB使能标志。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。
  851. ;usb_port_type:USB端口的使用情况。 0:device only;1:host only;2:OTG
  852. ;usb_detect_type:USB端口的检查方式。0:不做检测;1:vbus/id检查;2:id/dpdm检查
  853. ;usb_id_gpio:USB ID pin脚配置。具体请参考gpio配置说明。
  854. ;usb_det_vbus_gpio:USB DET_VBUS pin脚配置。具体请参考gpio配置说明。
  855. ;usb_drv_vbus_gpio:USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。
  856. ;usb_det_vbus_gpio: "axp_ctrl",表示axp 提供
  857. ;usb_restrict_gpio  usb限流控制pin
  858. ;usb_restric_flag:  usb限流标置
  859. ;--------------------------------
  860. ;--------------------------------
  861. ;---       USB0控制标志
  862. ;--------------------------------
  863. [usbc0]
  864. usb_used            = 1
  865. usb_port_type       = 2
  866. usb_detect_type     = 1
  867. usb_id_gpio         = port:PA15<0><1><default><default>
  868. usb_det_vbus_gpio   = port:PA14<0><0><default><default>
  869. usb_drv_vbus_gpio   = port:PA13<1><0><default><0>
  870. usb_restrict_gpio   = port:PA27<1><0><default><0>
  871. usb_host_init_state = 0
  872. usb_restric_flag    = 1
  873. usb_restric_voltage = 3550000
  874. usb_restric_capacity= 5
  875. ;--------------------------------
  876. ;---       USB1控制标志
  877. ;--------------------------------
  878. [usbc1]
  879. usb_used            = 1
  880. usb_port_type       = 1
  881. usb_detect_type     = 0
  882. usb_id_gpio         =
  883. usb_det_vbus_gpio   =
  884. usb_drv_vbus_gpio   =
  885. usb_restrict_gpio   =
  886. usb_host_init_state = 0
  887. usb_restric_flag    = 0
  888.  
  889. ;--------------------------------
  890. ;---       USB2控制标志
  891. ;--------------------------------
  892. [usbc2]
  893. usb_used            = 0
  894. usb_port_type       = 1
  895. usb_detect_type     = 0
  896. usb_id_gpio         =
  897. usb_det_vbus_gpio   =
  898. usb_drv_vbus_gpio   =
  899. usb_restrict_gpio   =
  900. usb_host_init_state = 1
  901. usb_restric_flag    = 0
  902.  
  903. ;--------------------------------
  904. ;---       USB Device
  905. ;--------------------------------
  906. [usb_feature]
  907. vendor_id           = 0x18D1
  908. mass_storage_id     = 0x0001
  909. adb_id              = 0x0002
  910.  
  911. manufacturer_name   = "USB Developer"
  912. product_name        = "Android"
  913. serial_number       = "20080411"
  914.  
  915. [msc_feature]
  916. vendor_name         = "ONDA MID"
  917. product_name        = "USB Flash Driver"
  918. release             = 100
  919. luns                = 2
  920.  
  921. ;--------------------------------------------------------------------------------
  922. ; G sensor configuration
  923. ; gs_twi_id     ---  TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
  924. ;--------------------------------------------------------------------------------
  925. [gsensor_para]
  926. gsensor_used        = 1
  927. gsensor_twi_id      = 2
  928. gsensor_twi_addr    = 0x18
  929. gsensor_int1        = port:PA09<6><1><default><default>
  930. gsensor_int2        =
  931.  
  932. ;--------------------------------------------------------------------------------
  933. ; gps gpio configuration
  934. ; gps_spi_id            --- the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
  935. ; gps_spi_cs_num        --- the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
  936. ; gps_lradc                     --- the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
  937. ;--------------------------------------------------------------------------------
  938. [gps_para]
  939.  
  940. ;--------------------------------------------------------------------------------
  941. ;wifi configuration
  942. ;wifi_sdc_id    ---  0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
  943. ;wifi_usbc_id  ---  0- USB0, 1- USB1, 2- USB2
  944. ;wifi_usbc_type --  1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
  945. ;wifi_mod_sel   ---  0- none, 1- bcm40181, 2- bcm40183(wifi+bt),
  946. ;                    3 - rtl8723as(wifi+bt), 4- rtl8189es(SM89E00),
  947. ;                    5 - rtl8192cu, 6 - rtl8188eu
  948. ;--------------------------------------------------------------------------------
  949. [wifi_para]
  950. wifi_used          = 1
  951. wifi_sdc_id        = 1
  952. wifi_usbc_id       = 1
  953. wifi_usbc_type     = 1
  954. wifi_mod_sel       = 6
  955. wifi_power         = "axp22_aldo1"
  956.  
  957. ; 1 - bcm40181 sdio wifi gpio config
  958. ;bcm40181_shdn          = port:PG10<1><default><default><0>
  959. ;bcm40181_host_wake     = port:PG12<0><default><default><0>
  960.  
  961. ; 2 - bcm40183 sdio wifi gpio config
  962. ;bcm40183_wl_regon      = port:PG10<1><default><default><0>
  963. ;bcm40183_wl_host_wake  = port:PG12<0><default><default><0>
  964. ;bcm40183_bt_rst        = port:PG11<1><default><default><0>
  965. ;bcm40183_bt_regon      = port:PG11<1><default><default><0>
  966. ;bcm40183_bt_wake       = port:PG17<1><default><default><0>
  967. ;bcm40183_bt_host_wake  = port:PG18<0><default><default><0>
  968.  
  969. ; 3 - rtl8723as sdio wifi + bt gpio config
  970. ;rtk_rtl8723as_wl_dis       = port:PG10<1><default><default><0>
  971. ;rtk_rtl8723as_bt_dis       = port:PG11<1><default><default><0>
  972. ;rtk_rtl8723as_wl_host_wake = port:PG12<0><default><default><0>
  973. ;rtk_rtl8723as_bt_host_wake = port:PG17<0><default><default><0>
  974.  
  975. ; 4 - rtl8189es sdio wifi gpio config
  976. ;rtl8189es_shdn         = port:PG10<1><default><default><0>
  977. ;rtl8189es_wakeup       = port:PG12<1><default><default><1>
  978.  
  979. ;--------------------------------------------------------------------------------
  980. ;3G configuration
  981. ;--------------------------------------------------------------------------------
  982. [3g_para]
  983. 3g_used                         = 0
  984. 3g_usbc_num                     = 2
  985. 3g_uart_num                     = 0
  986. bb_vbat                         = port:PL03<1><default><default><0>
  987. bb_host_wake                    = port:PM00<1><default><default><0>
  988. bb_on                           = port:PM01<1><default><default><0>
  989. bb_pwr_on                       = port:PM03<1><default><default><0>
  990. bb_wake                         = port:PM04<1><default><default><0>
  991. bb_rf_dis                       = port:PM05<1><default><default><0>
  992. bb_rst                          = port:PM06<1><default><default><0>
  993. 3g_int              =
  994.  
  995. ;--------------------------------------------------------------------------------
  996. ;gyroscope
  997. ;--------------------------------------------------------------------------------
  998. [gy_para]
  999. gy_used             = 1
  1000. gy_twi_id           = 2
  1001. gy_twi_addr         = 0x6a
  1002. gy_int1             = port:PA10<6><1><default><default>
  1003. gy_int2             =
  1004.  
  1005. ;--------------------------------------------------------------------------------
  1006. ;light sensor
  1007. ;--------------------------------------------------------------------------------
  1008. [ls_para]
  1009. ls_used             = 1
  1010. ls_twi_id           = 2
  1011. ls_twi_addr         = 0x23
  1012. ls_int              = port:PA12<6><1><default><default>
  1013.  
  1014. ;--------------------------------------------------------------------------------
  1015. ;compass
  1016. ;--------------------------------------------------------------------------------
  1017. [compass_para]
  1018. compass_used        = 1
  1019. compass_twi_id      = 2
  1020. compass_twi_addr    = 0x0d
  1021. compass_int         = port:PA11<6><1><default><default>
  1022.  
  1023. ;--------------------------------------------------------------------------------
  1024. ;blue tooth
  1025. ;bt_used                        ---- blue tooth used (0- no used, 1- used)
  1026. ;bt_uard_id                     ---- uart index
  1027. ;--------------------------------------------------------------------------------
  1028. [bt_para]
  1029. bt_used             =
  1030. bt_uart_id          =
  1031. bt_wakeup           =
  1032. bt_gpio             =
  1033. bt_rst              =
  1034.  
  1035. ;--------------------------------------------------------------------------------
  1036. ;i2s_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master)        use
  1037. ;                       2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master)  not use
  1038. ;                       3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
  1039. ;                       4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave)         use
  1040. ;i2s_select:0 is pcm.1 is i2s
  1041. ;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format).            use
  1042. ;                          2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
  1043. ;                          3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
  1044. ;                          4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
  1045. ;                          5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
  1046. ;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame)  use
  1047. ;                                 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
  1048. ;                                 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM)  use
  1049. ;                                 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
  1050. ;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
  1051. ;sample_resolution      :16bits/20bits/24bits
  1052. ;word_select_size       :16bits/20bits/24bits/32bits
  1053. ;pcm_sync_period        :16/32/64/128/256
  1054. ;msb_lsb_first          :0: msb first; 1: lsb first
  1055. ;sign_extend            :0: zero pending; 1: sign extend
  1056. ;slot_index             :slot index: 0: the 1st slot - 3: the 4th slot
  1057. ;slot_width             :8 bit width / 16 bit width
  1058. ;frame_width            :0: long frame = 2 clock width;  1: short frame
  1059. ;tx_data_mode           :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
  1060. ;rx_data_mode           :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
  1061. ;--------------------------------------------------------------------------------
  1062. [i2s_para]
  1063. i2s_used            = 0
  1064. i2s_channel         = 2
  1065. i2s_master          = 1
  1066. i2s_select          = 0
  1067. audio_format        = 4
  1068. signal_inversion    = 3
  1069. over_sample_rate    = 256
  1070. sample_resolution   = 16
  1071. word_select_size    = 32
  1072. pcm_sync_period     = 256
  1073. msb_lsb_first       = 0
  1074. sign_extend         = 0
  1075. slot_index          = 0
  1076. slot_width          = 16
  1077. frame_width         = 1
  1078. tx_data_mode        = 0
  1079. rx_data_mode        = 0
  1080. i2s_mclk            =
  1081. i2s_bclk            = port:PB01<2><1><default><default>
  1082. i2s_lrclk           = port:PB02<2><1><default><default>
  1083. i2s_dout0           = port:PB03<2><1><default><default>
  1084. i2s_dout1           =
  1085. i2s_dout2           =
  1086. i2s_dout3           =
  1087. i2s_din             = port:PB07<2><1><default><default>
  1088.  
  1089. ;--------------------------------------------------------------------------------
  1090. ;pcm_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master)        use
  1091. ;                       2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master)  not use
  1092. ;                       3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
  1093. ;                       4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave)         use
  1094. ;pcm_select:1 is pcm.0 is i2s
  1095. ;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format).            use
  1096. ;                          2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
  1097. ;                          3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
  1098. ;                          4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
  1099. ;                          5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
  1100. ;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame)  use
  1101. ;                                 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
  1102. ;                                 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM)  use
  1103. ;                                 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
  1104. ;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
  1105. ;sample_resolution      :16bits/20bits/24bits
  1106. ;word_select_size       :16bits/20bits/24bits/32bits
  1107. ;pcm_sync_period        :16/32/64/128/256
  1108. ;msb_lsb_first          :0: msb first; 1: lsb first
  1109. ;sign_extend            :0: zero pending; 1: sign extend
  1110. ;slot_index             :slot index: 0: the 1st slot - 3: the 4th slot
  1111. ;slot_width             :8 bit width / 16 bit width
  1112. ;frame_width            :0: long frame = 2 clock width;  1: short frame
  1113. ;tx_data_mode           :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
  1114. ;rx_data_mode           :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
  1115. ;--------------------------------------------------------------------------------
  1116. [pcm_para]
  1117. pcm_used            = 0
  1118. pcm_channel         = 2
  1119. pcm_master          = 4
  1120. pcm_select          = 1
  1121. audio_format        = 4
  1122. signal_inversion    = 3
  1123. over_sample_rate    = 512
  1124. sample_resolution   = 16
  1125. word_select_size    = 32
  1126. pcm_sync_period     = 64
  1127. msb_lsb_first       = 0
  1128. sign_extend         = 0
  1129. slot_index          = 0
  1130. slot_width          = 16
  1131. frame_width         = 1
  1132. tx_data_mode        = 0
  1133. rx_data_mode        = 0
  1134. pcm_mclk            =
  1135. pcm_bclk            = port:PG13<3><1><default><default>
  1136. pcm_lrclk           = port:PG14<3><1><default><default>
  1137. pcm_dout            = port:PG16<3><1><default><default>
  1138. pcm_din             = port:PG15<3><1><default><default>
  1139.  
  1140. [spdif_para]
  1141. spdif_used          = 0
  1142. spdif_dout          = port:PH28<3><1><default><default>
  1143. spdif_din           = port:PH27<3><1><default><default>
  1144.  
  1145. ;--------------------------------------------------------------------------------
  1146. ;pa_single_vol,pa_double_vol: 31 level,1.5db/step.0x1f is the large volume.
  1147. ;cap_vol:use for system record,0x0--0db,0x1--24db,0x2--27db,0x3--30db,0x4--33db,0x5--36db,0x6--39db,0x7--42db
  1148. ;headphone_vol,earpiece_vol: must least than 0x3b. 0x1 is a step.
  1149. ;headset_mic_vol: headset mic(mic2) vol,use for phone headset mic call
  1150. ;main_mic_vol: main mic(mic1) vol,use for phone main mic call
  1151. ;--------------------------------------------------------------------------------
  1152. [audio_para]
  1153. audio_used         = 1
  1154. audio_hp_ldo       = "none"
  1155. headphone_vol      = 0x3b
  1156. earpiece_vol       = 0x3b
  1157. cap_vol            = 0x5
  1158. pa_single_vol      = 0x19
  1159. pa_double_used     = 0
  1160. pa_double_vol      = 0x1f
  1161. headphone_direct_used   = 0
  1162. audio_pa_ctrl           = port:PA18<1><default><default><0>
  1163. headset_mic_vol    = 6
  1164. main_mic_vol       = 6
  1165.  
  1166. ;----------------------------------------------------------------------------------
  1167. ;ir --- infra remote configuration
  1168. ;----------------------------------------------------------------------------------
  1169. [ir_para]
  1170. ir_used             = 0
  1171. ir_rx               = port:PL04<2><1><default><default>
  1172.  
  1173.  
  1174. ;-------------------------------------------------------------------------------------
  1175. ;pmu_used                    ---0:not used,1:used
  1176. ;pmu_twi_addr                ---slave address
  1177. ;pmu_twi_id                  ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
  1178. ;pmu_irq_id                  ---irq number (0 irq0,1 irq1,……)
  1179. ;pmu_battery_rdc             ---battery initial resistance
  1180. ;pmu_battery_cap             ---battery capability,mAh
  1181. ;pmu_batdeten                ---battery detect en;0:disable 1:enable
  1182. ;pmu_runtime_chgcur          ---set initial charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
  1183. ;pmu_earlysuspend_chgcur     ---set earlysuspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
  1184. ;pmu_suspend_chgcur          ---set suspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
  1185. ;pmu_shutdown_chgcur         ---set shutdown charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
  1186. ;pmu_init_chgvol             ---set initial charing target voltage,mV,4100/4220/4200/4240
  1187. ;pmu_init_chgend_rate        ---set initial charing end current  rate,10/15
  1188. ;pmu_init_chg_enabled        ---set initial charing enabled,0:disable,1:enable
  1189. ;pmu_init_adc_freq           ---set initial adc frequency,Hz,100/200/400/800
  1190. ;pmu_init_adcts_freq         ---set initial adc TS,Hz,100/200/400/800
  1191. ;pmu_init_chg_pretime        ---set initial pre-charging time,min,40/50/60/70
  1192. ;pmu_init_chg_csttime        ---set initial constance-charging time,min,360/480/600/720
  1193. ;pmu_batt_cap_correct        ---correct the battery capacity or not when one charge cycle 0:not correct 1:correct
  1194. ;pmu_bat_regu_en                         ---bat regulator is enable or not when charge done 0:disable 1:enable
  1195. ;pmu_bat_para1                                   ---battery indication at 3.13V
  1196. ;pmu_bat_para2               ---battery indication at 3.27V
  1197. ;pmu_bat_para3               ---battery indication at 3.34V
  1198. ;pmu_bat_para4               ---battery indication at 3.41V
  1199. ;pmu_bat_para5               ---battery indication at 3.48V
  1200. ;pmu_bat_para6               ---battery indication at 3.52V
  1201. ;pmu_bat_para7               ---battery indication at 3.55V
  1202. ;pmu_bat_para8               ---battery indication at 3.57V
  1203. ;pmu_bat_para9               ---battery indication at 3.59V
  1204. ;pmu_bat_para10              ---battery indication at 3.61V
  1205. ;pmu_bat_para11              ---battery indication at 3.63V
  1206. ;pmu_bat_para12              ---battery indication at 3.64V
  1207. ;pmu_bat_para13              ---battery indication at 3.66V
  1208. ;pmu_bat_para14              ---battery indication at 3.7V
  1209. ;pmu_bat_para15              ---battery indication at 3.73V
  1210. ;pmu_bat_para16              ---battery indication at 3.77V
  1211. ;pmu_bat_para17              ---battery indication at 3.78V
  1212. ;pmu_bat_para18              ---battery indication at 3.8V
  1213. ;pmu_bat_para19              ---battery indication at 3.82V
  1214. ;pmu_bat_para20              ---battery indication at 3.84V
  1215. ;pmu_bat_para21              ---battery indication at 3.85V
  1216. ;pmu_bat_para22              ---battery indication at 3.87V
  1217. ;pmu_bat_para23              ---battery indication at 3.91V
  1218. ;pmu_bat_para24              ---battery indication at 3.94V
  1219. ;pmu_bat_para25              ---battery indication at 3.98V
  1220. ;pmu_bat_para26              ---battery indication at 4.01V
  1221. ;pmu_bat_para27              ---battery indication at 4.05V
  1222. ;pmu_bat_para28              ---battery indication at 4.08V
  1223. ;pmu_bat_para29              ---battery indication at 4.1V
  1224. ;pmu_bat_para30              ---battery indication at 4.12V
  1225. ;pmu_bat_para31              ---battery indication at 4.14V
  1226. ;pmu_bat_para32              ---battery indication at 4.15V
  1227. ;pmu_usbvol_limit            ---set usb-ac limited voltage enable,1:enable,0:disable
  1228. ;pmu_usbcur_limit            ---set usb-ac limited current enable,1:enable,0:disable
  1229. ;pmu_usbvol                  ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
  1230. ;pmu_usbcur                  ---set usb-ac limited current level,mA,500/900, 0 - not limite
  1231. ;pmu_usbvol_pc               ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
  1232. ;pmu_usbcur_pc               ---set usb-pc limited current level,mA,500/900, 0 - not limite
  1233. ;pmu_pwroff_vol              ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
  1234. ;pmu_pwron_vol               ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
  1235. ;pmu_pekoff_time             ---set pek off time,ms, 4000/6000/8000/10000
  1236. ;pmu_pekoff_func             ---set pek off func, 0:shutdown,1:restart
  1237. ;pmu_pekoff_en               ---set pek offlevel powerdown or not, 0:not powerdown,1:powerdown
  1238. ;pmu_peklong_time            ---set pek pek long irq time,ms,1000/1500/2000/2500
  1239. ;pmu_pekon_time              ---set pek on time,ms,128/1000/2000/3000
  1240. ;pmu_pwrok_time              ---set pmu pwrok delay time,ms,8/16/32/64
  1241. ;pmu_battery_warning_level1  ---low power warning high level,5%-20%,1%/step
  1242. ;pmu_battery_warning_level2  ---low power warning low level,0%-15%,1%/step
  1243. ;pmu_restvol_time            ---battery indicaton reflash time,30/60/120/
  1244. ;pmu_ocv_cou_adjust_time     ---ocv battery indication reflash time,60/120/30
  1245. ;pmu_chgled_func             ---CHGKED pin control,0:controlled by pmu,1:controlled by Charger
  1246. ;pmu_chgled_type             ---CHGLED Type select when pmu_chgled_func=0,0:Type A,1:Type B
  1247. ;pmu_vbusen_func             ---N_VBUSEN function select,0:as an output,1:as an input
  1248. ;pmu_reset                   ---when power key press longer than 16's,PMU reset or not.0:not reset 1:reset
  1249. ;pmu_IRQ_wakeup              ---press IRQ wakeup or not when sleep or power down.0:not wakeup 1:wakeup
  1250. ;pmu_hot_shutdowm            ---when PMU over temperature protect or not;0:disable 1:enable
  1251. ;pmu_inshort                 ---ACIN and VBUS inshort or not by software;0:auto detect 1:inshort
  1252. ;--------------------------------------------------------------------------------------------------------
  1253. [pmu_para]
  1254. pmu_used                   = 1
  1255. pmu_twi_addr               = 0x34
  1256. pmu_twi_id                 = 1
  1257. pmu_irq_id                 = 0
  1258. pmu_battery_rdc            = 100
  1259. pmu_battery_cap            = 0
  1260. pmu_batdeten               = 1
  1261. pmu_runtime_chgcur         = 900
  1262. pmu_earlysuspend_chgcur    = 900
  1263. pmu_suspend_chgcur         = 2100
  1264. pmu_shutdown_chgcur        = 2100
  1265. pmu_init_chgvol            = 4200
  1266. pmu_init_chgend_rate       = 15
  1267. pmu_init_chg_enabled       = 1
  1268. pmu_init_adc_freq          = 800
  1269. pmu_init_adcts_freq        = 800
  1270. pmu_init_chg_pretime       = 70
  1271. pmu_init_chg_csttime       = 720
  1272. pmu_batt_cap_correct       = 1
  1273. pmu_bat_regu_en                    = 0
  1274.  
  1275. pmu_bat_para1              = 0
  1276. pmu_bat_para2              = 0
  1277. pmu_bat_para3              = 0
  1278. pmu_bat_para4              = 0
  1279. pmu_bat_para5              = 0
  1280. pmu_bat_para6              = 0
  1281. pmu_bat_para7              = 0
  1282. pmu_bat_para8              = 0
  1283. pmu_bat_para9              = 1
  1284. pmu_bat_para10             = 1
  1285. pmu_bat_para11             = 2
  1286. pmu_bat_para12             = 2
  1287. pmu_bat_para13             = 3
  1288. pmu_bat_para14             = 5
  1289. pmu_bat_para15             = 11
  1290. pmu_bat_para16             = 17
  1291. pmu_bat_para17             = 21
  1292. pmu_bat_para18             = 29
  1293. pmu_bat_para19             = 36
  1294. pmu_bat_para20             = 41
  1295. pmu_bat_para21             = 46
  1296. pmu_bat_para22             = 50
  1297. pmu_bat_para23             = 57
  1298. pmu_bat_para24             = 64
  1299. pmu_bat_para25             = 70
  1300. pmu_bat_para26             = 80
  1301. pmu_bat_para27             = 83
  1302. pmu_bat_para28             = 87
  1303. pmu_bat_para29             = 87
  1304. pmu_bat_para30             = 91
  1305. pmu_bat_para31             = 95
  1306. pmu_bat_para32             = 100
  1307.  
  1308. pmu_usbvol_limit           = 0
  1309. pmu_usbcur_limit           = 0
  1310. pmu_usbvol                 = 4000
  1311. pmu_usbcur                 = 0
  1312. pmu_usbvol_pc              = 4400
  1313. pmu_usbcur_pc              = 500
  1314. pmu_pwroff_vol             = 3300
  1315. pmu_pwron_vol              = 2600
  1316. pmu_pekoff_time            = 6000
  1317. pmu_pekoff_func            = 0
  1318. pmu_pekoff_en              = 1
  1319. pmu_peklong_time           = 1500
  1320. pmu_pekon_time             = 1000
  1321. pmu_pwrok_time             = 64
  1322. pmu_battery_warning_level1 = 15
  1323. pmu_battery_warning_level2 = 0
  1324. pmu_restvol_adjust_time    = 60
  1325. pmu_ocv_cou_adjust_time    = 60
  1326. pmu_chgled_func            = 0
  1327. pmu_chgled_type            = 0
  1328. pmu_vbusen_func            = 1
  1329. pmu_reset                  = 0
  1330. pmu_IRQ_wakeup             = 0
  1331. pmu_hot_shutdowm           = 1
  1332. pmu_inshort                = 0
  1333. power_start                = 0
  1334.  
  1335. [recovery_key]
  1336. key_min                 =28
  1337. key_max                 =32
  1338.  
  1339. ;----------------------------------------------------------------------------------
  1340. ; dvfs voltage-frequency table configuration
  1341. ;
  1342. ; max_freq: cpu maximum frequency, based on Hz, can not be more than 1008MHz
  1343. ; min_freq: cpu minimum frequency, based on Hz, can not be less than 96MHz
  1344. ;
  1345. ; LV_count: count of LV_freq/LV_volt, must be < 16
  1346. ;
  1347. ; LV1: core vdd is 1.26v if cpu frequency is (1104Mhz,  xxxxMhz]
  1348. ; LV2: core vdd is 1.26v if cpu frequency is (1056Mhz,  1104Mhz]
  1349. ; LV3: core vdd is 1.20v if cpu frequency is (864Mhz,   1056Mhz]
  1350. ; LV4: core vdd is 1.10v if cpu frequency is (720Mhz,   864Mhz]
  1351. ; LV5: core vdd is 1.00v if cpu frequency is (480Mhz,   720Mhz]
  1352. ; LV6: core vdd is 0.90v if cpu frequency is (0Mhz,     480Mhz]
  1353. ; LV7: core vdd is 0.90v if cpu frequency is (0Mhz,     480Mhz]
  1354. ; LV8: core vdd is 0.90v if cpu frequency is (0Mhz,     480Mhz]
  1355. ;
  1356. ;----------------------------------------------------------------------------------
  1357. [dvfs_table]
  1358. max_freq = 1008000000
  1359. min_freq = 120000000
  1360.  
  1361. LV_count = 8
  1362.  
  1363. LV1_freq = 1104000000
  1364. LV1_volt = 1300
  1365.  
  1366. LV2_freq = 1056000000
  1367. LV2_volt = 1260
  1368.  
  1369. LV3_freq = 864000000
  1370. LV3_volt = 1200
  1371.  
  1372. LV4_freq = 720000000
  1373. LV4_volt = 1100
  1374.  
  1375. LV5_freq = 480000000
  1376. LV5_volt = 1000
  1377.  
  1378. LV6_freq = 0
  1379. LV6_volt = 1000
  1380.  
  1381. LV7_freq = 0
  1382. LV7_volt = 1000
  1383.  
  1384. LV8_freq = 0
  1385. LV8_volt = 1000
  1386.  
  1387. ;----------------------------------------------------------------------------------
  1388. ;cpus config parameters
  1389. ;cpus_uart_debug_used  --r_uart whether used for cpus debugging
  1390. ;
  1391. ;----------------------------------------------------------------------------------
  1392. [cpus_config_paras]
  1393. cpus_uart_debug_used = 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top