]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mtd: spi-nor-core: Fixup SNOR_F_IO_MODE_EN_VOLATILE for MT35X
authorVaishnav Achath <vaishnav.a@ti.com>
Mon, 25 Nov 2024 10:49:47 +0000 (16:19 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 6 May 2025 19:12:43 +0000 (13:12 -0600)
MT35XU512ABA has only BFPT and 4-Byte Address Instruction Table
in  SFDP. commit bebdc237507c ("mtd: spi-nor: Parse SFDP SCCR Map")
added checks in spi_nor_octal_dtr_enable() to bail out if the 22nd DWORD
in SCCR does not indicate DTR Octal Mode Enable, since MT35XU512ABA device
supports octal DTR mode, add this property in SFDP fixup.

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Signed-off-by: Prasanth Babu Mantena <p-mantena@ti.com>
Reviewed-by: Udit Kumar <u-kumar1@ti.com>
drivers/mtd/spi/spi-nor-core.c

index 87a3099eeaf6ebd0d1294a03265b564f51df151f..c03136c1c20ecd9e7218b186ce9bf6c30e2aefb8 100644 (file)
@@ -4135,6 +4135,12 @@ static void mt35xu512aba_post_sfdp_fixup(struct spi_nor *nor,
        params->rdsr_dummy = 8;
        params->rdsr_addr_nbytes = 0;
 
+       /*
+        * SCCR Map 22nd DWORD does not indicate DTR Octal Mode Enable
+        * for MT35XU512ABA but is actually supported by device.
+        */
+       nor->flags |= SNOR_F_IO_MODE_EN_VOLATILE;
+
        /*
         * The BFPT quad enable field is set to a reserved value so the quad
         * enable function is ignored by spi_nor_parse_bfpt(). Make sure we