From 3676324b0e13b97f2f56507434034833877afc08 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Tue, 6 Aug 2024 10:27:42 +0530 Subject: 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 --- include/sbi_utils/suspend/fdt_suspend.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/sbi_utils/suspend/fdt_suspend.h (limited to 'include') 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 + */ + +#ifndef __FDT_SUSPEND_H__ +#define __FDT_SUSPEND_H__ + +#include +#include + +#ifdef CONFIG_FDT_SUSPEND + +void fdt_suspend_init(const void *fdt); + +#else + +static inline void fdt_suspend_init(const void *fdt) { } + +#endif + +#endif -- cgit v1.3.1