sunxi: SPL SPI: Add SPI boot support for the Allwinner R40 SoC
authorAndre Przywara <andre.przywara@arm.com>
Tue, 28 Jan 2020 00:46:42 +0000 (00:46 +0000)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 18 Mar 2020 12:41:53 +0000 (18:11 +0530)
commitda19a0dbc817fcda7a564360767e02b5c174cf1e
tree6e1e94e6f947444da5d7afe90688dd33e1ef1c53
parent56f51f3875144822415757f1887d2254b6b8e937
sunxi: SPL SPI: Add SPI boot support for the Allwinner R40 SoC

Now that we can easily select an SoC specific SPI0 base address, adding
support for the Allwinner R40 is fairly trivial:
We set the base address, add this SoC to the ones that use PC23 and
enable it in Kconfig.

This allows booting from SPI flash on R40 boards.

Tested on a Bananapi M2 Berry with SPI flash connected to the header pins.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
arch/arm/mach-sunxi/Kconfig
arch/arm/mach-sunxi/spl_spi_sunxi.c