Re: spi-nor: maxronix MX25L12835F support

Heiko Thiery
2021-02-16T09:45:59Z

Hi Pratyush et all,

Am Di., 16. Feb. 2021 um 10:27 Uhr schrieb Pratyush Yadav <p.yadav@ti.com>:
>
> On 15/02/21 10:53PM, Heiko Thiery wrote:
> > Hi all,
> >
> > I faced an issue with a SPI flash on our board. We use a macronix
> > MX25L12835F [1]. Unfortunately this flash has the same JEDEC ID like
> > the MX25L12805D [2].
> >
> > The newer MX25L12835F has support for dual/quad read mode and RDSFDP
> > while the older doesn't.
> >
> > I thought that I could do a fixup with a device specific
> > post_bfpt_fixups() call but by now this seems not possible. The older
> > MX25L12805D has no flags set that allows a call to
> > spi_nor_sfdp_init_params() and implements the fixup.
> >
> > Has anyone an idea how to solve this?
>
> The post_sfdp fixup is always run regardless of whether the flash has
> SFDP or not. You can try putting your flash-specific fixups there.

But as far as I can see, this function (spi_nor_post_sfdp_fixups) has
no sfdp information arguments to decide on what to do. Only
spi_nor_post_bfpt_fixups() has these parameters but this is only
called inside spi_nor_parse_bfpt().

>
> >
> >
> > [1] https://www.macronix.com/Lists/Datasheet/Attachments/7397/MX25L12835F,%203V,%20128Mb,%20v1.6.pdf
> > [2] https://www.mxic.com.tw/Lists/Datasheet/Attachments/7321/MX25L12805D,%203V,%20128Mb,%20v1.2.pdf
>
> Both these links are broken.

Works here for me. Nethertheless here are shorter ones:

[1] https://bit.ly/3jQFNLL
[2] https://bit.ly/2OKiGH9

--
Heiko