From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miquel Raynal Date: Wed, 21 Nov 2018 12:40:19 +0100 Subject: [U-Boot] SPI NOR controller with direct mapping support Message-ID: <20181121124019.2f60d9aa@xps13> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hello Jagan, I have a SoC which has a portion of memory where we can map a SPI NOR portion to do direct accesses. This is only for reading requests, otherwise regular SPI transfers must be used. While there is no real support for spi-mem in spi-flash, what is the right way to implement a driver for such controller? It is more a SPI controller driver and should probably inherit from UCLASS_SPI. But inside the driver, it looks like we must access the spi_flash structure. Also, we would make use of functions like spi_flash_std_xxx from drivers/mtd/spi/ while I would definitely put the driver itself in drivers/spi/. Can you please comment on all these points? Thanks, Miqu=C3=A8l