Lines Matching +full:syscon +full:- +full:reboot
1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <linux/reboot.h>
19 #include <linux/mfd/syscon.h>
37 rc = regmap_write(regmap, rst_src_en, reset_masks->rst_src_en_mask); in brcmstb_restart_handler()
49 rc = regmap_write(regmap, sw_mstr_rst, reset_masks->sw_mstr_rst_mask); in brcmstb_restart_handler()
77 struct device_node *np = pdev->dev.of_node; in brcmstb_reboot_probe()
80 reset_masks = device_get_match_data(&pdev->dev); in brcmstb_reboot_probe()
83 return -EINVAL; in brcmstb_reboot_probe()
86 regmap = syscon_regmap_lookup_by_phandle_args(np, "syscon", ARRAY_SIZE(args), args); in brcmstb_reboot_probe()
88 pr_err("failed to get syscon phandle\n"); in brcmstb_reboot_probe()
89 return -EINVAL; in brcmstb_reboot_probe()
94 rc = devm_register_sys_off_handler(&pdev->dev, SYS_OFF_MODE_RESTART, in brcmstb_reboot_probe()
97 dev_err(&pdev->dev, in brcmstb_reboot_probe()
104 { .compatible = "brcm,brcmstb-reboot", .data = &reset_bits_40nm },
105 { .compatible = "brcm,bcm7038-reboot", .data = &reset_bits_65nm },
112 .name = "brcmstb-reboot",