summaryrefslogtreecommitdiff
path: root/lib/utils/suspend/fdt_suspend.c
blob: bd4691a07e76fe9fd104ba570840599c357997b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * SPDX-License-Identifier: BSD-2-Clause
 *
 * Copyright (c) 2024 Ventana Micro Systems Inc.
 *
 * Authors:
 *   Anup Patel <[email protected]>
 */

#include <sbi_utils/suspend/fdt_suspend.h>

/* List of FDT suspend drivers generated at compile time */
extern const struct fdt_driver *const fdt_suspend_drivers[];

void fdt_suspend_init(const void *fdt)
{
	/*
	 * Platforms might have multiple system suspend devices or
	 * might not have any so probe all and don't fail.
	 */
	fdt_driver_init_all(fdt, fdt_suspend_drivers);
}