历史版本
修改人
时间
备注
V0.1
盘龙
2012-12-12
建立初始版本
V0.2
盘龙
2013-01-09
发布第一版
目录
1
历史版本
1
目录
4
1 系统(System)
4
1.1 [platform]
5
1.2 [target]
5
1.3 [pm_para]
5
1.4 [card_boot]
6
1.5 [card_boot0_para]
6
1.6 [card_boot2_para]
7
1.7 [twi_para]
7
1.8 [uart_para]
8
1.9 [jtag_para]
8
1.10 [clock]
9
2 SDRAM
9
2.1 [dram_para]
11
3 GMAC
11
3.1 [gmac_para]
12
4 I2C总线
12
4.1 [twi0_para]
13
4.2 [twi1_para]
13
4.3 [twi2_para]
13
4.4 [twi3_para]
14
5 串口(UART)
14
5.1 [uart_para0]
14
5.2 [uart_para1]
15
5.3 [uart_para2]
16
5.4 [uart_para3]
16
5.5 [uart_para4]
17
5.6 [uart_para5]
17
5.7 [uart_para6]
17
5.8 [uart_para7]
18
6 SPI总线
18
6.1 [spi0_para]
18
6.2 [spi1_para]
19
6.3 [spi2_para]
19
6.4 [spi3_para]
20
6.5 [spi_devices]
20
6.6 [spi_board0]
21
7 电阻屏(rtp)
21
7.1 [rtp_para]
21
8 电容屏(capacitor tp)
21
8.1 [ctp_para]
22
9 触摸按键(touch key)
22
9.1 [tkey_para]
23
10 马达(motor)
23
10.1 [motor_para]
23
11 闪存(nand0 flash)
23
11.1 [nand0_para]
24
11.2 [nand1_para]
25
12 显示初始化(disp init)
25
12.1 [disp_init]
27
13 LCD屏0
27
13.1 [lcd0_para]
31
14 LCD屏1
31
14.1 [lcd1_para]
31
15 HDMI
31
15.1 [hdmi_para]
31
16 摄像头(CSI)
31
16.1 [csi0_para]
32
16.2 [csi1_para]
36
17 SD / MMC
36
17.1 [mmc0_para]
37
17.2 [mmc1_para]
38
17.3 [mmc2_para]
39
17.4 [mmc3_para]
40
18 SIM卡
40
18.1 [smc_para]
40
19 USB控制标志
40
19.1 [usbc0]
41
19.2 [usbc1]
42
19.3 [usbc2]
43
20 USB Device
43
20.1 [usb_feature]
44
20.2 [msc_feature]
44
21 重力感应(G Sensor)
44
21.1 [gsensor_para]
45
22 WIFI
45
22.1 [wifi_para]
45
22.2 sdio接口wifi rtl8723as demo
46
22.3 usb接口wifi rtl8188eu demo
47
23 3G
47
23.1 [3g_para]
48
24 gyroscope
48
24.1 [gy_para]
48
25 光感(light sensor)
48
25.1 [ls_para]
49
26 罗盘Compass
49
26.1 [compass_para]
49
27 蓝牙(blueteeth)
49
27.1 [bt_para]
50
28 数字音频总线(I2S)
50
28.1 [i2s_para]
51
29 数字音频总线(pcm)
51
29.1 [pcm_para]
51
30 数字音频总线(S/PDIF)
51
30.1 [spdif_para]
52
31 喇叭控制
52
31.1 [audio_para]
52
32 红外(ir)
52
32.1 [ir_para]
53
33 PMU电源
53
33.1 [pmu_para]
备注:蓝色为模块芯片引脚配置,黑色为模块内部控制配置项
描述gpio的GPIO配置的形式:
Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
配置举例中的管脚不一定为真实可用的,实际使用时需向技术支持人员询问
系统(System)
[platform]
配置项
配置项含义
eraseflag=1
量产时是否擦除。0:不擦,1:擦除(仅仅对量产工具,升级工具无效)
配置举例:
[platform]
eraseflag = 1
[target]
配置项
配置项含义
boot_clock=xx
启动频率 xx表示多少MHZ
dcdc1_vol=1400
Dcdc1(IO)的输出电压,mV
dcdc2_vol=1400
Dcdc2(GPU)的输出电压,mV,
dcdc3_vol=1250
Dcdc3(CPU)的输出电压,mV,
Storage_type = -1
启动介质选择0 :nand, 1:card0,2:card2,-1(defualt)自动扫描启动介质:
配置举例:
[target]
boot_clock
= 1008
dcdc1_vol
= 300
dcdc2_vol
= 1400
dcdc3_vol
= 1250
storage_type
= -1
[pm_para]
配置项
配置项含义
standby_mode = x
if 1 == standby_mode, then support super standby;
else, support normal standby.
配置举例:
;-------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;else, support normal standby.
;-------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode
= 1
[card_boot]
配置项
配置项含义
Logical_start=xx
Sprite_gpio0=
配置举例:
[card_boot]
logical_start
= 40960
sprite_gpio0
=
[card_boot0_para]
配置项
配置项含义
card_ctrl=0
卡量产相关的控制器选择0
card_high_speed=xx
速度模式 0为低速,1为高速
card_line=4
代表4线卡
sdc_d1=xx
sdc卡数据1线信号的GPIO配置
sdc_d0=xx
sdc卡数据0线信号的GPIO配置
sdc_clk=xx
sdc卡时钟信号的GPIO配置
sdc_cmd=xx
sdc命令信号的GPIO配置
sdc_d3=xx
sdc卡数据3线信号的GPIO配置
sdc_d2=xx
sdc卡数据2线信号的GPIO配置
配置举例:
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>
[card_boot2_para]
配置项
配置项含义
card_ctrl=2
卡启动控制器选择2
card_high_speed=xx
速度模式 0为低速,1为高速
card_line=4
4线卡
sdc_ cmd =xx
sdc命令信号的GPIO配置
sdc_ clk =xx
sdc卡时钟信号的GPIO配置
sdc_ d0 =xx
sdc卡数据0线信号的GPIO配置
sdc_ d1 =xx
sdc卡数据1线信号的GPIO配置
sdc_d3=xx
sdc卡数据3线信号的GPIO配置
sdc_d2=xx
sdc卡数据2线信号的GPIO配置
配置举例:
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= xx
Boot的twi控制器编号
twi_scl=xx
Boot的twi的时钟的GPIO配置
twi_sda=xx
Boot的twi的数据的GPIO配置
配置举例:
twi_port
= 0
twi_scl
= port:PB0<2>
twi_sda
= port:PB1<2>
[uart_para]
配置项
配置项含义
uart_debug_port=xx
Boot串口控制器编号
uart_debug_tx=xx
Boot串口发送的GPIO配置
uart_debug_rx=xx
Boot串口接收的GPIO配置
配置举例:
uart_debug_port
= 0
uart_debug_tx
= port:PB22<2>
uart_debug_rx
= port:PB23<2>
[jtag_para]
配置项
配置项含义
jtag_enable=xx
JTAG使能
jtag_ms=xx
测试模式选择输入(TMS) 的GPIO配置
jtag_ck=xx
测试时钟输入(TMS) 的GPIO配置
jtag_do=xx
测试数据输出(TDO) 的GPIO配置
jtag_di=xx
测试数据输入(TDI)的GPIO配置
配置举例:
[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>
[clock]
配置项
配置项含义
Pll3 =297
Video0时钟频率
Pll4 =300
Ve时钟频率
Pll6 =600
Peripherals时钟频率
Pll7 =297
Video1时钟频率
Pll8 =360
GPU(通信)时钟频率
Pll9 =297
GPU(运算)时钟频率
Pll10 297
De时钟频率
配置举例:
[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll7 = 297
pll8 = 360
pll9 = 297
pll10 = 297
SDRAM
[dram_para]
配置项
配置项含义
dram_clk =xx
DRAM 的时钟频率,单位为MHz;它为24的整数倍,最低不得低于120,
dram_type =xx
DRAM类型:
2 为DDR2
3为DDR3
dram_zq=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_odt_en=xx
ODT是否需要使能
0: 不使能
1: 使能
一般情况下,为了省电,此项为0
dram_para1=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_para2 =xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_mr0 =xx
DRAM CAS 值,可为6,7,8,9;具体需根据DRAM的规格书和速度来确定
dram_mr1 =xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_mr2 =xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_mr3 =xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr0=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr1=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr2=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr3=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr4=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr5=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr6=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr7=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr8=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr9=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr10=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr11=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr12=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
dram_tpr13=xx
DRAM 控制器内部参数,由原厂来进行调节,请勿修改
配置举例:
[dram_para]
dram_clk
= 240
dram_type
= 3
dram_zq
= 0x17b
dram_odt_en
= 0
dram_para1
= 0x10F40800
dram_para2
= 0x1211
dram_mr0
= 0x1A50
dram_mr1
= 0x4
dram_mr2
= 0x18
dram_mr3
= 0
dram_tpr0
= 0
dram_tpr1
= 0x80000800
dram_tpr2
= 0x39a70140
dram_tpr3
= 0xa092e74c
dram_tpr4
= 0x2948c209
dram_tpr5
= 0x8944422c
dram_tpr6
= 0x30028480
dram_tpr7
= 0x2a3297
dram_tpr8
= 0x5034fa8
dram_tpr9
= 0x36353d8
dram_tpr10
= 0
dram_tpr11
= 0
dram_tpr12
= 0
dram_tpr13
= 0
GMAC
[gmac_para]
配置项
配置项含义
gmac_used=0
Gmac模块是否使能:1:enable0:disable
gmac_txd0=xx
Gmac tx0的GPIO配置
gmac_txd1=xx
Gmac tx1的GPIO配置
gmac_txd2=xx
Gmac tx2的GPIO配置
gmac_txd3=xx
Gmac tx3的GPIO配置
gmac_txd4=xx
Gmac tx4的GPIO配置
gmac_txd5=xx
Gmac tx5的GPIO配置
gmac_txd6=xx
Gmac tx6的GPIO配置
gmac_txd7=xx
Gmac tx7的GPIO配置
gmac_txclk=xx
Gmac MII接口发送时钟
gmac_txen=xx
Gmac 发送使能GPIO配置
gmac_gtxclk=xx
Gmac GMII接口发送时钟
gmac_rxd0=xx
Gmac rx0的GPIO配置
gmac_rxd1=xx
Gmac rx1的GPIO配置
gmac_rxd2=xx
Gmac rx2的GPIO配置
gmac_rxd3=xx
Gmac rx3的GPIO配置
gmac_rxd4=xx
Gmac rx4的GPIO配置
gmac_rxd5=xx
Gmac rx5的GPIO配置
gmac_rxd6=xx
Gmac rx6的GPIO配置
gmac_rxd7=xx
Gmac rx7的GPIO配置
gmac_rxdv=xx
Gmac 接收数有效使能
gmac_rxclk=xx
Gmac 接收时钟
gmac_txerr=xx
Gmac 发送错误使能
gmac_rxerr=xx
Gmac 接收错误使能
gmac_col=xx
Gmac 冲突检测(仅用于半双工)
gmac_crs=xx
Gmac 载波监测(仅用于半双工)
gmac_clkin=xx
Gmac GMII外部时钟
gmac_mdc=xx
Gmac 配置接口时钟
gmac_mdio=xx
Gmac 配置接口数据I/O
[gmac_para]
gmac_used
= 0
gmac_txd0
= port:PA00<2>
gmac_txd1
= port:PA01<2>
gmac_txd2
= port:PA02<2>
gmac_txd3
= port:PA03<2>
gmac_txd4
= port:PA04<2>
gmac_txd5
= port:PA05<2>
gmac_txd6
= port:PA06<2>
gmac_txd7
= port:PA07<2>
gmac_txclk
= port:PA08<2>
gmac_txen
= port:PA09<2>
gmac_gtxclk
= port:PA10<2>
gmac_rxd0
= port:PA11<2>
gmac_rxd1
= port:PA12<2>
gmac_rxd2
= port:PA13<2>
gmac_rxd3
= port:PA14<2>
gmac_rxd4
= port:PA15<2>
gmac_rxd5
= port:PA16<2>
gmac_rxd6
= port:PA17<2>
gmac_rxd7
= port:PA18<2>
gmac_rxdv
= port:PA19<2>
gmac_rxclk
= port:PA20<2>
gmac_txerr
= port:PA21<2>
gmac_rxerr
= port:PA22<2>
gmac_col
= port:PA23<2>
gmac_crs
= port:PA24<2>
gmac_clkin
= port:PA25<2>
gmac_mdc
= port:PA26<2>
gmac_mdio
= port:PA27<2>
I2C总线
主控有4个I2C(twi)控制器
[twi0_para]
配置项
配置项含义
twi0_used =xx
TWI使用控制:1使用,0不用
twi0_scl =xx
TWI SCK的GPIO配置
twi0_sda=xx
TWI SDA的GPIO配置
配置举例:
twi0_used
= 1
twi0_scl
= port:PH14<2>
twi0_sda
= port:PH15<2>
[twi1_para]
配置项
配置项含义
twi1_used =xx
TWI使用控制:1使用,0不用
twi1_scl =xx
TWI SCK的GPIO配置
twi1_sda=xx
TWI SDA的GPIO配置
配置举例:
[tw1_para]
twi1_used
= 1
twi1_scl
= port:PH16<2>
twi1_sda
= port:PH17<2>
[twi2_para]
配置项
配置项含义
twi2_used =xx
TWI使用控制:1使用,0不用
twi2_scl =xx
TWI SCK的GPIO配置
twi2_sda=xx
TWI SDA的GPIO配置
配置举例:
[twi2_para]
twi2_used
= 1
twi2_scl
= port:PH18<2>
twi2_sda
= port:PH19<2>
[twi3_para]
配置项
配置项含义
twi3_used =xx
TWI使用控制:1使用,0不用
twi3_scl =xx
TWI SCK的GPIO配置
twi3_sda=xx
TWI SDA的GPIO配置
配置举例:
[twi2_para]
twi2_used
= 1
twi2_scl
= port:PB05<4>
twi2_sda
= port:PB06<4>
串口(UART)
主控有6路uart接口,其中uart1支持完整的8线通讯,而其他5路支持4线或者2线通讯(但十分不建议用uart0作为控制台以外的用途),实例中,有些路仅仅写出2路的配置形式,但实际使用时只要将其按照4路的
格式
pdf格式笔记格式下载页码格式下载公文格式下载简报格式下载
补全,也能支持4线通讯
[uart_para0]
配置项
配置项含义
uart_used =xx
UART使用控制:1使用,0不用
uart_port =xx
UART端口号
uart0_tx =xx
UART TX的GPIO配置
uart0_rx=xx
UART RX的GPIO配置
配置举例:
[uart_para0]
uart_used
= 1
uart_port
= 0
uart0_tx
= port:PB22<2>
uart0_rx
= port:PB23<2>
[uart_para1]
配置项
配置项含义
uart_used =xx
UART使用控制:1使用,0不用
uart_port =xx
UART端口号
uart_type =xx
UART类型
uart1_tx =xx
UART TX的GPIO配置
uart1_rx=xx
UART RX的GPIO配置
uart1_rts=xx
UART RTS的GPIO配置
uart1_cts=xx
UART CTS的GPIO配置
uart1_dtr=xx
UART DTR的GPIO配置
uart1_dsr=xx
UART DSR的GPIO配置
uart1_dcd=xx
UART DCD的GPIO配置
uart1_ring=xx
UART RING的GPIO配置
配置举例:
[uart_para1]
uart_used
= 0
uart_port
= 1
uart_type
= 8
uart1_tx
= port:PA10<4>
uart1_rx
= port:PA11<4>
uart1_rts
= port:PA12<4>
uart1_cts
= port:PA13<4>
uart1_dtr
= port:PA14<4>
uart1_dsr
= port:PA15<4>
uart1_dcd
= port:PA16<4>
uart1_ring
= port:PA17<4>
[uart_para2]
配置项
配置项含义
uart_used =xx
UART使用控制:1使用,0不用
uart_port =xx
UART端口号
uart_type =xx
UART类型
uart2_tx =xx
UART TX的GPIO配置
uart2_rx=xx
UART RX的GPIO配置
uart2_rts=xx
UART RTS的GPIO配置
uart2_cts=xx
UART CTS的GPIO配置
配置举例:
[uart_para2]
uart_used
= 0
uart_port
= 2
uart_type
= 4
uart2_tx
= port:PI18<3>
uart2_rx
= port:PI19<3>
uart2_rts
= port:PI16<3>
uart2_cts
= port:PI17<3>
[uart_para3]
配置项
配置项含义
uart_used =xx
UART使用控制:1使用,0不用
uart_port =xx
UART端口号
uart_type =xx
UART类型
uart3_tx =xx
UART TX的GPIO配置
uart3_rx=xx
UART RX的GPIO配置
uart3_rts=xx
UART RTS的GPIO配置
uart3_cts=xx
UART CTS的GPIO配置
配置举例:
[uart_para3]
uart_used
= 0
uart_port
= 3
uart_type
= 4
uart3_tx
= port:PH00<4>
uart3_rx
= port:PH01<4>
uart3_rts
= port:PH02<4>
uart3_cts
= port:PH03<4>
[uart_para4]
配置项
配置项含义
uart_used =xx
UART使用控制:1使用,0不用
uart_port =xx
UART端口号
uart_type =xx
UART类型
uart4_tx =xx
UART TX的GPIO配置
uart4_rx=xx
UART RX的GPIO配置
配置举例:
[uart_para4]
uart_used
= 0
uart_port
= 4
uart_type
= 2
uart4_tx
= port:PH04<4>
uart4_rx
= port:PH05<4>
[uart_para5]
配置项
配置项含义
uart_used =xx
UART使用控制:1使用,0不用
uart_port =xx
UART端口号
uart_type =xx
UART类型
uart5_tx =xx
UART TX的GPIO配置
uart5_rx=xx
UART RX的GPIO配置
配置举例:
[uart_para5]
uart_used
= 0
uart_port
= 5
uart_type
= 2
uart5_tx
= port:PH06<4>
uart5_rx
= port:PH07<4>
[uart_para6]
配置项
配置项含义
uart_used =xx
UART使用控制:1使用,0不用
uart_port =xx
UART端口号
uart_type =xx
UART类型
uart6_tx =xx
UART TX的GPIO配置
uart6_rx=xx
UART RX的GPIO配置
配置举例:
[uart_para6]
uart_used
= 0
uart_port
= 6
uart_type
= 2
uart6_tx
= port:PA12<4>
uart6_rx
= port:PA13<4>
[uart_para7]
配置项
配置项含义
uart_used =xx
UART使用控制:1使用,0不用
uart_port =xx
UART端口号
uart_type =xx
UART类型
uart7_tx =xx
UART TX的GPIO配置
uart7_rx=xx
UART RX的GPIO配置
配置举例:
[uart_para7]
uart_used
= 0
uart_port
= 7
uart_type
= 2
uart7_tx
= port:PA14<4>
uart7_rx
= port:PA15<4>
SPI总线
[spi0_para]
配置项
配置项含义
spi_used =xx
SPI使用控制:1使用,0不用
spi_cs0 =xx
SPI CS0的GPIO配置
spi_cs1 =xx
SPI CS1的GPIO配置
spi_sclk =xx
SPI CLK的GPIO配置
spi_mosi=xx
SPI MOSI的GPIO配置
spi_miso=xx
SPI MISO的GPIO配置
配置举例:
[spi0_para]
spi_used
= 0
spi_cs_bitmap
= 1
;--- spi0 mapping0 ---
spi_cs0
= port:PI10<3>
;spi_cs1
= port:PI14<3>
spi_sclk
= port:PI11<3>
spi_mosi
= port:PI12<3>
spi_miso
= port:PI13<3>
[spi1_para]
配置项
配置项含义
spi_used =xx
SPI使用控制:1使用,0不用
spi_cs0 =xx
SPI CS0的GPIO配置
spi_cs1 =xx
SPI CS1的GPIO配置
spi_sclk =xx
SPI CLK的GPIO配置
spi_mosi=xx
SPI MOSI的GPIO配置
spi_miso=xx
SPI MISO的GPIO配置
配置举例:
[spi1_para]
spi_used
= 0
spi_cs_bitmap
= 1
spi_cs0
= port:PA00<4>
spi_sclk
= port:PA01<4>
spi_mosi
= port:PA02<4>
spi_miso
= port:PA03<4>
[spi2_para]
配置项
配置项含义
spi_used =xx
SPI使用控制:1使用,0不用
spi_cs0 =xx
SPI CS0的GPIO配置
spi_cs1 =xx
SPI CS1的GPIO配置
spi_sclk =xx
SPI CLK的GPIO配置
spi_mosi=xx
SPI MOSI的GPIO配置
spi_miso=xx
SPI MISO的GPIO配置
配置举例:
spi_used
= 0
spi_cs_bitmap
= 1
spi_cs0
= port:PB14<2>
spi_sclk
= port:PB15<2>
spi_mosi
= port:PB16<2>
spi_miso
= port:PB17<2>
[spi3_para]
配置项
配置项含义
spi_used =xx
SPI使用控制:1使用,0不用
spi_cs0 =xx
SPI CS0的GPIO配置
spi_cs1 =xx
SPI CS1的GPIO配置
spi_sclk =xx
SPI CLK的GPIO配置
spi_mosi=xx
SPI MOSI的GPIO配置
spi_miso=xx
SPI MISO的GPIO配置
配置举例:
[spi3_para]
spi_used
= 0
spi_cs_bitmap
= 1
;--- spi3 mapping0 ---
spi_cs0
= port:PA05<3>
spi_sclk
= port:PI06<3>
spi_mosi
= port:PI07<3>
spi_miso
= port:PI08<3>
spi_cs1
= port:PA09<3>