Tom Rini
2019-08-23 10:03:13 -04:00
15 changed files with 1180 additions and 40 deletions

View File

@@ -61,6 +61,7 @@ struct clk {
struct udevice *dev;
long long rate; /* in HZ */
u32 flags;
int enable_count;
/*
* Written by of_xlate. In the future, we might add more fields here.
*/

View File

@@ -20,6 +20,7 @@ enum {
SANDBOX_CLK_USDHC1_SEL,
SANDBOX_CLK_USDHC2_SEL,
SANDBOX_CLK_I2C,
SANDBOX_CLK_I2C_ROOT,
};
enum sandbox_pllv3_type {
@@ -74,4 +75,6 @@ static inline struct clk *sandbox_clk_mux(const char *name, void __iomem *reg,
width, 0);
}
int sandbox_clk_enable_count(struct clk *clk);
#endif /* __SANDBOX_CLK_H__ */