Lines Matching refs:reset
23 struct gpio_desc *reset;
37 #define EZPORT_CMD_RESET 0xb9 /* reset chip */
51 static void ezport_reset(struct gpio_desc *reset)
53 gpiod_set_value(reset, 1);
55 gpiod_set_value(reset, 0);
59 static int ezport_start_programming(struct spi_device *spi, struct gpio_desc *reset)
79 /* reset with asserted chip select to switch into programming mode */
80 ezport_reset(reset);
92 static void ezport_stop_programming(struct spi_device *spi, struct gpio_desc *reset)
94 /* reset without asserted chip select to return into normal mode */
96 ezport_reset(reset);
381 dev_warn(&spi->dev, "EzPort reset failed!\n");
407 * @reset: the gpio connected to the device reset pin
414 static int ezport_flash(struct spi_device *spi, struct gpio_desc *reset, const char *fwname)
418 ret = ezport_start_programming(spi, reset);
424 ezport_stop_programming(spi, reset);
446 ret = ezport_flash(achc->ezport, achc->reset, "achc.bin");
462 ret = gpiod_get_value(achc->reset);
483 gpiod_set_value(achc->reset, value);
488 static DEVICE_ATTR_RW(reset);
533 achc->reset = devm_gpiod_get(&spi->dev, "reset", GPIOD_OUT_LOW);
534 if (IS_ERR(achc->reset))
535 return dev_err_probe(&spi->dev, PTR_ERR(achc->reset), "Could not get reset gpio\n");