How to add SPI driver in uboot on IMX28

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add SPI driver in uboot on IMX28

960 Views
jeyzhou
Contributor I

Hi,

  We want to add spi driver into u-boot to bring up with spi nor flash on imx28.

  Could you please share us the patch especially with mxs_spi.c?

  We meet the following issue when we use a old mxs_spi.c.

spi_flash_probe bus =2, cs =0, spi mode =3

spi_setup_slave: bus=2, cs=0, max_hz=20000000, mode=3

spi_xfer: enter

MXS SPI: Timeout waiting for data

Error: spi_nor_flash_query(): 0x00:0x00:0x00

SF: Failed to read the ID codes

*** Warning - bad CRC, using default environment

Best Regards,

Jey

0 Kudos
Reply
1 Reply

654 Views
jimmychan
NXP TechSupport
NXP TechSupport
0 Kudos
Reply