Lines Matching +full:rst +full:- +full:mgr
1 // SPDX-License-Identifier: GPL-2.0-only
7 * Adapted from reset-socfpga.c
11 #include <linux/mfd/altera-a10sr.h>
15 #include <linux/reset-controller.h>
17 #include <dt-bindings/reset/altr,rst-mgr-a10sr.h>
40 return -EINVAL; in a10sr_reset_shift()
52 return regmap_update_bits(a10r->regmap, index, mask, assert ? 0 : mask); in a10sr_reset_update()
77 ret = regmap_read(a10r->regmap, index, &value); in a10sr_reset_status()
92 struct altr_a10sr *a10sr = dev_get_drvdata(pdev->dev.parent); in a10sr_reset_probe()
95 a10r = devm_kzalloc(&pdev->dev, sizeof(struct a10sr_reset), in a10sr_reset_probe()
98 return -ENOMEM; in a10sr_reset_probe()
100 a10r->rcdev.owner = THIS_MODULE; in a10sr_reset_probe()
101 a10r->rcdev.nr_resets = A10SR_RESET_NUM; in a10sr_reset_probe()
102 a10r->rcdev.ops = &a10sr_reset_ops; in a10sr_reset_probe()
103 a10r->rcdev.of_node = pdev->dev.of_node; in a10sr_reset_probe()
104 a10r->regmap = a10sr->regmap; in a10sr_reset_probe()
108 return devm_reset_controller_register(&pdev->dev, &a10r->rcdev); in a10sr_reset_probe()
112 { .compatible = "altr,a10sr-reset" },