本帖最后由 wb4916 于 2015-6-5 11:17 编辑
jiangdou 发表于 2015-6-5 09:18
没有配置sys_config.fex 当然出不来啦
这里修改了(更多可以查看附件!)!
V:\lichee\tools\pack\chips\sun7i\configs\android\sugar-cubieboard2\sys_config.fex
;-------------------------------------------------------------------------------
;spi configuration
;-------------------------------------------------------------------------------
[spi0_para]
spi_used = 1
spi_cs_bitmap = 1
spi_cs0 = portI10<2><default><default><default>
;spi_cs1 = portI14<2><default><default><default>
spi_sclk = portI11<2><default><default><default>
spi_mosi = portI12<2><default><default><default>
spi_miso = portI13<2><default><default><default>
[spi1_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = portA00<3><default><default><default>
spi_cs1 = portA04<3><default><default><default>
spi_sclk = portA01<3><default><default><default>
spi_mosi = portA02<3><default><default><default>
spi_miso = portA03<3><default><default><default>
[spi2_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PC19<3><default><default><default>
spi_cs1 = port:PB13<2><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>
[spi3_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA05<3><default><default><default>
spi_cs1 = port:PA09<3><default><default><default>
spi_sclk = port:PA06<3><default><default><default>
spi_mosi = port:PA07<3><default><default><default>
spi_miso = port:PA08<3><default><default><default>
[spi_devices]
spi_dev_num = 1
[spi_board0]
modalias = "spidev"
max_speed_hz = 12000000
bus_num = 0
chip_select = 0
mode = 3
full_duplex = 0
manual_cs = 0
当时怀疑可能是 GPIO 设置的问题,还关闭了几个!
;-------------------------------------------------------------------------------
;ps2 configuration
;-------------------------------------------------------------------------------
[ps2_0_para]
ps2_used = 0
ps2_scl = port:PI20<2><1><default><default>
ps2_sda = port:PI21<2><1><default><default>
[ps2_1_para]
ps2_used = 0
;ps2_scl = port:PI14<3><1><default><default>
ps2_sda = port:PI15<3><1><default><default>
;-------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id --- the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num --- the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc --- the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;-------------------------------------------------------------------------------
[gps_para]
gps_used = 0
gps_spi_id = 2
gps_spi_cs_num = 0
gps_lradc = 1
gps_clk = port:PI00<2><default><default><default>
gps_sign = port:PI01<2><default><default><default>
gps_mag = port:PI02<2><default><default><default>
gps_vcc_en = port:PC22<1><default><default><0>
;gps_osc_en = port:PI14<1><default><default><0>
gps_rx_en = port:PI15<1><default><default><0>
;-------------------------------------------------------------------------------
;touch key configuration
;-------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id = 2
tkey_twi_addr = 0x62
;tkey_int = port:PI13<6><default><default><default>
;-------------------------------------------------------------------------------
;compass
;-------------------------------------------------------------------------------
[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 0x00
;compass_int = port:PI13<6><1><default><default>
rootroot@rootroot-E400:~/wyb/baidu_cubieboard2_a20/lichee/linux-3.4$ make ARCH=arm menuconfig
Device Drivers --->
SPI support --->
--- SPI support
Debug support for SPI drivers
*** SPI Master Controller Drivers ***
< > Altera SPI Controller
-*- Utilities for Bitbanging SPI masters
<*> GPIO-based bitbanging SPI Master
< > OpenCores tiny SPI
< > ARM AMBA PL022 SSP controller
<*> SUN7I SPI Controller
SUN7I SPI Normal DMA mode select
SUN7I SPI Norflash
< > Xilinx SPI controller common module
<*> DesignWare SPI controller core support
<*> Memory-mapped io interface driver for DW SPI core
*** SPI Protocol Masters ***
<*> User mode SPI device driver support
< > Infineon TLE62X0 (for power switching)
-> Device Drivers
-> Memory Technology Device (MTD) support (MTD [=n])
-> Self-contained MTD device drivers
-> Support for AT45xxx DataFlash (MTD_DATAFLASH [=n])
<*> Support for AT45xxx DataFlash
Verify DataFlash page writes (NEW)
DataFlash OTP support (Security Register) (NEW)
<*> Support most SPI Flash chips (AT26DF, M25P, W25X, ...)
Use FAST_READ OPCode allowing SPI CLK <= 50MHz (NEW)
多选不行,
按照 android_SPI设备驱动开发 cubietruck.pdf 上 少量选择也是不行:
Device Drivers --->
SPI support --->
--- SPI support
<*> SUN7I SPI Controller
SUN7I SPI Normal DMA mode select
-> Device Drivers
-> Memory Technology Device (MTD) support (MTD [=n])
-> Self-contained MTD device drivers
<*> Support for AT45xxx DataFlash
头疼呀!!!!
|