From: Ciprian Costea <[email protected]>

commit 608d2b41dfb96ed947971cfa04cb7cbfe9e4d036 from
https://source.codeaurora.org/external/autobsps32/linux

Our S32CC QSPI controller can support AHB sizes up to 512MB.
Currently we allocate only 64MB for ahb buf size.
We fix this by allocating 512MB for AHB buf size with
size information parsed from dtb.

Issue: ALB-9442
Signed-off-by: Ciprian Costea <[email protected]>
Signed-off-by: Zhantao Tang <[email protected]>
---
 drivers/spi/spi-fsl-qspi.c | 4 ++--
 drivers/spi/spi-fsl-qspi.h | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/spi/spi-fsl-qspi.c b/drivers/spi/spi-fsl-qspi.c
index f3b5df63ae09..c0e09b64d6d2 100644
--- a/drivers/spi/spi-fsl-qspi.c
+++ b/drivers/spi/spi-fsl-qspi.c
@@ -99,7 +99,7 @@ static const struct fsl_qspi_devtype_data ls2080a_data = {
 static const struct fsl_qspi_devtype_data s32gen1_data = {
        .rxfifo = SZ_128,
        .txfifo = SZ_256,
-       .ahb_buf_size = SZ_64M,
+       .ahb_buf_size = SZ_1K,
        .quirks = 0,
        .little_endian = true,
 };
@@ -107,7 +107,7 @@ static const struct fsl_qspi_devtype_data s32gen1_data = {
 static const struct fsl_qspi_devtype_data s32g3_data = {
        .rxfifo = SZ_128,
        .txfifo = SZ_256,
-       .ahb_buf_size = SZ_64M,
+       .ahb_buf_size = SZ_1K,
        .quirks = 0,
        .little_endian = true,
 };
diff --git a/drivers/spi/spi-fsl-qspi.h b/drivers/spi/spi-fsl-qspi.h
index 196b16488bbd..06c99f37f101 100644
--- a/drivers/spi/spi-fsl-qspi.h
+++ b/drivers/spi/spi-fsl-qspi.h
@@ -124,8 +124,6 @@
 #define S32GEN1_QUADSPI_SFB2AD_VAL             0x10000000
 #define QUADSPI_RBDR(x)                        (0x200 + ((x) * 4))
 
-#define QUADSPI_AHB_BASE       0x0
-
 #define QUADSPI_LUTKEY                 0x300
 #define QUADSPI_LUTKEY_VALUE           0x5AF05AF0
 
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11862): 
https://lists.yoctoproject.org/g/linux-yocto/message/11862
Mute This Topic: https://lists.yoctoproject.org/mt/94885139/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to