Searched refs:stm32_clk_priv (Results 1 – 5 of 5) sorted by relevance
/external/trusty/arm-trusted-firmware/drivers/st/clk/ |
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 …]
|
D | clk-stm32-core.c | 22 static struct stm32_clk_priv *stm32_clock_data; 26 struct stm32_clk_priv *clk_stm32_get_priv(void) in clk_stm32_get_priv() 59 struct clk_oscillator_data *clk_oscillator_get_data(struct stm32_clk_priv *priv, int id) in clk_oscillator_get_data() 68 void clk_oscillator_set_bypass(struct stm32_clk_priv *priv, int id, bool digbyp, bool bypass) in clk_oscillator_set_bypass() 90 void clk_oscillator_set_css(struct stm32_clk_priv *priv, int id, bool css) in clk_oscillator_set_css() 108 void clk_oscillator_set_drive(struct stm32_clk_priv *priv, int id, uint8_t lsedrv) in clk_oscillator_set_drive() 142 int clk_oscillator_wait_ready(struct stm32_clk_priv *priv, int id, bool ready_on) in clk_oscillator_wait_ready() 149 int clk_oscillator_wait_ready_on(struct stm32_clk_priv *priv, int id) in clk_oscillator_wait_ready_on() 154 int clk_oscillator_wait_ready_off(struct stm32_clk_priv *priv, int id) in clk_oscillator_wait_ready_off() 159 static int clk_gate_enable(struct stm32_clk_priv *priv, int id) in clk_gate_enable() [all …]
|
D | clk-stm32mp2.c | 609 static unsigned long clk_get_pll_fvco(struct stm32_clk_priv *priv, in clk_get_pll_fvco() 644 static bool _clk_stm32_pll_is_enabled(struct stm32_clk_priv *priv, const struct stm32_clk_pll *pll) in _clk_stm32_pll_is_enabled() 651 static void _clk_stm32_pll_set_on(struct stm32_clk_priv *priv, const struct stm32_clk_pll *pll) in _clk_stm32_pll_set_on() 658 static void _clk_stm32_pll_set_off(struct stm32_clk_priv *priv, const struct stm32_clk_pll *pll) in _clk_stm32_pll_set_off() 666 static int _clk_stm32_pll_wait_ready_on(struct stm32_clk_priv *priv, in _clk_stm32_pll_wait_ready_on() 685 static int _clk_stm32_pll_wait_ready_off(struct stm32_clk_priv *priv, in _clk_stm32_pll_wait_ready_off() 703 static int _clk_stm32_pll_enable(struct stm32_clk_priv *priv, const struct stm32_clk_pll *pll) in _clk_stm32_pll_enable() 714 static void _clk_stm32_pll_disable(struct stm32_clk_priv *priv, const struct stm32_clk_pll *pll) in _clk_stm32_pll_disable() 725 static bool clk_stm32_pll_is_enabled(struct stm32_clk_priv *priv, int id) in clk_stm32_pll_is_enabled() 734 static int clk_stm32_pll_enable(struct stm32_clk_priv *priv, int id) in clk_stm32_pll_enable() [all …]
|
D | clk-stm32mp13.c | 897 static void clk_oscillator_check_bypass(struct stm32_clk_priv *priv, int idx, in clk_oscillator_check_bypass() 916 static void stm32_enable_oscillator_hse(struct stm32_clk_priv *priv) in stm32_enable_oscillator_hse() 939 static void stm32_enable_oscillator_lse(struct stm32_clk_priv *priv) in stm32_enable_oscillator_lse() 1011 static int stm32_clk_oscillators_lse_set_css(struct stm32_clk_priv *priv) in stm32_clk_oscillators_lse_set_css() 1024 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in stm32mp1_come_back_to_hsi() 1045 static int stm32_clk_configure_clk_get_binding_id(struct stm32_clk_priv *priv, uint32_t data) in stm32_clk_configure_clk_get_binding_id() 1052 static int stm32_clk_configure_clk(struct stm32_clk_priv *priv, uint32_t data) in stm32_clk_configure_clk() 1078 static int stm32_clk_configure_mux(struct stm32_clk_priv *priv, uint32_t data) in stm32_clk_configure_mux() 1086 static int stm32_clk_dividers_configure(struct stm32_clk_priv *priv) in stm32_clk_dividers_configure() 1109 static int stm32_clk_source_configure(struct stm32_clk_priv *priv) in stm32_clk_source_configure() [all …]
|
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() 2048 static int stm32_clk_dividers_configure(struct stm32_clk_priv *priv) in stm32_clk_dividers_configure() 2071 static int stm32_clk_configure_clk(struct stm32_clk_priv *priv, uint32_t data) in stm32_clk_configure_clk() [all …]
|