| /rk3399_ARM-atf/drivers/ti/clk/include/ |
| H A D | ti_clk_div.h | 86 bool (*set_div)(struct ti_clk *clkp, uint32_t div); 91 uint32_t (*get_div)(struct ti_clk *clkp); 96 bool (*valid_div)(struct ti_clk *clkp, uint32_t div); 124 uint32_t ti_clk_div_set_freq(struct ti_clk *clkp, uint32_t target_hz, 134 uint32_t ti_clk_div_get_freq(struct ti_clk *clkp); 149 uint32_t ti_clk_div_set_freq_static_parent(struct ti_clk *clkp, uint32_t target_hz, 159 uint32_t ti_clk_div_reg_go_get_div(struct ti_clk *clkp); 170 bool ti_clk_div_reg_go_set_div(struct ti_clk *clkp, uint32_t div); 178 uint32_t ti_clk_div_reg_get_div(struct ti_clk *clkp); 187 bool ti_clk_div_reg_set_div(struct ti_clk *clkp, uint32_t div); [all …]
|
| H A D | ti_clk.h | 133 struct ti_clk { struct 159 int32_t (*init)(struct ti_clk *clkp); argument 164 bool (*set_state)(struct ti_clk *clkp, bool enabled); 169 uint32_t (*get_state)(struct ti_clk *clkp); 177 uint32_t (*set_freq)(struct ti_clk *clkp, uint32_t target_hz, 184 uint32_t (*get_freq)(struct ti_clk *clkp); 189 extern struct ti_clk soc_clocks[]; 223 uint32_t ti_clk_value_set_freq(struct ti_clk *clkp, uint32_t target_hz, 237 uint32_t ti_clk_value_get_freq(struct ti_clk *clkp); 245 uint32_t ti_clk_get_parent_freq(struct ti_clk *clkp); [all …]
|
| H A D | ti_clk_pll.h | 144 bool (*plld_valid)(struct ti_clk *clkp, uint32_t plld); 153 bool (*pllm_valid)(struct ti_clk *clkp, uint32_t pllm, bool is_frac); 167 uint32_t (*pllm_stride)(struct ti_clk *clkp, uint32_t pllm); 176 bool (*clkod_valid)(struct ti_clk *clkp, uint32_t clkod); 187 int32_t (*bin)(struct ti_clk *clkp, uint32_t plld, uint32_t pllm, 205 uint32_t (*bin_next_pllm)(struct ti_clk *clkp, uint32_t plld, 223 uint32_t (*bin_prev_pllm)(struct ti_clk *clkp, uint32_t plld, 235 uint32_t (*vco_fitness)(struct ti_clk *clkp, uint32_t vco, bool is_frac); 266 uint32_t ti_pll_calc(struct ti_clk *clkp, const struct ti_pll_data *pll_d, 280 int32_t ti_pll_init(struct ti_clk *clkp);
|
| H A D | ti_clk_mux.h | 64 bool (*set_parent)(struct ti_clk *clkp, uint8_t parent_idx); 69 const struct ti_clk_parent *(*get_parent)(struct ti_clk *clkp); 84 const struct ti_clk_parent *ti_clk_mux_get_parent(struct ti_clk *clkp); 96 bool ti_clk_mux_set_parent(struct ti_clk *clkp, uint8_t new_parent);
|
| /rk3399_ARM-atf/drivers/ti/clk/ |
| H A D | ti_clk.c | 28 uint32_t ti_clk_value_set_freq(struct ti_clk *clkp, uint32_t target_hz, in ti_clk_value_set_freq() 55 uint32_t ti_clk_value_get_freq(struct ti_clk *clkp) in ti_clk_value_get_freq() 62 uint32_t ti_clk_get_parent_freq(struct ti_clk *clkp) in ti_clk_get_parent_freq() 65 struct ti_clk *parent_clk; in ti_clk_get_parent_freq() 81 uint32_t ti_clk_generic_set_freq_parent(struct ti_clk *clkp, struct ti_clk *parent, in ti_clk_generic_set_freq_parent() 151 static uint32_t ti_clk_generic_set_freq(struct ti_clk *clkp, in ti_clk_generic_set_freq() 158 struct ti_clk *parent; in ti_clk_generic_set_freq() 185 uint32_t ti_clk_set_freq(struct ti_clk *clkp, uint32_t target_hz, in ti_clk_set_freq() 215 uint32_t ti_clk_get_freq(struct ti_clk *clkp) in ti_clk_get_freq() 232 uint32_t ti_clk_get_state(struct ti_clk *clkp) in ti_clk_get_state() [all …]
|
| H A D | ti_clk_pll_16fft.c | 111 static bool ti_pll_16fft_pllm_valid(struct ti_clk *clock_ptr __unused, uint32_t pllm, in ti_pll_16fft_pllm_valid() 133 static int32_t ti_pll_16fft_bin(struct ti_clk *clock_ptr __unused, in ti_pll_16fft_bin() 151 static uint32_t ti_pll_16fft_vco_fitness(struct ti_clk *clock_ptr __unused, in ti_pll_16fft_vco_fitness() 202 static bool ti_pll_16fft_clkod_valid(struct ti_clk *clock_ptr __unused, uint32_t clkod) in ti_pll_16fft_clkod_valid() 352 static bool ti_clk_pll_16fft_wait_for_lock(struct ti_clk *clock_ptr) in ti_clk_pll_16fft_wait_for_lock() 474 static int32_t ti_clk_pll_16fft_bypass(struct ti_clk *clock_ptr, bool bypass) in ti_clk_pll_16fft_bypass() 498 static uint32_t ti_clk_pll_16fft_get_freq_internal(struct ti_clk *clock_ptr, in ti_clk_pll_16fft_get_freq_internal() 572 static bool ti_clk_pll_16fft_program_freq(struct ti_clk *pll_clk, in ti_clk_pll_16fft_program_freq() 573 struct ti_clk *div_clk, in ti_clk_pll_16fft_program_freq() 702 static uint32_t ti_pll_16fft_set_freq(struct ti_clk *pll_clk, in ti_pll_16fft_set_freq() [all …]
|
| H A D | ti_clk_mux.c | 25 static uint32_t ti_clk_mux_get_parent_value(struct ti_clk *clkp) in ti_clk_mux_get_parent_value() 54 static const struct ti_clk_parent *ti_clk_mux_get_parent_internal(struct ti_clk *clkp) in ti_clk_mux_get_parent_internal() 72 static bool ti_clk_mux_set_parent_internal(struct ti_clk *clkp, uint8_t new_parent) in ti_clk_mux_set_parent_internal() 112 const struct ti_clk_parent *ti_clk_mux_get_parent(struct ti_clk *clkp) in ti_clk_mux_get_parent() 134 bool ti_clk_mux_set_parent(struct ti_clk *clkp, uint8_t new_parent) in ti_clk_mux_set_parent() 139 struct ti_clk *parent = NULL; in ti_clk_mux_set_parent() 140 struct ti_clk *op_parent = NULL; in ti_clk_mux_set_parent()
|
| H A D | ti_clk_fixed.c | 19 static uint32_t ti_clk_fixed_get_freq(struct ti_clk *clkp) in ti_clk_fixed_get_freq() 31 static uint32_t ti_clk_fixed_get_state(struct ti_clk *clkp __unused) in ti_clk_fixed_get_state()
|
| H A D | ti_clk_div.c | 25 uint32_t ti_clk_get_div(struct ti_clk *clkp) in ti_clk_get_div() 39 static uint32_t ti_clk_div_set_freq_dyn_parent(struct ti_clk *clkp, uint32_t target_hz, in ti_clk_div_set_freq_dyn_parent() 61 struct ti_clk *parent = NULL; in ti_clk_div_set_freq_dyn_parent() 193 uint32_t ti_clk_div_set_freq_static_parent(struct ti_clk *clkp, uint32_t target_hz, in ti_clk_div_set_freq_static_parent() 279 uint32_t ti_clk_div_set_freq(struct ti_clk *clkp, uint32_t target_hz, in ti_clk_div_set_freq() 306 uint32_t ti_clk_div_get_freq(struct ti_clk *clkp) in ti_clk_div_get_freq() 317 int32_t ti_clk_div_init(struct ti_clk *clkp) in ti_clk_div_init() 344 uint32_t ti_clk_div_reg_get_div(struct ti_clk *clkp) in ti_clk_div_reg_get_div() 381 bool ti_clk_div_reg_set_div(struct ti_clk *clkp, uint32_t div) in ti_clk_div_reg_set_div() 436 uint32_t ti_clk_div_reg_go_get_div(struct ti_clk *clkp) in ti_clk_div_reg_go_get_div() [all …]
|
| H A D | ti_clk_dev.c | 37 static bool ti_clk_from_device_set_state(struct ti_clk *clkp __maybe_unused, in ti_clk_from_device_set_state() 45 static uint32_t ti_clk_from_device_get_state(struct ti_clk *clkp) in ti_clk_from_device_get_state()
|
| H A D | ti_clk_soc_hfosc0.c | 32 static uint32_t ti_clk_soc_hfosc0_get_freq(struct ti_clk *clk_ptr) in ti_clk_soc_hfosc0_get_freq() 94 static uint32_t ti_clk_soc_hfosc0_get_state(struct ti_clk *clk_ptr __unused) in ti_clk_soc_hfosc0_get_state()
|
| H A D | ti_clk_soc_lfosc0.c | 29 static uint32_t ti_clk_soc_lfosc0_get_freq(struct ti_clk *clk_ptr) in ti_clk_soc_lfosc0_get_freq() 66 static uint32_t ti_clk_soc_lfosc0_get_state(struct ti_clk *clk_ptr) in ti_clk_soc_lfosc0_get_state()
|
| H A D | ti_clk.mk | 19 drivers/ti/clk/ti_clk.c \
|
| H A D | ti_clk_pllctrl.c | 31 static const struct ti_clk_parent *ti_clk_pllctrl_mux_get_parent(struct ti_clk *clkp) in ti_clk_pllctrl_mux_get_parent()
|
| H A D | ti_pll.c | 26 struct ti_clk *clk; 543 static inline void ti_pll_find_pllm(struct ti_clk *clkp, const struct ti_pll_data *data, in ti_pll_find_pllm() 715 struct ti_clk *clkp = consider_data->clk; in ti_pll_internal_calc() 1128 uint32_t ti_pll_calc(struct ti_clk *clkp, const struct ti_pll_data *data, in ti_pll_calc() 1202 int32_t ti_pll_init(struct ti_clk *clkp) in ti_pll_init()
|
| /rk3399_ARM-atf/drivers/ti/pd/ |
| H A D | ti_device_clk.c | 55 struct ti_clk *ti_dev_get_clk(struct ti_device *dev, ti_dev_clk_idx_t idx) in ti_dev_get_clk() 67 struct ti_clk *clkp = NULL; in ti_device_clk_set_gated() 123 struct ti_clk *clkp; in ti_device_clk_set_parent() 189 struct ti_clk *clkp; in ti_device_clk_get_parent() 243 struct ti_clk *clkp; in ti_device_clk_get_num_parents() 294 struct ti_clk *parent = NULL; in ti_dev_clk_set_freq() 383 struct ti_clk *clkp; in ti_device_clk_get_freq() 408 struct ti_clk *clkp = NULL; in ti_device_clk_enable() 423 struct ti_clk *clkp = NULL; in ti_device_clk_disable() 437 struct ti_clk *clkp = NULL; in ti_device_clk_init()
|
| H A D | ti_psc.c | 188 struct ti_clk *clkp = ti_clk_lookup(data->clock_dep[i]); in psc_pd_clk_get() 254 struct ti_clk *clkp = ti_clk_lookup(data->clock_dep[i]); in psc_pd_clk_put() 707 struct ti_clk *clkp = ti_clk_lookup(data->clock_dep[0]); in lpsc_module_clk_get() 737 struct ti_clk *clkp = ti_clk_lookup(data->clock_dep[0]); in lpsc_module_clk_put()
|
| /rk3399_ARM-atf/plat/ti/k3low/ |
| H A D | platform.mk | 15 include drivers/ti/clk/ti_clk.mk
|
| /rk3399_ARM-atf/drivers/ti/pd/include/ |
| H A D | ti_device_clk.h | 161 struct ti_clk *ti_dev_get_clk(struct ti_device *dev, ti_dev_clk_idx_t clk_idx);
|
| /rk3399_ARM-atf/plat/ti/k3low/common/pm/ |
| H A D | ti_clocks.c | 2035 struct ti_clk soc_clocks[] = {
|