Lines Matching +full:syscon +full:- +full:reboot +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <linux/mfd/syscon.h>
15 #include <linux/reboot.h>
42 static int st_restart(struct notifier_block *this, unsigned long mode, in st_restart() argument
46 regmap_update_bits(st_restart_syscfg->regmap, in st_restart()
47 st_restart_syscfg->offset_rst, in st_restart()
48 st_restart_syscfg->mask_rst, in st_restart()
52 regmap_update_bits(st_restart_syscfg->regmap, in st_restart()
53 st_restart_syscfg->offset_rst_msk, in st_restart()
54 st_restart_syscfg->mask_rst_msk, in st_restart()
67 .compatible = "st,stih407-restart",
75 struct device_node *np = pdev->dev.of_node; in st_reset_probe()
77 struct device *dev = &pdev->dev; in st_reset_probe()
81 return -ENODEV; in st_reset_probe()
83 st_restart_syscfg = (struct reset_syscfg *)match->data; in st_reset_probe()
85 st_restart_syscfg->regmap = in st_reset_probe()
87 if (IS_ERR(st_restart_syscfg->regmap)) { in st_reset_probe()
89 return PTR_ERR(st_restart_syscfg->regmap); in st_reset_probe()