[U-Boot] [PATCH v4 0/5] qspi: qspi support for mx6sxsabresd

Peng Fan Peng.Fan at freescale.com
Wed Dec 31 04:01:35 CET 2014


This patch set is to support qspi for mx6sxsabresd board.

To mx6sxsabresd Revb board, 32M flash is used, but in header file,
CONFIG_SPI_FLASH_BAR is not defined, and we still use SZ_16M. The LUT
initialization qspi_set_lut function uses 32BIT addr, however
CONFIG_SPI_FLASH_BAR  and 24BIT addr should be used to access
bigger than 16MB size flash, and BRRD/BRWR should also be supported.
Future patches will fix this.

Since flash opcodes are not recommended to use in driver level, use
QSPI_CMD_xx to replace OPCODE_xx. It is qspi controller's feature
to program LUT with QSPI_CMD_xx which same value with OPCODE_xx.

Since Revb board's qspi flash support 4K erase, 4K erase is added in driver.

Peng Fan (5):
  QuadSPI: use QSPI_CMD_xx instead of flash opcodes
  QuadSPI: use correct amba_base
  arm:mx6sx add QSPI support
  imx:qspi add 4K erase support
  imx:mx6sxsabresd add qspi support

 arch/arm/cpu/armv7/mx6/clock.c              |  50 ++++++++++
 arch/arm/include/asm/arch-mx6/clock.h       |   1 +
 arch/arm/include/asm/arch-mx6/imx-regs.h    |  12 +--
 board/freescale/mx6sxsabresd/mx6sxsabresd.c |  40 ++++++++
 drivers/spi/fsl_qspi.c                      | 137 +++++++++++++++++++---------
 include/configs/mx6sxsabresd.h              |  12 +++
 6 files changed, 205 insertions(+), 47 deletions(-)

-- 
1.8.4




More information about the U-Boot mailing list