]> git.baikalelectronics.ru Git - uboot.git/commit
spi: fsl_qspi: Support to use full AHB space on i.MX
authorYe Li <ye.li@nxp.com>
Tue, 9 Jun 2020 07:59:06 +0000 (00:59 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 16 Jul 2020 09:19:43 +0000 (11:19 +0200)
commitd67cd3b5e44f4a5563e8983bbeae430caa1df0e9
tree78130b3082f1e8f25c80f0a1651afe0265585aac
parentc72b2d4051a095a685a8a7d1c4854e618ebf9313
spi: fsl_qspi: Support to use full AHB space on i.MX

i.MX platforms provide large AHB mapped space for QSPI, each
controller has 256MB. However, current driver only maps small
size (AHB buffer size) of AHB space, this implementation
causes i.MX failed to boot M4 with QSPI XIP image.

Add config CONFIG_FSL_QSPI_AHB_FULL_MAP (default enabled for i.MX)
to address above problem.

When the config is set:
1. Full AHB space is divided to each CS.
2. A dedicated LUT entry is used for AHB read only.
3. The MODE instruction in LUT is replaced to standard ADDR instruction
4. The address in spi_mem_op is used to SFAR and AHB read

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Reviewed-by: Kuldeep Singh <kuldeep.singh@nxp.com>
drivers/spi/Kconfig
drivers/spi/fsl_qspi.c