wlan-ap-Telecominfraproject/feeds/qca-wifi-7/ipq53xx/patches-6.1/0162-mtd-rawnand-qcom-Enable-QSPI-NAND-for-ipq5332.patch
John Crispin 68cf54d9f7 qca-wifi-7: update to ath12.5.5
Signed-off-by: John Crispin <john@phrozen.org>
2025-02-27 12:45:52 +01:00

48 lines
1.5 KiB
Diff

From bd2cd1dde346612a5e7c6576addb740a38097979 Mon Sep 17 00:00:00 2001
From: Md Sadre Alam <quic_mdalam@quicinc.com>
Date: Sun, 19 Mar 2023 16:35:28 +0530
Subject: [PATCH 162/281] mtd: rawnand: qcom: Enable QSPI NAND for ipq5332
Change-Id: I049f3164a13213220258b0e53dcc30dfcc73a778
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---
drivers/mtd/nand/raw/qcom_nandc.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
index 0061376a2b91..5466452fe21b 100644
--- a/drivers/mtd/nand/raw/qcom_nandc.c
+++ b/drivers/mtd/nand/raw/qcom_nandc.c
@@ -4235,6 +4235,17 @@ static const struct qcom_nandc_props sdx55_nandc_props = {
.dev_cmd_reg_start = 0x7000,
};
+static const struct qcom_nandc_props ipq5332_nandc_props = {
+ .ecc_modes = (ECC_BCH_4BIT | ECC_BCH_8BIT),
+ .is_bam = true,
+ .is_serial_nand = true,
+ .qpic_v2 = true,
+ .is_serial_training = true,
+ .quad_mode = true,
+ .page_scope = true,
+ .dev_cmd_reg_start = 0x7000,
+};
+
static const struct qcom_nandc_props ipq9574_nandc_props = {
.ecc_modes = (ECC_BCH_4BIT | ECC_BCH_8BIT),
.is_bam = true,
@@ -4267,6 +4278,10 @@ static const struct of_device_id qcom_nandc_of_match[] = {
.compatible = "qcom,ipq8074-nand",
.data = &ipq8074_nandc_props,
},
+ {
+ .compatible = "qcom,ipq5332-nand",
+ .data = &ipq5332_nandc_props,
+ },
{
.compatible = "qcom,ipq9574-nand",
.data = &ipq9574_nandc_props,
--
2.17.1