Re: [PATCH] Add spi-nor driver for Realtek RTL838x/RTL839x switch SoCs

From: Tudor.Ambarus
Date: Wed Dec 16 2020 - 03:32:25 EST


On 12/15/20 11:46 PM, Bert Vermeulen wrote:
> This driver supports the spiflash core in all RTL838x/RTL839x SoCs,
> and likely some older models as well (RTL8196C).
>
Can we use SPIMEM and move this under drivers/spi/ instead?

Cheers,
ta

> Signed-off-by: Bert Vermeulen <bert@xxxxxxxx>
> ---
> drivers/mtd/spi-nor/controllers/Kconfig | 7 +
> drivers/mtd/spi-nor/controllers/Makefile | 1 +
> .../spi-nor/controllers/rtl8380-spiflash.c | 347 ++++++++++++++++++
> .../spi-nor/controllers/rtl8380-spiflash.h | 34 ++
> 4 files changed, 389 insertions(+)
> create mode 100644 drivers/mtd/spi-nor/controllers/rtl8380-spiflash.c
> create mode 100644 drivers/mtd/spi-nor/controllers/rtl8380-spiflash.h