summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi-nor/xmc.c
diff options
context:
space:
mode:
authorMichael Walle <mwalle@kernel.org>2023-09-08 12:16:33 +0200
committerTudor Ambarus <tudor.ambarus@linaro.org>2023-09-19 18:57:50 +0300
commit3e85be98875a568b762afd2e9bfd136e22106558 (patch)
tree8d93e2fced3921dd7e9a06d8e04386255c7a4d6a /drivers/mtd/spi-nor/xmc.c
parent83e62ffa7d1b7830bdeef59b993debb61366f83a (diff)
downloadlinux-stable-3e85be98875a568b762afd2e9bfd136e22106558.tar.gz
linux-stable-3e85be98875a568b762afd2e9bfd136e22106558.tar.bz2
linux-stable-3e85be98875a568b762afd2e9bfd136e22106558.zip
mtd: spi-nor: add SNOR_ID() and SNOR_OTP()
After all the preparation, it is now time to introduce the new macros to specify flashes in our database: SNOR_ID() and SNOR_OTP(). An flash_info entry might now look like: { .id = SNOR_ID(0xef, 0x60, 0x16), .otp = SNOR_OTP(256, 3, 0x1000, 0x1000), .flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, } Signed-off-by: Michael Walle <mwalle@kernel.org> Link: https://lore.kernel.org/r/20230807-mtd-flash-info-db-rework-v3-15-e60548861b10@kernel.org Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Diffstat (limited to 'drivers/mtd/spi-nor/xmc.c')
0 files changed, 0 insertions, 0 deletions