lineage_kernel_xcoverpro/drivers/soc/samsung/cal-if/fvmap.h

61 lines
1.1 KiB
C
Executable File

#ifndef __FVMAP_H__
#define __FVMAP_H__
/* FV(Frequency Voltage MAP) */
struct fvmap_header {
unsigned char dvfs_type;
unsigned char num_of_lv;
unsigned char num_of_members;
unsigned char num_of_pll;
unsigned char num_of_mux;
unsigned char num_of_div;
unsigned short gearratio;
unsigned char init_lv;
unsigned char num_of_gate;
unsigned char reserved[2];
unsigned short block_addr[3];
unsigned short o_members;
unsigned short o_ratevolt;
unsigned short o_tables;
};
struct clocks {
unsigned short addr[0];
};
struct pll_header {
unsigned int addr;
unsigned short o_lock;
unsigned short level;
unsigned int pms[0];
};
struct rate_volt {
unsigned int rate;
unsigned int volt;
};
struct rate_volt_header {
struct rate_volt table[0];
};
struct dvfs_table {
unsigned char val[0];
};
#ifdef CONFIG_ACPM_DVFS
extern int fvmap_init(void __iomem *sram_base);
extern int fvmap_get_voltage_table(unsigned int id, unsigned int *table);
#else
static inline int fvmap_init(void __iomem *sram_base)
{
return 0;
}
static inline int fvmap_get_voltage_table(unsigned int id, unsigned int *table)
{
return 0;
}
#endif
#endif