Lines Matching +full:reset +full:- +full:gpio
1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <linux/gpio.h>
7 #include <asm/proc-fns.h>
10 #include "regs-ost.h"
11 #include "reset.h"
16 static int reset_gpio = -1;
18 int init_gpio_reset(int gpio, int output, int level) in init_gpio_reset() argument
22 rc = gpio_request(gpio, "reset generator"); in init_gpio_reset()
29 rc = gpio_direction_output(gpio, level); in init_gpio_reset()
31 rc = gpio_direction_input(gpio); in init_gpio_reset()
34 gpio_free(gpio); in init_gpio_reset()
40 reset_gpio = gpio; in init_gpio_reset()
46 * Trigger GPIO reset.
47 * This covers various types of logic connecting gpio pin
48 * to RESET pins (nRESET or GPIO_RESET):
52 BUG_ON(reset_gpio == -1); in do_gpio_reset()
79 * SDRAM hangs on watchdog reset on Marvell PXA270 (erratum 71) in do_hw_reset()
80 * we put SDRAM into self-refresh to prevent that in do_hw_reset()