[PATCH v4 6/6] mtd: spi-nor: manuf-id-collisions: Add support for xt25f128b
Michael Walle
michael at walle.cc
Tue Mar 1 14:23:24 PST 2022
Am 2022-02-28 14:45, schrieb Tudor Ambarus:
> Flash does not support continuation codes and may collide with a flash
> of other manufacturer, Intersil being an example. Add support for
> xt25f128b.
>
> Signed-off-by: Tudor Ambarus <tudor.ambarus at microchip.com>
> ---
> 0000000 4653 5044 0100 ff01 0000 0901 0030 ff00
> 0000010 000b 0301 0060 ff00 ffff ffff ffff ffff
> 0000020 ffff ffff ffff ffff ffff ffff ffff ffff
> 0000030 20e5 fff1 ffff 07ff eb44 6b08 3b08 bb42
> 0000040 ffee ffff ffff ff00 ffff ff00 200c 520f
> 0000050 d810 ff00 ffff ffff ffff ffff ffff ffff
> 0000060 3600 2700 f99f 6477 e8d9 ffff
You don't have this flash no? because the md5sum is
missing.
>
> drivers/mtd/spi-nor/manuf-id-collisions.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/drivers/mtd/spi-nor/manuf-id-collisions.c
> b/drivers/mtd/spi-nor/manuf-id-collisions.c
> index 75c5ad6480ee..0447e245f4b1 100644
> --- a/drivers/mtd/spi-nor/manuf-id-collisions.c
> +++ b/drivers/mtd/spi-nor/manuf-id-collisions.c
> @@ -17,6 +17,15 @@ static const struct spi_nor_fixups boya_nor_fixups =
> {
> .late_init = boya_nor_late_init,
> };
>
> +static void xtx_nor_late_init(struct spi_nor *nor)
> +{
> + nor->manufacturer_name = "xtx";
> +}
> +
> +static const struct spi_nor_fixups xtx_nor_fixups = {
> + .late_init = xtx_nor_late_init,
> +};
> +
> static const struct flash_info id_collision_parts[] = {
> /* Boya */
> { "by25q128as", INFO(0x684018, 0, 64 * 1024, 256)
> @@ -24,6 +33,11 @@ static const struct flash_info id_collision_parts[]
> = {
> NO_SFDP_FLAGS(SPI_NOR_SKIP_SFDP | SECT_4K | SPI_NOR_DUAL_READ |
> SPI_NOR_QUAD_READ)
> .fixups = &boya_nor_fixups },
> +
> + /* XTX (XTX Technology Limited) */
> + { "xt25f128b", INFO(0x0b4018, 0, 64 * 1024, 256)
> + PARSE_SFDP
> + .fixups = &xtx_nor_fixups },
I'd suggest to order the entries by the id to make it
easier to spot collisions.
-michael
More information about the linux-mtd
mailing list