From 8114e4f5037f81a527748406ca87bad2647563f1 Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Fri, 20 Sep 2024 13:19:11 +0300 Subject: [PATCH] platform: imx: remove pm_runtime.h Remove pm_runtime.h file from some imx platforms (imx93, imx8, and imx8ulp), which only support Zephyr builds. This is done because the header is no longer mandatory. The operations implemented in it were NOPs. Signed-off-by: Laurentiu Mihalcea Signed-off-by: Kai Vehmanen --- .../imx8/include/platform/lib/pm_runtime.h | 61 ------------------ .../imx8ulp/include/platform/lib/pm_runtime.h | 62 ------------------- .../include/platform/lib/pm_runtime.h | 56 ----------------- 3 files changed, 179 deletions(-) delete mode 100644 src/platform/imx8/include/platform/lib/pm_runtime.h delete mode 100644 src/platform/imx8ulp/include/platform/lib/pm_runtime.h delete mode 100644 src/platform/imx93_a55/include/platform/lib/pm_runtime.h diff --git a/src/platform/imx8/include/platform/lib/pm_runtime.h b/src/platform/imx8/include/platform/lib/pm_runtime.h deleted file mode 100644 index f2b85b2e9d4e..000000000000 --- a/src/platform/imx8/include/platform/lib/pm_runtime.h +++ /dev/null @@ -1,61 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause - * - * Copyright 2019 NXP - * - * Author: Daniel Baluta - */ - -#ifdef __SOF_LIB_PM_RUNTIME_H__ - -#ifndef __PLATFORM_LIB_PM_RUNTIME_H__ -#define __PLATFORM_LIB_PM_RUNTIME_H__ - -#include - -struct pm_runtime_data; - -/** - * \brief Initializes platform specific runtime power management. - * \param[in,out] prd Runtime power management data. - */ -static inline void platform_pm_runtime_init(struct pm_runtime_data *prd) { } - -/** - * \brief Retrieves platform specific power management resource. - * - * \param[in] context Type of power management context. - * \param[in] index Index of the device. - * \param[in] flags Flags, set of RPM_... - */ -static inline void platform_pm_runtime_get(uint32_t context, uint32_t index, - uint32_t flags) { } - -/** - * \brief Releases platform specific power management resource. - * - * \param[in] context Type of power management context. - * \param[in] index Index of the device. - * \param[in] flags Flags, set of RPM_... - */ -static inline void platform_pm_runtime_put(uint32_t context, uint32_t index, - uint32_t flags) { } - -static inline void platform_pm_runtime_enable(uint32_t context, - uint32_t index) {} - -static inline void platform_pm_runtime_disable(uint32_t context, - uint32_t index) {} - -static inline bool platform_pm_runtime_is_active(uint32_t context, - uint32_t index) -{ - return false; -} - -#endif /* __PLATFORM_LIB_PM_RUNTIME_H__ */ - -#else - -#error "This file shouldn't be included from outside of sof/lib/pm_runtime.h" - -#endif /* __SOF_LIB_PM_RUNTIME_H__ */ diff --git a/src/platform/imx8ulp/include/platform/lib/pm_runtime.h b/src/platform/imx8ulp/include/platform/lib/pm_runtime.h deleted file mode 100644 index e3e246cf8301..000000000000 --- a/src/platform/imx8ulp/include/platform/lib/pm_runtime.h +++ /dev/null @@ -1,62 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause - * - * Copyright 2021 NXP - * - * Author: Daniel Baluta - * Author: Zhang Peng - */ - -#ifdef __SOF_LIB_PM_RUNTIME_H__ - -#ifndef __PLATFORM_LIB_PM_RUNTIME_H__ -#define __PLATFORM_LIB_PM_RUNTIME_H__ - -#include - -struct pm_runtime_data; - -/** - * \brief Initializes platform specific runtime power management. - * \param[in,out] prd Runtime power management data. - */ -static inline void platform_pm_runtime_init(struct pm_runtime_data *prd) { } - -/** - * \brief Retrieves platform specific power management resource. - * - * \param[in] context Type of power management context. - * \param[in] index Index of the device. - * \param[in] flags Flags, set of RPM_... - */ -static inline void platform_pm_runtime_get(uint32_t context, uint32_t index, - uint32_t flags) { } - -/** - * \brief Releases platform specific power management resource. - * - * \param[in] context Type of power management context. - * \param[in] index Index of the device. - * \param[in] flags Flags, set of RPM_... - */ -static inline void platform_pm_runtime_put(uint32_t context, uint32_t index, - uint32_t flags) { } - -static inline void platform_pm_runtime_enable(uint32_t context, - uint32_t index) {} - -static inline void platform_pm_runtime_disable(uint32_t context, - uint32_t index) {} - -static inline bool platform_pm_runtime_is_active(uint32_t context, - uint32_t index) -{ - return false; -} - -#endif /* __PLATFORM_LIB_PM_RUNTIME_H__ */ - -#else - -#error "This file shouldn't be included from outside of sof/lib/pm_runtime.h" - -#endif /* __SOF_LIB_PM_RUNTIME_H__ */ diff --git a/src/platform/imx93_a55/include/platform/lib/pm_runtime.h b/src/platform/imx93_a55/include/platform/lib/pm_runtime.h deleted file mode 100644 index 8665518b08d5..000000000000 --- a/src/platform/imx93_a55/include/platform/lib/pm_runtime.h +++ /dev/null @@ -1,56 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause - * - * Copyright 2023 NXP - */ - -#ifdef __SOF_LIB_PM_RUNTIME_H__ - -#ifndef __PLATFORM_LIB_PM_RUNTIME_H__ -#define __PLATFORM_LIB_PM_RUNTIME_H__ - -/* TODO: is this required? Should this be implemented using Zephyr PM - * API? - */ -#include - -struct pm_runtime_data; - -static inline void platform_pm_runtime_init(struct pm_runtime_data *prd) -{ -} - -static inline void platform_pm_runtime_get(uint32_t context, - uint32_t index, - uint32_t flags) -{ -} - -static inline void platform_pm_runtime_put(uint32_t context, - uint32_t index, - uint32_t flags) -{ -} - -static inline void platform_pm_runtime_enable(uint32_t context, - uint32_t index) -{ -} - -static inline void platform_pm_runtime_disable(uint32_t context, - uint32_t index) -{ -} - -static inline bool platform_pm_runtime_is_active(uint32_t context, - uint32_t index) -{ - return false; -} - -#endif /* __PLATFORM_LIB_PM_RUNTIME_H__ */ - -#else - -#error "This file shouldn't be included from outside of sof/lib/pm_runtime.h" - -#endif /* __SOF_LIB_PM_RUNTIME_H__ */