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 <mach/regs-ost.h>
11 #include <mach/reset.h>
19 static int reset_gpio = -1;
21 int init_gpio_reset(int gpio, int output, int level) in init_gpio_reset() argument
25 rc = gpio_request(gpio, "reset generator"); in init_gpio_reset()
32 rc = gpio_direction_output(gpio, level); in init_gpio_reset()
34 rc = gpio_direction_input(gpio); in init_gpio_reset()
37 gpio_free(gpio); in init_gpio_reset()
43 reset_gpio = gpio; in init_gpio_reset()
49 * Trigger GPIO reset.
50 * This covers various types of logic connecting gpio pin
51 * to RESET pins (nRESET or GPIO_RESET):
55 BUG_ON(reset_gpio == -1); in do_gpio_reset()
82 * SDRAM hangs on watchdog reset on Marvell PXA270 (erratum 71) in do_hw_reset()
83 * we put SDRAM into self-refresh to prevent that in do_hw_reset()