]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: Skip MMC0 init when its pinmux conflicts with UART0
authorSamuel Holland <samuel@sholland.org>
Sun, 10 Apr 2022 05:13:33 +0000 (00:13 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 24 May 2022 00:14:35 +0000 (01:14 +0100)
commit3ba0a25c444a0197662367131ca2533a4bccf16a
tree145ce1a9374418bfeaab828709e821ead65477c7
parent92373de041eaf43a0b8bc11f4cb3dd2b85ccfa1e
sunxi: Skip MMC0 init when its pinmux conflicts with UART0

Currently, selecting UART0_PORT_F entirely disables MMC support on sunxi
platforms. But this is a bigger hammer then needed. Muxing UART0 to the
pins on port F only causes a conflict with MMC0, so minimize the impact
by specifically skipping MMC0 init. We can continue to use MMC1/2 if
those are enabled.

Let's also remove the preprocessor check while refacting this function.

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>
board/sunxi/board.c