[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
Mon Sep 23 10:49:21 UTC 2019


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...

Regards,
Simon


More information about the U-Boot mailing list