sunxi: mmc: add support for Allwinner A523 MMC mod clock
authorAndre Przywara <andre.przywara@arm.com>
Thu, 12 Sep 2024 01:19:45 +0000 (02:19 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 27 Jul 2025 21:57:35 +0000 (22:57 +0100)
commit869d396191ed226b66d9fe99e89230b359478d82
tree6139394c179f737940ec1f59ae4a4981e0e760c9
parent14c66b9e3510aa3a6c0f99ba1534c329e38dd94f
sunxi: mmc: add support for Allwinner A523 MMC mod clock

The Allwinner A523 SoC has a slightly changed mod clock, where the P
factor, formerly a shift value, is now a second divider value.
Also the input clock is not PLL_PERIPH0 (600MHz) anymore, but
PLL_PERIPH0_400M (for MMC0/1), so adjust the input rate calculation
accordingly. MMC2 has a different set of parents, so the input clock
is 800 MHz there.
Adjust for all of this.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/mmc/sunxi_mmc.c