On Sat, Dec 10, 2016 at 3:49 AM, Cédric Le Goater <clg@xxxxxxxx> wrote: > diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig > index 4a682ee0f632..5c0efbd9dd89 100644 > --- a/drivers/mtd/spi-nor/Kconfig > +++ b/drivers/mtd/spi-nor/Kconfig > @@ -29,6 +29,16 @@ config MTD_SPI_NOR_USE_4K_SECTORS > Please note that some tools/drivers/filesystems may not work with > 4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum). > > +config SPI_ASPEED > + tristate "Aspeed flash controllers in SPI mode" > + depends on ARCH_ASPEED || COMPILE_TEST > + depends on HAS_IOMEM && OF > + help > + This enables support for the Firmware Memory controller (FMC) > + in the Aspeed AST2500 SoC when attached to SPI NOR chips, > + and support for the SPI flash memory controller (SPI) for > + the host firmware. The implementation only supports SPI NOR. > + > config SPI_ATMEL_QUADSPI > tristate "Atmel Quad SPI Controller" > depends on ARCH_AT91 || (ARM && COMPILE_TEST) > diff --git a/drivers/mtd/spi-nor/Makefile b/drivers/mtd/spi-nor/Makefile > index 121695e83542..d73d772c689c 100644 > --- a/drivers/mtd/spi-nor/Makefile > +++ b/drivers/mtd/spi-nor/Makefile > @@ -1,4 +1,5 @@ > obj-$(CONFIG_MTD_SPI_NOR) += spi-nor.o > +obj-$(CONFIG_SPI_ASPEED) += aspeed-smc.o Can we make the symbol CONFIG_SPI_ASPEED_SMC? Brendan has proposed a generic SPI master driver for the Aspeed SoC that would allow the controller to be used for non-flash devices. The obvious symbol for that driver is CONFIG_SPI_ASPEED. Cheers, Joel -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html