Lines Matching +full:syscon +full:- +full:reboot +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <linux/reboot.h>
19 #include <linux/mfd/syscon.h>
36 unsigned long mode, void *cmd) in brcmstb_restart_handler() argument
41 rc = regmap_write(regmap, rst_src_en, reset_masks->rst_src_en_mask); in brcmstb_restart_handler()
53 rc = regmap_write(regmap, sw_mstr_rst, reset_masks->sw_mstr_rst_mask); in brcmstb_restart_handler()
87 { .compatible = "brcm,brcmstb-reboot", .data = &reset_bits_40nm },
88 { .compatible = "brcm,bcm7038-reboot", .data = &reset_bits_65nm },
95 struct device_node *np = pdev->dev.of_node; in brcmstb_reboot_probe()
101 return -EINVAL; in brcmstb_reboot_probe()
103 reset_masks = of_id->data; in brcmstb_reboot_probe()
105 regmap = syscon_regmap_lookup_by_phandle(np, "syscon"); in brcmstb_reboot_probe()
107 pr_err("failed to get syscon phandle\n"); in brcmstb_reboot_probe()
108 return -EINVAL; in brcmstb_reboot_probe()
111 rc = of_property_read_u32_index(np, "syscon", RESET_SOURCE_ENABLE_REG, in brcmstb_reboot_probe()
115 return -EINVAL; in brcmstb_reboot_probe()
118 rc = of_property_read_u32_index(np, "syscon", SW_MASTER_RESET_REG, in brcmstb_reboot_probe()
122 return -EINVAL; in brcmstb_reboot_probe()
127 dev_err(&pdev->dev, in brcmstb_reboot_probe()
136 .name = "brcmstb-reboot",