Skip to content

Commit 0079e77

Browse files
committed
clk: amlogic: g12a: fix mmc A peripheral clock
The bit index of the peripheral clock for mmc A is wrong This was probably not a problem for mmc A as the peripheral is likely left enabled by the bootloader. No issues has been reported so far but it could be a problem, most likely some form of conflict between the ethernet and mmc A clock, breaking ethernet on init. Use the value provided by the documentation for mmc A before this becomes an actual problem. Fixes: 085a4ea ("clk: meson: g12a: add peripheral clock controller") Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20241213-amlogic-clk-g12a-mmca-fix-v1-1-5af421f58b64@baylibre.com Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
1 parent 2014c95 commit 0079e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/meson/g12a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4311,7 +4311,7 @@ static MESON_GATE(g12a_spicc_1, HHI_GCLK_MPEG0, 14);
43114311
static MESON_GATE(g12a_hiu_reg, HHI_GCLK_MPEG0, 19);
43124312
static MESON_GATE(g12a_mipi_dsi_phy, HHI_GCLK_MPEG0, 20);
43134313
static MESON_GATE(g12a_assist_misc, HHI_GCLK_MPEG0, 23);
4314-
static MESON_GATE(g12a_emmc_a, HHI_GCLK_MPEG0, 4);
4314+
static MESON_GATE(g12a_emmc_a, HHI_GCLK_MPEG0, 24);
43154315
static MESON_GATE(g12a_emmc_b, HHI_GCLK_MPEG0, 25);
43164316
static MESON_GATE(g12a_emmc_c, HHI_GCLK_MPEG0, 26);
43174317
static MESON_GATE(g12a_audio_codec, HHI_GCLK_MPEG0, 28);

0 commit comments

Comments
 (0)