mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
dm: test: clk: add the test for the ccf gated clock
Unlike the other clock types, in the case of the gated clock, a new driver has been developed which does not use the registering routine provided by the common clock framework. The addition of the ecspi0 clock to sandbox therefore allows testing the ccf gate clock. Signed-off-by: Dario Binacchi <dariobin@libero.it> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Lukasz Majewski
parent
32f462ba3b
commit
cd16c57bd0
@@ -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,
|
||||
|
Reference in New Issue
Block a user