2 * Cadence Tensilica xtfpga system reset driver.
4 * (C) Copyright 2016 Cadence Design Systems Inc.
6 * SPDX-License-Identifier: GPL-2.0+
15 static int xtfpga_reset_request(struct udevice *dev, enum sysreset_t type)
19 writel(CONFIG_SYS_FPGAREG_RESET_CODE,
20 CONFIG_SYS_FPGAREG_RESET);
23 return -EPROTONOSUPPORT;
29 static struct sysreset_ops xtfpga_sysreset_ops = {
30 .request = xtfpga_reset_request,
33 U_BOOT_DRIVER(xtfpga_sysreset) = {
34 .name = "xtfpga_sysreset",
35 .id = UCLASS_SYSRESET,
36 .ops = &xtfpga_sysreset_ops,