Home
last modified time | relevance | path

Searched refs:mux_bits (Results 1 – 9 of 9) sorted by relevance

/external/u-boot/arch/arm/mach-uniphier/
Dsg-regs.h92 .macro sg_set_pinsel, pin, muxval, mux_bits, reg_stride, ra, rd
93 ldr \ra, =(SG_PINCTRL_BASE + \pin * \mux_bits / 32 * \reg_stride)
95 and \rd, \rd, #~(((1 << \mux_bits) - 1) << (\pin * \mux_bits % 32))
96 orr \rd, \rd, #(\muxval << (\pin * \mux_bits % 32))
106 unsigned mux_bits, unsigned reg_stride) in sg_set_pinsel() argument
108 unsigned shift = pin * mux_bits % 32; in sg_set_pinsel()
109 unsigned long reg = SG_PINCTRL_BASE + pin * mux_bits / 32 * reg_stride; in sg_set_pinsel()
110 u32 mask = (1U << mux_bits) - 1; in sg_set_pinsel()
/external/u-boot/arch/arm/mach-tegra/
Dclock.c180 int clock_ll_set_source_bits(enum periph_id periph_id, int mux_bits, in clock_ll_set_source_bits() argument
185 switch (mux_bits) { in clock_ll_set_source_bits()
208 static int clock_ll_get_source_bits(enum periph_id periph_id, int mux_bits) in clock_ll_get_source_bits() argument
213 switch (mux_bits) { in clock_ll_get_source_bits()
407 int mux_bits, unsigned divider) in adjust_periph_pll() argument
419 clock_ll_set_source_bits(periph_id, mux_bits, source); in adjust_periph_pll()
427 int err, mux_bits, divider_bits, type; in clock_get_periph_parent() local
430 err = get_periph_clock_info(periph_id, &mux_bits, &divider_bits, &type); in clock_get_periph_parent()
434 source = clock_ll_get_source_bits(periph_id, mux_bits); in clock_get_periph_parent()
443 int mux_bits, divider_bits, source; in clock_adjust_periph_pll_div() local
[all …]
/external/u-boot/drivers/pinctrl/uniphier/
Dpinctrl-uniphier-core.c337 unsigned mux_bits = 8; in uniphier_pinmux_set_one() local
349 mux_bits = 4; in uniphier_pinmux_set_one()
357 mux_bits /= 2; in uniphier_pinmux_set_one()
362 reg = UNIPHIER_PINCTRL_PINMUX_BASE + pin * mux_bits / 32 * reg_stride; in uniphier_pinmux_set_one()
364 shift = pin * mux_bits % 32; in uniphier_pinmux_set_one()
365 mask = (1U << mux_bits) - 1; in uniphier_pinmux_set_one()
377 muxval >>= mux_bits; in uniphier_pinmux_set_one()
/external/u-boot/arch/arm/include/asm/arch-tegra/
Dclock.h170 int clock_ll_set_source_bits(enum periph_id periph_id, int mux_bits,
313 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits,
342 enum clock_id parent, int *mux_bits, int *divider_bits);
/external/u-boot/arch/arm/mach-tegra/tegra20/
Dclock.c415 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument
436 *mux_bits = MASK_BITS_31_28; in get_periph_clock_info()
438 *mux_bits = MASK_BITS_31_30; in get_periph_clock_info()
479 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument
484 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
/external/u-boot/arch/arm/mach-tegra/tegra124/
Dclock.c644 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument
660 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info()
702 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument
707 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
1072 int mux_bits, divider_bits, source; in clock_set_display_rate() local
1130 &mux_bits, &divider_bits); in clock_set_display_rate()
1131 clock_ll_set_source_bits(PERIPH_ID_DISP1, mux_bits, source); in clock_set_display_rate()
/external/u-boot/arch/arm/mach-tegra/tegra114/
Dclock.c498 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument
514 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info()
556 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument
561 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
/external/u-boot/arch/arm/mach-tegra/tegra30/
Dclock.c478 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument
494 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info()
536 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument
541 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
/external/u-boot/arch/arm/mach-tegra/tegra210/
Dclock.c734 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument
750 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info()
792 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument
797 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()