Searched refs:wp_gpio (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/mtd/nand/raw/ |
| H A D | lpc32xx_mlc.c | 179 struct gpio_desc *wp_gpio; member 374 if (host->wp_gpio) in lpc32xx_wp_enable() 375 gpiod_set_value_cansleep(host->wp_gpio, 1); in lpc32xx_wp_enable() 383 if (host->wp_gpio) in lpc32xx_wp_disable() 384 gpiod_set_value_cansleep(host->wp_gpio, 0); in lpc32xx_wp_disable() 728 host->wp_gpio = gpiod_get_optional(&pdev->dev, NULL, GPIOD_OUT_LOW); in lpc32xx_nand_probe() 729 res = PTR_ERR_OR_ZERO(host->wp_gpio); in lpc32xx_nand_probe() 737 gpiod_set_consumer_name(host->wp_gpio, "NAND WP"); in lpc32xx_nand_probe() 834 gpiod_put(host->wp_gpio); in lpc32xx_nand_probe() 860 gpiod_put(host->wp_gpio); in lpc32xx_nand_remove()
|
| H A D | lpc32xx_slc.c | 218 struct gpio_desc *wp_gpio; member 311 if (host->wp_gpio) in lpc32xx_wp_enable() 312 gpiod_set_value_cansleep(host->wp_gpio, 1); in lpc32xx_wp_enable() 320 if (host->wp_gpio) in lpc32xx_wp_disable() 321 gpiod_set_value_cansleep(host->wp_gpio, 0); in lpc32xx_wp_disable() 865 host->wp_gpio = devm_gpiod_get_optional(&pdev->dev, NULL, GPIOD_OUT_LOW); in lpc32xx_nand_probe() 866 res = PTR_ERR_OR_ZERO(host->wp_gpio); in lpc32xx_nand_probe() 874 gpiod_set_consumer_name(host->wp_gpio, "NAND WP"); in lpc32xx_nand_probe()
|
| H A D | stm32_fmc2_nand.c | 236 struct gpio_desc *wp_gpio; member 1789 if (nand->wp_gpio) in stm32_fmc2_nfc_wp_enable() 1790 gpiod_set_value(nand->wp_gpio, 1); in stm32_fmc2_nfc_wp_enable() 1795 if (nand->wp_gpio) in stm32_fmc2_nfc_wp_disable() 1796 gpiod_set_value(nand->wp_gpio, 0); in stm32_fmc2_nfc_wp_disable() 1837 nand->wp_gpio = devm_fwnode_gpiod_get(nfc->dev, of_fwnode_handle(dn), in stm32_fmc2_nfc_parse_child() 1839 if (IS_ERR(nand->wp_gpio)) { in stm32_fmc2_nfc_parse_child() 1840 ret = PTR_ERR(nand->wp_gpio); in stm32_fmc2_nfc_parse_child() 1845 nand->wp_gpio = NULL; in stm32_fmc2_nfc_parse_child()
|
| H A D | tegra_nand.c | 184 struct gpio_desc *wp_gpio; member 1105 nand->wp_gpio = devm_gpiod_get_optional(dev, "wp", GPIOD_OUT_LOW); in tegra_nand_chips_init() 1107 if (IS_ERR(nand->wp_gpio)) { in tegra_nand_chips_init() 1108 ret = PTR_ERR(nand->wp_gpio); in tegra_nand_chips_init()
|