[U-Boot] [EXT] [PATCH 2/2] spi-nor: spi-nor-ids: Disable SPI_NOR_4B_OPCODES for n25q512* and n25q256*

Simon Goldschmidt simon.k.r.goldschmidt at gmail.com
Tue Sep 24 09:26:18 UTC 2019


Hi,

On Mon, Sep 23, 2019 at 12:49 PM Simon Goldschmidt
<simon.k.r.goldschmidt at gmail.com> wrote:
>
> Hi ,
>
> On Mon, Sep 23, 2019 at 11:38 AM <Tudor.Ambarus at microchip.com> wrote:
> >
> > Hi, Simon,
> >
> > On 09/23/2019 12:30 PM, Simon Goldschmidt wrote:
> > > How would I dump the SFDP tables?
> >
> > this should do it. Make sure SPI_FLASH_SFDP_SUPPORT is selected in menuconfig.
> >
> > Cheers,
> > ta
> >
> > diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c
> > index 1acff745d1a2..7062f31226bf 100644
> > --- a/drivers/mtd/spi/spi-nor-core.c
> > +++ b/drivers/mtd/spi/spi-nor-core.c
> > @@ -1680,6 +1680,10 @@ static int spi_nor_parse_bfpt(struct spi_nor *nor,
> >         for (i = 0; i < BFPT_DWORD_MAX; i++)
> >                 bfpt.dwords[i] = le32_to_cpu(bfpt.dwords[i]);
> >
> > +       for (i = 0; i < BFPT_DWORD_MAX; i++)
> > +               dev_err(nor->dev, "bfpt.dwords[%d] = %08x\n", i,
> > +                       bfpt.dwords[i]);
> > +
>
> Unfortunately, that didn't work. It exits early when parsing the signature:
> I get 0xffdddfdf instead of 0x50444653...

OK, so after setting cadence qspi driver back to 'spi-rx-bus-width = <1>'
(thanks Vignesh), here's the ID and SFDP dump for my n25q256a:

JEDEC id bytes: 20, ba, 19, 10, 44, 00

bfpt.dwords[0] = fffb20e5
bfpt.dwords[1] = 0fffffff
bfpt.dwords[2] = 6b27eb29
bfpt.dwords[3] = bb273b27
bfpt.dwords[4] = ffffffff
bfpt.dwords[5] = bb27ffff
bfpt.dwords[6] = eb29ffff
bfpt.dwords[7] = d810200c
bfpt.dwords[8] = 0000520f
bfpt.dwords[9] = 00994a24
bfpt.dwords[10] = d4038e8b
bfpt.dwords[11] = 382701ac
bfpt.dwords[12] = 757a757a
bfpt.dwords[13] = 5cd5bdfb
bfpt.dwords[14] = ff820f4a
bfpt.dwords[15] = 363dbd81

Regards,
Simon


More information about the U-Boot mailing list