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"
17 static int reset_gpio = -1;
19 int init_gpio_reset(int gpio, int output, int level) in init_gpio_reset() argument
23 rc = gpio_request(gpio, "reset generator"); in init_gpio_reset()
30 rc = gpio_direction_output(gpio, level); in init_gpio_reset()
32 rc = gpio_direction_input(gpio); in init_gpio_reset()
35 gpio_free(gpio); in init_gpio_reset()
41 reset_gpio = gpio; in init_gpio_reset()
47 * Trigger GPIO reset.
48 * This covers various types of logic connecting gpio pin
49 * to RESET pins (nRESET or GPIO_RESET):
53 BUG_ON(reset_gpio == -1); in do_gpio_reset()
80 * SDRAM hangs on watchdog reset on Marvell PXA270 (erratum 71) in do_hw_reset()
81 * we put SDRAM into self-refresh to prevent that in do_hw_reset()