;-------------------------------------------------------------------------------
; 说明:
; 1. 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
; 2. 新增主键和子键的名称必须控制在32个字符以内,不包括32个
; 3. 所以的注释以“;”开始,单独占据一行
; 4. 注释不可和配置项同行,例如:主键和子健后面不能添加任何形式的注释
;
; gpio的描述形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
; 例如:port:PA0<0> ;------------------------------------------------------------------------------- [product] version = "100" machine = "sugar-ref001" [platform] eraseflag = 1 [target] boot_clock = 912 dcdc2_vol = 1400 dcdc3_vol = 1250 ldo2_vol = 3000 ldo3_vol = 2800 ldo4_vol = 2800 power_start = 3 storage_type = -1 usb_recovery = 1 [clock] pll3 = 297 pll4 = 300 pll6 = 600 pll7 = 297 pll8 = 336 [card_boot] logical_start = 40960 sprite_gpio0 = ;port:PH20<1> ;sprite_work_delay = 500 ;sprite_err_delay = 200 [card0_boot_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> [card2_boot_para] card_ctrl = 2 card_high_speed = 1 card_line = 4 sdc_cmd = port:PC6<3><1> sdc_clk = port:PC7<3><1> sdc_d0 = port:PC8<3><1> sdc_d1 = port:PC9<3><1> sdc_d2 = port:PC10<3><1> sdc_d3 = port:PC11<3><1> [twi_para] twi_port = 0 twi_scl = port:PB0<2> twi_sda = port:PB1<2> [uart_para] uart_debug_port = 0 uart_debug_tx = port:PB22<2><1> uart_debug_rx = port:PB23<2><1> [uart_force_debug] uart_debug_port = 0 uart_debug_tx =port:PF2<4><1> uart_debug_rx =port:PF4<4><1> [jtag_para] jtag_enable = 1 jtag_ms = port:PB14<3> jtag_ck = port:PB15<3> jtag_do = port:PB16<3> jtag_di = port:PB17<3> ;------ --------------------------------------------------------------------------------------------------- ; if 1 == standby_mode, then support super standby; ; else, support normal standby. ;--------------------------------------------------------------------------------------------------------- [pm_para] standby_mode= 0 usbhid_wakeup_enable = 0 ;------------------------------------------------------------------------------- ;sdram configuration ;------------------------------------------------------------------------------- [dram_para] dram_baseaddr = 0x40000000 ;dram_clk = 432 dram_clk = 384 dram_type = 3 dram_rank_num = 0xffffffff dram_chip_density = 0xffffffff dram_io_width = 0xffffffff dram_bus_width = 0xffffffff dram_cas = 9 dram_zq = 0x7f dram_odt_en = 0 dram_size = 0xffffffff dram_tpr0 = 0x38D483 dram_tpr1 = 0xa0a0 dram_tpr2 = 0x22a00 dram_tpr3 = 0x0 dram_tpr4 = 0x0 dram_tpr5 = 0x0 dram_emr1 = 0x4 dram_emr2 = 0x10 dram_emr3 = 0x0 ;------------------------------------------------------------------------------- ;Mali configuration ;------------------------------------------------------------------------------- [mali_para] mali_used = 1 mali_clkdiv = 1 ;------------------------------------------------------------------------------- ;Ethernet MAC configuration ;------------------------------------------------------------------------------- [emac_para] emac_used = 1 emac_rxd3 = port:PA00<2> emac_rxd2 = port:PA01<2> emac_rxd1 = port:PA02<2> emac_rxd0 = port:PA03<2> emac_txd3 = port:PA04<2> emac_txd2 = port:PA05<2> emac_txd1 = port:PA06<2> emac_txd0 = port:PA07<2> emac_rxclk = port:PA08<2> emac_rxerr = port:PA09<2> emac_rxdV = port:PA10<2> emac_mdc = port:PA11<2> emac_mdio = port:PA12<2> emac_txen = port:PA13<2> emac_txclk = port:PA14<2> emac_crs = port:PA15<2> emac_col = port:PA16<2> emac_reset = port:PA17<1> ;emac_power =port:PA17<1> ;------------------------------------------------------------------------------- ;Ethernet GMAC configuration ;---------------------------------- --------------------------------------------- [gmac_para] gmac_used = 0 gmac_rxd3 = port:PA00<5> gmac_rxd2 = port:PA01<5> gmac_rxd1 = port:PA02<5> gmac_rxd0 = port:PA03<5> gmac_txd3 = port:PA04<5> gmac_txd2 = port:PA05<5> gmac_txd1 = port:PA06<5> gmac_txd0 = port:PA07<5> gmac_rxclk = port:PA08<5> gmac_rxerr = port:PA09<0> gmac_rxctl = port:PA10<5> gmac_mdc = port:PA11<5> gmac_mdio = port:PA12<5> gmac_txctl = port:PA13<5> gmac_txclk = port:PA14<0> gmac_txck = port:PA15<5> gmac_clkin = port:PA16<5> gmac_txerr = port:PA17<0> ;------------------------------------------------------------------------------- ;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:PB18<2> twi1_sda = port:PB19<2> [twi2_para] twi2_used = 1 twi2_scl = port:PB20<2> twi2_sda = port:PB21<2> [twi3_para] twi3_used = 1 twi3_scl = port:PI0<3> twi3_sda = port:PI1<3> [twi4_para] twi4_used = 1 twi4_scl = port:PI2<3> twi4_sda = port:PI3<3> ;------------------------------------------------------------------------------- ;uart configuration ;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function) ;------------------------------------------------------------------------------- [uart_para0] uart_used = 1 uart_port = 0 uart_type = 2 uart_tx = port:PB22<2><1> uart_rx = port:PB23<2><1> [uart_para1] uart_used = 0 uart_port = 1 uart_type = 8 uart_tx = port:PA10<4><1> uart_rx = port:PA11<4><1> uart_rts = port:PA12<4><1> uart_cts = port:PA13<4><1> uart_dtr = port:PA14<4><1>