]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: rockchip: rk3399: Fix Unknown clock 77 on mmc@fe310000
authorMichal Suchanek <msuchanek@suse.de>
Sun, 21 Aug 2022 07:17:24 +0000 (09:17 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 4 Sep 2022 12:00:39 +0000 (20:00 +0800)
commitf103c112660217f8875398435e47d545ba934a5c
tree6e470d64d5f69beee5b7519d7f8dec265dc2c22a
parente1faa535b978958a264c9623a8ca941f0adcb860
clk: rockchip: rk3399: Fix Unknown clock 77 on mmc@fe310000

Adding some debug prints I can see:

MMC:   mmc@fe320000: Got clock clock-controller@ff760000 76
mmc@fe310000: Got clock clock-controller@ff760000 77
Unknown clock 77
rockchip_dwmmc_get_mmc_clk: err=-2
mmc@fe310000: 3, mmc@fe320000: 1, mmc@fe330000: 0

According to kernel code the SDIO clock is identical to SDMMC clock
except for the con 16->15 change.

Add support for the clock to avoid the error.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/clk/rockchip/clk_rk3399.c