Searched refs:stm32_clk_priv (Results 1 – 5 of 5) sorted by relevance
| /rk3399_ARM-atf/drivers/st/clk/ |
| H A D | clk-stm32-core.h | 43 struct stm32_clk_priv; 46 unsigned long (*recalc_rate)(struct stm32_clk_priv *priv, int id, unsigned long rate); 47 int (*get_parent)(struct stm32_clk_priv *priv, int id); 48 int (*set_rate)(struct stm32_clk_priv *priv, int id, unsigned long rate, 50 int (*enable)(struct stm32_clk_priv *priv, int id); 51 void (*disable)(struct stm32_clk_priv *priv, int id); 52 bool (*is_enabled)(struct stm32_clk_priv *priv, int id); 53 void (*init)(struct stm32_clk_priv *priv, int id); 64 struct stm32_clk_priv { struct 147 int clk_stm32_init(struct stm32_clk_priv *priv, uintptr_t base); [all …]
|
| H A D | clk-stm32-core.c | 26 static struct stm32_clk_priv *stm32_clock_data; 30 struct stm32_clk_priv *clk_stm32_get_priv(void) in clk_stm32_get_priv() 60 struct clk_oscillator_data *clk_oscillator_get_data(struct stm32_clk_priv *priv, int id) in clk_oscillator_get_data() 69 static int clk_gate_enable(struct stm32_clk_priv *priv, int id) in clk_gate_enable() 82 static void clk_gate_disable(struct stm32_clk_priv *priv, int id) in clk_gate_disable() 95 static bool clk_gate_is_enabled(struct stm32_clk_priv *priv, int id) in clk_gate_is_enabled() 109 void _clk_stm32_gate_disable(struct stm32_clk_priv *priv, uint16_t gate_id) in _clk_stm32_gate_disable() 121 int _clk_stm32_gate_enable(struct stm32_clk_priv *priv, uint16_t gate_id) in _clk_stm32_gate_enable() 136 const struct clk_stm32 *_clk_get(struct stm32_clk_priv *priv, int id) in _clk_get() 145 static const struct stm32_clk_ops *_clk_get_ops(struct stm32_clk_priv *priv, int id) in _clk_get_ops() [all …]
|
| H A D | clk-stm32mp2.c | 715 static void clk_oscillator_set_bypass(struct stm32_clk_priv *priv, int id, in clk_oscillator_set_bypass() 738 static void clk_oscillator_set_css(struct stm32_clk_priv *priv, int id, in clk_oscillator_set_css() 757 static void clk_oscillator_set_drive(struct stm32_clk_priv *priv, int id, in clk_oscillator_set_drive() 792 static int clk_oscillator_wait_ready(struct stm32_clk_priv *priv, int id, in clk_oscillator_wait_ready() 800 static int clk_oscillator_wait_ready_on(struct stm32_clk_priv *priv, int id) in clk_oscillator_wait_ready_on() 807 static unsigned long clk_stm32_osc_recalc_rate(struct stm32_clk_priv *priv, in clk_stm32_osc_recalc_rate() 815 static bool clk_stm32_osc_gate_is_enabled(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_gate_is_enabled() 827 static int __maybe_unused clk_stm32_osc_gate_enable(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_gate_enable() 845 static void __maybe_unused clk_stm32_osc_gate_disable(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_gate_disable() 902 static void clk_stm32_osc_init(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_init() [all …]
|
| H A D | clk-stm32mp13.c | 923 static void clk_oscillator_set_bypass(struct stm32_clk_priv *priv, int id, in clk_oscillator_set_bypass() 946 static void clk_oscillator_set_css(struct stm32_clk_priv *priv, int id, in clk_oscillator_set_css() 965 static void clk_oscillator_set_drive(struct stm32_clk_priv *priv, int id, in clk_oscillator_set_drive() 1000 static int clk_oscillator_wait_ready(struct stm32_clk_priv *priv, int id, in clk_oscillator_wait_ready() 1008 static int clk_oscillator_wait_ready_on(struct stm32_clk_priv *priv, int id) in clk_oscillator_wait_ready_on() 1014 static void clk_oscillator_check_bypass(struct stm32_clk_priv *priv, int idx, in clk_oscillator_check_bypass() 1033 static void stm32_enable_oscillator_hse(struct stm32_clk_priv *priv) in stm32_enable_oscillator_hse() 1056 static void stm32_enable_oscillator_lse(struct stm32_clk_priv *priv) in stm32_enable_oscillator_lse() 1128 static int stm32_clk_oscillators_lse_set_css(struct stm32_clk_priv *priv) in stm32_clk_oscillators_lse_set_css() 1141 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in stm32mp1_come_back_to_hsi() [all …]
|
| H A D | stm32mp1_clk.c | 70 struct stm32_clk_priv { struct 79 static struct stm32_clk_priv *stm32_clock_data; argument 81 static struct stm32_clk_priv *clk_stm32_get_priv(void) in clk_stm32_get_priv() 86 static int clk_stm32_init(struct stm32_clk_priv *priv, uintptr_t base) in clk_stm32_init() 214 int clk_mux_get_parent(struct stm32_clk_priv *priv, uint32_t mux_id) in clk_mux_get_parent() 230 static int clk_mux_set_parent(struct stm32_clk_priv *priv, uint16_t pid, uint8_t sel) in clk_mux_set_parent() 258 static int stm32_clk_configure_mux(struct stm32_clk_priv *priv, uint32_t val) in stm32_clk_configure_mux() 267 int clk_stm32_set_div(struct stm32_clk_priv *priv, uint32_t div_id, uint32_t value) in clk_stm32_set_div() 2057 static int stm32_clk_dividers_configure(struct stm32_clk_priv *priv) in stm32_clk_dividers_configure() 2080 static int stm32_clk_configure_clk(struct stm32_clk_priv *priv, uint32_t data) in stm32_clk_configure_clk() [all …]
|