Lines Matching +full:syscon +full:- +full:reboot +full:- +full:mode
26 #include <linux/reboot.h>
29 #include <linux/mfd/syscon.h>
46 unsigned long mode, void *cmd) in brcmstb_restart_handler() argument
51 rc = regmap_write(regmap, rst_src_en, reset_masks->rst_src_en_mask); in brcmstb_restart_handler()
63 rc = regmap_write(regmap, sw_mstr_rst, reset_masks->sw_mstr_rst_mask); in brcmstb_restart_handler()
97 { .compatible = "brcm,brcmstb-reboot", .data = &reset_bits_40nm },
98 { .compatible = "brcm,bcm7038-reboot", .data = &reset_bits_65nm },
105 struct device_node *np = pdev->dev.of_node; in brcmstb_reboot_probe()
111 return -EINVAL; in brcmstb_reboot_probe()
113 reset_masks = of_id->data; in brcmstb_reboot_probe()
115 regmap = syscon_regmap_lookup_by_phandle(np, "syscon"); in brcmstb_reboot_probe()
117 pr_err("failed to get syscon phandle\n"); in brcmstb_reboot_probe()
118 return -EINVAL; in brcmstb_reboot_probe()
121 rc = of_property_read_u32_index(np, "syscon", RESET_SOURCE_ENABLE_REG, in brcmstb_reboot_probe()
125 return -EINVAL; in brcmstb_reboot_probe()
128 rc = of_property_read_u32_index(np, "syscon", SW_MASTER_RESET_REG, in brcmstb_reboot_probe()
132 return -EINVAL; in brcmstb_reboot_probe()
137 dev_err(&pdev->dev, in brcmstb_reboot_probe()
146 .name = "brcmstb-reboot",