diff options
author | Suresh Gupta <suresh.gupta@nxp.com> | 2017-02-21 11:56:46 +0300 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2017-03-28 19:10:12 +0300 |
commit | 38a5c57ac57614079061678bec277b330e958041 (patch) | |
tree | a9ba7327b88d822ad67b0cffea7135cbfddaba5e /drivers | |
parent | 7b45b383fd0a05e6b6ee42676210b728596c86bc (diff) | |
download | u-boot-38a5c57ac57614079061678bec277b330e958041.tar.xz |
spi: fsl_qspi: Add support for single chip select
SOC’s like LS1012A has only one chip select signal for QSPI flash.
Avoid scanning other flash.
Signed-off-by: Suresh Gupta <suresh.gupta@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/fsl_qspi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index b2a058380f..e61c67b088 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -1037,8 +1037,11 @@ static int fsl_qspi_probe(struct udevice *bus) * setting the size of these devices to 0. This would ensure * that the complete memory map is assigned to only one flash device. */ - qspi_write32(priv->flags, &priv->regs->sfa1ad, priv->amba_base[1]); + qspi_write32(priv->flags, &priv->regs->sfa1ad, + priv->amba_base[0] + amba_size_per_chip); switch (priv->num_chipselect) { + case 1: + break; case 2: qspi_write32(priv->flags, &priv->regs->sfa2ad, priv->amba_base[1]); |