Searched refs:wp_gpio (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/drivers/mtd/nand/raw/ |
D | lpc32xx_mlc.c | 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() [all …]
|
D | lpc32xx_slc.c | 211 int wp_gpio; member 312 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_enable() 313 gpio_set_value(host->ncfg->wp_gpio, 0); in lpc32xx_wp_enable() 321 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_disable() 322 gpio_set_value(host->ncfg->wp_gpio, 1); in lpc32xx_wp_disable() 767 ncfg->wp_gpio = of_get_named_gpio(np, "gpios", 0); in lpc32xx_parse_dt() 855 if (host->ncfg->wp_gpio == -EPROBE_DEFER) in lpc32xx_nand_probe() 857 if (gpio_is_valid(host->ncfg->wp_gpio) && devm_gpio_request(&pdev->dev, in lpc32xx_nand_probe() 858 host->ncfg->wp_gpio, "NAND WP")) { in lpc32xx_nand_probe()
|
D | stm32_fmc2_nand.c | 235 struct gpio_desc *wp_gpio; member 1756 if (nand->wp_gpio) in stm32_fmc2_nfc_wp_enable() 1757 gpiod_set_value(nand->wp_gpio, 1); in stm32_fmc2_nfc_wp_enable() 1762 if (nand->wp_gpio) in stm32_fmc2_nfc_wp_disable() 1763 gpiod_set_value(nand->wp_gpio, 0); in stm32_fmc2_nfc_wp_disable() 1804 nand->wp_gpio = devm_fwnode_gpiod_get(nfc->dev, of_fwnode_handle(dn), in stm32_fmc2_nfc_parse_child() 1806 if (IS_ERR(nand->wp_gpio)) { in stm32_fmc2_nfc_parse_child() 1807 ret = PTR_ERR(nand->wp_gpio); in stm32_fmc2_nfc_parse_child() 1812 nand->wp_gpio = NULL; in stm32_fmc2_nfc_parse_child()
|
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()
|
/linux-6.1.9/drivers/nvmem/ |
D | core.c | 42 struct gpio_desc *wp_gpio; member 91 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in __nvmem_reg_write() 93 gpiod_set_value_cansleep(nvmem->wp_gpio, 1); in __nvmem_reg_write() 420 gpiod_put(nvmem->wp_gpio); in nvmem_release() 773 if (config->wp_gpio) in nvmem_register() 774 nvmem->wp_gpio = config->wp_gpio; in nvmem_register() 776 nvmem->wp_gpio = gpiod_get_optional(config->dev, "wp", in nvmem_register() 778 if (IS_ERR(nvmem->wp_gpio)) { in nvmem_register() 780 rval = PTR_ERR(nvmem->wp_gpio); in nvmem_register()
|
/linux-6.1.9/drivers/mtd/nand/raw/ingenic/ |
D | ingenic_nand_drv.c | 58 struct gpio_desc *wp_gpio; member 396 nand->wp_gpio = devm_gpiod_get_optional(dev, "wp", GPIOD_OUT_LOW); in ingenic_nand_init_chip() 398 if (IS_ERR(nand->wp_gpio)) { in ingenic_nand_init_chip() 399 ret = PTR_ERR(nand->wp_gpio); in ingenic_nand_init_chip()
|
/linux-6.1.9/include/linux/ |
D | nvmem-provider.h | 88 struct gpio_desc *wp_gpio; member
|