Skip to content

qspi: qspi support for mx6sxsabresd

Peng Fan u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest0 of 5 patches 0 repliesNew

Patches in v4 No applies recorded yet

None of the 5 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 0/5] qspi: qspi support for mx6sxsabresd
Quoted 10 lines · Jagan Teki
Quoted 8 lines · Peng Fan

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.

Quoted 3 lines

Please do remember your self, for next patches. of-course I have added this note on "[U-Boot,v4,5/5] imx:mx6sxsabresd add qspi support" commit body.

Thanks. Actually I am doing the work.

Quoted 22 lines
Quoted 22 lines

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(-)
Quoted 9 lines
Quoted 4 lines

--
1.8.4

Applied to u-boot-spi/master

thanks!

Regards,
Peng.