/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-stmfx.c | 173 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 D | pinctrl-da850-pupd.c | 177 { .compatible = "ti,da850-pupd" }, 184 .name = "ti-da850-pupd",
|
H A D | Makefile | 21 obj-$(CONFIG_PINCTRL_DA850_PUPD) += pinctrl-da850-pupd.o
|
/openbmc/u-boot/drivers/pinctrl/ |
H A D | pinctrl_stm32.c | 244 ctl->pupd > 2 || ctl->speed > 3) in stm32_gpio_config() 263 clrsetbits_le32(®s->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 D | mediatek,mt6795-pinctrl.yaml | 101 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 D | mediatek,mt8188-pinctrl.yaml | 104 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 D | ti,da850-pupd.txt | 8 - compatible: Must be "ti,da850-pupd" 31 compatible = "ti,da850-pupd";
|
H A D | mediatek,mt8186-pinctrl.yaml | 116 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 D | mediatek,mt8195-pinctrl.yaml | 109 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 D | mediatek,mt8192-pinctrl.yaml | 92 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 D | mediatek,mt7981-pinctrl.yaml | 357 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 D | mediatek,mt7986-pinctrl.yaml | 303 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 D | pinmux-common.c | 19 #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 D | pinmux.c | 257 #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 D | funcmux.c | 15 #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 D | gpio.h | 97 enum stm32_gpio_pupd pupd; member
|
/openbmc/u-boot/arch/arm/include/asm/arch-stm32/ |
H A D | gpio.h | 96 enum stm32_gpio_pupd pupd; member
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common-v2.c | 572 * 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 D | pinctrl-rzv2m.c | 90 #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 D | pinmux.h | 152 void pinmux_set_pullupdown(enum pmux_pingrp pin, enum pmux_pull pupd);
|
/openbmc/qemu/hw/gpio/ |
H A D | stm32l4x5_gpio.c | 454 DEFINE_PROP_UINT32("pupd-reset", Stm32l4x5GpioState, pupdr_reset, 0),
|
/openbmc/linux/drivers/pinctrl/tegra/ |
H A D | pinctrl-tegra234.c | 1425 #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 D | pinctrl-tegra194.c | 1324 #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 D | stm32l4x5_soc.c | 224 qdev_prop_set_uint32(dev, "pupd-reset", in stm32l4x5_soc_realize()
|
/openbmc/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8195-cherry.dtsi | 1014 pins-low-power-pupd {
|