Lines Matching +full:syscon +full:- +full:reboot +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/mfd/syscon.h>
16 #include <linux/reboot.h>
29 static struct regmap *syscon; variable
32 unsigned long mode, void *cmd) in axxia_restart_handler() argument
35 regmap_write(syscon, SC_CRIT_WRITE_KEY, 0xab); in axxia_restart_handler()
37 regmap_write(syscon, SC_LATCH_ON_RESET, 0x00000040); in axxia_restart_handler()
39 regmap_write(syscon, SC_EFUSE_INT_STATUS, EFUSE_READ_DONE); in axxia_restart_handler()
41 regmap_update_bits(syscon, SC_RESET_CONTROL, in axxia_restart_handler()
54 struct device *dev = &pdev->dev; in axxia_reset_probe()
57 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in axxia_reset_probe()
58 if (IS_ERR(syscon)) { in axxia_reset_probe()
59 pr_err("%pOFn: syscon lookup failed\n", dev->of_node); in axxia_reset_probe()
60 return PTR_ERR(syscon); in axxia_reset_probe()
71 { .compatible = "lsi,axm55xx-reset", },
79 .name = "axxia-reset",