AnsweredAssumed Answered

How to add SPI driver in uboot on IMX28

Question asked by jey zhou on May 18, 2015
Latest reply on May 26, 2015 by jimmychan

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

Outcomes