summaryrefslogtreecommitdiff
path: root/drivers/clk/renesas/rcar-cpg-lib.h
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2021-11-10 22:15:54 +0300
committerGeert Uytterhoeven <geert+renesas@glider.be>2021-11-19 13:32:39 +0300
commitbb6d3fa98a418b071c5f735e75558604f5f4af66 (patch)
tree24b49efbe47f240e566c1c27240ab9ce0847ddd1 /drivers/clk/renesas/rcar-cpg-lib.h
parent627151b4966fe68029cd14aa5fd81f5f0c67fa26 (diff)
downloadlinux-bb6d3fa98a418b071c5f735e75558604f5f4af66.tar.xz
clk: renesas: rcar-gen3: Switch to new SD clock handling
The old SD handling code was huge and could not handle all the details which showed up on R-Car Gen3 SoCs meanwhile. It is time to switch to another design. Have SDnH a separate clock, use the existing divider clocks and move the errata handling from the clock driver to the SDHI driver where it belongs. This patch removes the old SD handling code and switch to the new one. This updates the SDHI driver at the same time. Because the SDHI driver can only communicate with the clock driver via clk_set_rate(), I don't see an alternative to this flag-day-approach, so we cross subsystems here. The patch sadly looks messy for the CPG lib, but it is basically a huge chunk of code removed and smaller chunks added. It looks much better when you just view the resulting source file. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> # For MMC Link: https://lore.kernel.org/r/20211110191610.5664-6-wsa+renesas@sang-engineering.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'drivers/clk/renesas/rcar-cpg-lib.h')
-rw-r--r--drivers/clk/renesas/rcar-cpg-lib.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/renesas/rcar-cpg-lib.h b/drivers/clk/renesas/rcar-cpg-lib.h
index d001722ec13f..94627df1c94c 100644
--- a/drivers/clk/renesas/rcar-cpg-lib.h
+++ b/drivers/clk/renesas/rcar-cpg-lib.h
@@ -31,8 +31,7 @@ struct clk * __init cpg_sdh_clk_register(const char *name,
struct raw_notifier_head *notifiers);
struct clk * __init cpg_sd_clk_register(const char *name,
- void __iomem *base, unsigned int offset, const char *parent_name,
- struct raw_notifier_head *notifiers, bool skip_first);
+ void __iomem *sdnckcr, const char *parent_name);
struct clk * __init cpg_rpc_clk_register(const char *name,
void __iomem *rpcckcr, const char *parent_name,