sunxi: SPL SPI: Add SPI boot support for the Allwinner H616 SoC
authorAndre Przywara <andre.przywara@arm.com>
Sun, 13 Dec 2020 20:19:43 +0000 (20:19 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 18 Oct 2022 07:15:59 +0000 (08:15 +0100)
commite50ee3a8d7328142eb24741305f751e5c0952380
treef964a11cc323d2d1ae9f11201d39bed2f98067e4
parent8094a4ed9d55b970f6c14b0e7f008a5cce3c9b98
sunxi: SPL SPI: Add SPI boot support for the Allwinner H616 SoC

The H616 SoC uses the same SPI IP as the H6, also shares the same clocks
and reset bits.
The only real difference is a slight change in the pin assignment: the
H6 uses PC5, the H616 PC4 instead. This makes for a small change in
our spi0_pinmux_setup() routine.

Apart from that, just extend the H6 #ifdef guards to also cover the H616,
using the shared CONFIG_SUN50I_GEN_H6 symbol.
Also use this symbol for the Kconfig dependency.

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