Home | History | Annotate | Download | only in gpio

Lines Matching refs:pin

19 static int axp_gpio_set_value(struct udevice *dev, unsigned pin, int val);
21 static u8 axp_get_gpio_ctrl_reg(unsigned pin)
23 switch (pin) {
36 static int axp_gpio_direction_input(struct udevice *dev, unsigned pin)
40 switch (pin) {
46 reg = axp_get_gpio_ctrl_reg(pin);
54 static int axp_gpio_direction_output(struct udevice *dev, unsigned pin,
60 switch (pin) {
69 return axp_gpio_set_value(dev, pin, val);
72 reg = axp_get_gpio_ctrl_reg(pin);
81 static int axp_gpio_get_value(struct udevice *dev, unsigned pin)
86 switch (pin) {
101 reg = axp_get_gpio_ctrl_reg(pin);
106 mask = 1 << (pin + AXP_GPIO_STATE_OFFSET);
114 static int axp_gpio_set_value(struct udevice *dev, unsigned pin, int val)
118 switch (pin) {
130 reg = axp_get_gpio_ctrl_reg(pin);