summaryrefslogtreecommitdiff
path: root/lib/utils/reset/fdt_reset.c
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2025-01-19 11:03:57 -0800
committerAnup Patel <[email protected]>2025-02-12 21:39:25 +0530
commit434add551c2a17cac3804ff0f587d31be03f070e (patch)
tree3554b7e11c36b8427cfc3349daf00a5eb5d5027b /lib/utils/reset/fdt_reset.c
parente84ba966347009a2dae61d7399bc68c28892847e (diff)
lib: utils: Initialize miscellaneous drivers in one pass
For driver subsystems that are not tightly integrated into the OpenSBI init sequence, it is not important that the drivers are initialized in any particular order. By putting all of these drivers in one array, they can all be initialized with a single pass through the devicetree. This saves about 10 ms of boot time on HiFive Unmatched. Signed-off-by: Samuel Holland <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/reset/fdt_reset.c')
-rw-r--r--lib/utils/reset/fdt_reset.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/utils/reset/fdt_reset.c b/lib/utils/reset/fdt_reset.c
deleted file mode 100644
index 633a25cd..00000000
--- a/lib/utils/reset/fdt_reset.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * SPDX-License-Identifier: BSD-2-Clause
- *
- * Copyright (c) 2020 Western Digital Corporation or its affiliates.
- *
- * Authors:
- * Anup Patel <[email protected]>
- */
-
-#include <sbi_utils/reset/fdt_reset.h>
-
-/* List of FDT reset drivers generated at compile time */
-extern const struct fdt_driver *const fdt_reset_drivers[];
-
-void fdt_reset_init(const void *fdt)
-{
- fdt_driver_init_all(fdt, fdt_reset_drivers);
-}