Hi,
We use Macronix and Winbond NOR flash to our LS1088ardb board.
Therefore, we add Macronix and Winbond ids in spi-nor-ids.c
The following code is we added in u-boot spi-nor-ids.c
#ifdef CONFIG_SPI_FLASH_MACRONIX
....
{ INFO("mx25u51245g", 0xc2253a, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_4B_OPCODES) },
......
#endif
#ifdef CONFIG_SPI_FLASH_WINBOND
......
{
INFO("w25q512nwq", 0xef6020, 0, 64 * 1024, 1024,
SECT_4K | SPI_NOR_4B_OPCODES)
},
......
#endif
If we use Macronix nor flash, we set u-boot fsl-ls 1088a-rdb.dts qspi part as the follow.
qflash0: mx25u51245g0@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "macronix,mx25u51245g";
spi-max-frequency = <50000000>;
reg = <0>;
};
When we change to use Winbond nor flash, we change u-boot fsl-ls 1088a-rdb.dts qspi part as the follow.
qflash0: w25q512nw@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q512";
spi-max-frequency = <50000000>;
reg = <0>;
};
We want to support both of these NOR flashes.
We are confused about that if we want the u-boot to support both NOR flashes.
How to set the u-boot fsl-ls 1088a-rdb.dts qspi part?
Thanks