Lines Matching +full:probe +full:- +full:reset
4 * Synopsys AXS10x reset driver.
15 #include <linux/reset-controller.h>
33 spin_lock_irqsave(&rst->lock, flags); in axs10x_reset_reset()
34 writel(BIT(id), rst->regs_rst); in axs10x_reset_reset()
35 spin_unlock_irqrestore(&rst->lock, flags); in axs10x_reset_reset()
41 .reset = axs10x_reset_reset,
48 rst = devm_kzalloc(&pdev->dev, sizeof(*rst), GFP_KERNEL); in axs10x_reset_probe()
50 return -ENOMEM; in axs10x_reset_probe()
52 rst->regs_rst = devm_platform_ioremap_resource(pdev, 0); in axs10x_reset_probe()
53 if (IS_ERR(rst->regs_rst)) in axs10x_reset_probe()
54 return PTR_ERR(rst->regs_rst); in axs10x_reset_probe()
56 spin_lock_init(&rst->lock); in axs10x_reset_probe()
58 rst->rcdev.owner = THIS_MODULE; in axs10x_reset_probe()
59 rst->rcdev.ops = &axs10x_reset_ops; in axs10x_reset_probe()
60 rst->rcdev.of_node = pdev->dev.of_node; in axs10x_reset_probe()
61 rst->rcdev.nr_resets = AXS10X_MAX_RESETS; in axs10x_reset_probe()
63 return devm_reset_controller_register(&pdev->dev, &rst->rcdev); in axs10x_reset_probe()
67 { .compatible = "snps,axs10x-reset" },
72 .probe = axs10x_reset_probe,
74 .name = "axs10x-reset",
81 MODULE_DESCRIPTION("Synopsys AXS10x reset driver");