Lines Matching +full:syscon +full:- +full:reboot +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/mfd/syscon.h>
16 #include <linux/reboot.h>
30 unsigned long mode, void *cmd) in ep93xx_restart_handle() argument
34 struct ep93xx_regmap_adev *aux = priv->aux_dev; in ep93xx_restart_handle()
36 /* Issue the reboot */ in ep93xx_restart_handle()
37 aux->update_bits(aux->map, aux->lock, EP93XX_SYSCON_DEVCFG, in ep93xx_restart_handle()
39 aux->update_bits(aux->map, aux->lock, EP93XX_SYSCON_DEVCFG, in ep93xx_restart_handle()
49 struct device *dev = &adev->dev; in ep93xx_reboot_probe()
53 if (!rdev->update_bits) in ep93xx_reboot_probe()
54 return -ENODEV; in ep93xx_reboot_probe()
58 return -ENOMEM; in ep93xx_reboot_probe()
60 priv->aux_dev = rdev; in ep93xx_reboot_probe()
62 priv->restart_handler.notifier_call = ep93xx_restart_handle; in ep93xx_reboot_probe()
63 priv->restart_handler.priority = 128; in ep93xx_reboot_probe()
65 err = register_restart_handler(&priv->restart_handler); in ep93xx_reboot_probe()
74 .name = "soc_ep93xx.reset-ep93xx",