Lines Matching full:init_b
38 * wait_for_init_b - wait for the INIT_B pin to have a given state, or wait
42 * @value: Value INIT_B to wait for (1 = asserted = low)
43 * @alt_udelay: Delay to wait if the INIT_B GPIO is not available
45 * Returns 0 when the INIT_B GPIO reached the given state or -ETIMEDOUT if
46 * too much time passed waiting for that. If no INIT_B GPIO is available
55 if (core->init_b) { in wait_for_init_b()
57 int ret = gpiod_get_value(core->init_b); in wait_for_init_b()
64 "Error reading INIT_B (%d)\n", ret); in wait_for_init_b()
71 dev_err(&mgr->dev, "Timeout waiting for INIT_B to %s\n", in wait_for_init_b()
156 if (core->init_b) { in xilinx_core_write_complete()
157 ret = gpiod_get_value(core->init_b); in xilinx_core_write_complete()
160 dev_err(&mgr->dev, "Error reading INIT_B (%d)\n", ret); in xilinx_core_write_complete()
209 core->init_b = xilinx_core_devm_gpiod_get(core->dev, "init", "init-b", in xilinx_core_probe()
211 if (IS_ERR(core->init_b)) in xilinx_core_probe()
212 return dev_err_probe(core->dev, PTR_ERR(core->init_b), in xilinx_core_probe()
213 "Failed to get INIT_B gpio\n"); in xilinx_core_probe()