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:
Marcin Maka 2019-09-03 10:12:45 +02:00 committed by Liam Girdwood
parent bf8aded456
commit edea885ba5
7 changed files with 38 additions and 36 deletions

View File

@ -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.
*

View File

@ -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.

View File

@ -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.

View File

@ -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

View File

@ -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;

View File

@ -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.

View File

@ -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.