@@ -575,71 +575,6 @@ struct flash_info {
575575 .n_regions = (_n_regions), \
576576 })
577577
578- #define SPI_NOR_ID_2ITEMS (_id ) ((_id) >> 8) & 0xff, (_id) & 0xff
579- #define SPI_NOR_ID_3ITEMS (_id ) ((_id) >> 16) & 0xff, SPI_NOR_ID_2ITEMS(_id)
580-
581- #define SPI_NOR_ID (_jedec_id , _ext_id ) \
582- .id = &(const struct spi_nor_id){ \
583- .bytes = (const u8[]){ SPI_NOR_ID_3ITEMS(_jedec_id), \
584- SPI_NOR_ID_2ITEMS(_ext_id) }, \
585- .len = !(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0)), \
586- }
587-
588- #define SPI_NOR_ID6 (_jedec_id , _ext_id ) \
589- .id = &(const struct spi_nor_id){ \
590- .bytes = (const u8[]){ SPI_NOR_ID_3ITEMS(_jedec_id), \
591- SPI_NOR_ID_3ITEMS(_ext_id) }, \
592- .len = 6, \
593- }
594-
595- #define SPI_NOR_GEOMETRY (_sector_size , _n_sectors , _n_banks ) \
596- .size = (_sector_size) * (_n_sectors), \
597- .sector_size = (_sector_size == SZ_64K) ? 0 : (_sector_size), \
598- .n_banks = (_n_banks)
599-
600- /* Used when the "_ext_id" is two bytes at most */
601- #define INFO (_jedec_id , _ext_id , _sector_size , _n_sectors ) \
602- SPI_NOR_ID((_jedec_id), (_ext_id)), \
603- SPI_NOR_GEOMETRY((_sector_size), (_n_sectors), 0),
604-
605- #define INFO0 (_sector_size , _n_sectors ) \
606- SPI_NOR_GEOMETRY((_sector_size), (_n_sectors), 0),
607-
608- #define INFOB (_jedec_id , _ext_id , _sector_size , _n_sectors , _n_banks ) \
609- SPI_NOR_ID((_jedec_id), (_ext_id)), \
610- SPI_NOR_GEOMETRY((_sector_size), (_n_sectors), (_n_banks)),
611-
612- #define INFO6 (_jedec_id , _ext_id , _sector_size , _n_sectors ) \
613- SPI_NOR_ID6((_jedec_id), (_ext_id)), \
614- SPI_NOR_GEOMETRY((_sector_size), (_n_sectors), 0),
615-
616- #define CAT25_INFO (_sector_size , _n_sectors , _page_size , _addr_nbytes ) \
617- .size = (_sector_size) * (_n_sectors), \
618- .sector_size = (_sector_size), \
619- .page_size = (_page_size), \
620- .addr_nbytes = (_addr_nbytes), \
621- .flags = SPI_NOR_NO_ERASE | SPI_NOR_NO_FR, \
622-
623- #define OTP_INFO (_len , _n_regions , _base , _offset ) \
624- .otp = &(const struct spi_nor_otp_organization){ \
625- .len = (_len), \
626- .base = (_base), \
627- .offset = (_offset), \
628- .n_regions = (_n_regions), \
629- },
630-
631- #define FLAGS (_flags ) \
632- .flags = (_flags), \
633-
634- #define NO_SFDP_FLAGS (_no_sfdp_flags ) \
635- .no_sfdp_flags = (_no_sfdp_flags), \
636-
637- #define FIXUP_FLAGS (_fixup_flags ) \
638- .fixup_flags = (_fixup_flags), \
639-
640- #define MFR_FLAGS (_mfr_flags ) \
641- .mfr_flags = (_mfr_flags), \
642-
643578/**
644579 * struct spi_nor_manufacturer - SPI NOR manufacturer object
645580 * @name: manufacturer name
0 commit comments