Home
last modified time | relevance | path

Searched refs:GPIO_PIN_PULLUP (Results 1 – 21 of 21) sorted by relevance

/freebsd-14.2/sys/dev/qcom_tlmm/
H A Dqcom_tlmm_pin.c101 if (flags & GPIO_PIN_PULLUP) { in qcom_tlmm_pin_configure()
102 pin->gp_flags |= GPIO_PIN_PULLUP; in qcom_tlmm_pin_configure()
109 } else if ((flags & (GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN)) == in qcom_tlmm_pin_configure()
110 (GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN)) { in qcom_tlmm_pin_configure()
111 pin->gp_flags |= GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN; in qcom_tlmm_pin_configure()
115 pin->gp_flags &= ~(GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN); in qcom_tlmm_pin_configure()
199 *flags |= GPIO_PIN_PULLUP; in qcom_tlmm_pin_getflags()
202 *flags |= (GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN); in qcom_tlmm_pin_getflags()
H A Dqcom_tlmm_ipq4018.c66 GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN)
/freebsd-14.2/sys/arm/ti/am335x/
H A Dam335x_gpio.c88 if (flags & GPIO_PIN_PULLUP) in am335x_gpio_set_flags()
93 if (flags & GPIO_PIN_PULLUP) in am335x_gpio_set_flags()
118 *flags = GPIO_PIN_OUTPUT | GPIO_PIN_PULLUP; in am335x_gpio_get_flags()
124 *flags = GPIO_PIN_INPUT | GPIO_PIN_PULLUP; in am335x_gpio_get_flags()
/freebsd-14.2/sys/arm/ti/omap4/
H A Domap4_gpio.c85 if (flags & GPIO_PIN_PULLUP) in omap4_gpio_set_flags()
116 *flags = GPIO_PIN_INPUT | GPIO_PIN_PULLUP; in omap4_gpio_get_flags()
/freebsd-14.2/sys/dev/gpio/
H A Dgpiospi.c166 GPIO_PIN_OUTPUT|GPIO_PIN_PULLUP); in gpio_spi_attach()
170 GPIO_PIN_OUTPUT|GPIO_PIN_PULLUP); in gpio_spi_attach()
173 GPIO_PIN_OUTPUT|GPIO_PIN_PULLUP); in gpio_spi_attach()
176 GPIO_PIN_OUTPUT|GPIO_PIN_PULLUP); in gpio_spi_attach()
H A Dacpi_gpiobus.c97 flags |= GPIO_PIN_PULLUP; in acpi_gpiobus_convflags()
162 devi->flags &= ~GPIO_PIN_PULLUP; in acpi_gpiobus_setup_devinfo()
H A Dgpiobus.c140 if (flags & GPIO_PIN_PULLUP && flags & GPIO_PIN_PULLDOWN) in gpio_check_flags()
/freebsd-14.2/sys/dev/bhnd/cores/chipc/
H A Dchipc_gpio.c361 *caps |= (GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN); in chipc_gpio_pin_getcaps()
385 *flags |= GPIO_PIN_PULLUP; in chipc_gpio_pin_getflags()
651 if (flags & GPIO_PIN_PULLUP) { in chipc_gpio_pin_update()
720 input_flag = flags & (GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN); in chipc_gpio_check_flags()
754 case GPIO_PIN_PULLUP: in chipc_gpio_check_flags()
/freebsd-14.2/sys/arm64/rockchip/
H A Drk_pinctrl.c398 rv = GPIO_PIN_PULLUP; in rk3288_resolv_bias_value()
410 if (bias & GPIO_PIN_PULLUP) in rk3288_get_bias_value()
709 rv = GPIO_PIN_PULLUP; in rk3399_resolv_bias_value()
717 rv = GPIO_PIN_PULLUP; in rk3399_resolv_bias_value()
734 if (bias & GPIO_PIN_PULLUP) in rk3399_get_bias_value()
742 if (bias & GPIO_PIN_PULLUP) in rk3399_get_bias_value()
972 return (GPIO_PIN_PULLUP); in rk3568_resolv_bias_value()
982 if (bias & GPIO_PIN_PULLUP) in rk3568_get_bias_value()
H A Drk_gpio.c76 GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN | GPIO_INTR_EDGE_BOTH | \
80 #define GPIO_FLAGS_PINCTRL (GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN)
/freebsd-14.2/sys/arm/nvidia/
H A Das3722_gpio.c366 flags = GPIO_PIN_INPUT | GPIO_PIN_PULLUP; in as3722_gpio_pin_getflags()
395 gpio_flags & GPIO_PIN_PULLUP) in as3722_gpio_get_mode()
403 gpio_flags & GPIO_PIN_PULLUP) in as3722_gpio_get_mode()
558 GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN | GPIO_PIN_INVIN | in as3722_gpio_attach()
/freebsd-14.2/sys/sys/
H A Dgpio.h71 #define GPIO_PIN_PULLUP 0x00000020 /* internal pull-up enabled */ macro
/freebsd-14.2/sys/arm/broadcom/bcm2835/
H A Dbcm2835_gpio.c71 GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN | GPIO_INTR_LEVEL_LOW | \
385 pin->gp_flags &= ~(GPIO_PIN_PULLUP|GPIO_PIN_PULLDOWN); in bcm_gpio_pin_configure()
386 if (flags & (GPIO_PIN_PULLUP|GPIO_PIN_PULLDOWN)) { in bcm_gpio_pin_configure()
387 if (flags & GPIO_PIN_PULLUP) { in bcm_gpio_pin_configure()
388 pin->gp_flags |= GPIO_PIN_PULLUP; in bcm_gpio_pin_configure()
1296 bcm_gpio_pin_setflags(dev, pin, GPIO_PIN_PULLUP); in bcm_gpio_configure_pins()
/freebsd-14.2/sys/arm64/nvidia/tegra210/
H A Dmax77620_gpio.c458 *out_flags |= GPIO_PIN_PULLUP; in max77620_gpio_get_mode()
535 if (flags & GPIO_PIN_PULLUP) in max77620_gpio_pin_setflags()
708 GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN; in max77620_gpio_attach()
/freebsd-14.2/sys/dts/
H A Dbindings-gpio.txt89 GPIO_PIN_PULLUP 0x0040 Internal pull-up enabled
/freebsd-14.2/lib/libgpio/
H A Dgpio.c251 return (gpio_pin_set_flag(handle, pin, GPIO_PIN_PULLUP)); in gpio_pin_pullup()
/freebsd-14.2/usr.sbin/gpioctl/
H A Dgpioctl.c58 { "PU", GPIO_PIN_PULLUP },
/freebsd-14.2/sys/arm/ti/
H A Dti_gpio.c314 *caps = (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_PULLUP | in ti_gpio_pin_getcaps()
633 if (flags & GPIO_PIN_PULLUP) in ti_gpio_bank_init()
/freebsd-14.2/sys/arm/allwinner/
H A Daw_gpio.c67 GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN);
491 if (flags & GPIO_PIN_PULLUP) in aw_gpio_pin_configure()
569 *flags |= GPIO_PIN_PULLUP; in aw_gpio_pin_getflags()
/freebsd-14.2/tools/test/gpioevents/
H A Dgpioevents.c631 pin_config.g_flags |= GPIO_PIN_PULLUP; in main()
/freebsd-14.2/sys/arm/mv/
H A Dgpio.c65 GPIO_PIN_TRISTATE | GPIO_PIN_PULLUP | \