| /openbmc/u-boot/arch/arm/include/asm/arch-mx7/ |
| H A D | clock_slice.h | 98 int clock_set_src(enum clk_root_index clock_id, enum clk_root_src clock_src); 99 int clock_get_src(enum clk_root_index clock_id, enum clk_root_src *p_clock_src); 100 int clock_set_prediv(enum clk_root_index clock_id, enum root_pre_div pre_div); 101 int clock_get_prediv(enum clk_root_index clock_id, enum root_pre_div *pre_div); 102 int clock_set_postdiv(enum clk_root_index clock_id, enum root_post_div div); 103 int clock_get_postdiv(enum clk_root_index clock_id, enum root_post_div *div); 104 int clock_set_autopostdiv(enum clk_root_index clock_id, enum root_auto_div div, 106 int clock_get_autopostdiv(enum clk_root_index clock_id, enum root_auto_div *div, 108 int clock_get_target_val(enum clk_root_index clock_id, u32 *val); 109 int clock_set_target_val(enum clk_root_index clock_id, u32 val); [all …]
|
| H A D | clock.h | 325 u32 get_root_clk(enum clk_root_index clock_id);
|
| /openbmc/u-boot/arch/arm/mach-imx/mx7/ |
| H A D | clock_slice.c | 375 static int select(enum clk_root_index clock_id) in select() argument 383 if (clock_id == p->entry) in select() 409 int clock_set_src(enum clk_root_index clock_id, enum clk_root_src clock_src) in clock_set_src() argument 414 if (clock_id >= CLK_ROOT_MAX) in clock_set_src() 417 root_entry = select(clock_id); in clock_set_src() 425 reg = __raw_readl(&imx_ccm->root[clock_id].target_root); in clock_set_src() 428 __raw_writel(reg, &imx_ccm->root[clock_id].target_root); in clock_set_src() 434 int clock_get_src(enum clk_root_index clock_id, enum clk_root_src *p_clock_src) in clock_get_src() argument 440 if (clock_id >= CLK_ROOT_MAX) in clock_get_src() 443 val = __raw_readl(&imx_ccm->root[clock_id].target_root); in clock_get_src() [all …]
|
| H A D | clock.c | 437 u32 get_root_clk(enum clk_root_index clock_id) in get_root_clk() argument 443 if (clock_root_enabled(clock_id) <= 0) in get_root_clk() 446 if (clock_get_prediv(clock_id, &pre_podf) < 0) in get_root_clk() 449 if (clock_get_postdiv(clock_id, &post_podf) < 0) in get_root_clk() 452 if (clock_get_autopostdiv(clock_id, &auto_podf, &auto_en) < 0) in get_root_clk() 458 if (clock_get_src(clock_id, &root_src) < 0) in get_root_clk()
|
| /openbmc/u-boot/arch/arm/include/asm/arch-tegra/ |
| H A D | clock.h | 61 unsigned long clock_start_pll(enum clock_id id, u32 divm, u32 divn, 73 int clock_set_pllout(enum clock_id clkid, enum pll_out_id pllout, 88 int clock_ll_read_pll(enum clock_id clkid, u32 *divm, u32 *divn, 196 enum clock_id clock_get_periph_parent(enum periph_id periph_id); 208 enum clock_id parent, unsigned rate); 221 enum clock_id parent); 237 enum clock_id parent, unsigned rate, int *extra_div); 245 unsigned clock_get_rate(enum clock_id clkid); 297 struct clk_pll_simple *clock_get_simple_pll(enum clock_id clkid); 327 enum clock_id get_periph_clock_id(enum periph_id periph_id, int source); [all …]
|
| /openbmc/u-boot/arch/arm/mach-imx/imx8m/ |
| H A D | clock_slice.c | 478 static int select(enum clk_root_index clock_id) in select() argument 486 if (clock_id == p->entry) in select() 532 int clock_get_target_val(enum clk_root_index clock_id, u32 *val) in clock_get_target_val() argument 538 if (clock_id >= CLK_ROOT_MAX) in clock_get_target_val() 541 root_entry = select(clock_id); in clock_get_target_val() 555 int clock_set_target_val(enum clk_root_index clock_id, u32 val) in clock_set_target_val() argument 561 if (clock_id >= CLK_ROOT_MAX) in clock_set_target_val() 564 root_entry = select(clock_id); in clock_set_target_val() 578 int clock_root_enabled(enum clk_root_index clock_id) in clock_root_enabled() argument 585 if (clock_id >= CLK_ROOT_MAX) in clock_root_enabled() [all …]
|
| H A D | clock.c | 285 static u32 get_root_clk(enum clk_root_index clock_id) in get_root_clk() argument 290 if (clock_root_enabled(clock_id) <= 0) in get_root_clk() 293 if (clock_get_prediv(clock_id, &pre_podf) < 0) in get_root_clk() 296 if (clock_get_postdiv(clock_id, &post_podf) < 0) in get_root_clk() 299 if (clock_get_src(clock_id, &root_src) < 0) in get_root_clk()
|
| /openbmc/u-boot/arch/arm/mach-tegra/ |
| H A D | clock.c | 71 static struct clk_pll *get_pll(enum clock_id clkid) in get_pll() 77 if (clkid >= (enum clock_id)TEGRA_CLK_PLLS) { in get_pll() 84 __weak struct clk_pll_simple *clock_get_simple_pll(enum clock_id clkid) in clock_get_simple_pll() 89 int clock_ll_read_pll(enum clock_id clkid, u32 *divm, u32 *divn, in clock_ll_read_pll() 113 unsigned long clock_start_pll(enum clock_id clkid, u32 divm, u32 divn, in clock_start_pll() 121 if (clkid < (enum clock_id)TEGRA_CLK_PLLS) { in clock_start_pll() 263 int clock_set_pllout(enum clock_id clkid, enum pll_out_id pllout, unsigned rate) in clock_set_pllout() 310 enum clock_id parent) in clock_get_periph_rate() 425 enum clock_id clock_get_periph_parent(enum periph_id periph_id) in clock_get_periph_parent() 440 enum clock_id parent, unsigned rate, int *extra_div) in clock_adjust_periph_pll_div() [all …]
|
| /openbmc/u-boot/arch/arm/include/asm/arch-imx8m/ |
| H A D | clock.h | 664 int clock_root_enabled(enum clk_root_index clock_id); 665 int clock_root_cfg(enum clk_root_index clock_id, enum root_pre_div pre_div, 667 int clock_set_target_val(enum clk_root_index clock_id, u32 val); 668 int clock_get_target_val(enum clk_root_index clock_id, u32 *val); 669 int clock_get_prediv(enum clk_root_index clock_id, enum root_pre_div *pre_div); 670 int clock_get_postdiv(enum clk_root_index clock_id, 672 int clock_get_src(enum clk_root_index clock_id, enum clk_root_src *p_clock_src);
|
| /openbmc/u-boot/drivers/clk/tegra/ |
| H A D | tegra-car-clk.c | 41 enum clock_id parent; in tegra_car_clk_get_rate() 52 enum clock_id parent; in tegra_car_clk_set_rate()
|
| /openbmc/u-boot/arch/arm/mach-bcm283x/ |
| H A D | msg.c | 67 int bcm2835_get_mmc_clock(u32 clock_id) in bcm2835_get_mmc_clock() argument 78 msg_clk->get_clock_rate.body.req.clock_id = clock_id; in bcm2835_get_mmc_clock()
|
| /openbmc/u-boot/arch/arm/mach-bcm283x/include/mach/ |
| H A D | msg.h | 23 int bcm2835_get_mmc_clock(u32 clock_id);
|
| H A D | mbox.h | 242 u32 clock_id; member 245 u32 clock_id; member
|
| /openbmc/u-boot/arch/arm/include/asm/arch-tegra20/ |
| H A D | clock-tables.h | 13 enum clock_id { enum
|
| /openbmc/openbmc-tools/pwmtachtool/src/ |
| H A D | EINTR_wrappers.h | 61 int sigwrap_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, struct …
|
| H A D | EINTR_wrappers.c | 238 int sigwrap_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, struct t… in sigwrap_clock_nanosleep() argument 249 int Result = clock_nanosleep(clock_id, flags, &Wait, remain); in sigwrap_clock_nanosleep()
|
| /openbmc/openbmc-tools/adcapp/src/ |
| H A D | EINTR_wrappers.h | 61 int sigwrap_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, struct …
|
| H A D | EINTR_wrappers.c | 265 int sigwrap_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, struct t… in sigwrap_clock_nanosleep() argument 276 int Result = clock_nanosleep(clock_id, flags, &Wait, remain); in sigwrap_clock_nanosleep()
|
| /openbmc/u-boot/arch/arm/mach-tegra/tegra20/ |
| H A D | clock.c | 60 static enum clock_id clock_source[CLOCK_TYPE_COUNT][CLOCK_MAX_MUX] = { 447 enum clock_id get_periph_clock_id(enum periph_id periph_id, int source) in get_periph_clock_id() 479 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source()
|
| /openbmc/u-boot/arch/arm/include/asm/arch-tegra30/ |
| H A D | clock-tables.h | 12 enum clock_id { enum
|
| /openbmc/u-boot/arch/arm/include/asm/arch-tegra114/ |
| H A D | clock-tables.h | 12 enum clock_id { enum
|
| /openbmc/u-boot/arch/arm/mach-tegra/tegra114/ |
| H A D | clock.c | 63 static enum clock_id clock_source[CLOCK_TYPE_COUNT][CLOCK_MAX_MUX+1] = { 524 enum clock_id get_periph_clock_id(enum periph_id periph_id, int source) in get_periph_clock_id() 556 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source()
|
| /openbmc/u-boot/arch/arm/mach-tegra/tegra30/ |
| H A D | clock.c | 63 static enum clock_id clock_source[CLOCK_TYPE_COUNT][CLOCK_MAX_MUX+1] = { 504 enum clock_id get_periph_clock_id(enum periph_id periph_id, int source) in get_periph_clock_id() 536 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source()
|
| /openbmc/u-boot/arch/arm/include/asm/arch-tegra124/ |
| H A D | clock-tables.h | 13 enum clock_id { enum
|
| /openbmc/u-boot/arch/arm/mach-tegra/tegra124/ |
| H A D | clock.c | 73 static enum clock_id clock_source[CLOCK_TYPE_COUNT][CLOCK_MAX_MUX+1] = { 670 enum clock_id get_periph_clock_id(enum periph_id periph_id, int source) in get_periph_clock_id() 702 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() 1149 struct clk_pll_simple *clock_get_simple_pll(enum clock_id clkid) in clock_get_simple_pll()
|