Searched refs:wp_gpio (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
D | lpc32xx_mlc.c | 126 int wp_gpio; member 374 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_enable() 375 gpio_set_value(host->ncfg->wp_gpio, 0); in lpc32xx_wp_enable() 383 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_disable() 384 gpio_set_value(host->ncfg->wp_gpio, 1); in lpc32xx_wp_disable() 640 ncfg->wp_gpio = of_get_named_gpio(np, "gpios", 0); in lpc32xx_parse_dt() 717 if (host->ncfg->wp_gpio == -EPROBE_DEFER) in lpc32xx_nand_probe() 719 if (gpio_is_valid(host->ncfg->wp_gpio) && in lpc32xx_nand_probe() 720 gpio_request(host->ncfg->wp_gpio, "NAND WP")) { in lpc32xx_nand_probe() 821 gpio_free(host->ncfg->wp_gpio); in lpc32xx_nand_probe() [all …]
|
D | lpc32xx_slc.c | 212 int wp_gpio; member 313 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_enable() 314 gpio_set_value(host->ncfg->wp_gpio, 0); in lpc32xx_wp_enable() 322 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_disable() 323 gpio_set_value(host->ncfg->wp_gpio, 1); in lpc32xx_wp_disable() 768 ncfg->wp_gpio = of_get_named_gpio(np, "gpios", 0); in lpc32xx_parse_dt() 856 if (host->ncfg->wp_gpio == -EPROBE_DEFER) in lpc32xx_nand_probe() 858 if (gpio_is_valid(host->ncfg->wp_gpio) && devm_gpio_request(&pdev->dev, in lpc32xx_nand_probe() 859 host->ncfg->wp_gpio, "NAND WP")) { in lpc32xx_nand_probe()
|
D | tegra_nand.c | 181 struct gpio_desc *wp_gpio; member 1102 nand->wp_gpio = devm_gpiod_get_optional(dev, "wp", GPIOD_OUT_LOW); in tegra_nand_chips_init() 1104 if (IS_ERR(nand->wp_gpio)) { in tegra_nand_chips_init() 1105 ret = PTR_ERR(nand->wp_gpio); in tegra_nand_chips_init()
|
/kernel/linux/linux-5.10/drivers/nvmem/ |
D | core.c | 39 struct gpio_desc *wp_gpio; member 84 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in nvmem_reg_write() 86 gpiod_set_value_cansleep(nvmem->wp_gpio, 1); in nvmem_reg_write() 327 gpiod_put(nvmem->wp_gpio); in nvmem_release() 628 if (config->wp_gpio) in nvmem_register() 629 nvmem->wp_gpio = config->wp_gpio; in nvmem_register() 631 nvmem->wp_gpio = gpiod_get_optional(config->dev, "wp", in nvmem_register() 633 if (IS_ERR(nvmem->wp_gpio)) { in nvmem_register() 635 rval = PTR_ERR(nvmem->wp_gpio); in nvmem_register()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ingenic/ |
D | ingenic_nand_drv.c | 57 struct gpio_desc *wp_gpio; member 392 nand->wp_gpio = devm_gpiod_get_optional(dev, "wp", GPIOD_OUT_LOW); in ingenic_nand_init_chip() 394 if (IS_ERR(nand->wp_gpio)) { in ingenic_nand_init_chip() 395 ret = PTR_ERR(nand->wp_gpio); in ingenic_nand_init_chip()
|
/kernel/linux/linux-5.10/include/linux/ |
D | nvmem-provider.h | 66 struct gpio_desc *wp_gpio; member
|