aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-08-24 09:06:02 -0400
committerTom Rini <trini@konsulko.com>2020-08-24 09:06:02 -0400
commit1aa3966173fe92fa3c46638ee8eb8b8491f521d6 (patch)
tree3c56e11089c590734d01bf967d0a185e3c0e9505 /include
parentd584648dad691caec3ecc7777dbfa3f1936878e5 (diff)
parentebd3f1f0d032cc35dfb8d03da7f7ade6e9a51aef (diff)
downloadu-boot-1aa3966173fe92fa3c46638ee8eb8b8491f521d6.zip
u-boot-1aa3966173fe92fa3c46638ee8eb8b8491f521d6.tar.gz
u-boot-1aa3966173fe92fa3c46638ee8eb8b8491f521d6.tar.bz2
Merge tag 'u-boot-clk-24Aug2020' of https://gitlab.denx.de/u-boot/custodians/u-boot-clk
- Add CCF clocks definitions for iMX6Q enet (ETH) - Several fixes for CCF framework - the most notable is the one, which adds get_rate helper to clk-mux.c - Improvements for clk command - better visibility and alignment.
Diffstat (limited to 'include')
-rw-r--r--include/sandbox-clk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sandbox-clk.h b/include/sandbox-clk.h
index 296cddf..c2616c2 100644
--- a/include/sandbox-clk.h
+++ b/include/sandbox-clk.h
@@ -50,6 +50,14 @@ static inline struct clk *sandbox_clk_divider(const char *name,
reg, shift, width, 0);
}
+static inline struct clk *sandbox_clk_gate(const char *name, const char *parent,
+ void __iomem *reg, u8 bit_idx,
+ u8 clk_gate_flags)
+{
+ return clk_register_gate(NULL, name, parent, CLK_SET_RATE_PARENT,
+ reg, bit_idx, clk_gate_flags, NULL);
+}
+
struct clk *sandbox_clk_register_gate2(struct device *dev, const char *name,
const char *parent_name,
unsigned long flags,