aboutsummaryrefslogtreecommitdiff
path: root/lib/utils/reset/fdt_reset_htif.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/reset/fdt_reset_htif.c')
-rw-r--r--lib/utils/reset/fdt_reset_htif.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/utils/reset/fdt_reset_htif.c b/lib/utils/reset/fdt_reset_htif.c
new file mode 100644
index 0000000..e453d05
--- /dev/null
+++ b/lib/utils/reset/fdt_reset_htif.c
@@ -0,0 +1,22 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2020 Western Digital Corporation or its affiliates.
+ *
+ * Authors:
+ * Anup Patel <anup.patel@wdc.com>
+ */
+
+#include <sbi_utils/reset/fdt_reset.h>
+#include <sbi_utils/fdt/fdt_helper.h>
+#include <sbi_utils/sys/htif.h>
+
+static const struct fdt_match htif_reset_match[] = {
+ { .compatible = "ucb,htif0" },
+ { },
+};
+
+struct fdt_reset fdt_reset_htif = {
+ .match_table = htif_reset_match,
+ .system_reset = htif_system_reset
+};