diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2018-01-15 16:44:39 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-01-24 23:27:22 +0100 |
commit | d26286715f879baeb77e6abae67ed5bf44045aad (patch) | |
tree | 3a71e54a29cba5b6fce0e2d0cbb7ae62b6f2d05e /drivers/clk/renesas/renesas-cpg-mssr.h | |
parent | 65f1bbf678ed4a9c95c5664815954cb577400f4a (diff) | |
download | u-boot-d26286715f879baeb77e6abae67ed5bf44045aad.tar.gz |
clk: renesas: Split out code shared between Gen2 and Gen3
Pull code which is common for RCar Gen2 and RCar Gen3 into
separate source file. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'drivers/clk/renesas/renesas-cpg-mssr.h')
-rw-r--r-- | drivers/clk/renesas/renesas-cpg-mssr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/clk/renesas/renesas-cpg-mssr.h b/drivers/clk/renesas/renesas-cpg-mssr.h index a169345be8..d11145ad90 100644 --- a/drivers/clk/renesas/renesas-cpg-mssr.h +++ b/drivers/clk/renesas/renesas-cpg-mssr.h @@ -95,4 +95,14 @@ struct mstp_stop_table { #define TSTR0 0x04 #define TSTR0_STR0 BIT(0) +bool renesas_clk_is_mod(struct clk *clk); +int renesas_clk_get_mod(struct clk *clk, struct cpg_mssr_info *info, + const struct mssr_mod_clk **mssr); +int renesas_clk_get_core(struct clk *clk, struct cpg_mssr_info *info, + const struct cpg_core_clk **core); +int renesas_clk_get_parent(struct clk *clk, struct cpg_mssr_info *info, + struct clk *parent); +int renesas_clk_endisable(struct clk *clk, void __iomem *base, bool enable); +int renesas_clk_remove(void __iomem *base, struct cpg_mssr_info *info); + #endif /* __DRIVERS_CLK_RENESAS_CPG_MSSR__ */ |