1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2017 Masahiro Yamada <yamada.masahiro@socionext.com>
9 #include <linux/errno.h>
10 #include <linux/psci.h>
12 static int psci_sysreset_request(struct udevice *dev, enum sysreset_t type)
19 case SYSRESET_POWER_OFF:
29 static struct sysreset_ops psci_sysreset_ops = {
30 .request = psci_sysreset_request,
33 U_BOOT_DRIVER(psci_sysreset) = {
34 .name = "psci-sysreset",
35 .id = UCLASS_SYSRESET,
36 .ops = &psci_sysreset_ops,