| /rk3399_rockchip-uboot/arch/arm/mach-uniphier/ |
| H A D | sg-regs.h | 93 .macro sg_set_pinsel, pin, muxval, mux_bits, reg_stride, ra, rd 94 ldr \ra, =(SG_PINCTRL_BASE + \pin * \mux_bits / 32 * \reg_stride) 96 and \rd, \rd, #~(((1 << \mux_bits) - 1) << (\pin * \mux_bits % 32)) 97 orr \rd, \rd, #(\muxval << (\pin * \mux_bits % 32)) 107 unsigned mux_bits, unsigned reg_stride) in sg_set_pinsel() argument 109 unsigned shift = pin * mux_bits % 32; in sg_set_pinsel() 110 unsigned long reg = SG_PINCTRL_BASE + pin * mux_bits / 32 * reg_stride; in sg_set_pinsel() 111 u32 mask = (1U << mux_bits) - 1; in sg_set_pinsel()
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/ |
| H A D | clock.c | 181 int clock_ll_set_source_bits(enum periph_id periph_id, int mux_bits, in clock_ll_set_source_bits() argument 186 switch (mux_bits) { in clock_ll_set_source_bits() 209 static int clock_ll_get_source_bits(enum periph_id periph_id, int mux_bits) in clock_ll_get_source_bits() argument 214 switch (mux_bits) { in clock_ll_get_source_bits() 408 int mux_bits, unsigned divider) in adjust_periph_pll() argument 420 clock_ll_set_source_bits(periph_id, mux_bits, source); in adjust_periph_pll() 428 int err, mux_bits, divider_bits, type; in clock_get_periph_parent() local 431 err = get_periph_clock_info(periph_id, &mux_bits, ÷r_bits, &type); in clock_get_periph_parent() 435 source = clock_ll_get_source_bits(periph_id, mux_bits); in clock_get_periph_parent() 444 int mux_bits, divider_bits, source; in clock_adjust_periph_pll_div() local [all …]
|
| /rk3399_rockchip-uboot/drivers/pinctrl/uniphier/ |
| H A D | pinctrl-uniphier-core.c | 220 unsigned mux_bits = 8; in uniphier_pinmux_set_one() local 232 mux_bits = 4; in uniphier_pinmux_set_one() 240 mux_bits /= 2; in uniphier_pinmux_set_one() 245 reg = UNIPHIER_PINCTRL_PINMUX_BASE + pin * mux_bits / 32 * reg_stride; in uniphier_pinmux_set_one() 247 shift = pin * mux_bits % 32; in uniphier_pinmux_set_one() 248 mask = (1U << mux_bits) - 1; in uniphier_pinmux_set_one() 260 muxval >>= mux_bits; in uniphier_pinmux_set_one()
|
| /rk3399_rockchip-uboot/arch/arm/include/asm/arch-tegra/ |
| H A D | clock.h | 171 int clock_ll_set_source_bits(enum periph_id periph_id, int mux_bits, 314 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, 343 enum clock_id parent, int *mux_bits, int *divider_bits);
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/tegra20/ |
| H A D | clock.c | 416 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 437 *mux_bits = MASK_BITS_31_28; in get_periph_clock_info() 439 *mux_bits = MASK_BITS_31_30; in get_periph_clock_info() 480 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument 485 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/tegra124/ |
| H A D | clock.c | 645 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 661 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info() 703 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument 708 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source() 1073 int mux_bits, divider_bits, source; in clock_set_display_rate() local 1131 &mux_bits, ÷r_bits); in clock_set_display_rate() 1132 clock_ll_set_source_bits(PERIPH_ID_DISP1, mux_bits, source); in clock_set_display_rate()
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/tegra114/ |
| H A D | clock.c | 499 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 515 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info() 557 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument 562 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/tegra30/ |
| H A D | clock.c | 479 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 495 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info() 537 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument 542 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/tegra210/ |
| H A D | clock.c | 735 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 751 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info() 793 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument 798 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
|