diff options
| author | Anup Patel <apatel@ventanamicro.com> | 2024-08-06 10:27:42 +0530 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-12-06 09:26:29 +0530 |
| commit | 3676324b0e13b97f2f56507434034833877afc08 (patch) | |
| tree | fe24c66acb69673cd6bbc18ca811d9cb73ed10fb /include | |
| parent | 6a26726e08e4d1e23b2e6cce073689ecdabf9291 (diff) | |
| download | opensbi-3676324b0e13b97f2f56507434034833877afc08.tar.gz opensbi-3676324b0e13b97f2f56507434034833877afc08.tar.bz2 opensbi-3676324b0e13b97f2f56507434034833877afc08.zip | |
lib: utils: Add simple FDT based system suspend driver framework
The generic platform can have multiple system suspend drivers so add a
simple FDT based system suspend driver framework.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi_utils/suspend/fdt_suspend.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/sbi_utils/suspend/fdt_suspend.h b/include/sbi_utils/suspend/fdt_suspend.h new file mode 100644 index 00000000..bfc6c69a --- /dev/null +++ b/include/sbi_utils/suspend/fdt_suspend.h @@ -0,0 +1,26 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2024 Ventana Micro Systems Inc. + * + * Authors: + * Anup Patel <apatel@ventanamicro.com> + */ + +#ifndef __FDT_SUSPEND_H__ +#define __FDT_SUSPEND_H__ + +#include <sbi/sbi_types.h> +#include <sbi_utils/fdt/fdt_driver.h> + +#ifdef CONFIG_FDT_SUSPEND + +void fdt_suspend_init(const void *fdt); + +#else + +static inline void fdt_suspend_init(const void *fdt) { } + +#endif + +#endif |
