mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 12:46:14 +02:00
clk: meson: do not fail when setting SD_EMMC_x_CLK0
Since Linux v7.0, the MMC controllers has the following properties: assigned-clocks = <&clkc CLKID_SD_EMMC_x_CLK0>; assigned-clock-rates = <24000000>; Which causes mmc controllers to fail in probe. Make sure we do not fail until we properly implement rate setup. Tested-by: Ferass El Hafidi <funderscore@postmarketos.org> # on lepotato Link: https://patch.msgid.link/20260422-u-boot-amlogic-test-v1-1-b5790d3c04e0@linaro.org Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
This commit is contained in:
parent
052988aa29
commit
723f14c946
@ -946,6 +946,11 @@ static ulong meson_clk_set_rate_by_id(struct clk *clk, unsigned long id,
|
||||
case CLKID_HDMI:
|
||||
return meson_clk_set_rate_by_id(clk, CLKID_HDMI_DIV,
|
||||
rate, current_rate);
|
||||
case CLKID_SD_EMMC_A_CLK0:
|
||||
case CLKID_SD_EMMC_B_CLK0:
|
||||
case CLKID_SD_EMMC_C_CLK0:
|
||||
/* TOFIX: implement rate set for MMC clocks */
|
||||
return 0;
|
||||
default:
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
@ -900,6 +900,11 @@ static ulong meson_clk_set_rate_by_id(struct clk *clk, unsigned long id,
|
||||
case CLKID_HDMI:
|
||||
return meson_clk_set_rate_by_id(clk, CLKID_HDMI_DIV,
|
||||
rate, current_rate);
|
||||
case CLKID_SD_EMMC_A_CLK0:
|
||||
case CLKID_SD_EMMC_B_CLK0:
|
||||
case CLKID_SD_EMMC_C_CLK0:
|
||||
/* TOFIX: implement rate set for MMC clocks */
|
||||
return 0;
|
||||
default:
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user