linux-yocto/drivers/clk/sunxi-ng
Andre Przywara c4bfea4b61 clk: sunxi-ng: d1: Add missing divider for MMC mod clocks
[ Upstream commit 98e6da673c ]

The D1/R528/T113 SoCs have a hidden divider of 2 in the MMC mod clocks,
just as other recent SoCs. So far we did not describe that, which led
to the resulting MMC clock rate to be only half of its intended value.

Use a macro that allows to describe a fixed post-divider, to compensate
for that divisor.

This brings the MMC performance on those SoCs to its expected level,
so about 23 MB/s for SD cards, instead of the 11 MB/s measured so far.

Fixes: 35b97bb941 ("clk: sunxi-ng: Add support for the D1 SoC clocks")
Reported-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Link: https://patch.msgid.link/20250501120631.837186-1-andre.przywara@arm.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-04 14:40:19 +02:00
..
ccu_common.c
ccu_common.h
ccu_div.c
ccu_div.h
ccu_frac.c
ccu_frac.h
ccu_gate.c
ccu_gate.h
ccu_mmc_timing.c
ccu_mp.c
ccu_mp.h clk: sunxi-ng: d1: Add missing divider for MMC mod clocks 2025-06-04 14:40:19 +02:00
ccu_mult.c
ccu_mult.h
ccu_mux.c
ccu_mux.h
ccu_nk.c
ccu_nk.h
ccu_nkm.c
ccu_nkm.h
ccu_nkmp.c
ccu_nkmp.h
ccu_nm.c
ccu_nm.h
ccu_phase.c
ccu_phase.h
ccu_reset.c
ccu_reset.h
ccu_sdm.c
ccu_sdm.h
ccu-sun4i-a10.c
ccu-sun4i-a10.h
ccu-sun5i.c
ccu-sun5i.h
ccu-sun6i-a31.c
ccu-sun6i-a31.h
ccu-sun6i-rtc.c
ccu-sun6i-rtc.h
ccu-sun8i-a23-a33.h
ccu-sun8i-a23.c
ccu-sun8i-a33.c
ccu-sun8i-a83t.c
ccu-sun8i-a83t.h
ccu-sun8i-de2.c
ccu-sun8i-de2.h
ccu-sun8i-h3.c
ccu-sun8i-h3.h
ccu-sun8i-r.c
ccu-sun8i-r.h
ccu-sun8i-r40.c
ccu-sun8i-r40.h
ccu-sun8i-v3s.c
ccu-sun8i-v3s.h
ccu-sun9i-a80-de.c
ccu-sun9i-a80-de.h
ccu-sun9i-a80-usb.c
ccu-sun9i-a80-usb.h
ccu-sun9i-a80.c
ccu-sun9i-a80.h
ccu-sun20i-d1-r.c
ccu-sun20i-d1-r.h
ccu-sun20i-d1.c clk: sunxi-ng: d1: Add missing divider for MMC mod clocks 2025-06-04 14:40:19 +02:00
ccu-sun20i-d1.h
ccu-sun50i-a64.c
ccu-sun50i-a64.h
ccu-sun50i-a100-r.c
ccu-sun50i-a100-r.h
ccu-sun50i-a100.c clk: sunxi-ng: a100: enable MMC clock reparenting 2025-02-21 13:49:41 +01:00
ccu-sun50i-a100.h
ccu-sun50i-h6-r.c
ccu-sun50i-h6-r.h
ccu-sun50i-h6.c
ccu-sun50i-h6.h
ccu-sun50i-h616.c
ccu-sun50i-h616.h
ccu-suniv-f1c100s.c
ccu-suniv-f1c100s.h
Kconfig
Makefile