Searched refs:rnb_gpio (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/mtd/nand/
H A Dfsl_upm.c42 int rnb_gpio[NAND_MAX_CHIPS]; member in struct:fsl_upm_nand
59 if (gpio_get_value(fun->rnb_gpio[fun->mchip_number])) fun_chip_ready()
68 if (fun->rnb_gpio[fun->mchip_number] >= 0) { fun_wait_rnb()
175 if (fun->rnb_gpio[0] >= 0) fun_chip_init()
210 int rnb_gpio; fun_probe() local
263 fun->rnb_gpio[i] = -1; fun_probe()
264 rnb_gpio = of_get_gpio(ofdev->dev.of_node, i); fun_probe()
265 if (rnb_gpio >= 0) { fun_probe()
266 ret = gpio_request(rnb_gpio, dev_name(&ofdev->dev)); fun_probe()
272 gpio_direction_input(rnb_gpio); fun_probe()
273 fun->rnb_gpio[i] = rnb_gpio; fun_probe()
274 } else if (rnb_gpio == -EINVAL) { fun_probe()
312 if (fun->rnb_gpio[i] < 0) fun_probe()
314 gpio_free(fun->rnb_gpio[i]); fun_probe()
331 if (fun->rnb_gpio[i] < 0) fun_remove()
333 gpio_free(fun->rnb_gpio[i]); fun_remove()

Completed in 35 milliseconds