clk: starfive: Add flags argument to JH71X0__MUX macro
authorEmil Renner Berthing <emil.renner.berthing@canonical.com>
Tue, 19 Dec 2023 23:24:39 +0000 (01:24 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 3 Jan 2024 23:51:55 +0000 (15:51 -0800)
commita242b2051ba2ec2d042680c381fdb7e34e66278d
treec75d245e8fcdb1105180e92a642783c4c139d30d
parentb85ea95d086471afb4ad062012a4d73cd328fa86
clk: starfive: Add flags argument to JH71X0__MUX macro

This flag is needed to add the CLK_SET_RATE_PARENT flag on the gmac_tx
clock on the JH7100, which in turn is needed by the dwmac-starfive
driver to set the clock properly for 1000, 100 and 10 Mbps links.

This change was mostly made using coccinelle:

@ match @
expression idx, name, nparents;
@@
 JH71X0__MUX(
-idx, name, nparents,
+idx, name, 0, nparents,
 ...)

Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20231219232442.2460166-2-cristian.ciocaltea@collabora.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/starfive/clk-starfive-jh7100-audio.c
drivers/clk/starfive/clk-starfive-jh7100.c
drivers/clk/starfive/clk-starfive-jh7110-aon.c
drivers/clk/starfive/clk-starfive-jh7110-isp.c
drivers/clk/starfive/clk-starfive-jh7110-sys.c
drivers/clk/starfive/clk-starfive-jh71x0.h