Skip to content

Commit 9e02cb5

Browse files
mwalleambarus
authored andcommitted
mtd: spi-nor: xmc: convert flash_info to new format
The INFOx() macros are going away. Convert the flash_info database to the new format. Signed-off-by: Michael Walle <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tudor Ambarus <[email protected]>
1 parent 8e52f54 commit 9e02cb5

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

drivers/mtd/spi-nor/xmc.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@
99
#include "core.h"
1010

1111
static const struct flash_info xmc_nor_parts[] = {
12-
{ "XM25QH64A", INFO(0x207017, 0, 64 * 1024, 128)
13-
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
14-
SPI_NOR_QUAD_READ) },
15-
{ "XM25QH128A", INFO(0x207018, 0, 64 * 1024, 256)
16-
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
17-
SPI_NOR_QUAD_READ) },
12+
{
13+
.id = SNOR_ID(0x20, 0x70, 0x17),
14+
.name = "XM25QH64A",
15+
.size = SZ_8M,
16+
.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
17+
}, {
18+
.id = SNOR_ID(0x20, 0x70, 0x18),
19+
.name = "XM25QH128A",
20+
.size = SZ_16M,
21+
.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
22+
},
1823
};
1924

2025
/* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */

0 commit comments

Comments
 (0)