[PATCH v3 1/5] mtd: spi-nor: add memory controllers for the Aspeed AST2500 SoC

Joel Stanley joel at jms.id.au
Sun Dec 11 21:02:07 PST 2016


On Sat, Dec 10, 2016 at 3:49 AM, Cédric Le Goater <clg at kaod.org> 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



More information about the linux-mtd mailing list