sunxi: Simplify MMC pinmux selection
authorSamuel Holland <samuel@sholland.org>
Sun, 12 Sep 2021 15:28:35 +0000 (10:28 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 11 Oct 2021 09:46:44 +0000 (10:46 +0100)
commitdda9fa734f813c0d0c29aa03bfe200950b40cfea
tree0952af22aff804e2e7a1d376b1207df8d4af8e81
parent21d314a6612564ee202d8a8189ed37d5c6abf0dd
sunxi: Simplify MMC pinmux selection

Only one board, Yones Toptech BD1078, actually uses a non-default MMC
pinmux. All other uses of these symbols select the default value or an
invalid value. To simplify things, remove support for the unused pinmux
options, and convert the remaining option to a Boolean.

This allows the pinmux to be chosen by the preprocessor, instead of
having the code parse a string at runtime (for a build-time option!).
Not only does this reduce code size, but it also allows this Kconfig
option to be used in a table-driven DM pinctrl driver.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/include/asm/arch-sunxi/gpio.h
arch/arm/mach-sunxi/Kconfig
board/sunxi/board.c
configs/A20-Olimex-SOM-EVB_defconfig
configs/Sinlinx_SinA31s_defconfig
configs/Yones_Toptech_BD1078_defconfig
configs/parrot_r16_defconfig