From: Simon Goldschmidt Date: Tue, 4 Dec 2018 21:11:53 +0100 Subject: [U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework In-Reply-To: <20181204135548.640503ce@bbrezillon> References: <20181204122659.14720-1-vigneshr@ti.com> <20181204135548.640503ce@bbrezillon> 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 Am 04.12.2018 um 13:55 schrieb Boris Brezillon: > On Tue, 4 Dec 2018 17:56:48 +0530 > Vignesh R wrote: > >> 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. >> This patch series syncs SPI NOR framework from Linux v4.19. It also adds >> spi-mem support on top. >> So, we gain 4byte addressing support and SFDP support. This makes >> migrating to U-Boot MTD framework easier. > > Glad to see that happen sooner than I had expected. Looks like the > patch series is in a good shape already, and I'm happy to see the > u-boot spi-nor layer being based on the Linux one. > > Good job, and thanks again for working on that! Right, I do appreciate this! I did some compilation tests first and I'm happy to say that with the SPL_SPI_FLASH_TINY option enabled, my SPL is about 1900 byte smaller than before :-) However, my socfpga socrates board does not boot. I'll have to investigate why. I just applied this series and compiled for socfpga_socrates_defconfig. Is there anything else I should have changed to make it work? Regards, Simon