public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RFC PATCH 0/1] 4-byte SPI flash addressing
@ 2016-10-17  0:51 Chris Packham
  2016-10-17  0:51 ` [U-Boot] [RFC PATCH 1/1] sf: support chips using 4-byte addressing Chris Packham
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Packham @ 2016-10-17  0:51 UTC (permalink / raw)
  To: u-boot


I'm working on a board that uses a MX25L25735E spi-nor flash chip from
Macronix. This is a 32MB chip that uses 4-bytes for addressing.
Annoyingly this chip identifies the same as a MX25L25635F the only
difference appears to be the size reported (I don't actually have a
MX25L25635F so that statement is an educated guess based on the
datasheets).

What follows is a patch that gets the flash going on the board I'm
working on. But I am wondering if instead of a config option I should
follow more closely what Linux does and add and addr_width to struct
spi_flash which gets set based on the size detected.


Chris Packham (1):
  sf: support chips using 4-byte addressing

 drivers/mtd/spi/Kconfig       | 7 +++++++
 drivers/mtd/spi/sf_internal.h | 5 +++++
 drivers/mtd/spi/spi_flash.c   | 7 +++++++
 3 files changed, 19 insertions(+)

-- 
2.10.0.479.g7c56b16

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-20  4:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-17  0:51 [U-Boot] [RFC PATCH 0/1] 4-byte SPI flash addressing Chris Packham
2016-10-17  0:51 ` [U-Boot] [RFC PATCH 1/1] sf: support chips using 4-byte addressing Chris Packham
2016-10-19  8:36   ` [U-Boot] [RFC PATCH v2] " Chris Packham
2016-10-19 11:50     ` Siva Durga Prasad Paladugu
2016-10-20  4:35       ` Vignesh R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox