[PATCH v2 2/5] sunxi: spl: spi: Clean up SPI0 pinmux setting
Jernej Škrabec
jernej.skrabec at gmail.com
Sat May 16 07:04:37 CEST 2026
Dne sobota, 16. maj 2026 ob 01:45:58 Srednjeevropski poletni čas je Andre Przywara napisal(a):
> The function to set the pinmux for the Port C SPI0 pins was looking more
> like a logic puzzle from a magazine than something that readers could
> understand and extend.
>
> Replace the convoluted pinmux setup, grouped by pin, with a simple array
> of the four pins involved, and just initialise this array at build time,
> based on the selected SoC.
>
> This makes it easy to see which pins are needed, and even easier to extend.
>
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec at gmail.com>
Best regards,
Jernej
More information about the U-Boot
mailing list