1 // SPDX-License-Identifier: GPL-2.0+
3 * Cadence Tensilica xtfpga system reset driver.
5 * (C) Copyright 2016 Cadence Design Systems Inc.
14 static int xtfpga_reset_request(struct udevice *dev, enum sysreset_t type)
18 writel(CONFIG_SYS_FPGAREG_RESET_CODE,
19 CONFIG_SYS_FPGAREG_RESET);
22 return -EPROTONOSUPPORT;
28 static struct sysreset_ops xtfpga_sysreset_ops = {
29 .request = xtfpga_reset_request,
32 U_BOOT_DRIVER(xtfpga_sysreset) = {
33 .name = "xtfpga_sysreset",
34 .id = UCLASS_SYSRESET,
35 .ops = &xtfpga_sysreset_ops,