From mboxrd@z Thu Jan 1 00:00:00 1970 From: sbabic at denx.de Date: Thu, 16 Jul 2020 19:48:36 +0200 (CEST) Subject: [PATCH 2/2] spi: fsl_qspi: Support to use full AHB space on i.MX In-Reply-To: <1591689546-64136-2-git-send-email-ye.li@nxp.com> Message-ID: <20200716174836.54D3F81BC8@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 > Reviewed-by: Ashish Kumar > Reviewed-by: Kuldeep Singh Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================