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

Tudor.Ambarus
2020-12-16T08:31:25Z

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@biot.com>
> ---
> 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