From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jagan Teki Date: Thu, 13 Dec 2018 02:01:15 +0530 Subject: [U-Boot] [PATCH 05/16] mtd: spi: Port SPI NOR framework from Linux In-Reply-To: <20181212173228.12281-6-vigneshr@ti.com> References: <20181212173228.12281-1-vigneshr@ti.com> <20181212173228.12281-6-vigneshr@ti.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Dec 12, 2018 at 11:10 PM Vignesh R wrote: > > Current U-Boot SPI NOR support (sf layer) is quite outdated as it does not > support 4 byte addressing opcodes, SFDP table parsing and different types of > quad mode enable sequences. Many newer flashes no longer support BANK > registers used by sf layer to a access >16MB space. > Also, many SPI controllers have special MMIO interfaces which provide > accelerated read/write access but require knowledge of flash parameters > to make use of it. Recent spi-mem layer provides a way to support such > flashes but sf layer isn't using that. > So sync SPI NOR framework from Linux v4.19 and add spi-mem support on top. > in order to gain 4 byte addressing support, SFDP support and a way to > support SPI controllers with MMIO flash interface. > > Signed-off-by: Vignesh R > --- > drivers/mtd/spi/spi-nor-core.c | 2647 ++++++++++++++++++++++++++++++++ > include/linux/mtd/cfi.h | 32 + > include/linux/mtd/spi-nor.h | 421 +++++ Please refer many mails about this comment. I don't look for carbon copy of the code from Linux, you can use the implementation and even macro names etc but the end code would be the code that require U-Boot. - no __UBOOT ifdef - file names in u-boot should have _ other than few uclass drivers