Searched refs:mux_gpio (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/mux/ |
H A D | gpio.c | 19 struct mux_gpio { struct 25 struct mux_gpio *mux_gpio = mux_chip_priv(mux->chip); in mux_gpio_set() local 31 gpiod_set_array_value_cansleep(mux_gpio->gpios->ndescs, in mux_gpio_set() 32 mux_gpio->gpios->desc, in mux_gpio_set() 33 mux_gpio->gpios->info, values); in mux_gpio_set() 52 struct mux_gpio *mux_gpio; in mux_gpio_probe() local 61 mux_chip = devm_mux_chip_alloc(dev, 1, sizeof(*mux_gpio)); in mux_gpio_probe() 65 mux_gpio = mux_chip_priv(mux_chip); in mux_gpio_probe() 69 if (IS_ERR(mux_gpio->gpios)) in mux_gpio_probe() 70 return dev_err_probe(dev, PTR_ERR(mux_gpio->gpios), in mux_gpio_probe() [all …]
|
/openbmc/linux/drivers/fsi/ |
H A D | fsi-master-aspeed.c | 492 struct gpio_desc *routing_gpio, *mux_gpio; in tacoma_cabled_fsi_fixup() local 506 mux_gpio = devm_gpiod_get_optional(dev, "fsi-mux", GPIOD_ASIS); in tacoma_cabled_fsi_fixup() 507 if (IS_ERR(mux_gpio)) in tacoma_cabled_fsi_fixup() 508 return PTR_ERR(mux_gpio); in tacoma_cabled_fsi_fixup() 509 if (!mux_gpio) in tacoma_cabled_fsi_fixup() 526 gpiod_direction_output(mux_gpio, 0); in tacoma_cabled_fsi_fixup() 529 gpiod_direction_output(mux_gpio, 1); in tacoma_cabled_fsi_fixup()
|