;PAD application ;--------------------------------------------------------------------------------------------------------- ; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串 ; 描述gpio的形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态> ;--------------------------------------------------------------------------------------------------------- [product] version = "1.0" machine = "A13-EVB-V1.0" ;---------------------------------------------------------------------------------- ; system configuration ;---------------------------------------------------------------------------------- [target] boot_clock = 1008 dcdc2_vol = 1400 dcdc3_vol = 1200 ldo2_vol = 3000 ldo3_vol = 3300 ldo4_vol = 3300 pll4_freq = 960 pll6_freq = 720 power_start = 0 storage_type = 0 [card_boot] logical_start = 40960 sprite_gpio0 = ;--------------------------------------------------------------------------------------------------------- ; if 1 == standby_mode, then support super standby; ; else, support normal standby. ;--------------------------------------------------------------------------------------------------------- [pm_para] standby_mode = 1 [card_boot0_para] card_ctrl = 0 card_high_speed = 1 card_line = 4 sdc_d1 = port:PF0<2><1> sdc_d0 = port:PF1<2><1> sdc_clk = port:PF2<2><1> sdc_cmd = port:PF3<2><1> sdc_d3 = port:PF4<2><1> sdc_d2 = port:PF5<2><1> [twi_para] twi_port = 0 twi_scl = port:PB0<2><1> twi_sda = port:PB1<2><1> [uart_para] uart_debug_port = 1 ;uart_debug_tx = port:PG3<4><1> ;uart_debug_rx = port:PG4<4><1> [uart_force_debug] uart_debug_port = 1 ;uart_debug_tx = port:PG3<4><1> ;uart_debug_rx = port:PG4<4><1> [jtag_para] jtag_enable = 0 jtag_ms = port:PF0<4><1> jtag_ck = port:PF5<4><1> jtag_do = port:PF3<4><1> jtag_di = port:PF1<4><1> ;***************************************************************************** ; sdram configuration ; ;***************************************************************************** [dram_para] dram_baseaddr = 0x40000000 dram_clk = 408 dram_type = 3 dram_rank_num = 1 dram_chip_density = 2048 dram_io_width = 8 dram_bus_width = 16 dram_cas = 9 dram_zq = 0x7b dram_odt_en = 0 dram_size = 512 dram_tpr0 = 0x42d899b7 dram_tpr1 = 0xa090 dram_tpr2 = 0x22a00 dram_tpr3 = 0x0 dram_tpr4 = 0x0 dram_tpr5 = 0x0 dram_emr1 = 0x0 dram_emr2 = 0x10 dram_emr3 = 0x0 ;---------------------------------------------------------------------------------- ;nand flash configuration ;---------------------------------------------------------------------------------- [nand_para] nand_used = 1 nand_we = port:PC00<2> nand_ale = port:PC01<2> nand_cle = port:PC02<2> nand_ce1 = port:PC03<2> nand_ce0 = port:PC04<2> nand_nre = port:PC05<2> nand_rb0 = port:PC06<2> nand_rb1 = port:PC07<2> nand_d0 = port:PC08<2> nand_d1 = port:PC09<2> nand_d2 = port:PC10<2> nand_d3 = port:PC11<2> nand_d4 = port:PC12<2> nand_d5 = port:PC13<2> nand_d6 = port:PC14<2> nand_d7 = port:PC15<2> nand_wp = nand_ce2 = nand_ce3 = nand_ce4 = nand_ce5 = nand_ce6 = nand_ce7 = nand_spi = nand_ndqs = port:PC19<2> ;***************************************************************************** ; mali configuration ; ; mali_clkdiv -- clock divisor for mali from pll4 ;***************************************************************************** [mali_para] mali_used = 1 mali_clkdiv = 2 ;---------------------------------------------------------------------------------- ;i2c configuration ;---------------------------------------------------------------------------------- [twi0_para] twi0_used = 1 twi0_scl = port:PB0<2> twi0_sda = port:PB1<2> [twi1_para] twi1_used = 1 twi1_scl = port:PB15<2> twi1_sda = port:PB16<2> [twi2_para] twi2_used = 1 twi2_scl = port:PB17<2> twi2_sda = port:PB18<2> ;---------------------------------------------------------------------------------- ;uart configuration ;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function) ;---------------------------------------------------------------------------------- [uart_para0] uart_used = 0 uart_port = 0 uart_type = 2 ;uart_tx = port:PG3<4><1> ;uart_rx = port:PG4<4><1> [uart_para1] uart_used = 0 uart_port = 1 uart_type = 2 ;uart_tx = port:PG3<4><1> ;uart_rx = port:PG4<4><1> ;spi configuration ;---------------------------------------------------------------------------------- [spi1_para] spi_used = 0 spi_cs0 = port:PG09<2> spi_cs1 = port:PG13<2> spi_sclk = port:PG10<2> spi_mosi = port:PG11<2> spi_miso = port:PG12<2> [spi2_para] spi_used = 0 spi_cs0 = port:PE0<4> spi_sclk = port:PE1<4> spi_mosi = port:PB2<4> spi_miso = port:PB3<4> ;---------------------------------------------------------------------------------- ;rtp_screen_size : 表屏幕尺寸,以斜对角方向长度为准,以寸为单位 ;tp_regidity_level : 表屏幕的硬度,以指覆按压,抬起时开始计时,多少个10ms时间单位之后,硬件采集不到数据为准; ; 通常,我们建议的屏,5寸屏设为5,7寸屏设为7, ; 对于某些供应商提供的屏,硬度可能不合要求,需要适度调整 ;rtp_press_threshold_enable: whether press threshold is enable or not. 0 is suggested. ;rtp_press_threshold : only when rtp_press_threshold_enable == 1, this para take effect. ; between 0 and 0xFFFFFF is supported.more bigger, more sensitive, 0x1f40 is suggested. ;rtp_sensitive_level : between 0 and 0xf is supported.more bigger, more sensitive, 0xf is suggested. ;rtp_exchange_x_y_flag : in some case, x, y need to be exchanged, at that situation, 1 is setted. ; normally, 0 is setted. ;---------------------------------------------------------------------------------- [rtp_para] rtp_used = 0 rtp_screen_size = 5 rtp_regidity_level = 5 rtp_press_threshold_enable = 0 rtp_press_threshold = 0x1f40 rtp_sensitive_level = 0xf rtp_exchange_x_y_flag = 0 ;---------------------------------------------------------------------------------- ;capacitor tp configuration ;external int function(Gt811-TS,0x5d) (gsl1680,0x40) (elan_ts,0x15)(gslX680,0x40) ;wakeup output function ;notice --- tp_int_port & tp_io_port use the same port ;name should be compatible with the corresponding ctp driver. ;at present, only "ft5x_ts" and "Goodix-TS" is supported. ;---------------------------------------------------------------------------------- [ctp_para] ctp_used = 1 ctp_name = "gsl1680" ctp_twi_id = 1 ctp_twi_addr = 0x40 ctp_screen_max_x = 800 ctp_screen_max_y = 480 ctp_revert_x_flag = 0 ctp_revert_y_flag = 1 ctp_exchange_x_y_flag = 1 ctp_int_port = port:PG11<6> ctp_wakeup = port:PB03<1><1> ctp_reset = port:PB03<1><1> ctp_io_port = port:PG11<6> ;---------------------------------------------------------------------------------- ;touch key configuration ;at present, only "hv_keypad" is supported. ;---------------------------------------------------------------------------------- [tkey_para] tkey_used = 0 tkey_name = "hv_keypad" tkey_twi_id = 2 tkey_twi_addr = 0x62 tkey_int = ;---------------------------------------------------------------------------------- ;motor configuration ;---------------------------------------------------------------------------------- [motor_para] motor_used = 0 motor_shake = ;---------------------------------------------------------------------------------- ;disp init configuration ; ;disp_mode (0:screen0 1:screen1 2:two_diff_screen_diff_contents ; 3:two_same_screen_diff_contets 4:two_diff_screen_same_contents) ;screenx_output_type (0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga) ;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) ;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) ;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444) ;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA) --- 0 for linux, 2 for android ;---------------------------------------------------------------------------------- [disp_init] disp_init_enable = 1 disp_mode = 0 screen0_output_type = 1 screen0_output_mode = 4 screen1_output_type = 1 screen1_output_mode = 4 fb0_framebuffer_num = 2 fb0_format = 10 fb0_pixel_sequence = 0 fb0_scaler_mode_enable = 0 fb1_framebuffer_num = 2 fb1_format = 10 fb1_pixel_sequence = 0 fb1_scaler_mode_enable = 0 ;---------------------------------------------------------------------------------- ;lcd0 configuration ;lcd_dclk_freq: in MHZ unit ;lcd_pwm_freq: in HZ unit ;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds ;lcd_hbp: hsync back porch ;lcd_ht: hsync total cycle ;lcd_vbp: vsync back porch ;lcd_vt: vysnc total cycle *2 ;lcd_hv_if: 0:hv parallel 1:hv serial ;lcd_hv_smode: 0:RGB888 1:CCIR656 ;lcd_hv_s888_if serial RGB format ;lcd_hv_syuv_if: serial YUV format ;lcd_hv_hspw: hsync plus width ;lcd_hv_vspw: vysnc plus width ;lcd_lvds_ch: 0:single channel; 1:dual channel ;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode ;lcd_lvds_bitwidth: 0:24bit; 1:18bit ;lcd_lvds_io_cross: 0:normal; 1:pn cross ;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 ;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither ;lcd_gpio_0: SCL ;lcd_gpio_1 SDA ;lcdgamma4iep: Smart Backlight parameter,根据所用LCD屏的gamma值填写,该值为实际gamma值乘以10。 ; 默认值为22(gamma值为2.2),范围为10~30,且只能是偶数。 ; 如开启智能背光后屏幕比开启前暗,可减小该gamma值;反之,可增加该gamma值。 ;---------------------------------------------------------------------------------- [lcd0_para] lcd_used = 1 lcd_x = 800 lcd_y = 480 lcd_dclk_freq = 39 lcd_pwm_not_used = 0 lcd_pwm_ch = 0 lcd_pwm_freq = 10000 lcd_pwm_pol = 1 lcd_if = 0 ;------------cpt-cdm------------------- ;lcd_hbp = 46 ;lcd_ht = 928 ;lcd_vbp = 23 ;lcd_vt = 1050 ;---------CPT-JW------------------- ;lcd_hbp = 50 ;lcd_ht = 928 ;lcd_vbp = 23 ;lcd_vt = 1050 ;---------汉彩-------------------- ;lcd_hbp = 50 ;lcd_ht = 928 ;lcd_vbp = 32 ;lcd_vt = 1050 ;---------hsd-cdm-------------------- lcd_hbp = 88 lcd_ht = 928 lcd_vbp = 32 lcd_vt = 1050 ;---------景汉-------------------- ;lcd_hbp = 40 ;lcd_ht = 928 ;lcd_vbp = 23 ;lcd_vt = 1050 ;---------群创-------------------- ;lcd_hbp = 40 ;lcd_ht = 928 ;lcd_vbp = 28 ;lcd_vt = 1050 ;---------飞尔-------------------- ;lcd_hbp = 40 ;lcd_ht = 928 ;lcd_vbp = 23 ;lcd_vt = 1050 ;---------京东方------------------ ;lcd_hbp = 40 ;lcd_ht = 928 ;lcd_vbp = 29 ;lcd_vt = 1050 ;-----------桥电------------------ ;lcd_hbp = 44 ;lcd_ht = 928 ;lcd_vbp = 23 ;lcd_vt = 1050 ;------------------------------- lcd_hv_if = 0 lcd_hv_smode = 0 lcd_hv_s888_if = 0 lcd_hv_syuv_if = 0 ;--------------twd--------------- lcd_hv_vspw = 13 lcd_hv_hspw = 30 ;------------------------------- ;lcd_hv_vspw = 3 ;lcd_hv_hspw = 48 lcd_lvds_ch = 0 lcd_lvds_mode = 0 lcd_lvds_bitwidth = 0 lcd_lvds_io_cross = 0 lcd_cpu_if = 0 lcd_frm = 1 lcd_io_cfg0 = 0x10000000 lcd_gamma_correction_en = 0 lcd_gamma_tbl_0 = 0x00000000 lcd_gamma_tbl_1 = 0x00010101 ;........ lcd_gamma_tbl_255 = 0x00ffffff lcd_bl_en_used = 1 lcd_bl_en = port:power1<1><0><1> lcd_power_used = 1 lcd_power = port:power0<1><0><1> lcd_pwm_used = 1 lcd_pwm = port:PB02<2><0> lcd_gpio_0 = lcd_gpio_1 = lcd_gpio_2 = lcd_gpio_3 = lcdd0 = port:PD00<2><0> lcdd1 = port:PD01<2><0> lcdd2 = port:PD02<2><0> lcdd3 = port:PD03<2><0> lcdd4 = port:PD04<2><0> lcdd5 = port:PD05<2><0> lcdd6 = port:PD06<2><0> lcdd7 = port:PD07<2><0> lcdd8 = port:PD08<2><0> lcdd9 = port:PD09<2><0> lcdd10 = port:PD10<2><0> lcdd11 = port:PD11<2><0> lcdd12 = port:PD12<2><0> lcdd13 = port:PD13<2><0> lcdd14 = port:PD14<2><0> lcdd15 = port:PD15<2><0> lcdd16 = port:PD16<2><0> lcdd17 = port:PD17<2><0> lcdd18 = port:PD18<2><0> lcdd19 = port:PD19<2><0> lcdd20 = port:PD20<2><0> lcdd21 = port:PD21<2><0> lcdd22 = port:PD22<2><0> lcdd23 = port:PD23<2><0> lcdclk = port:PD24<2><0> lcdde = port:PD25<2><0> lcdhsync = port:PD26<2><0> lcdvsync = port:PD27<2><0> lcdgamma4iep = 22 ;---------------------------------------------------------------------------------- ;tv out dac configuration ;dacx_src: 0:composite; 1:luma; 2:chroma; 4:Y; 5:Pb; 6: Pr; 7:none ;---------------------------------------------------------------------------------- [tv_out_dac_para] dac_used = 1 dac0_src = 0 [hdmi_para] hdmi_used = 0 ;-------------------------------------------------------------------------------- ;csi gpio configuration ;csi_if: 0:hv_8bit 1:hv_16bit 2:hv_24bit 3:bt656 1ch 4:bt656 2ch 5:bt656 4ch ;csi_mode: 0:sample one csi to one buffer 1:sample two csi to one buffer ;csi_dev_qty: The quantity of devices linked to csi interface ;csi_vflip: flip in vertical direction 0:disable 1:enable ;csi_hflip: flip in horizontal direction 0:disable 1:enable ;csi_stby_mode: 0:not shut down power at standby 1:shut down power at standby ;csi_iovdd: camera module io power , pmu power supply ;csi_avdd: camera module analog power , pmu power supply ;csi_dvdd: camera module core power , pmu power supply ;pmu_ldo3: fill "axp20_pll" ;pmu_ldo4: fill "axp20_hdmi"(gc0308,0x42) (sp0838,0x30)(gc2015,0x60) ;fill "" when not using any pmu power supply ;csi_flash_pol: the active polority of the flash light IO 0:low active 1:high active ;-------------------------------------------------------------------------------- [csi0_para] csi_used = 1 csi_mode = 0 csi_dev_qty = 1 csi_stby_mode = 1 csi_mname = "gc0308" csi_twi_id = 2 csi_twi_addr = 0x42 csi_if = 0 csi_vflip = 0 csi_hflip = 0 csi_iovdd = "" csi_avdd = "" csi_dvdd = "" csi_flash_pol = 1 csi_mname_b = "" csi_twi_id_b = 1 csi_twi_addr_b = 0x78 csi_if_b = 0 csi_vflip_b = 1 csi_hflip_b = 0 csi_iovdd_b = "" csi_avdd_b = "" csi_dvdd_b = "" csi_flash_pol_b = 1 csi_pck = port:PE00<3> csi_ck = port:PE01<3> csi_hsync = port:PE02<3> csi_vsync = port:PE03<3> csi_d0 = port:PE04<3> csi_d1 = port:PE05<3> csi_d2 = port:PE06<3> csi_d3 = port:PE07<3> csi_d4 = port:PE08<3> csi_d5 = port:PE09<3> csi_d6 = port:PE10<3> csi_d7 = port:PE11<3> csi_reset = port:power3<1><0> csi_power_en = port:power2<1><0> csi_stby = port:PB10<1><1> csi_flash = csi_af_en = csi_reset_b = csi_power_en_b = csi_stby_b = csi_flash_b = csi_af_en_b = [csi1_para] csi_used = 0 csi_mode = 0 csi_dev_qty = 1 csi_stby_mode = 1 csi_mname = "" csi_twi_id = 1 csi_twi_addr = 0xba csi_if = 0 csi_vflip = 0 csi_hflip = 0 csi_iovdd = "" csi_avdd = "" csi_dvdd = "" csi_flash_pol = 1 csi_mname_b = "" csi_twi_id_b = 1 csi_twi_addr_b = 0x78 csi_if_b = 0 csi_vflip_b = 1 csi_hflip_b = 0 csi_iovdd_b = "" csi_avdd_b = "" csi_dvdd_b = "" csi_flash_pol_b = 1 csi_reset = csi_power_en = csi_stby = csi_flash = csi_af_en = csi_reset_b = csi_power_en_b = csi_stby_b = csi_flash_b = csi_af_en_b = ;-------------------------------------------------------------------------------- ; SDMMC PINS MAPPING | ; ------------------------------------------------------------------------------| ; 配置选项: | ; sdc_used --- 此sdc控制器是否使用,1-使用,0-不使用 | ; sdc_detmode --- 卡检测模式 | ; 1-gpio检测,2-data3检测,3-无检测,卡常在(不卡拔插) | ; 4 - manual mode(from proc file system node) | ; sdc_bwid --- 卡数据位宽,1-1bit, 4-4bit, other-no use | ; 其余: port配置 | ; ------------------------------------------------------------------------------| ; 特别说明: | ; 1.每个卡控制器必须有sdc_used配置,当sdc_used 为 0时,其余参数可不配 | ; 2.卡使用data3检测的时候(sdc_detmode 为 2),gpio配置里SDC_D3的pull up/down需要| ; 保证高阻状态且外部电路需要对data3使用1MΩ左右的电阻下拉,使用请详细咨询,误擅| ; 自决定 | ; 3.使用gpio检测时必须配置sdc_det检测pin脚端口 | ;-------------------------------------------------------------------------------- [mmc0_para] sdc_used = 1 sdc_detmode = 1 bus_width = 4 sdc_d1 = port:PF0<2><1><2> sdc_d0 = port:PF1<2><1><2> sdc_clk = port:PF2<2><1><2> sdc_cmd = port:PF3<2><1><2> sdc_d3 = port:PF4<2><1><2> sdc_d2 = port:PF5<2><1><2> sdc_det = port:PG0<0><1> sdc_use_wp = 0 sdc_wp = [mmc1_para] sdc_used = 0 sdc_detmode = bus_width = sdc_cmd = sdc_clk = sdc_d0 = sdc_d1 = sdc_d2 = sdc_d3 = sdc_det = sdc_use_wp = sdc_wp = [mmc2_para] sdc_used = 0 sdc_detmode = 3 bus_width = 4 sdc_cmd = port:PE8<4><1><2> sdc_clk = port:PE9<4><1><2> sdc_d0 = port:PE4<4><1><2> sdc_d1 = port:PE5<4><1><2> sdc_d2 = port:PE6<4><1><2> sdc_d3 = port:PE7<4><1><2> sdc_det = sdc_use_wp = 0 sdc_wp = ; ------------------------------------------------------------------------------| ; memory stick configuration ;-------------------------------------------------------------------------------- [ms_para] ms_used = 0 ms_bs = ms_clk = ms_d0 = ms_d1 = ms_d2 = ms_d3 = ms_det = ;------------------------------------------------------------------------------------------ ;key matrix ;------------------------------------------------------------------------------------------ [keypad_para] kp_used = 0 kp_in_size = kp_out_size = kp_in0 = kp_in1 = kp_in2 = kp_in3 = kp_in4 = kp_in5 = kp_in6 = kp_in7 = kp_out0 = kp_out1 = kp_out2 = kp_out3 = kp_out4 = kp_out5 = kp_out6 = kp_out7 = ;-------------------------------- ;--- USB0控制标志 ;-------------------------------- [usbc0] usb_used = 1 usb_port_type = 2 usb_detect_type = 1 usb_id_gpio = port:PG2<0><1> usb_det_vbus_gpio = port:PG1<0><0> usb_drv_vbus_gpio = port:PG12<1><0><0> usb_host_init_state = 0 ;-------------------------------- ;--- USB1控制标志 ;-------------------------------- [usbc1] usb_used = 1 usb_port_type = 1 usb_detect_type = 0 usb_controller_type = 0 usb_id_gpio = usb_det_vbus_gpio = usb_drv_vbus_gpio = port:power203<1><0><0> usb_host_init_state = 0 ;-------------------------------- ;--- USB Device ;-------------------------------- [usb_feature] vendor_id = 0x18D1 mass_storage_id = 0x0001 adb_id = 0x0002 manufacturer_name = "USB Developer" product_name = "Android" serial_number = "20080411" [msc_feature] vendor_name =USB 2.0 product_name =USB Flash Driver release = 100 luns = 2 ;-------------------------------------------------------------------------------- ; G sensor configuration(mma7660,0x4c) ; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2) ;mma7660=0x4c bma250=0x18 mxc622x=0x15 dmard06=0x1c ;-------------------------------------------------------------------------------- [gsensor_para] gsensor_used =1 gsensor_name = "dmard06" gsensor_twi_addr =0x1c gsensor_twi_id = 1 gsensor_int1 = gsensor_int2 = [gsensor_para1] gsensor_used = 1 gsensor_name = "mc32x0" gsensor_twi_id = 1 gsensor_twi_addr = 0x4c gsensor_int1 = gsensor_int2 = ;-------------------------------------------------------------------------------- ; gps gpio configuration ; gps_spi_id --- the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used ; gps_spi_cs_num --- the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1 ; gps_lradc --- the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc ;-------------------------------------------------------------------------------- [gps_para] gps_used = 0 gps_spi_id = gps_spi_cs_num = gps_lradc = gps_clk = gps_sign = gps_mag = gps_vcc_en = gps_osc_en = gps_rx_en = ;-------------------------------------------------------------------------------- ;sdio wifi configuration ;wifi_sdc_id --- 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3 ;sdio_wifi_mod_sel --- 0- none, 1- swl-n20(wifi), 2- usi bm-01(wifi+bt+fm), ; 3- ar6302qfn,4- apm6xxx, 5- swb b23(wifi+bt+fm) ;-------------------------------------------------------------------------------- [sdio_wifi_para] sdio_wifi_used = 0 sdio_wifi_sdc_id = sdio_wifi_mod_sel = ; samsung swl-n20 sdio wifi gpio config ;swl_n20_shdn = ;swl_n20_host_wakeup = ;swl_n20_vdd_en = ;swl_n20_vcc_en = ; swb-b23/usibm01 sdio wifi gpio config ;swbb23_wl_pwr = ;swbb23_wl_shdn = ;swbb23_wl_wake = ;swbb23_bt_shdn = ;swbb23_bt_wake = ;swbb23_bt_hostwake = ; apm sdio wifi gpio config ;apm_6981_vcc_en = ;apm_6981_vdd_en = ;apm_6981_wakeup = ;apm_6981_rst_n = ;apm_6981_pwd_n = ;-------------------------------------------------------------------------------- ;usb wifi configuration ;usb_wifi_id --- 0- USB0, 1- USB1 ;-------------------------------------------------------------------------------- [usb_wifi_para] usb_wifi_used = 1 usb_wifi_usbc_num = 1 ;-------------------------------------------------------------------------------- ;3G configuration ;-------------------------------------------------------------------------------- [3g_para] 3g_used = 0 3g_name = 3g_usbc_num = 3g_on_off = 3g_reset = 3g_poweron = 3g_wakeup_out = 3g_wakeup_in = ;-------------------------------------------------------------------------------- ;gyroscope ;-------------------------------------------------------------------------------- [gy_para] gy_used = 0 gy_twi_id = 1 gy_twi_addr = 0x00 gy_int1 = gy_int2 = ;-------------------------------------------------------------------------------- ;light sensor ;only modified "ls_used"/"ls_name"/"ls_twi_id", "ls_twi_addr"/"ls_int" not used ;support list : [ltr501als] ; [] ;-------------------------------------------------------------------------------- [ls_para] ls_used = 0 ls_name = "ltr501als" ls_twi_id = 1 ls_twi_addr = ls_int = ;-------------------------------------------------------------------------------- ;compass ;-------------------------------------------------------------------------------- [compass_para] compass_used = 0 compass_twi_id = compass_twi_addr = compass_int = ;-------------------------------------------------------------------------------- ;blue tooth ;bt_used ---- blue tooth used (0- no used, 1- used) ;bt_uard_id ---- uart index ;bt_mod_type ---- 0-none, 1-bcm bt ;-------------------------------------------------------------------------------- [bt_para] bt_used = 0 bt_uart_id = bt_mod_type = [i2s_para] i2s_used = 0 i2s_channel = i2s_mclk = i2s_bclk = i2s_lrclk = i2s_dout0 = i2s_dout1 = i2s_dout2 = i2s_dout3 = i2s_din = [spdif_para] spdif_used = 0 spdif_mclk = spdif_dout = spdif_din = [audio_para] audio_used = 1 capture_used = 1 audio_lr_change = 0 audio_pa_ctrl = port:PG10<1><0> ;---------------------------------------------------------------------------------- ;ir --- infra remote configuration ;---------------------------------------------------------------------------------- [ir_para] ir_used = 0 ir0_rx = port:PB04<2> [rtc_para] rtc_used = 1 rtc_name = "pcf8563" rtc_twi_id = 1 rtc_twi_addr = 0x51 ;---------------------------------------------------------------------------------- ;pmu_twi_addr ---slave address ;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3) ;pmu_irq_id ---irq number (0 irq0,1 irq1,……) ;pmu_battery_rdc ---battery initial resistance,mΩ,根据实际电池内阻填写 ;pmu_battery_cap ---battery capability,mAh,根据实际电池容量填写 ;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 ;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 ;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 ;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 ;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4150/4200/4360 ;pmu_init_chgend_rate ---set initial charing end current rate,10/15 ;pmu_init_chg_enabled ---set initial charing enabled,0:关闭,1:打开 ;pmu_init_adc_freq ---set initial adc frequency,Hz,25/50/100/200 ;pmu_init_adc_freqc ---set initial coulomb adc coufrequency,Hz,25/50/100/200 ;pmu_init_chg_pretime ---set initial pre-charging time,min,40/50/60/70 ;pmu_init_chg_csttime ---set initial constance-charging time,min,360/480/600/720 ;pmu_usbvol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite ;pmu_usbcur ---set usb-ac limited voltage level,mA,100/500/900, 0 - not limite ;pmu_usbvol_pc ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite ;pmu_usbcur_pc ---set usb-pc limited voltage level,mA,100/500/900, 0 - not limite ;pmu_pwroff_vol ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300 ;pmu_pwron_vol ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300 ;pmu_pekoff_time ---set pek off time,ms, 4000/6000/8000/10000 ;pmu_pekoff_en ---set pek off enable, 0:关闭,1:打开 ;pmu_peklong_time ---set pek pek long irq time,ms,1000/1500/2000/2500 ;pmu_pekon_time ---set pek on time,ms,128/1000/2000/3000 ;pmu_pwrok_time ---set pmu pwrok delay time,ms,8/64 ;pmu_pwrnoe_time ---set pmu n_oe power down delay time,ms,128/1000/2000/3000 ;pmu_intotp_en ---set pmu power down when overtempertur enable,0:关闭,1:打开 ;pmu_suspendpwroff_vol ---set pmu shutdown voltage when cpu is suspend and battery voltage is low ;pmu_batdeten ---set pmu battery detect enabled,0:关闭,1:打开 ;---------------------------------------------------------------------------------- [pmu_para] pmu_used = 1 pmu_twi_addr = 0x34 pmu_twi_id = 0 pmu_irq_id = 0 pmu_battery_rdc = 140 pmu_battery_cap = 1900 pmu_init_chgcur = 300 pmu_earlysuspend_chgcur = 600 pmu_suspend_chgcur = 1000 pmu_resume_chgcur = 300 pmu_shutdown_chgcur = 1000 pmu_init_chgvol = 4200 pmu_init_chgend_rate = 15 pmu_init_chg_enabled = 1 pmu_init_adc_freq = 100 pmu_init_adc_freqc = 100 pmu_init_chg_pretime = 50 pmu_init_chg_csttime = 720 pmu_bat_para1 = 0 pmu_bat_para2 = 0 pmu_bat_para3 = 0 pmu_bat_para4 = 0 pmu_bat_para5 = 5 pmu_bat_para6 = 13 pmu_bat_para7 = 16 pmu_bat_para8 = 26 pmu_bat_para9 = 36 pmu_bat_para10 = 46 pmu_bat_para11 = 53 pmu_bat_para12 = 61 pmu_bat_para13 = 73 pmu_bat_para14 = 84 pmu_bat_para15 = 92 pmu_bat_para16 = 100 pmu_usbvol_limit = 1 pmu_usbcur_limit = 0 pmu_usbvol = 4000 pmu_usbcur = 0 pmu_usbvol_pc = 4000 pmu_usbcur_pc = 0 pmu_pwroff_vol = 3400 pmu_pwron_vol = 2900 pmu_pekoff_time = 6000 pmu_pekoff_en = 1 pmu_peklong_time = 1500 pmu_pekon_time = 1000 pmu_pwrok_time = 64 pmu_pwrnoe_time = 2000 pmu_intotp_en = 1 pmu_used2 = 0 pmu_adpdet = pmu_init_chgcur2 = 400 pmu_earlysuspend_chgcur2 = 600 pmu_suspend_chgcur2 = 1200 pmu_resume_chgcur2 = 400 pmu_shutdown_chgcur2 = 1200 pmu_suspendpwroff_vol = 3500 pmu_batdeten = 1 [recovery_key] key_min =4 key_max =6 ;---------------------------------------------------------------------------------- ; dvfs voltage-frequency table configuration ; ; max_freq: cpu maximum frequency, based on Hz, can not be more than 1008MHz ; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz ; ; LV_count: count of LV_freq/LV_volt, must be < 16 ; ; LV1: core vdd is 1.50v if cpu frequency is (1008Mhz, 1104Mhz] ; LV2: core vdd is 1.40v if cpu frequency is (912Mhz, 1008Mhz] ; LV3: core vdd is 1.35v if cpu frequency is (864Mhz, 912Mhz] ; LV4: core vdd is 1.30v if cpu frequency is (624Mhz, 864Mhz] ; LV5: core vdd is 1.20v if cpu frequency is (576Mhz, 624Mhz] ; LV6: core vdd is 1.10v if cpu frequency is (432Mhz, 576Mhz] ; LV7: core vdd is 1.00v if cpu frequency is (60Mhz, 432Mhz] ; ;---------------------------------------------------------------------------------- [dvfs_table] max_freq = 1008000000 min_freq = 60000000 LV_count = 7 LV1_freq = 1104000000 LV1_volt = 1500 LV2_freq = 1008000000 LV2_volt = 1400 LV3_freq = 912000000 LV3_volt = 1350 LV4_freq = 864000000 LV4_volt = 1300 LV5_freq = 624000000 LV5_volt = 1200 LV6_freq = 576000000 LV6_volt = 1100 LV7_freq = 432000000 LV7_volt = 1000