mirror of https://github.com/thesofproject/sof.git
pm-runtime: cavs: introduce common pm runtime data
A common structure should be define for all cAVS platforms for data that will be used by common cAVS pm runtime routines. Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
This commit is contained in:
parent
bf8aded456
commit
edea885ba5
|
@ -16,15 +16,9 @@
|
|||
#ifndef __PLATFORM_LIB_PM_RUNTIME_H__
|
||||
#define __PLATFORM_LIB_PM_RUNTIME_H__
|
||||
|
||||
#include <cavs/lib/pm_runtime.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct pm_runtime_data;
|
||||
|
||||
/** \brief Platform specific runtime power management data. */
|
||||
struct platform_pm_runtime_data {
|
||||
/* TBD */
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief Initializes platform specific runtime power management.
|
||||
*
|
||||
|
|
|
@ -16,15 +16,9 @@
|
|||
#ifndef __PLATFORM_LIB_PM_RUNTIME_H__
|
||||
#define __PLATFORM_LIB_PM_RUNTIME_H__
|
||||
|
||||
#include <cavs/lib/pm_runtime.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct pm_runtime_data;
|
||||
|
||||
/** \brief Platform specific runtime power management data. */
|
||||
struct platform_pm_runtime_data {
|
||||
/* TBD */
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief Initializes platform specific runtime power management.
|
||||
* \param[in,out] prd Runtime power management data.
|
||||
|
|
|
@ -16,15 +16,9 @@
|
|||
#ifndef __PLATFORM_LIB_PM_RUNTIME_H__
|
||||
#define __PLATFORM_LIB_PM_RUNTIME_H__
|
||||
|
||||
#include <cavs/lib/pm_runtime.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct pm_runtime_data;
|
||||
|
||||
/** \brief Platform specific runtime power management data. */
|
||||
struct platform_pm_runtime_data {
|
||||
/* TBD */
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief Initializes platform specific runtime power management.
|
||||
* \param[in,out] prd Runtime power management data.
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/* SPDX-License-Identifier: BSD-3-Clause
|
||||
*
|
||||
* Copyright(c) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* Author: Tomasz Lauda <tomasz.lauda@linux.intel.com>
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file cavs/lib/pm_runtime.h
|
||||
* \brief Runtime power management header file for cAVS platforms
|
||||
* \author Tomasz Lauda <tomasz.lauda@linux.intel.com>
|
||||
*/
|
||||
|
||||
#ifdef __PLATFORM_LIB_PM_RUNTIME_H__
|
||||
|
||||
#ifndef __CAVS_LIB_PM_RUNTIME_H__
|
||||
#define __CAVS_LIB_PM_RUNTIME_H__
|
||||
|
||||
struct pm_runtime_data;
|
||||
|
||||
/** \brief cAVS specific runtime power management data. */
|
||||
struct cavs_pm_runtime_data {
|
||||
/* TBD */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#error "Do not include outside of platform/lib/pm_runtime.h"
|
||||
|
||||
#endif
|
|
@ -277,7 +277,7 @@ static inline void cavs_pm_runtime_core_en_memory(uint32_t index)
|
|||
|
||||
void platform_pm_runtime_init(struct pm_runtime_data *prd)
|
||||
{
|
||||
struct platform_pm_runtime_data *pprd;
|
||||
struct cavs_pm_runtime_data *pprd;
|
||||
|
||||
_prd = prd;
|
||||
|
||||
|
|
|
@ -16,15 +16,9 @@
|
|||
#ifndef __PLATFORM_LIB_PM_RUNTIME_H__
|
||||
#define __PLATFORM_LIB_PM_RUNTIME_H__
|
||||
|
||||
#include <cavs/lib/pm_runtime.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct pm_runtime_data;
|
||||
|
||||
/** \brief Platform specific runtime power management data. */
|
||||
struct platform_pm_runtime_data {
|
||||
/* TBD */
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief Initializes platform specific runtime power management.
|
||||
* \param[in,out] prd Runtime power management data.
|
||||
|
|
|
@ -16,15 +16,9 @@
|
|||
#ifndef __PLATFORM_LIB_PM_RUNTIME_H__
|
||||
#define __PLATFORM_LIB_PM_RUNTIME_H__
|
||||
|
||||
#include <cavs/lib/pm_runtime.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct pm_runtime_data;
|
||||
|
||||
/** \brief Platform specific runtime power management data. */
|
||||
struct platform_pm_runtime_data {
|
||||
/* TBD */
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief Initializes platform specific runtime power management.
|
||||
* \param[in,out] prd Runtime power management data.
|
||||
|
|
Loading…
Reference in New Issue