Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/power/reset/
Dgpio-restart.c18 struct gpio_restart { struct
27 struct gpio_restart *gpio_restart = data->cb_data; in gpio_restart_notify() argument
30 gpiod_direction_output(gpio_restart->reset_gpio, 1); in gpio_restart_notify()
31 mdelay(gpio_restart->active_delay_ms); in gpio_restart_notify()
34 gpiod_set_value(gpio_restart->reset_gpio, 0); in gpio_restart_notify()
35 mdelay(gpio_restart->inactive_delay_ms); in gpio_restart_notify()
38 gpiod_set_value(gpio_restart->reset_gpio, 1); in gpio_restart_notify()
41 mdelay(gpio_restart->wait_delay_ms); in gpio_restart_notify()
50 struct gpio_restart *gpio_restart; in gpio_restart_probe() local
56 gpio_restart = devm_kzalloc(&pdev->dev, sizeof(*gpio_restart), in gpio_restart_probe()
[all …]