* [PATCH 1/2] mtd: spi-nor: Match jedec,spi-nor @ 2016-02-11 10:24 Sascha Hauer 2016-02-11 10:24 ` [PATCH 2/2] mtd: spi-nor: Add support for s25fl116k Sascha Hauer 0 siblings, 1 reply; 2+ messages in thread From: Sascha Hauer @ 2016-02-11 10:24 UTC (permalink / raw) To: Barebox List It is recommended to use jedec,spi-nor instead of specifying the exact flash type (which is autodetected via Jedec ID anyway), so add the compatible entry to the driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> --- drivers/mtd/devices/m25p80.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index d627690..656a7f5 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -298,6 +298,8 @@ static __maybe_unused struct of_device_id m25p80_dt_ids[] = { { .compatible = "m25p80", }, { + .compatible = "jedec,spi-nor", + }, { /* sentinel */ } }; -- 2.7.0.rc3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] mtd: spi-nor: Add support for s25fl116k 2016-02-11 10:24 [PATCH 1/2] mtd: spi-nor: Match jedec,spi-nor Sascha Hauer @ 2016-02-11 10:24 ` Sascha Hauer 0 siblings, 0 replies; 2+ messages in thread From: Sascha Hauer @ 2016-02-11 10:24 UTC (permalink / raw) To: Barebox List The Spansion s25fl116k is a 16MBit flash memory. Add the flash info entry for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 908aacb..4b55b0c 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -571,6 +571,7 @@ static const struct spi_device_id spi_nor_ids[] = { { "s25fl008k", INFO(0xef4014, 0, 64 * 1024, 16, SECT_4K) }, { "s25fl016k", INFO(0xef4015, 0, 64 * 1024, 32, SECT_4K) }, { "s25fl064k", INFO(0xef4017, 0, 64 * 1024, 128, SECT_4K) }, + { "s25fl116k", INFO(0x014015, 0, 64 * 1024, 32, SECT_4K) }, { "s25fl132k", INFO(0x014016, 0, 64 * 1024, 64, 0) }, { "s25fl204k", INFO(0x014013, 0, 64 * 1024, 8, SECT_4K) }, -- 2.7.0.rc3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-11 10:25 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-02-11 10:24 [PATCH 1/2] mtd: spi-nor: Match jedec,spi-nor Sascha Hauer 2016-02-11 10:24 ` [PATCH 2/2] mtd: spi-nor: Add support for s25fl116k Sascha Hauer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox