mtd: spi-nor: add support for everspin mram flashes
Signed-off-by: Heinrich Toews <ht@twx-software.de>
This commit is contained in:
@@ -2003,6 +2003,7 @@ static const struct spi_nor_manufacturer *manufacturers[] = {
|
||||
&spi_nor_eon,
|
||||
&spi_nor_esmt,
|
||||
&spi_nor_everspin,
|
||||
&spi_mram_everspin,
|
||||
&spi_nor_fujitsu,
|
||||
&spi_nor_gigadevice,
|
||||
&spi_nor_intel,
|
||||
|
||||
@@ -635,6 +635,7 @@ extern const struct spi_nor_manufacturer spi_nor_catalyst;
|
||||
extern const struct spi_nor_manufacturer spi_nor_eon;
|
||||
extern const struct spi_nor_manufacturer spi_nor_esmt;
|
||||
extern const struct spi_nor_manufacturer spi_nor_everspin;
|
||||
extern const struct spi_nor_manufacturer spi_mram_everspin;
|
||||
extern const struct spi_nor_manufacturer spi_nor_fujitsu;
|
||||
extern const struct spi_nor_manufacturer spi_nor_gigadevice;
|
||||
extern const struct spi_nor_manufacturer spi_nor_intel;
|
||||
|
||||
@@ -16,8 +16,36 @@ static const struct flash_info everspin_nor_parts[] = {
|
||||
{ "mr25h40", CAT25_INFO(512 * 1024, 1, 256, 3) },
|
||||
};
|
||||
|
||||
static const struct flash_info everspin_mram_parts[] = {
|
||||
/* Everspin */
|
||||
{ "em256lx", INFO(0x6bbb19, 0, 32 * 1024 * 1024, 1)
|
||||
FLAGS(SPI_NOR_NO_ERASE)
|
||||
},
|
||||
{ "em128lx", INFO(0x6bbb18, 0, 16 * 1024 * 1024, 1)
|
||||
FLAGS(SPI_NOR_NO_ERASE)
|
||||
},
|
||||
{ "em064lx", INFO(0x6bbb17, 0, 8 * 1024 * 1024, 1)
|
||||
FLAGS(SPI_NOR_NO_ERASE)
|
||||
},
|
||||
{ "em032lx", INFO(0x6bbb16, 0, 4 * 1024 * 1024, 1)
|
||||
FLAGS(SPI_NOR_NO_ERASE)
|
||||
},
|
||||
{ "em016lx", INFO(0x6bbb15, 0, 2 * 1024 * 1024, 1)
|
||||
FLAGS(SPI_NOR_NO_ERASE)
|
||||
},
|
||||
{ "em008lx", INFO(0x6bbb14, 0, 1 * 1024 * 1024, 1)
|
||||
FLAGS(SPI_NOR_NO_ERASE)
|
||||
},
|
||||
};
|
||||
|
||||
const struct spi_nor_manufacturer spi_nor_everspin = {
|
||||
.name = "everspin",
|
||||
.parts = everspin_nor_parts,
|
||||
.nparts = ARRAY_SIZE(everspin_nor_parts),
|
||||
};
|
||||
|
||||
const struct spi_nor_manufacturer spi_mram_everspin = {
|
||||
.name = "everspin_mram",
|
||||
.parts = everspin_mram_parts,
|
||||
.nparts = ARRAY_SIZE(everspin_mram_parts),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user