Home
last modified time | relevance | path

Searched full:pupd (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-stmfx.c173 u32 pupd, mask = get_mask(offset); in stmfx_pinconf_get_pupd() local
176 ret = regmap_read(pctl->stmfx->map, reg, &pupd); in stmfx_pinconf_get_pupd()
180 return !!(pupd & mask); in stmfx_pinconf_get_pupd()
184 unsigned int offset, u32 pupd) in stmfx_pinconf_set_pupd() argument
189 return regmap_write_bits(pctl->stmfx->map, reg, mask, pupd ? mask : 0); in stmfx_pinconf_set_pupd()
222 int ret, dir, type, pupd; in stmfx_pinconf_get() local
241 pupd = stmfx_pinconf_get_pupd(pctl, pin); in stmfx_pinconf_get()
242 if (pupd < 0) in stmfx_pinconf_get()
243 return pupd; in stmfx_pinconf_get()
247 if ((!dir && (!type || !pupd)) || (dir && !type)) in stmfx_pinconf_get()
[all …]
H A Dpinctrl-da850-pupd.c177 { .compatible = "ti,da850-pupd" },
184 .name = "ti-da850-pupd",
H A DMakefile21 obj-$(CONFIG_PINCTRL_DA850_PUPD) += pinctrl-da850-pupd.o
/openbmc/u-boot/drivers/pinctrl/
H A Dpinctrl_stm32.c244 ctl->pupd > 2 || ctl->speed > 3) in stm32_gpio_config()
263 clrsetbits_le32(&regs->pupdr, PUPD_MASK << index, ctl->pupd << index); in stm32_gpio_config()
312 gpio_ctl->pupd = STM32_GPIO_PUPD_UP; in prep_gpio_ctl()
314 gpio_ctl->pupd = STM32_GPIO_PUPD_DOWN; in prep_gpio_ctl()
316 gpio_ctl->pupd = STM32_GPIO_PUPD_NO; in prep_gpio_ctl()
320 gpio_ctl->pupd); in prep_gpio_ctl()
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/
H A Dmediatek,mt6795-pinctrl.yaml101 description: mt6795 pull down PUPD/R0/R1 type define value.
104 values; When pull down type is PUPD/R0/R1, adding R1R0 defines
111 description: mt6795 pull up PUPD/R0/R1 type define value.
114 values; When pull up type is PUPD/R0/R1, adding R1R0 defines will
H A Dmediatek,mt8188-pinctrl.yaml104 description: mt8188 pull down PUPD/R0/R1 type define value.
112 For pull down type is PUPD/R0/R1 type, it can add R1R0 define to
130 description: mt8188 pull up PUPD/R0/R1 type define value.
138 For pull up type is PUPD/R0/R1 type, it can add R1R0 define to set
H A Dti,da850-pupd.txt8 - compatible: Must be "ti,da850-pupd"
31 compatible = "ti,da850-pupd";
H A Dmediatek,mt8186-pinctrl.yaml116 description: mt8186 pull down PUPD/R0/R1 type define value.
124 For pull down type is PUPD/R0/R1 type, it can add R1R0 define to
161 description: mt8186 pull up PUPD/R0/R1 type define value.
169 For pull up type is PUPD/R0/R1 type, it can add R1R0 define to
H A Dmediatek,mt8195-pinctrl.yaml109 description: mt8195 pull down PUPD/R0/R1 type define value.
117 For pull down type is PUPD/R0/R1 type, it can add R1R0 define to
157 description: mt8195 pull up PUPD/R0/R1 type define value.
165 For pull up type is PUPD/R0/R1 type, it can add R1R0 define to
H A Dmediatek,mt8192-pinctrl.yaml92 description: PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0_
103 description: PUPD/R1/R0 pull up type. See MTK_PUPD_SET_R1R0_
H A Dmediatek,mt7981-pinctrl.yaml357 PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in
366 PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in
H A Dmediatek,mt7986-pinctrl.yaml303 PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in
312 PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in
/openbmc/u-boot/arch/arm/mach-tegra/
H A Dpinmux-common.c19 #define pmux_pin_pupd_isvalid(pupd) \ argument
20 (((pupd) >= PMUX_PULL_NORMAL) && ((pupd) <= PMUX_PULL_UP))
189 void pinmux_set_pullupdown(enum pmux_pingrp pin, enum pmux_pull pupd) in pinmux_set_pullupdown() argument
194 /* Error check on pin and pupd */ in pinmux_set_pullupdown()
196 assert(pmux_pin_pupd_isvalid(pupd)); in pinmux_set_pullupdown()
200 val |= (pupd << PULL_SHIFT(pin)); in pinmux_set_pullupdown()
/openbmc/u-boot/arch/arm/mach-tegra/tegra20/
H A Dpinmux.c257 #define PINALL(pingrp, f0, f1, f2, f3, mux, pupd) \ argument
266 .pull_id = pupd \
274 #define PINP(pingrp, f0, f1, f2, f3, pupd) \ argument
275 PINALL(pingrp, f0, f1, f2, f3, MUXCTL_##pingrp, PUCTL_##pupd)
H A Dfuncmux.c15 #define PINMUX(grp, mux, pupd, tri) \ argument
16 {PMUX_PINGRP_##grp, PMUX_FUNC_##mux, PMUX_PULL_##pupd, PMUX_TRI_##tri}
/openbmc/u-boot/arch/arm/mach-stm32mp/include/mach/
H A Dgpio.h97 enum stm32_gpio_pupd pupd; member
/openbmc/u-boot/arch/arm/include/asm/arch-stm32/
H A Dgpio.h96 enum stm32_gpio_pupd pupd; member
/openbmc/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-common-v2.c572 * 3. PUPD + R0 + R1
653 /* MTK HW PUPD bit: 1 for pull-down, 0 for pull-up */ in mtk_pinconf_bias_set_pupd_r1_r0()
906 /* MTK HW PUPD bit: 1 for pull-down, 0 for pull-up */ in mtk_pinconf_bias_get_pupd_r1_r0()
1103 /* If PUPD register is not supported for that pin, let's fallback to in mtk_pinconf_adv_pull_set()
1131 /* If PUPD register is not supported for that pin, let's fallback to in mtk_pinconf_adv_pull_get()
/openbmc/linux/drivers/pinctrl/renesas/
H A Dpinctrl-rzv2m.c90 #define PUPD(n) (0x24 + (n) * 0x40) macro
496 /* PUPD uses 2-bits per pin */ in rzv2m_pinctrl_pinconf_get()
499 switch ((readl(pctrl->base + PUPD(port)) >> bit) & PUPD_MASK) { in rzv2m_pinctrl_pinconf_get()
600 /* PUPD uses 2-bits per pin */ in rzv2m_pinctrl_pinconf_set()
614 rzv2m_rmw_pin_config(pctrl, PUPD(port), bit, PUPD_MASK, val); in rzv2m_pinctrl_pinconf_set()
/openbmc/u-boot/arch/arm/include/asm/arch-tegra/
H A Dpinmux.h152 void pinmux_set_pullupdown(enum pmux_pingrp pin, enum pmux_pull pupd);
/openbmc/qemu/hw/gpio/
H A Dstm32l4x5_gpio.c454 DEFINE_PROP_UINT32("pupd-reset", Stm32l4x5GpioState, pupdr_reset, 0),
/openbmc/linux/drivers/pinctrl/tegra/
H A Dpinctrl-tegra234.c1425 #define PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_io_hv, e_lpbk, e_input, \ argument
1434 .pupd_reg = PINGROUP_REG_##pupd(r), \
1615 #define PINGROUP(pg_name, f0, f1, f2, f3, r, bank, pupd, e_io_hv, e_lpbk, e_input, e_lpdr, e_pbias_… argument
1627 PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_io_hv, e_lpbk, \
H A Dpinctrl-tegra194.c1324 #define PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_io_hv, e_lpbk, e_input, \ argument
1334 .pupd_reg = PINGROUP_REG_##pupd(r), \
1571 #define PINGROUP(pg_name, f0, f1, f2, f3, r, bank, pupd, e_io_hv, e_lpbk, e_input, e_lpdr, e_pbias_… argument
1583 PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_io_hv, e_lpbk, \
/openbmc/qemu/hw/arm/
H A Dstm32l4x5_soc.c224 qdev_prop_set_uint32(dev, "pupd-reset", in stm32l4x5_soc_realize()
/openbmc/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8195-cherry.dtsi1014 pins-low-power-pupd {

12