summaryrefslogtreecommitdiffstats
path: root/virt/Makefile
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>2023-10-06 13:39:57 +0300
committerGeert Uytterhoeven <geert+renesas@glider.be>2023-10-10 09:16:11 +0200
commit16b86e5c03c5b3ef35bf5126b35384faa97428f0 (patch)
tree7f6387fde933e7026f03cca68e58734ebac81005 /virt/Makefile
parent3e8008fcf6b7f7c65ad2718c18fb79f37007f1a5 (diff)
downloadlinux-16b86e5c03c5b3ef35bf5126b35384faa97428f0.tar.gz
linux-16b86e5c03c5b3ef35bf5126b35384faa97428f0.tar.bz2
linux-16b86e5c03c5b3ef35bf5126b35384faa97428f0.zip
clk: renesas: rzg2l: Refactor SD mux driver
Refactor SD MUX driver to be able to reuse the same code on RZ/G3S. RZ/G2{L,UL} has a limitation with regards to switching the clock source for SD MUX (MUX clock source has to be switched to 266MHz before switching b/w 533MHz and 400MHz). Rework the handling of this limitation to use a clock notifier that is registered according to platform based initialization data, so the SD MUX code can be reused on RZ/G3S. As RZ/G2{L,UL} and RZ/G3S use different bits in different registers to check if the clock switching has been done, this configuration (register offset, register bits and bitfield width) is now passed through struct cpg_core_clk::sconf (status configuration) from platform specific initialization code. Along with struct cpg_core_clk::sconf the mux table indices are also passed from platform specific initialization code. Also, mux flags are now passed to DEF_SD_MUX() as they will be used later by RZ/G3S. CPG_WEN_BIT macro has been introduced to select properly the WEN bit of various registers. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20231006103959.197485-3-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'virt/Makefile')
0 files changed, 0 insertions, 0 deletions