Lines Matching refs:wp_gpio
125 int wp_gpio; member
373 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_enable()
374 gpio_set_value(host->ncfg->wp_gpio, 0); in lpc32xx_wp_enable()
382 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_disable()
383 gpio_set_value(host->ncfg->wp_gpio, 1); in lpc32xx_wp_disable()
639 ncfg->wp_gpio = of_get_named_gpio(np, "gpios", 0); in lpc32xx_parse_dt()
716 if (host->ncfg->wp_gpio == -EPROBE_DEFER) in lpc32xx_nand_probe()
718 if (gpio_is_valid(host->ncfg->wp_gpio) && in lpc32xx_nand_probe()
719 gpio_request(host->ncfg->wp_gpio, "NAND WP")) { in lpc32xx_nand_probe()
820 gpio_free(host->ncfg->wp_gpio); in lpc32xx_nand_probe()
846 gpio_free(host->ncfg->wp_gpio); in lpc32xx_nand_remove()