Lines Matching +full:probe +full:- +full:reset
1 // SPDX-License-Identifier: GPL-2.0
4 * Copied from reset-sunxi.c
13 #include <linux/reset-controller.h>
14 #include <linux/reset/reset-simple.h>
15 #include <linux/reset/socfpga.h>
32 return -ENOMEM; in a10_reset_init()
39 if (!request_mem_region(res.start, size, np->name)) { in a10_reset_init()
40 ret = -EBUSY; in a10_reset_init()
44 data->membase = ioremap(res.start, size); in a10_reset_init()
45 if (!data->membase) { in a10_reset_init()
46 ret = -ENOMEM; in a10_reset_init()
50 if (of_property_read_u32(np, "altr,modrst-offset", ®_offset)) in a10_reset_init()
51 pr_warn("missing altr,modrst-offset property, assuming 0x10\n"); in a10_reset_init()
52 data->membase += reg_offset; in a10_reset_init()
54 spin_lock_init(&data->lock); in a10_reset_init()
56 data->rcdev.owner = THIS_MODULE; in a10_reset_init()
57 data->rcdev.nr_resets = SOCFPGA_NR_BANKS * 32; in a10_reset_init()
58 data->rcdev.ops = &reset_simple_ops; in a10_reset_init()
59 data->rcdev.of_node = np; in a10_reset_init()
60 data->status_active_low = true; in a10_reset_init()
62 ret = reset_controller_register(&data->rcdev); in a10_reset_init()
77 * These are the reset controller we need to initialize early on in
81 * model are handled by the simple reset driver directly.
84 { .compatible = "altr,rst-mgr", },
100 * an empty driver, whose only job is to attach itself to the reset
101 * manager and call probe.
104 { .compatible = "altr,rst-mgr", },
114 .probe = reset_simple_probe,
116 .name = "socfpga-reset",