sysconfig1.fex_manul_linux_BSP_v0.4

目录

 

1       系统(System)

1.1   [Target]

备注:蓝色为模块芯片引脚配置,黑色为模块内部控制配置项

描述gpioGPIO配置的形式:

Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>

配置项

配置项含义

boot_clock=xx

启动频率; xx表示多少MHZ

dcdc2_vol=1400

Dcdc2的输出电压,mV

dcdc3_vol=1250

Dcdc3的输出电压,mV

ldo2_vol=3000

Ldo2的输出电压,mV

ldo3_vol=2800

Ldo3的输出电压,mV

ldo4_vol=2800

Ldo4的输出电压,mV

 

配置举例:

[target]

boot_clock                              = 1008

dcdc2_vol                                = 1400

dcdc3_vol                                = 1250

ldo2_vol                                   = 3000

ldo3_vol                                   = 2800

ldo4_vol                                   = 2800

 

1.2   [card_boot]

 

配置项

配置项含义

Logical_start=xx

 

Sprite_gpio0=

 

 

配置举例:

[card_boot]

logical_start                              = 40960

sprite_gpio0                             =

 

1.3   [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><default><default>

sdc_d0                                     = port:PF1<2><1><default><default>

sdc_clk                                     = port:PF2<2><1><default><default>

sdc_cmd                                   = port:PF3<2><1><default><default>

sdc_d3                                     = port:PF4<2><1><default><default>

sdc_d2                                     = port:PF5<2><1><default><default>

 

1.4   [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>

 

1.5   [twi_para]

 

配置项

配置项含义

twi_port= xx

Boottwi控制器编号

twi_scl=xx

Boottwi的时钟的GPIO配置

twi_sda=xx 

Boottwi的数据的GPIO配置

 

配置举例:

twi_port                                          = 0

twi_scl                                      = port:PB0<2><default><default><default>

twi_sda                                    = port:PB1<2><default><default><default>

1.6   [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>

 

 

1.7   [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>

 

2       SDRAM

2.1   [dram_para]

 

配置项

配置项含义

dram_baseaddr=xx

DRAM 访问的物理起始地址,固定为0x40000000

dram_clk =xx

DRAM 的时钟频率,单位为MHz;它为24的整数倍,最低不得低于120,最高可设到480

dram_type =xx

DRAM类型:

2 DDR2

3DDR3

dram_rank_num =xx

DRAM 的片选个数:

1为一个片选

2为二个片选

dram_chip_density =xx 

单片DRAM的容量,单位为Mb

20481024

dram_io_width=xx

单片DRAM的位宽,一般设为16

dram_bus_width=xx

整个方案DRAM 的总线宽度,如用二个16位的DRAM 拼成一个32位的方案,此处应设为32

dram_cas=xx

DRAM CAS 值,可为6,7,8,9;具体需根据DRAM的规格书和速度来确定

dram_zq=xx

DRAM 控制器内部参数,由原厂来进行调节,请勿修改

dram_odt_en=xx

ODT是否需要使能

0 不使能

1 使能

一般情况下,为了省电,此项为0

dram_size=xx

整个方案DRAM 总的容量,单位为MB

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_emr1=xx

DRAM 控制器内部参数,由原厂来进行调节,请勿修改

dram_emr2=xx

DRAM 控制器内部参数,由原厂来进行调节,请勿修改

dram_emr3=xx

DRAM 控制器内部参数,由原厂来进行调节,请勿修改

 

配置举例:

[dram_para]

dram_baseaddr                        = 0x40000000

dram_clk                                  = 360

dram_type                                = 3

dram_rank_num                       = 1

dram_chip_density                  = 2048

dram_io_width                        = 16

dram_bus_width                      = 32

dram_cas                                  = 6

dram_zq                                          = 0x7b

dram_odt_en                            = 0

dram_size                                 = 512

dram_tpr0                                = 0x30926692

dram_tpr1                                = 0x1090

dram_tpr2                                = 0x1a0c8

dram_tpr3                                = 0x0

dram_tpr4                                = 0x0

dram_tpr5                                = 0x0

dram_emr1                               = 0x0

dram_emr2                               = 0x0

dram_emr3                               = 0x0

 

3       GPU(mali)

3.1   [mali_para]

 

配置项

配置项含义

mali_used=xx

使能MALI模块

mali_clkdiv=xx

960MHz / mali_clkdiv作为GPU的输入clock

 

 

4       2D加速(G2D

4.1   [g2d_para]

 

配置项

配置项含义

g2d_used=xx

g2d模块是否使用

g2d_size=xx

g2d内存预留大小,默认0x1000000

 

 

5       网络(Ethernet MAC)

5.1   [emac_para]

 

配置项

配置项含义

emac_used =xx

emac模块使能标志

emac_rxd3 =xx

emac 接收数据总线的GPIO配置

emac_rxd2 =xx

/

emac_rxd1 =xx

/

emac_rxd0 =xx 

/

emac_txd3 =xx

emac 发送数据总线的GPIO配置

emac_txd2 =xx

/

emac_txd1 =xx

/

emac_txd0 =xx

/

emac_rxclk =xx

emac 接收时钟的GPIO配置

emac_rxerr =xx

emac 接收错误的GPIO配置

emac_rxdV =xx

emac 接收使能的GPIO配置

emac_mdc =xx

emac mii时钟的GPIO配置

emac_mdio =xx

emac mii 数据的GPIO配置

emac_txen=xx

emac 发送使能的GPIO配置

emac_txclk=xx

emac 发送时钟的GPIO配置

emac_crs xx

emac 载波状态的GPIO配置

emac_col=xx

emac 冲突检测的GPIO配置

emac_reset =xx

emac phy reset信号的GPIO配置

dram_emr3=xx

//

 

配置举例:

[emac_para]

emac_used                               = 1

emac_rxd3                               = port:PA00<2><default><default><default>

emac_rxd2                               = port:PA01<2><default><default><default>

emac_rxd1                               = port:PA02<2><default><default><default>

emac_rxd0                              = port:PA03<2><default><default><default>

emac_txd3                               = port:PA04<2><default><default><default>

emac_txd2                               = port:PA05<2><default><default><default>

emac_txd1                               = port:PA06<2><default><default><default>

emac_txd0                               = port:PA07<2><default><default><default>

emac_rxclk                              = port:PA08<2><default><default><default>

emac_rxerr                               = port:PA09<2><default><default><default>

emac_rxdV                              = port:PA10<2><default><default><default>

emac_mdc                                = port:PA11<2><default><default><default>

emac_mdio                               = port:PA12<2><default><default><default>

emac_txen                                = port:PA13<2><default><default><default>

emac_txclk                               = port:PA14<2><default><default><default>

emac_crs                                  = port:PA15<2><default><default><default>

emac_col                                  = port:PA16<2><default><default><default>

emac_reset                               = port:PA17<1><default><default><default>

 

 

 

 

 

6       I2C总线

6.1   [twi0_para]

 

配置项

配置项含义

twi0_used =xx

TWI使用控制:1使用,0不用

twi0_scl =xx

TWI SCKGPIO配置

twi0_sda=xx

TWI SDAGPIO配置

 

配置举例:

twi0_used                                = 1

twi0_scl                                    = port:PB0<2><default><default><default>

twi0_sda                                  = port:PB1<2><default><default><default>

 

6.2   [twi1_para]

 

配置项

配置项含义

twi1_used =xx

TWI使用控制:1使用,0不用

twi1_scl =xx

TWI SCKGPIO配置

twi1_sda=xx

TWI SDAGPIO配置

 

配置举例:

[tw1_para]

Twi1_used                                = 1

Twi1_scl                                   = port:PB0<2><default><default><default>

Twi1_sda                                  = port:PB1<2><default><default><default>

 

6.3   [twi2_para]

 

配置项

配置项含义

twi2_used =xx

TWI使用控制:1使用,0不用

twi2_scl =xx

TWI SCKGPIO配置

twi2_sda=xx

TWI SDAGPIO配置

 

配置举例:

[twi2_para]

Twi2_used                               = 1

Twi2_scl                                   = port:PB0<2><default><default><default>

Twi2_sda                                  = port:PB1<2><default><default><default>

 

 

7       串口(UART)

7.1   [uart_para0]

 

配置项

配置项含义

uart_used =xx

UART使用控制:1使用,0不用

uart_port =xx

UART端口号

uart0_tx =xx

UART TXGPIO配置

uart0_rx=xx

UART RXGPIO配置

 

配置举例:

[uart_para0]

uart_used                                 = 1

uart_port                                  = 0

uart0_tx                                    = port:PB22<2>

uart0_rx                                    = port:PB23<2>

 

7.2   [uart_para1]

 

配置项

配置项含义

uart_used =xx

UART使用控制:1使用,0不用

uart_port =xx

UART端口号

uart_type =xx

UART类型

uart1_tx =xx

UART TXGPIO配置

uart1_rxxx

UART RXGPIO配置

uart1_rts=xx

UART RTSGPIO配置

uart1_cts=xx

UART CTSGPIO配置

uart1_dtr=xx

UART DTRGPIO配置

uart1_dsr=xx

UART DSRGPIO配置

uart1_dcd=xx

UART DCDGPIO配置

uart1_ring=xx

UART RINGGPIO配置

 

配置举例:

[uart_para1]

uart_used                                 = 0

uart_port                                  = 1

uart_type                                  = 8

uart1_tx                                    = port:PA10<4><default><default><default>

uart1_rx                                    = port:PA11<4><default><default><default>

uart1_rts                                   = port:PA12<4><default><default><default>

uart1_cts                                  = port:PA13<4><default><default><default>

uart1_dtr                                  = port:PA14<4><default><default><default>

uart1_dsr                                  = port:PA15<4><default><default><default>

uart1_dcd                                 = port:PA16<4><default><default><default>

uart1_ring                                 = port:PA17<4><default><default><default>

 

7.3   [uart_para2]

 

配置项

配置项含义

uart_used =xx

UART使用控制:1使用,0不用

uart_port =xx

UART端口号

uart_type =xx

UART类型

uart2_tx =xx

UART TXGPIO配置

uart2_rxxx

UART RXGPIO配置

uart2_rts=xx

UART RTSGPIO配置

uart2_cts=xx

UART CTSGPIO配置

 

配置举例:

[uart_para2]

uart_used                                 = 0

uart_port                                  = 2

uart_type                                  = 4

uart2_tx                                    = port:PI18<3><default><default><default>

uart2_rx                                    = port:PI19<3><default><default><default>

uart2_rts                                   = port:PI16<3><default><default><default>

uart2_cts                                  = port:PI17<3><default><default><default>

 

7.4   [uart_para3]

 

配置项

配置项含义

uart_used =xx

UART使用控制:1使用,0不用

uart_port =xx

UART端口号

uart_type =xx

UART类型

uart3_tx =xx

UART TXGPIO配置

uart3_rxxx

UART RXGPIO配置

uart3_rts=xx

UART RTSGPIO配置

uart3_cts=xx

UART CTSGPIO配置

 

配置举例:

[uart_para3]

uart_used                                 = 0

uart_port                                  = 3

uart_type                                  = 4

uart3_tx                                    = port:PH00<4><default><default><default>

uart3_rx                                    = port:PH01<4><default><default><default>

uart3_rts                                   = port:PH02<4><default><default><default>

uart3_cts                                  = port:PH03<4><default><default><default>

 

7.5   [uart_para4]

 

配置项

配置项含义

uart_used =xx

UART使用控制:1使用,0不用

uart_port =xx

UART端口号

uart_type =xx

UART类型

uart4_tx =xx

UART TXGPIO配置

uart4_rxxx

UART RXGPIO配置

 

配置举例:

[uart_para4]

uart_used                                 = 0

uart_port                                  = 4

uart_type                                  = 2

uart4_tx                                    = port:PH04<4><default><default><default>

uart4_rx                                    = port:PH05<4><default><default><default>

 

7.6   [uart_para5]

 

配置项

配置项含义

uart_used =xx

UART使用控制:1使用,0不用

uart_port =xx

UART端口号

uart_type =xx

UART类型

uart5_tx =xx

UART TXGPIO配置

uart5_rxxx

UART RXGPIO配置

 

配置举例:

[uart_para5]

uart_used                                 = 0

uart_port                                  = 5

uart_type                                  = 2

uart5_tx                                    = port:PH06<4><default><default><default>

uart5_rx                                   = port:PH07<4><default><default><default>

 

7.7   [uart_para6]

 

配置项

配置项含义

uart_used =xx

UART使用控制:1使用,0不用

uart_port =xx

UART端口号

uart_type =xx

UART类型

uart6_tx =xx

UART TXGPIO配置

uart6_rxxx

UART RXGPIO配置

 

配置举例:

[uart_para6]

uart_used                                 = 0

uart_port                                  = 6

uart_type                                  = 2

uart6_tx                                    = port:PA12<4><default><default><default>

uart6_rx                                    = port:PA13<4><default><default><default>

 

7.8   [uart_para7]

 

配置项

配置项含义

uart_used =xx

UART使用控制:1使用,0不用

uart_port =xx

UART端口号

uart_type =xx

UART类型

uart7_tx =xx

UART TXGPIO配置

uart7_rxxx

UART RXGPIO配置

 

配置举例:

[uart_para7]

uart_used                                 = 0

uart_port                                  = 7

uart_type                                  = 2

uart7_tx                                    = port:PA14<4><default><default><default>

uart7_rx                                    = port:PA15<4><default><default><default>

 

8       SPI总线

8.1   [spi0_para]

配置项

配置项含义

spi_used =xx

SPI使用控制:1使用,0不用

spi_cs0 =xx

SPI CS0GPIO配置

spi_cs1 =xx

SPI CS1GPIO配置

spi_sclk =xx

SPI CLKGPIO配置

spi_mosixx

SPI MOSIGPIO配置

spi_miso=xx

SPI MISOGPIO配置

 

配置举例:

[spi0_para]

spi_used                                   = 0

spi_cs_bitmap                          = 1

;--- spi0 mapping0 ---

spi_cs0                                     = port:PI10<3><default><default><default>

;spi_cs1                                    = port:PI14<3><default><default><default>

spi_sclk                                    = port:PI11<3><default><default><default>

spi_mosi                                   = port:PI12<3><default><default><default>

spi_miso                                   = port:PI13<3><default><default><default>

;--- spi0 mapping1 ---

;spi_mosi                                  = port:PC00<3><default><default><default>

;spi_miso                                  = port:PC01<3><default><default><default>

;spi_sclk                                   = port:PC02<3><default><default><default>

;spi_cs0                                    = port:PC23<3><default><default><default>

 

8.2   [spi1_para]

 

配置项

配置项含义

spi_used =xx

SPI使用控制:1使用,0不用

spi_cs0 =xx

SPI CS0GPIO配置

spi_cs1 =xx

SPI CS1GPIO配置

spi_sclk =xx

SPI CLKGPIO配置

spi_mosixx

SPI MOSIGPIO配置

spi_miso=xx

SPI MISOGPIO配置

 

配置举例:

[spi1_para]

spi_used                                   = 0

spi_cs_bitmap                          = 1

;--- spi1 mapping0 ---

spi_cs0                                     = port:PA00<4><default><default><default>

spi_sclk                                    = port:PA01<4><default><default><default>

spi_mosi                                   = port:PA02<4><default><default><default>

spi_miso                                   = port:PA03<4><default><default><default>

;spi_cs1                                    = port:PA04<4><default><default><default>

;--- spi1 mapping1 ---

;spi_cs1                                    = port:PI15<2><default><default><default>

;spi_cs0                                    = port:PI16<2><default><default><default>

;spi_scl                                     = port:PI17<2><default><default><default>

;spi_mosi                                  = port:PI18<2><default><default><default>

;spi_miso                                  = port:PI19<2><default><default><default>

8.3   [spi2_para]

 

配置项

配置项含义

spi_used =xx

SPI使用控制:1使用,0不用

spi_cs0 =xx

SPI CS0GPIO配置

spi_cs1 =xx

SPI CS1GPIO配置

spi_sclk =xx

SPI CLKGPIO配置

spi_mosixx

SPI MOSIGPIO配置

spi_miso=xx

SPI MISOGPIO配置

 

配置举例:

spi_used                                   = 0

spi_cs_bitmap                          = 1

;--- spi2 mapping0 ---

;spi_cs1                                    = port:PB13<2><default><default><default>

spi_cs0                                     = port:PB14<2><default><default><default>

spi_sclk                                    = port:PB15<2><default><default><default>

spi_mosi                                   = port:PB16<2><default><default><default>

spi_miso                                   = port:PB17<2><default><default><default>

;--- spi2 mapping1 ---

spi_cs0                                     = port:PC19<3><default><default><default>

spi_sclk                                    = port:PC20<3><default><default><default>

spi_mosi                                   = port:PC21<3><default><default><default>

spi_miso                                   = port:PC22<3><default><default><default>

8.4   [spi3_para]

 

配置项

配置项含义

spi_used =xx

SPI使用控制:1使用,0不用

spi_cs0 =xx

SPI CS0GPIO配置

spi_cs1 =xx

SPI CS1GPIO配置

spi_sclk =xx

SPI CLKGPIO配置

spi_mosixx

SPI MOSIGPIO配置

spi_miso=xx

SPI MISOGPIO配置

 

配置举例:

[spi3_para]

spi_used                                   = 0

spi_cs_bitmap                          = 1

;--- spi3 mapping0 ---

spi_cs0                                     = port:PA05<3><default><default><default>

spi_sclk                                    = port:PI06<3><default><default><default>

spi_mosi                                   = port:PI07<3><default><default><default>

spi_miso                                   = port:PI08<3><default><default><default>

spi_cs1                                     = port:PA09<3><default><default><default>

8.5   [spi_devices]

配置项

配置项含义

spi_dev_num=xx

该项目直接和下面的[spi_board0]相关,它指定主板连接spi设备的数目,假如有NSPI设备那么[spi_devices]中就要有N个([spi_board0][spi_boardN])配置

 

8.6   [spi_board0]

配置项

配置项含义

modalias=xx

Spi模块名字,

max_speed_hz =xx

最大传输速度

bus_num =xx

Spi设备控制器序号

chip_select=xx

理论上可以选0123,目前只支持12(芯片没引出接口)

modexx

SPI MOSIGPIO配置

full_duplex=xx

工作方式(1 双工或者 0 半双工)

manual_cs=xx

控制CS电平选择,目前不支持该项

 

9       电阻屏(rtp)

9.1   [rtp_para]

 

配置项

配置项含义

rtp_used=xx

该模块在方案中是否启用,

rtp_screen_size =xx

屏幕尺寸设置,以斜对角方向长度为准,以寸为单位

rtp_regidity_level=xx

表屏幕的硬度,以指覆按压,抬起时开始计时,多少个10ms时间单位之后,硬件采集不到数据为准;通常,我们建议的屏,5寸屏设为5,7寸屏设为7,对于某些供应商提供的屏,硬度可能不合要求,需要适度调整

rtp_press_threshold_enable=xx

是否开启压力的们门限制,建议选0不开启

rtp_press_thresholdxx

这配置项当rtp_press_threshold_enable1时才有效,其数值可以是00xFFFFFF的任意数值,数值越小越敏感,推荐值为0xF

rtp_sensitive_level=xx

敏感等级,数值可以是00xF之间的任意数值,数值越大越敏感,0xF为推荐值

rtp_exchange_x_y_flag=xx

当屏的x,y轴需要转换的时候,这个项目该置1,一般情况下则该置0

 

 

10             电容屏(capacitor tp)

10.1     [ctp_para]

 

配置项

配置项含义

ctp_used=xx

该选项为是否开启电容触摸,支持的话置1,反之置0

ctp_name =xx

用于指明方案采用的触控方案,目前可选:"ft5x_ts" "Goodix-TS"

ctp_twi_id=xx

用于选择i2cadapter, 可选02

ctp_twi_addr =xx

指明i2c设备地址,与具体硬件相关

ctp_screen_max_xxx

触摸板的x轴最大坐标

ctp_screen_max_y=xx

触摸板的y轴最大坐标

ctp_revert_x_flag=xx

是否需要翻转x坐标,需要则置1,反之置0

ctp_revert_y_flag=xx

是否需要翻转y坐标,需要则置1,反之置0

ctp_int_port=xx

电容屏中断信号的GPIO配置

ctp_wakeup=xx

电容屏唤醒信号的GPIO配置

ctp_io_port=xx

电容屏io信号,目前与中断信号公用管脚

 

配置举例:

ctp_used                                   = 1

ctp_name                                  = "ft5x_ts"

ctp_twi_id                                = 2

ctp_twi_addr                           = 0x70

ctp_screen_max_x                   = 800

ctp_screen_max_y                   = 480

ctp_revert_x_flag                     = 0

ctp_revert_y_flag                     = 0

ctp_int_port                             = port:PH21<6><default>

ctp_wakeup                              = port:PB13<1><default><default><1>

ctp_io_port                               = port:PH21<0><default>

注意事项:

若要支持新的电容触控ic, 在原有电容触控ic的代码基础上,须结合A10 bsp层的配置情况,作相应修改。具体说来,

1.        sys_config中:ctp_twi_id应与硬件连接一致;

2.        在驱动部分代码中:使用的twi从设备名字+地址,应与sys_config中的ctp_name ctp_twi_addr配置一致。同时,sysconfig中的其他子健也要正确配置,在程序中,要对这些配置进行相应的处理;

 

11             触摸按键(touch key)

11.1     [tkey_para]

 

配置项

配置项含义

tkey_used =xx

支持触摸按键的置1,反之置0

tkey_name =xx

触摸方案选择,目前只能选择hv_keypad

tkey_twi_id=xx

用于选择i2cadapter, 可选02

tkey_twi_addr=xx

指明i2c设备地址,与具体硬件相关

tkey_intxx

触摸按键中断信号的GPIO配置

 

配置举例:

tkey_used                                 = 0

tkey_name                                = "hv_keypad"

tkey_twi_id                              = 2

tkey_twi_addr                         = 0x62

tkey_int                                    = port:PI13<6><default><default><default>

注意事项:

若支持,则将 tkey_used1并配置相应子键值;否则,tkey_used0

 

12             马达(motor)

12.1     [motor_para]

 

配置项

配置项含义

motor_used =xx

是否启用马达,启用置1,反之置0

motor_shake=xx

马达使用的GPIO配置

 

配置举例:

motor_used                              = 0

motor_shake                             = port:PB03<1><default><default><1>

注意事项:
motor_shake = port:PB03<1><default><default><0>
默认io口的输出应该为0,这样就不会初始化之后就开始震动了。

13             闪存(nand flash

13.1     [nand_para]

 

配置项

配置项含义

nand_used =xx

nand模块使能标志

nand_we =xx

nand写时钟信号的GPIO配置

nand_ale =xx

nand地址使能信号的GPIO配置

nand_cle =xx

nand 命令使能信号的GPIO配置

nand_ce1 =xx 

nand 片选1信号的GPIO配置

nand_ce0 =xx

nand 片选0信号的GPIO配置

nand_nre =xx

nand 读时钟信号的GPIO配置

nand_rb0=xx

nand Read/Busy 1信号的GPIO配置

nand_rb1 =xx

nand Read/Busy 0信号的GPIO配置

nand_d0=xx

nand 数据总线信号的GPIO配置

nand_d1=xx

/

nand_d2=xx

/

nand_d3=xx

/

nand_d4=xx

/

nand_d5=xx

/

nand_d6=xx

/

nand_d7=xx

/

nand_wp=xx

nand 写保护信号的GPIO配置

nand_ce2=xx

nand 片选2信号的GPIO配置

nand_ce3=xx

nand 片选3信号的GPIO配置

nand_ce4=xx

nand 片选4信号的GPIO配置

nand_ce5=xx

nand 片选5信号的GPIO配置

nand_ce6=xx

nand 片选6信号的GPIO配置

nand_ce7=xx

nand 片选7信号的GPIO配置

nand_spi=xx

//

nand_ndqs=xx

nand ddr时钟信号的GPIO配置

 

 

 

配置举例:

[nand_para]

nand_used                                = 1

nand_we                                  = port:PC00<2><default><default><default>

nand_ale                                   = port:PC01<2><default><default><default>

nand_cle                                   = port:PC02<2><default><default><default>

nand_ce1                                  = port:PC03<2><default><default><default>

nand_ce0                                  = port:PC04<2><default><default><default>

nand_nre                                  = port:PC05<2><default><default><default>

nand_rb0                                  = port:PC06<2><default><default><default>

nand_rb1                                  = port:PC07<2><default><default><default>

nand_d0                                          = port:PC08<2><default><default><default>

nand_d1                                          = port:PC09<2><default><default><default>

nand_d2                                          = port:PC10<2><default><default><default>

nand_d3                                          = port:PC11<2><default><default><default>

nand_d4                                          = port:PC12<2><default><default><default>

nand_d5                                          = port:PC13<2><default><default><default>

nand_d6                                          = port:PC14<2><default><default><default>

nand_d7                                          = port:PC15<2><default><default><default>

nand_wp                                  = port:PC16<2><default><default><default>

nand_ce2                                  = port:PC17<2><default><default><default>

nand_ce3                                  = port:PC18<2><default><default><default>

nand_ce4                                  =

nand_ce5                                  =

nand_ce6                                  =

nand_ce7                                  =

nand_spi                                   = port:PC23<3><default><default><default>

nand_ndqs                               = port:PC24<2><default><default><default>

14             显示初始化(disp init)

14.1     [disp_init]

 

配置项

配置项含义

disp_init_enable=xx

是否进行显示的初始化设置

disp_mode =xx

显示模式:

0:screen0<screen0,fb0>

1:screen1<screen1,fb0> 2:two_diff_screen_diff_contents

<screen0,screen1,fb0,fb1>;                      3:two_same_screen_diff_contets

<screen0,screen1,fb0>

 4:two_diff_screen_same_contents

<screen0,screen1,fb0>

screen0_output_type=xx

0输出类型(0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga)

screen0_output_mode =xx

0输出模式(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)

screen1_output_typexx

1输出类型(0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga)

screen1_output_mode=xx

1输出模式(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)

fb0_framebuffer_num=xx

fb0buffer number(驱动将为fb0分配几块buffer空间,比如要使用双buffer,则填2)

fb0_format=xx

fb0的格式(4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)

fb0_pixel_sequence=xx

fb0pixel sequence(0:ARGB 1:BGRA 2:ABGR 3:RGBA)

fb0_scaler_mode_enable=xx

fb0是否使用scaler mode,即使用FE

fb1_framebuffer_num=xx

fb1buffer number(驱动将为fb0分配几块buffer空间,比如要使用双buffer,则填2)

fb1_format=xx

fb1的格式(4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)

fb1_pixel_sequence=xx

fb1pixel sequence(0:ARGB 1:BGRA 2:ABGR 3:RGBA)

fb1_scaler_mode_enable=xx

fb1是否使用scaler mode,即使用FE

 

配置举例:

[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

15             LCD0

15.1     [lcd0_para]

 

 

 

配置项

配置项含义

lcd_used=xx

lcd0 interface是否有使用,以下设置均在有使用时生效

lcd_x=xx

lcd active width

lcd_y =xx

lcd active height

lcd_dclk_freq=xx

pixel clock, in MHZ unit

lcd_pwm_not_used=xx

是否不使用PWM.0:使用PWM;1:不使用PWM(PWM IO直接拉高/).

lcd_pwm_ch=xx

PWM通道.0:PWM0;1:PWM1.一般情况下LCD0使用PWM0,LCD1使用PWM1.

lcd_pwm_freqxx

pwm freq, in HZ unit

lcd_pwm_pol =xx

pwm polarity

lcd_if =xx

lcd interface(0:hv(sync+de); 1:8080; 2:ttl; 3:lvds)

lcd_hbp=xx

hsync back porch

lcd_ht=xx

hsync total cycle

lcd_vbp=xx

vsync back porch

lcd_vt=xx

vysnc total cycle *2

lcd_hv_if =xx

hv interface(0:hv parallel 1:hv serial)

lcd_hv_smode=xx

serial i/f mode(0:RGB888 1:CCIR656)

lcd_hv_s888_if=xx

serial RGB format

lcd_hv_syuv_if=xx

serial YUV format

lcd_hv_vspw=xx

vysnc plus width

lcd_hv_hspw=xx

hsync plus width

lcd_lvds_ch=xx

0:single channel; 1:dual channel

lcd_lvds_mode=xx

0:NS mode; 1:JEIDA mode

lcd_lvds_bitwidth=xx

0:24bit; 1:18bit

lcd_lvds_io_cross=xx

0:normal; 1:pn cross

lcd_cpu_if=xx

cpu i/f mode(0:18bit; 1:16bit mode0; 2:16bit mode1; 3:16bit mode2;

4:16bit mode3; 5:9bit; 6:8bit 256K; 7:8bit 65K)

lcd_frm=xx

0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither

lcd_io_cfg0=xx

lcd io inv

lcd_gamma_correction_en=xx

是否打开gamma校正.如果打开,需填写后面的256gamma系数.

lcd_gamma_tbl_0=xx

gamma系数第0, (red<<16)||(gree<<8)||blue.

lcd_gamma_tbl_1=xx

gamma系数第1, (red<<16)||(gree<<8)||blue.

lcd_gamma_tbl_255=xx

gamma系数第255, (red<<16)||(gree<<8)||blue.

lcd_bl_en_used=xx

LCD_BL_EN引脚是否有使用

lcd_bl_en=xx

LCD_BL_ENGPIO配置

lcd_power_used=xx

LCD_VCC control 引脚是否有使用

lcd_power=xx

LCD_VCC controlGPIO配置

lcd_pwm_used=xx

lcd PWM引脚是否有使用(用户无需修改该项,固定有使用)

lcd_pwm=xx

lcd PWMGPIO配置  (PWM0 固定使用PB02, PWM1 固定使用 PI03,用户无需修改该项)

lcd_gpio_0=xx

2/3-wire I/F中的SCLGPIO配置

lcd_gpio_1=xx

2/3-wire I/F中的SDAGPIO配置

lcd_gpio_2=xx

2/3-wire I/F中的SCENGPIO配置

lcd_gpio_3=xx

LCD模组的RESETGPIO配置

lcdd0=xx

lcd 数据的GPIO配置

lcdd1=xx

lcd 数据的GPIO配置

lcdd2=xx

lcd 数据的GPIO配置

lcdd3=xx

lcd 数据的GPIO配置

lcdd4=xx

lcd 数据的GPIO配置

lcdd5=xx

lcd 数据的GPIO配置

lcdd6=xx

lcd 数据的GPIO配置

lcdd7=xx

lcd 数据的GPIO配置

lcdd8=xx

lcd 数据的GPIO配置

lcdd9=xx

lcd 数据的GPIO配置

lcdd10=xx

lcd 数据的GPIO配置

lcdd11=xx

lcd 数据的GPIO配置

lcdd12=xx

lcd 数据的GPIO配置

lcdd13=xx

lcd 数据的GPIO配置

lcdd14=xx

lcd 数据的GPIO配置

lcdd15=xx

lcd 数据的GPIO配置

lcdd16=xx

lcd 数据的GPIO配置

lcdd17=xx

lcd 数据的GPIO配置

lcdd18=xx

lcd 数据的GPIO配置

lcdd19=xx

lcd 数据的GPIO配置

lcdd20=xx

lcd 数据的GPIO配置

lcdd21=xx

lcd 数据的GPIO配置

lcdd22=xx

lcd 数据的GPIO配置

lcdd23=xx

lcd 数据的GPIO配置

lcdclk=xx

lcd 信号的GPIO配置(具体信号与实际电路相关)

lcdde=xx

lcd 信号的GPIO配置(具体信号与实际电路相关)

lcdhsync=xx

lcd 信号的GPIO配置(具体信号与实际电路相关)

lcdvsync=xx

lcd 信号的GPIO配置(具体信号与实际电路相关)

 

 

 

 

配置举例:

[lcd0_para]

lcd_used                                   = 1

lcd_x                                        = 800

lcd_y                                        = 480

lcd_dclk_freq                           = 33

lcd_pwm_freq                          = 1000

lcd_pwm_pol                           = 0

lcd_srgb                                          = 0x00202020

lcd_swap                                  = 0

lcd_if                                        = 0

lcd_hbp                                    = 215

lcd_ht                                       = 1055

lcd_vbp                                    = 34

lcd_vt                                       = 1050

lcd_hv_if                                  = 0

lcd_hv_smode                          = 0

lcd_hv_s888_if                        = 0

lcd_hv_syuv_if                        = 0

lcd_hv_vspw                            = 0

lcd_hv_hspw                            = 0

lcd_hv_lde_used                      = 0

lcd_hv_lde_iovalue                  = 0

lcd_ttl_stvh                              = 0

lcd_ttl_stvdl                             = 0

lcd_ttl_stvdp                                   = 0

lcd_ttl_ckvt                              = 0

lcd_ttl_ckvh                             = 0

lcd_ttl_ckvd                             = 0

lcd_ttl_oevt                              = 0

lcd_ttl_oevh                             = 0

lcd_ttl_oevd                             = 0

lcd_ttl_sthh                              = 0

lcd_ttl_sthd                              = 0

lcd_ttl_oehh                             = 0

lcd_ttl_oehd                             = 0

lcd_ttl_revd                             = 0

lcd_ttl_datarate                        = 0

lcd_ttl_revsel                           = 0

lcd_ttl_datainv_en                   = 0

lcd_ttl_datainv_sel                  = 0

lcd_lvds_ch                              = 0

lcd_lvds_mode                        = 0

lcd_lvds_bitwidth                    = 0

lcd_lvds_io_cross                    = 0

lcd_cpu_if                                = 0

lcd_cpu_da                              = 0

lcd_frm                                    = 0

lcd_io_cfg0                              = 0x10000000

lcd_io_cfg1                              = 0

lcd_io_strength                        = 0

lcd_bl_en_used                        = 1

lcd_bl_en                                 = port:PH07<1><0><default><1>

lcd_power_used                       = 1

lcd_power                                = port:PH08<1><0><default><1>

lcd_pwm_used                         = 1

lcd_pwm                                  = port:PB02<2><default><default><default>

lcd_gpio_0                               =

lcd_gpio_1                               =

lcd_gpio_2                               =

lcd_gpio_3                               =

lcdd0                                        = port:PD00<2><default><default><default>

lcdd1                                        = port:PD01<2><default><default><default>

lcdd2                                        = port:PD02<2><default><default><default>

lcdd3                                        = port:PD03<2><default><default><default>

lcdd4                                        = port:PD04<2><default><default><default>

lcdd5                                        = port:PD05<2><default><default><default>

lcdd6                                        = port:PD06<2><default><default><default>

lcdd7                                        = port:PD07<2><default><default><default>

lcdd8                                        = port:PD08<2><default><default><default>

lcdd9                                        = port:PD09<2><default><default><default>

lcdd10                                      = port:PD10<2><default><default><default>

lcdd11                                      = port:PD11<2><default><default><default>

lcdd12                                      = port:PD12<2><default><default><default>

lcdd13                                      = port:PD13<2><default><default><default>

lcdd14                                      = port:PD14<2><default><default><default>

lcdd15                                      = port:PD15<2><default><default><default>

lcdd16                                      = port:PD16<2><default><default><default>

lcdd17                                      = port:PD17<2><default><default><default>

lcdd18                                      = port:PD18<2><default><default><default>

lcdd19                                      = port:PD19<2><default><default><default>

lcdd20                                      = port:PD20<2><default><default><default>

lcdd21                                      = port:PD21<2><default><default><default>

lcdd22                                      = port:PD22<2><default><default><default>

lcdd23                                      = port:PD23<2><default><default><default>

lcdclk                                       = port:PD24<2><default><default><default>

lcdde                                        = port:PD25<2><default><default><default>

lcdhsync                                   = port:PD26<2><default><default><default>

lcdvsync                                   = port:PD27<2><default><default><default>

16             LCD1

16.1     [lcd1_para]

 

配置项

配置项含义

lcd_used=xx

lcd0 interface是否有使用,以下设置均在有使用时生效

lcd_x=xx

lcd active width

lcd_y =xx

lcd active height

lcd_dclk_freq=xx

pixel clock, in MHZ unit

lcd_pwm_not_used=xx

是否不使用PWM.0:使用PWM;1:不使用PWM(PWM IO直接拉高/).

lcd_pwm_ch=xx

PWM通道.0:PWM0;1:PWM1.一般情况下LCD0使用PWM0,LCD1使用PWM1.

lcd_pwm_freqxx

pwm freq, in HZ unit

lcd_pwm_pol =xx

pwm polarity

lcd_if =xx

lcd interface(0:hv(sync+de); 1:8080; 2:ttl; 3:lvds)

lcd_hbp=xx

hsync back porch

lcd_ht=xx

hsync total cycle

lcd_vbp=xx

vsync back porch

lcd_vt=xx

vysnc total cycle *2

lcd_hv_if =xx

hv interface(0:hv parallel 1:hv serial)

lcd_hv_smode=xx

serial i/f mode(0:RGB888 1:CCIR656)

lcd_hv_s888_if=xx

serial RGB format

lcd_hv_syuv_if=xx

serial YUV format

lcd_hv_vspw=xx

vysnc plus width

lcd_hv_hspw=xx

hsync plus width

lcd_lvds_ch=xx

0:single channel; 1:dual channel

lcd_lvds_mode=xx

0:NS mode; 1:JEIDA mode

lcd_lvds_bitwidth=xx

0:24bit; 1:18bit

lcd_lvds_io_cross=xx

0:normal; 1:pn cross

lcd_cpu_if=xx

cpu i/f mode(0:18bit; 1:16bit mode0; 2:16bit mode1; 3:16bit mode2;

4:16bit mode3; 5:9bit; 6:8bit 256K; 7:8bit 65K)

lcd_frm=xx

0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither

lcd_io_cfg0=xx

lcd io inv

lcd_gamma_correction_en=xx

是否打开gamma校正.如果打开,需填写后面的256gamma系数.

lcd_gamma_tbl_0=xx

gamma系数第0, (red<<16)||(gree<<8)||blue.

lcd_gamma_tbl_1=xx

gamma系数第1, (red<<16)||(gree<<8)||blue.

lcd_gamma_tbl_255=xx

gamma系数第255, (red<<16)||(gree<<8)||blue.

lcd_bl_en_used=xx

LCD_BL_EN引脚是否有使用

lcd_bl_en=xx

LCD_BL_ENGPIO配置

lcd_power_used=xx

LCD_VCC control 引脚是否有使用

lcd_power=xx

LCD_VCC controlGPIO配置

lcd_pwm_used=xx

lcd PWM引脚是否有使用(用户无需修改该项,固定有使用)

lcd_pwm=xx

lcd PWMGPIO配置  (PWM0 固定使用PB02, PWM1 固定使用 PI03,用户无需修改该项)

lcd_gpio_0=xx

2/3-wire I/F中的SCLGPIO配置

lcd_gpio_1=xx

2/3-wire I/F中的SDAGPIO配置

lcd_gpio_2=xx

2/3-wire I/F中的SCENGPIO配置

lcd_gpio_3=xx

LCD模组的RESETGPIO配置

lcdd0=xx

lcd 数据的GPIO配置

lcdd1=xx

lcd 数据的GPIO配置

lcdd2=xx

lcd 数据的GPIO配置

lcdd3=xx

lcd 数据的GPIO配置

lcdd4=xx

lcd 数据的GPIO配置

lcdd5=xx

lcd 数据的GPIO配置

lcdd6=xx

lcd 数据的GPIO配置

lcdd7=xx

lcd 数据的GPIO配置

lcdd8=xx

lcd 数据的GPIO配置

lcdd9=xx

lcd 数据的GPIO配置

lcdd10=xx

lcd 数据的GPIO配置

lcdd11=xx

lcd 数据的GPIO配置

lcdd12=xx

lcd 数据的GPIO配置

lcdd13=xx

lcd 数据的GPIO配置

lcdd14=xx

lcd 数据的GPIO配置

lcdd15=xx

lcd 数据的GPIO配置

lcdd16=xx

lcd 数据的GPIO配置

lcdd17=xx

lcd 数据的GPIO配置

lcdd18=xx

lcd 数据的GPIO配置

lcdd19=xx

lcd 数据的GPIO配置

lcdd20=xx

lcd 数据的GPIO配置

lcdd21=xx

lcd 数据的GPIO配置

lcdd22=xx

lcd 数据的GPIO配置

lcdd23=xx

lcd 数据的GPIO配置

lcdclk=xx

lcd 信号的GPIO配置(具体信号与实际电路相关)

lcdde=xx

lcd 信号的GPIO配置(具体信号与实际电路相关)

lcdhsync=xx

lcd 信号的GPIO配置(具体信号与实际电路相关)

lcdvsync=xx

lcd 信号的GPIO配置(具体信号与实际电路相关)

 

 

配置举例:

[lcd1_para]

lcd_used                                   =0

lcd_x                                        = 800

lcd_y                                        = 480

lcd_dclk_freq                           = 33

lcd_pwm_freq                          = 1000

lcd_pwm_pol                           = 0

lcd_srgb                                          = 0x00202020

lcd_swap                                  = 0

lcd_if                                        = 0

lcd_hbp                                    = 215

lcd_ht                                       = 1055

lcd_vbp                                    = 34

lcd_vt                                       = 1050

lcd_hv_if                                  = 0

lcd_hv_smode                          = 0

lcd_hv_s888_if                        = 0

lcd_hv_syuv_if                        = 0

lcd_hv_vspw                            = 0

lcd_hv_hspw                            = 0

lcd_hv_lde_used                      = 0

lcd_hv_lde_iovalue                  = 0

lcd_ttl_stvh                              = 0

lcd_ttl_stvdl                             = 0

lcd_ttl_stvdp                                   = 0

lcd_ttl_ckvt                              = 0

lcd_ttl_ckvh                             = 0

lcd_ttl_ckvd                             = 0

lcd_ttl_oevt                              = 0

lcd_ttl_oevh                             = 0

lcd_ttl_oevd                             = 0

lcd_ttl_sthh                              = 0

lcd_ttl_sthd                              = 0

lcd_ttl_oehh                             = 0

lcd_ttl_oehd                             = 0

lcd_ttl_revd                             = 0

lcd_ttl_datarate                        = 0

lcd_ttl_revsel                           = 0

lcd_ttl_datainv_en                   = 0

lcd_ttl_datainv_sel                  = 0

lcd_lvds_ch                              = 0

lcd_lvds_mode                        = 0

lcd_lvds_bitwidth                    = 0

lcd_lvds_io_cross                    = 0

lcd_cpu_if                                = 0

lcd_cpu_da                              = 0

lcd_frm                                    = 0

lcd_io_cfg0                              = 0x10000000

lcd_io_cfg1                              = 0

lcd_io_strength                        = 0

lcd_bl_en_used                        = 1

lcd_bl_en                                 = port:PH07<1><0><default><1>

lcd_power_used                       = 1

lcd_power                                = port:PH08<1><0><default><1>

lcd_pwm_used                         = 1

lcd_pwm                                  = port:PB02<2><default><default><default>

lcd_gpio_0                               =

lcd_gpio_1                               =

lcd_gpio_2                               =

lcd_gpio_3                               =

lcdd0                                        = port:PD00<2><default><default><default>

lcdd1                                        = port:PD01<2><default><default><default>

lcdd2                                        = port:PD02<2><default><default><default>

lcdd3                                        = port:PD03<2><default><default><default>

lcdd4                                        = port:PD04<2><default><default><default>

lcdd5                                        = port:PD05<2><default><default><default>

lcdd6                                        = port:PD06<2><default><default><default>

lcdd7                                        = port:PD07<2><default><default><default>

lcdd8                                        = port:PD08<2><default><default><default>

lcdd9                                        = port:PD09<2><default><default><default>

lcdd10                                      = port:PD10<2><default><default><default>

lcdd11                                      = port:PD11<2><default><default><default>

lcdd12                                      = port:PD12<2><default><default><default>

lcdd13                                      = port:PD13<2><default><default><default>

lcdd14                                      = port:PD14<2><default><default><default>

lcdd15                                      = port:PD15<2><default><default><default>

lcdd16                                      = port:PD16<2><default><default><default>

lcdd17                                      = port:PD17<2><default><default><default>

lcdd18                                      = port:PD18<2><default><default><default>

lcdd19                                      = port:PD19<2><default><default><default>

lcdd20                                      = port:PD20<2><default><default><default>

lcdd21                                      = port:PD21<2><default><default><default>

lcdd22                                      = port:PD22<2><default><default><default>

lcdd23                                      = port:PD23<2><default><default><default>

lcdclk                                       = port:PD24<2><default><default><default>

lcdde                                        = port:PD25<2><default><default><default>

lcdhsync                                   = port:PD26<2><default><default><default>

lcdvsync                                   = port:PD27<2><default><default><default>

 

17             摄像头(CSI)

17.1     [csi0_para]

 

配置项

配置项含义

csi_used =xx

是否使用csi0

csi_twi_id =xx

csi0使用的IIC

csi_mname=xx

csi0使用的模组名称,需要与驱动匹配,可以查看驱动目录里面的readme目前有ov7670gc0308gt2005hi704,sp0338,mt9m112可选

csi_twi_addr=xx

csi0使用的模组的IIC地址,可以查看驱动目录里面的readme

csi_if

配置目前使用模组的接口时序:

0:8bit数据线,带Hsync,Vsync

1:16bit数据线,带Hsync,Vsync

2:24bit 数据线,带Hsync,Vsync

3:8bit数据线,BT656内嵌同步,单通道

4:8bit数据线,BT656内嵌同步,双通道

5:8bit数据线,BT656内嵌同步,四通道

csi_mode

配置csi接收buffer的模式:

0: 一个CSI接收对应一个buffer

1:两个CSI接收内容拼接成一个buffer

csi_dev_qty

配置csi目前连接的器件数量,目前只能配置为12

csi_vflip

配置csi接收图像默认情况下,上下颠倒情况:

0:正常

1:上下颠倒

csi_hflip

配置csi接收图像默认情况下,左右颠倒情况:

0:正常

1:左右颠倒

csi_stby_mode

配置csi在进入standby时的处理:

0:不关闭电源,只拉standby io

1:关闭电源,同时拉standy io

csi_iovdd

配置csi io电源来源:

 “axp20_pll”: 表示电源来自pmuldo3

“axp20_hdmi”:表示电源来自pmuldo4

“”:表示电源来自非pmuldo

一般来说,EVB配置成“”

多数方案,配置成“axp20_pll”

csi_avdd

配置csi avdd电源来源:

 “axp20_pll”: 表示电源来自pmuldo3

“axp20_hdmi”:表示电源来自pmuldo4

“”:表示电源来自非pmuldo

一般来说,EVB配置成“”

多数方案,配置成“axp20_pll”

csi_dvdd

配置csi dvdd电源来源:

 “axp20_pll”: 表示电源来自pmuldo3

“axp20_hdmi”:表示电源来自pmuldo4

“”:表示电源来自非pmuldo

一般来说,EVB配置成“”

多数方案,配置成“”

csi_pckxx

模组送给csi0clock GPIO配置

csi_ck=xx

csi0送给模组的clock GPIO配置

csi_hsync=xx

模组送给csi0的行同步信号GPIO配置

csi_vsync=xx

模组送给csi0的帧同步信号GPIO配置

csi_d0=xx

csi_d15=xx

模组送给csi08bit/16bit数据GPIO配置

csi_reset=xx

控制模组的resetGPIO配置,默认值为reset有效(高或低有效需要取决于模组)

csi_power_en=xx

控制模组的电源的GPIO配置,若csi_stby_mode配置成0,则csi_power_en的默认值一般配置成1;若csi_stby_mode配置成1,则csi_power_en的默认值一般配置成0

csi_stby=xx

控制模组的standbyGPIO配置,默认值为standby有效(高或低有效需要取决于模组)

csi_reset_b=xx

如果有两个模组同时连接到一个CSI,需要额外的IO控制;控制模组的resetGPIO配置,默认值为reset有效(高或低有效需要取决于模组)

csi_power_en_b=xx

如果有两个模组同时连接到一个CSI需要额外的IO控制控制模组的电源的GPIO配置csi_stby_mode配置成0csi_power_en的默认值一般配置成1csi_stby_mode配置成1csi_power_en的默认值一般配置成0

csi_stby_b=xx

如果有两个模组同时连接到一个CSI,需要额外的IO控制;控制模组的standbyGPIO配置,默认值为standby有效(高或低有效需要取决于模组)

 

 

配置举例:

[csi0_para]

csi_used                                          = 1

csi_twi_id                                = 1

csi_mname                               = "gt2005"

csi_twi_addr                                   = 0x78

csi_if                                        = 0

csi_mode                                  = 0

csi_dev_qty                              = 1

csi_vflip                                          = 0

csi_hflip                                          = 0

csi_stby_mode                         = 1

csi_iovdd                                 = "axp20_pll"

csi_avdd                                   = "axp20_pll"

csi_dvdd                                  = ""

csi_pck                                     = port:PE00<3><default><default><default>

csi_ck                                       = port:PE01<3><default><default><default>

csi_hsync                                  = port:PE02<3><default><default><default>

csi_vsync                                  = port:PE03<3><default><default><default>

csi_d0                                       = port:PE04<3><default><default><default>

csi_d1                                       = port:PE05<3><default><default><default>

csi_d2                                       = port:PE06<3><default><default><default>

csi_d3                                       = port:PE07<3><default><default><default>

csi_d4                                       = port:PE08<3><default><default><default>

csi_d5                                       = port:PE09<3><default><default><default>

csi_d6                                       = port:PE10<3><default><default><default>

csi_d7                                       = port:PE11<3><default><default><default>

csi_d8                                       =

csi_d9                                       =

csi_d10                                     =

csi_d11                                     =

csi_d12                                     =

csi_d13                                     =

csi_d14                                     =

csi_d15                                     =

csi_reset                                          = port:PH13<1><default><default><0>

csi_power_en                           = port:PH16<1><default><default><0>

csi_stby                                    = port:PH18<1><default><default><0>

csi_reset_b                               =

csi_power_en_b                       =

csi_stby_b                                =

 

17.2     [csi1_para]

 

配置项

配置项含义

csi_used =xx

是否使用csi1

csi_twi_id =xx

csi1使用的IIC

csi_mname=xx

csi1使用的模组名称,需要与驱动匹配,可以查看驱动目录里面的readme目前有ov7670gc0308gt2005hi704,sp0338,mt9m112可选

csi_twi_addr=xx

csi0使用的模组的IIC地址,可以查看驱动目录里面的readme

csi_if

配置目前使用模组的接口时序:

0:8bit数据线,带Hsync,Vsync

1:16bit数据线,带Hsync,Vsync

2:24bit 数据线,带Hsync,Vsync

3:8bit数据线,BT656内嵌同步,单通道

4:8bit数据线,BT656内嵌同步,双通道

5:8bit数据线,BT656内嵌同步,四通道

csi_mode

配置csi接收buffer的模式:

0: 一个CSI接收对应一个buffer

1:两个CSI接收内容拼接成一个buffer

csi_dev_qty

配置csi目前连接的器件数量,目前只能配置为12

csi_vflip

配置csi接收图像默认情况下,上下颠倒情况:

0:正常

1:上下颠倒

csi_hflip

配置csi接收图像默认情况下,左右颠倒情况:

0:正常

1:左右颠倒

csi_stby_mode

配置csi在进入standby时的处理:

0:不关闭电源,只拉standby io

1:关闭电源,同时拉standy io

csi_iovdd

配置csi io电源来源:

 “axp20_pll”: 表示电源来自pmuldo3

“axp20_hdmi”:表示电源来自pmuldo4

“”:表示电源来自非pmuldo

一般来说,EVB配置成“”

多数方案,配置成“axp20_hdmi”

csi_avdd

配置csi avdd电源来源:

 “axp20_pll”: 表示电源来自pmuldo3

“axp20_hdmi”:表示电源来自pmuldo4

“”:表示电源来自非pmuldo

一般来说,EVB配置成“”

多数方案,配置成“axp20_hdmi”

csi_dvdd

配置csi dvdd电源来源:

 “axp20_pll”: 表示电源来自pmuldo3

“axp20_hdmi”:表示电源来自pmuldo4

“”:表示电源来自非pmuldo

一般来说,EVB配置成“”

多数方案,配置成“”

csi_pckxx

模组送给csi0clock GPIO配置

csi_ck=xx

csi0送给模组的clock GPIO配置

csi_hsync=xx

模组送给csi0的行同步信号GPIO配置

csi_vsync=xx

模组送给csi0的帧同步信号GPIO配置

csi_d0=xx

csi_d23=xx

模组送给csi08bit/16bit/24bit数据的GPIO配置

csi_reset=xx

控制模组的resetGPIO配置,默认值为reset有效(高或低有效需要取决于模组)

csi_power_en=xx

控制模组的电源的GPIO配置,若csi_stby_mode配置成0,则csi_power_en的默认值一般配置成1;若csi_stby_mode配置成1,则csi_power_en的默认值一般配置成0

csi_stby=xx

控制模组的standbyGPIO配置,默认值为standby有效(高或低有效需要取决于模组)

csi_reset_b=xx

如果有两个模组同时连接到一个CSI,需要额外的IO控制;控制模组的resetGPIO配置,默认值为reset有效(高或低有效需要取决于模组)

csi_power_en_b=xx

如果有两个模组同时连接到一个CSI需要额外的IO控制控制模组的电源的GPIO配置csi_stby_mode配置成0csi_power_en的默认值一般配置成1csi_stby_mode配置成1csi_power_en的默认值一般配置成0

csi_stby_b=xx

如果有两个模组同时连接到一个CSI,需要额外的IO控制;控制模组的standbyGPIO配置,默认值为standby有效(高或低有效需要取决于模组)

 

 

配置举例:

[csi1_para]

csi_used                                          = 1

csi_mname                             = "gc0308"

csi_twi_id                                = 1

csi_twi_addr                                   = 0x42

csi_if                                        = 0

csi_mode                                  = 0

csi_dev_qty                              = 1

csi_vflip                                          = 0

csi_hflip                                          = 0

csi_stby_mode                         = 1

csi_iovdd                                 = "axp20_hdmi"

csi_avdd                                   = "axp20_hdmi"

csi_dvdd                                  = ""

csi_pck                                     = port:PG00<3><default><default><default>

csi_ck                                       = port:PG01<3><default><default><default>

csi_hsync                                  = port:PG02<3><default><default><default>

csi_vsync                                  = port:PG03<3><default><default><default>

csi_d0                                       = port:PG04<3><default><default><default>

csi_d1                                       = port:PG05<3><default><default><default>

csi_d2                                       = port:PG06<3><default><default><default>

csi_d3                                       = port:PG07<3><default><default><default>

csi_d4                                       = port:PG08<3><default><default><default>

csi_d5                                       = port:PG09<3><default><default><default>

csi_d6                                       = port:PG10<3><default><default><default>

csi_d7                                       = port:PG11<3><default><default><default>

csi_d8                                       =

csi_d9                                       =

csi_d10                                     =

csi_d11                                     =

csi_d12                                     =

csi_d13                                     =

csi_d14                                     =

csi_d15                                     =

csi_d16                                     =

csi_d17                                     =

csi_d18                                     =

csi_d19                                     =

csi_d20                                     =

csi_d21                                     =

csi_d22                                     =

csi_d23                                     =

csi_reset                                          = port:PH14<1><default><default><0>

csi_power_en                           = port:PH17<1><default><default><0>

csi_stby                                    = port:PH19<1><default><default><1>

csi_reset_b                               =

csi_power_en_b                       =

csi_stby_b                                =

 

18             电视输出(tv out)

18.1     [tvout_para]

 

配置项

配置项含义

tvout_used =xx

 

tvout_channel_num=xx

 

tv_en =xx

 

配置举例:

 

18.2     [tvin_para]

 

配置项

配置项含义

tvin_used =xx

 

tvin_channel_num=xx

 

配置举例:

 

 

 

 

 

19             SATA磁盘

19.1     [sata_para]

配置项

配置项含义

sata_used=xx

 

sata_power_en=xx

 

 

配置举例:

 

 

20             SD / MMC

20.1     [mmc0_para]

 

配置项

配置项含义

sdc_used=xx

SDC使用控制:1使用,0不用

sdc_detmode=xx

检测模式:1-gpio检测,2-data3检测,3-无检测,卡常在(不卡拔插)4 - manual mode(from proc file system node)

bus_width=xx

位宽:1-1bit4-4bit

sdc_d1=xx

SDC DATA1 GPIO配置

sdc_d0xx

SDC DATA0 GPIO配置

sdc_clk=xx

SDC CLK GPIO配置

sdc_cmd=xx

SDC CMD GPIO配置

sdc_d3=xx

SDC DATA3 GPIO配置

sdc_d2=xx

SDC DATA2 GPIO配置

sdc_det=xx

SDC DETGPIO配置

sdc_use_wp=xx

SDC写保护配置:1使用,0不用

sdc_wp=xx

SDC WPGPIO配置

 

 

配置举例:

[mmc0_para]

sdc_used                                  = 1

sdc_detmode                           = 1

bus_width                                = 4

sdc_d1                                     = port:PF0<2><1><default><default>

sdc_d0                                     = port:PF1<2><1><default><default>

sdc_clk                                     = port:PF2<2><1><default><default>

sdc_cmd                                   = port:PF3<2><1><default><default>

sdc_d3                                     = port:PF4<2><1><default><default>

sdc_d2                                     = port:PF5<2><1><default><default>

sdc_det                                    = port:PH1<0><1><default><default>

sdc_use_wp                             = 0

sdc_wp                                     =

 

 

20.2     [mmc1_para]

 

配置项

配置项含义

sdc_used=xx

SDC使用控制:1使用,0不用

sdc_detmode=xx

检测模式:1-gpio检测,2-data3检测,3-无检测,卡常在(不卡拔插)4 - manual mode(from proc file system node)

bus_width=xx

位宽:1-1bit4-4bit

sdc_d1=xx

SDC DATA1 GPIO配置

sdc_d0xx

SDC DATA0 GPIO配置

sdc_clk=xx

SDC CLK GPIO配置

sdc_cmd=xx

SDC CMD GPIO配置

sdc_d3=xx

SDC DATA3 GPIO配置

sdc_d2=xx

SDC DATA2 GPIO配置

sdc_det=xx

SDC DET GPIO配置

sdc_use_wp=xx

SDC写保护配置:1使用,0不用

sdc_wp=xx

SDC WP GPIO配置

 

配置举例:

[mmc1_para]             

sdc_used                                  = 1

sdc_detmode                           = 1

bus_width                                = 4

sdc_cmd                                   = port:PH22<5><1><default><default>

sdc_clk                                     = port:PH23<5><1><default><default>

sdc_d0                                     = port:PH24<5><1><default><default>

sdc_d1                                     = port:PH25<5><1><default><default>

sdc_d2                                     = port:PH26<5><1><default><default>

sdc_d3                                     = port:PH27<5><1><default><default>

sdc_det                                    = port:PH2<0><1><default><default>

sdc_use_wp                             = 0

sdc_wp                                     =

 

20.3     [mmc2_para]

配置项

配置项含义

sdc_used=xx

SDC使用控制:1使用,0不用

sdc_detmode=xx

检测模式:1-gpio检测,2-data3检测,3-无检测,卡常在(不卡拔插)4 - manual mode(from proc file system node)

bus_width=xx

位宽:1-1bit4-4bit

sdc_d1=xx

SDC DATA1 GPIO配置

sdc_d0xx

SDC DATA0 GPIO配置

sdc_clk=xx

SDC CLK GPIO配置

sdc_cmd=xx

SDC CMD GPIO配置

sdc_d3=xx

SDC DATA3 GPIO配置

sdc_d2=xx

SDC DATA2 GPIO配置

sdc_det=xx

SDC DET GPIO配置

sdc_use_wp=xx

SDC写保护配置:1使用,0不用

sdc_wp=xx

SDC WP GPIO配置

 

 

配置举例:

[mmc2_para]             

sdc_used                                  = 1

sdc_detmode                           = 1

bus_width                                = 4

sdc_cmd                                   = port:PH22<5><1><default><default>

sdc_clk                                     = port:PH23<5><1><default><default>

sdc_d0                                     = port:PH24<5><1><default><default>

sdc_d1                                     = port:PH25<5><1><default><default>

sdc_d2                                     = port:PH26<5><1><default><default>

sdc_d3                                     = port:PH27<5><1><default><default>

sdc_det                                    = port:PH2<0><1><default><default>

sdc_use_wp                             = 0

sdc_wp                                     =

 

 

 

20.4     [mmc3_para]

 

配置项

配置项含义

sdc_used=xx

SDC使用控制:1使用,0不用

sdc_detmode=xx

检测模式:1-gpio检测,2-data3检测,3-无检测,卡常在(不卡拔插)4 - manual mode(from proc file system node)

bus_width=xx

位宽:1-1bit4-4bit

sdc_d1=xx

SDC DATA1 GPIO配置

sdc_d0xx

SDC DATA0 GPIO配置

sdc_clk=xx

SDC CLK GPIO配置

sdc_cmd=xx

SDC CMD GPIO配置

sdc_d3=xx

SDC DATA3 GPIO配置

sdc_d2=xx

SDC DATA2 GPIO配置

sdc_det=xx

SDC DET GPIO配置

sdc_use_wp=xx

SDC写保护配置:1使用,0不用

sdc_wp=xx

SDC WP GPIO配置

 

配置举例:

[mmc3_para]             

sdc_used                                  = 1

sdc_detmode                           = 1

bus_width                                = 4

sdc_cmd                                   = port:PH22<5><1><default><default>

sdc_clk                                     = port:PH23<5><1><default><default>

sdc_d0                                     = port:PH24<5><1><default><default>

sdc_d1                                     = port:PH25<5><1><default><default>

sdc_d2                                     = port:PH26<5><1><default><default>

sdc_d3                                     = port:PH27<5><1><default><default>

sdc_det                                    = port:PH2<0><1><default><default>

sdc_use_wp                             = 0

sdc_wp                                     =

 

 

 

21             记忆棒(Memory Stick)

21.1     [ms_para]

配置项

配置项含义

ms_used =xx

MS使用控制:1使用,0不用

ms_bs=xx

MS BS GPIO配置

ms_clk=xx

MS CLK GPIO配置

ms_d0=xx

MS DATA0 GPIO配置

ms_d1xx

MS DATA1 GPIO配置

ms_d2=xx

MS DATA2 GPIO配置

ms_d3=xx

MS DATA3 GPIO配置

ms_det=xx

MS DET GPIO配置

 

 

配置举例:

[ms_para]

ms_used                                   = 0

ms_bs                                       = port:PH06<5><default><default><default>

ms_clk                                      = port:PH07<5><default><default><default>

ms_d0                                      = port:PH08<5><default><default><default>

ms_d1                                      = port:PH09<5><default><default><default>

ms_d2                                      = port:PH10<5><default><default><default>

ms_d3                                      = port:PH11<5><default><default><default>

ms_det                                     =

 

22             SIM

22.1     [smc_para]

配置项

配置项含义

smc_used =xx

 

smc_rst=xx

 

smc_vppen=xx

 

smc_vppp=xx

 

smc_detxx

 

smc_vccen=xx

 

smc_sck=xx

 

smc_sda=xx

 

配置举例:

 

 

23             PS/2鼠标

23.1     [ps2_0_para]

配置项

配置项含义

ps2_used=xx

PS/2使用控制:1使用,0不用

ps2_scl =xx

PS/2 SCK GPIO配置

ps2_sda=xx

PS/2 SDA GPIO配置

 

配置举例:

[ps2_0_para]

ps2_used                                  = 0

ps2_scl                                     = port:PI20<2><1><default><default>

ps2_sda                                    = port:PI21<2><1><default><default>

 

23.2     [ps2_1_para]

配置项

配置项含义

ps2_used=xx

PS/2使用控制:1使用,0不用

ps2_scl =xx

PS/2 SCK GPIO配置

ps2_sda=xx

PS/2 SDA GPIO配置

 

配置举例:

[ps2_1_para]

ps2_used                                  = 0

ps2_scl                                     = port:PI20<2><1><default><default>

ps2_sda                                    = port:PI21<2><1><default><default>

 

 

 

24             CAN总线

24.1     [can_para]

 

配置项

配置项含义

can_used=xx

CAN使用控制:1使用,0不用

can_tx=xx

CANT TX GPIO配置

can_rx=xx

CAN RX GPIO配置

 

配置举例:

[can_para]

can_used                                  = 0

can_tx                                      = port:PA16<3><default><default><default>

can_rx                                      = port:PA17<3><default><default><default>

 

 

25             矩阵键盘(key matrix)

25.1     [keypad_para]

 

配置项

配置项含义

kp_used=xx

KEYPAD使用控制:1使用,0不用

kp_in_size=xx

KEYPAD 列宽

kp_out_size=xx

KEYPAD 行宽

kp_in0=xx

KEYPAD IN0 GPIO配置

kp_in1xx

KEYPAD IN1 GPIO配置

kp_in2=xx

KEYPAD IN2 GPIO配置

kp_in3=xx

KEYPAD IN3 GPIO配置

kp_in4=xx

KEYPAD IN4 GPIO配置

kp_in5=xx

KEYPAD IN5 GPIO配置

kp_in6=xx

KEYPAD IN6 GPIO配置

kp_in7=xx

KEYPAD IN7 GPIO配置

kp_out0=xx

KEYPAD OUT0 GPIO配置

kp_out1=xx

KEYPAD OUT1 GPIO配置

kp_out2=xx

KEYPAD OUT2 GPIO配置

kp_out3=xx

KEYPAD OUT3 GPIO配置

kp_out4=xx

KEYPAD OUT4 GPIO配置

kp_out5=xx

KEYPAD OUT5 GPIO配置

kp_out6=xx

KEYPAD OUT6 GPIO配置

kp_out7=xx

KEYPAD OUT7 GPIO配置

 

 

配置举例:

[keypad_para]

kp_used                                    = 0

kp_in_size                                = 8

kp_out_size                              = 8

kp_in0                   = port:PH08<4><1><default><default>

kp_in1                   = port:PH09<4><1><default><default>

kp_in2                   = port:PH10<4><1><default><default>

kp_in3                   = port:PH11<4><1><default><default>

kp_in4                   = port:PH14<4><1><default><default>

kp_in5                   = port:PH15<4><1><default><default>

kp_in6                   = port:PH16<4><1><default><default>

kp_in7                   = port:PH17<4><1><default><default>

kp_out0                  = port:PH18<4><1><default><default>

kp_out1                  = port:PH19<4><1><default><default>

kp_out2                  = port:PH22<4><1><default><default>

kp_out3                  = port:PH23<4><1><default><default>

kp_out4                  = port:PH24<4><1><default><default>

kp_out5                  = port:PH25<4><1><default><default>

kp_out6                  = port:PH26<4><1><default><default>

kp_out7                  = port:PH27<4><1><default><default>

 

26             USB控制标志

26.1     [usbc0]

 

配置项

配置项含义

usb_used =xx

USB使能标志(xx=1 or 0)。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。此标志只对具体的USB控制器模块有效。

usb_port_type =xx

USB端口的使用情况。(xx=0/1/2)

0device only  1host only  2OTG

usb_detect_type=xx

USB端口的检查方式。

0:无检查方式   1vbus/id检查

usb_id_gpio=xx

USB ID pin脚配置。具体请参考gpio配置说明。《配置与GPIO管理.doc

usb_det_vbus_gpioxx

USB DET_VBUS pin脚配置。具体请参考gpio配置说明。《配置与GPIO管理.doc

usb_drv_vbus_gpio=xx

USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。《配置与GPIO管理.doc

usb_host_init_state=xx

host only模式下,Host 端口初始化状态。

0:初始化后USB不工作   1:初始化后USB工作

 

 

 

配置举例:

[usbc0]

usb_used                                  = 1

usb_port_type                          = 2

usb_detect_type                       = 1

usb_id_gpio                             = port:PH4<0><1><default><default>

usb_det_vbus_gpio                  = port:PH5<0><0><default><default>

usb_drv_vbus_gpio                  = port:PB9<1><0><default><0>

usb_host_init_state                  = 0

 

26.2     [usbc1]

 

配置项

配置项含义

usb_used =xx

USB使能标志(xx=1 or 0)。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。此标志只对具体的USB控制器模块有效。

usb_port_type =xx

USB端口的使用情况。(xx=0/1/2)

0device only  1host only  2OTG

usb_detect_type=xx

USB端口的检查方式。

0:无检查方式   1vbus/id检查

usb_id_gpio=xx

USB ID pin脚配置。具体请参考gpio配置说明。《配置与GPIO管理.doc

usb_det_vbus_gpioxx

USB DET_VBUS pin脚配置。具体请参考gpio配置说明。《配置与GPIO管理.doc

usb_drv_vbus_gpio=xx

USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。《配置与GPIO管理.doc

usb_host_init_state=xx

host only模式下,Host 端口初始化状态。

0:初始化后USB不工作   1:初始化后USB工作

 

 

 

配置举例:

[usbc1]

usb_used                                  = 1

usb_port_type                          = 1

usb_detect_type                       = 0

usb_id_gpio                             =

usb_det_vbus_gpio                  =

usb_drv_vbus_gpio                  = port:PH6<1><0><default><0>

usb_host_init_state                  = 1

 

26.3     [usbc2]

配置项

配置项含义

usb_used =xx

USB使能标志(xx=1 or 0)。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。此标志只对具体的USB控制器模块有效。

usb_port_type =xx

USB端口的使用情况。(xx=0/1/2)

0device only  1host only  2OTG

usb_detect_type=xx

USB端口的检查方式。

0:无检查方式   1vbus/id检查

usb_id_gpio=xx

USB ID pin脚配置。具体请参考gpio配置说明。《配置与GPIO管理.doc

usb_det_vbus_gpioxx

USB DET_VBUS pin脚配置。具体请参考gpio配置说明。《配置与GPIO管理.doc

usb_drv_vbus_gpio=xx

USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。《配置与GPIO管理.doc

usb_host_init_state=xx

host only模式下,Host 端口初始化状态。

0:初始化后USB不工作   1:初始化后USB工作

 

配置举例:

[usbc2]

usb_used                                  = 1

usb_port_type                          = 1

usb_detect_type                       = 0

usb_id_gpio                             =

usb_det_vbus_gpio                  =

usb_drv_vbus_gpio                  = port:PH3<1><0><default><0>

usb_host_init_state                  = 1

 

27             USB Device

27.1     [usb_feature]

 

配置项

配置项含义

vendor_id=xx

USB 厂商ID

mass_storage_id =xx

UID

adb_id =xx

USB调试桥 ID

manufacturer_name=xx

USB厂商名

product_namexx

USB产品名

serial_number=xx

USB序列号

 

配置举例:

[usb_feature]

vendor_id                                 = 0x18D1

mass_storage_id                       = 0x0001

adb_id                                      = 0x0002

manufacturer_name                 = "USB Developer"

product_name                          = "Android"

serial_number                           = "20080411"

 

27.2     [msc_feature]

 

配置项

配置项含义

vendor_name=xx

U 厂商名

product_name=xx

U盘产品名

release=xx

发布版本

luns=xx

U盘逻辑单元的个数(PC可以看到的U盘盘符的个数)

 

 

 

配置举例:

[msc_feature]

vendor_name                           = "USB 2.0"

product_name                          = "USB Flash Driver"

release                                      = 100

luns                                           = 2

28             重力感应(G Sensor)

28.1     [gsensor_para]

 

配置项

配置项含义

gsensor_used=xx

是否支持gsensor

gsenser_name =xx

方案的驱动名可选gsenser,EVB1.2上用bma250

还有mxc622x

gsensor_twi_id =xx

I2CBUS控制选择,0TWI0;1:TWI1;2:TWI2

gsensor_twi_addr=xx

芯片的I2C地址

gsensor_int1xx

中断1的的GPIO配置

gsensor_int2=xx

中断2的的GPIO配置

 

配置举例:

[gsensor_para]

gsensor_used                            = 1

gsenser_name                           = "bma250"

gsensor_twi_id                         = 1

gsensor_twi_addr                    = 0x18

gsensor_int1                             = port:PH00<6><1><default><default>

gsensor_int2                             = port:PI10<6><1><default><default>

 

29             GPS

29.1     [gps_para]

 

配置项

配置项含义

gps_used=xx

 

gps_spi_id =xx

 

gps_spi_cs_num =xx

 

gps_lradc=xx

 

gps_clkxx

 

gps_sign=xx

 

gps_mag

 

gps_vcc_en

 

gps_osc_en

 

gps_rx_en

 

配置举例:

 

 

 

 

 

 

 

 

 

 

 

30             WIFI(SDIO)

30.1     [sdio_wifi_para]

 

配置项

配置项含义

sdio_wifi_used=xx

SDIO WIFI使用控制:1使用,0不用

sdio_wifi_sdc_id=xx

SDIO WIFI使用的SDC

sdio_wifi_mod_sel=xx

sdio_wifi模组的选择0-none,1-swl-n20(wifi),2-usi bm-01(wifi+bt+fm),ar6302qfn,4-apm6xxx,

5-swb b23(wifi+bt+fm)

swl_n20_shdn=xx

swl_n20_shdn GPIO配置

swl_n20_host_wakeup=xx

swl_n20_host_wakeup GPIO配置

swl_n20_vdd_enxx

swl_n20_vdd_en GPIO配置

swl_n20_vcc_en =xx

swl_n20_vcc_en GPIO配置

 

配置举例:

[sdio_wifi_para]

sdio_wifi_used                        = 1

sdio_wifi_sdc_id                            = 3

sdio_wifi_mod_sel                  = 1

sdio_wifi_shdn                        = port:PH09<1><default><default><0>

sdio_wifi_host_wakeup           = port:PH10<1><default><default><1>

sdio_wifi_vdd_en                    = port:PH11<1><default><default><0>

sdio_wifi_vcc_en                     = port:PH12<1><default><default><0>

 

 

31             WIFI(USB)

31.1     [usb_wifi_para]

 

配置项

配置项含义

usb_wifi_used=xx

USB使能标志(xx=1 or 0)。置1,表示系统中USBWIFI模块可用,置0,则表示系统USBWIFI禁用。

usb_wifi_usbc_num=xx

USB WIFI使用到的USB控制器的编号,xx值的范围为012

必须和USB控制器配置的usb_host_init_state一同使用,如xx=2,。[usbc2]usb_host_init_state必须为0

 

 

配置举例:

[usb_wifi_para]

usb_wifi_used                          = 0

usb_wifi_usbc_num                 = 2

 

32             3G

32.1     [3g_para]

 

配置项

配置项含义

3g_used=xx

 

3g_usbc_num=xx

 

3g_uart_num=xx

 

3g_pwr=xx

 

3g_wakeupxx

 

3g_int =xx

 

 

配置举例:

 

 

33             gyroscope

33.1     [gy_para]

 

配置项

配置项含义

gy_used=xx

 

gy_twi_id=xx

 

gy_twi_addr=xx

 

gy_int1=xx

 

gy_int2xx

 

 

配置举例:

 

 

34             光感(light sensor)

34.1     [ls_para]

 

配置项

配置项含义

ls_used =xx

 

ls_twi_id=xx

 

ls_twi_addr =xx

 

ls_int=xx

 

 

配置举例:

 

 

35             罗盘Compass

35.1     [compass_para]

配置项

配置项含义

compass_used=xx

 

compass_twi_id=xx

 

compass_twi_addr =xx

 

compass_int =xx

 

 

配置举例:

 

 

 

 

 

36             蓝牙(blueteeth)

36.1      [bt_para]

 

配置项

配置项含义

bt_used=xx

BLUETOOTH使用控制:1使用,0不用

bt_uart_id=xx

BLUETOOTH使用的UART控制器号

bt_wakeup =xx

BT WAKEUP GPIO配置

bt_gpio=xx

BT 可选 GPIO配置

bt_rst=xx

BT RESET GPIO配置

 

 

配置举例:

[bt_para]

bt_used                                    = 0

bt_uart_id                                = 2

bt_wakeup                               = port:PI20<1><default><default><default>

bt_gpio                                     = port:PI21<1><default><default><default>

bt_rst                                        = port:PB05<1><default><default><default>

 

 

37             数字音频总线(I2S

37.1     [i2s_para]

 

配置项

配置项含义

i2s_used=xx

xx0时加载该模块,为0是不加载

i2s_channel=xx

声道控制

i2s_mclk =xx

I2sMCLK信号的GPIO配置

i2s_bclk=xx

I2sBCLK信号的GPIO配置

i2s_lrclk =xx

I2sLRCK信号的GPIO配置

i2s_dout0

I2S out0GPIO配置

i2s_dout1

暂不使用

i2s_dout2

暂不使用

i2s_dout3

暂不使用

i2s_din

I2sIN信号的GPIO配置

 

配置举例:

i2s_used                                   = 0

i2s_channel                              = 2

i2s_mclk                                   = port:PB5<2><1><default><default>

i2s_bclk                                    = port:PB6<2><1><default><default>

i2s_lrclk                                    = port:PB7<2><1><default><default>

i2s_dout0                                 = port:PB8<2><1><default><default>

i2s_dout1                                 =

i2s_dout2                                 =

i2s_dout3                                 =

i2s_din                                     = port:PB12<2><1><default><default>

 

38             数字音频总线(S/PDIF

38.1     [spdif_para]

配置项

配置项含义

spdif_used=xx

 

spdif_mclk =xx

 

spdif_dout =xx

 

spdif_din=xx

 

 

配置举例:

 

39             喇叭控制

39.1     [audio_para]

配置项

配置项含义

audio_used =xx

Audio的喇叭是否打开,

1:打开(默认)0:关闭

audio_pa_ctrl=xx

喇叭的gpio口控制。

audio_lr_change=xx

部分板声道需要反转的置1,一般置0

 

配置举例:

[audio_para]

audio_used                               = 1

audio_pa_ctrl                           = port:PH15<1><default><default><0>

audio_lr_change=xx                = 0

注意事项:audio_lr_change 该选项的添加是因为台电那块板的声道反了,所以台电板该项置1,其他板置0.

40             红外(ir)

40.1     [ir_para]

配置项

配置项含义

ir_used=xx

 

ir0_rx =xx

 

 

配置举例:

 

 

41             PMU电源

41.1     [pmu_para]

 

pmu_used=xx

Pmu使能标志(xx=1 or 0)

0:不使用,1:使用

pmu_twi_addr=xx

Pmu 设备地址

pmu_twi_id=xx

Pmu挂载的i2c控制器号,

0twi01twi12twi2

pmu_irq_id=xx

Pmu 中断号,0NMI

11号中断22号中断……

pmu_battery_rdc=xx

电池内阻,mΩ,根据实际测试填写

pmu_battery_cap=xx

电池容量,mAh,根据实际测试填写

pmu_init_chgcur=xx

设置开机充电电流,mA

300/400/500/600/700/800/900

/1000/1100/1200/1300

/1400/1500/1600/1700/1800

pmu_earlysuspend_chgcur=xx

设置关屏充电电流,mA

300/400/500/600/700/800/900

/1000/1100/1200/1300

/1400/1500/1600/1700/1800

pmu_suspend_chgcur=xx

设置休眠充电电流,mA

300/400/500/600/700/800/900

/1000/1100/1200/1300

/1400/1500/1600/1700/1800

pmu_resume_chgcur=xx

设置唤醒充电电流,mA

300/400/500/600/700/800/900

/1000/1100/1200/1300

/1400/1500/1600/1700/1800

pmu_shutdown_chgcur=xx

设置关机充电电流,mA

300/400/500/600/700/800/900

/1000/1100/1200/1300

/1400/1500/1600/1700/1800

pmu_init_chgvol=xx

设置充电目标电压,mV4100/4150/4200/4360

pmu_init_chgend_rate=xx

设置结束充电电流的比率,%1015

pmu_init_chg_enabled=xx

设置充电功能,0:关闭,1:打开

pmu_init_adc_freq=xx

设置adc采样率,Hz25/50/100/200

pmu_init_adc_freqc=xx

设置库仑计采样率,Hz25/50/100/200

pmu_init_chg_pretime=xx

设置预充电超时时间,min40/50/60/70

pmu_init_chg_csttime=xx

设置恒流充电超时时间,min360/480/600/720

pmu_bat_para1=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para2=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para3=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para4=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para5=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para6=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para7=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para8=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para9=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para10=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para11=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para12=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para13=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para14=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para15=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档

pmu_bat_para16=xx

设置空载电池电压对应的百分比,%,具体请看《电池参数测试操作指南》文档,建议此处固定为100

pmu_usbvol_limit=xx

设置usb限压功能,0:关闭,1:打开

pmu_usbvol=xx

设置usb限压电压,mV4000/4100/4200/4300/4400/4500/4600/4700

pmu_usbcur_limit=xx

设置usb限流功能,0:关闭,1:打开

pmu_usbcur=xx

设置usb限流电流,mA100/500/900

pmu_pwroff_vol=xx

设置启动时的硬件保护电压,mV2600/2700/2800/2900/3000/3100/3200/3300

pmu_pwron_vol=xx

设置开机状态下的硬件保护电压,mV2600/2700/2800/2900/3000/3100/3200/3300

pmu_pekoff_time=xx

设置硬件关机时长,ms4000/6000/8000/10000

pmu_pekoff_en=xx

设置硬件关机功能,0:关闭,1:打开

pmu_peklong_time=xx

设置长按键中断时间,ms1000/1500/2000/2500

pmu_pekon_time=xx

设置开机时间,ms128/1000/2000/3000

pmu_pwrok_time=xx

设置电源启动完成后pwrok信号延时,ms8/64

pmu_pwrnoe_time=xx

设置n_oe由低变高后关机延迟时间,ms128/1000/2000/3000

pmu_intotp_en=xx

设置过温关机功能,0:关闭,1:打开

pmu_used2=xx

专门为佳的美案子做的一个设置,配合pmu_adpdet~ pmu_shutdown_chgcur2,打开1,关闭0

pmu_adpdet=xx

佳的美案子的设置,火牛探测口设置,具体参看上面gpio的配置

pmu_init_chgcur2=xx

佳的美案子的设置,插入火牛时,开机充电电流设置,同pmu_init_chgcur

pmu_earlysuspend_chgcur2=xx

佳的美案子的设置,插入火牛时,关屏充电电流设置,同pmu_earlysuspend_chgcur

pmu_suspend_chgcur2=xx

佳的美案子的设置,插入火牛时,休眠充电电流设置,同pmu_suspend_chgcur

pmu_resume_chgcur2=xx

佳的美案子的设置,插入火牛时,唤醒充电电流设置,同pmu_resume_chgcur

pmu_shutdown_chgcur2=xx

佳的美案子的设置,插入火牛时,关机充电电流设置,同pmu_shutdown_chgcur

pmu_suspendpwroff_vol=xx

休眠关机电压设置,mV2867~42006mV一档

pmu_batdeten=xx

电池探测功能设置,0:关闭,1:打开

 

注意:

pmu_used2~ pmu_shutdown_chgcur2之间的参数是为佳的美案子专门做的接口,对其他案子可以删掉。

 

配置举例:

pmu_used                                 = 1

pmu_twi_addr                         = 0x34

pmu_twi_id                              = 0

pmu_irq_id                               = 0

pmu_battery_rdc                      = 200

pmu_battery_cap                            = 2600

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            = 1

pmu_bat_para4            = 5

pmu_bat_para5            = 7

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_usbvol                              = 4400

pmu_usbcur_limit                    = 0

pmu_usbcur                              =  900

pmu_pwroff_vol                      = 3300

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               = port:PH02<0><default><default><default>

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

你可能感兴趣的:(sysconfig1.fex_manul_linux_BSP_v0.4)