blob: b05c91b29f6ff786f9e5c88a40bf7f193e69acee [file] [log] [blame]
#ifndef __PMUCAL_LOCAL_H__
#define __PMUCAL_LOCAL_H__
#include "pmucal_common.h"
/* In Exynos, the number of MAX_POWER_DOMAIN is less than 20 */
#define PMUCAL_NUM_PDS 20
/* will be a member of struct exynos_pm_domain */
struct pmucal_pd {
u32 id;
char *name;
struct pmucal_seq *on;
struct pmucal_seq *save;
struct pmucal_seq *off;
struct pmucal_seq *status;
u32 num_on;
u32 num_save;
u32 num_off;
u32 num_status;
};
/* APIs to be supported to PWRCAL interface */
extern int pmucal_local_enable(unsigned int pd_id);
extern int pmucal_local_disable(unsigned int pd_id);
extern int pmucal_local_is_enabled(unsigned int pd_id);
extern int pmucal_local_init(void);
extern struct pmucal_pd pmucal_pd_list[];
extern unsigned int pmucal_pd_list_size;
#endif