2011-05-16 03:53:56 +07:00
|
|
|
/*
|
|
|
|
* Copyright (C) STMicroelectronics 2009
|
|
|
|
* Copyright (C) ST-Ericsson SA 2010
|
|
|
|
*
|
|
|
|
* Author: Sundar Iyer <sundar.iyer@stericsson.com>
|
|
|
|
* Author: Martin Persson <martin.persson@stericsson.com>
|
|
|
|
*
|
|
|
|
* License Terms: GNU General Public License v2
|
|
|
|
*
|
|
|
|
* PRCM Unit definitions
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MACH_PRCMU_DEFS_H
|
|
|
|
#define __MACH_PRCMU_DEFS_H
|
|
|
|
|
|
|
|
enum prcmu_cpu_opp {
|
|
|
|
CPU_OPP_INIT = 0x00,
|
|
|
|
CPU_OPP_NO_CHANGE = 0x01,
|
|
|
|
CPU_OPP_100 = 0x02,
|
|
|
|
CPU_OPP_50 = 0x03,
|
|
|
|
CPU_OPP_MAX = 0x04,
|
|
|
|
CPU_OPP_EXT_CLK = 0x07
|
|
|
|
};
|
|
|
|
enum prcmu_ape_opp {
|
|
|
|
APE_OPP_NO_CHANGE = 0x00,
|
|
|
|
APE_OPP_100 = 0x02,
|
|
|
|
APE_OPP_50 = 0x03,
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __MACH_PRCMU_DEFS_H */
|
|
|
|
|
2010-08-19 18:36:01 +07:00
|
|
|
/*
|
|
|
|
* Copyright (C) STMicroelectronics 2009
|
|
|
|
* Copyright (C) ST-Ericsson SA 2010
|
|
|
|
*
|
2010-12-08 21:13:28 +07:00
|
|
|
* Author: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
|
|
|
|
* Author: Sundar Iyer <sundar.iyer@stericsson.com>
|
|
|
|
* Author: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
|
|
|
|
*
|
2010-08-19 18:36:01 +07:00
|
|
|
* License Terms: GNU General Public License v2
|
|
|
|
*
|
2010-12-08 21:13:28 +07:00
|
|
|
* PRCM Unit f/w API
|
2010-08-19 18:36:01 +07:00
|
|
|
*/
|
|
|
|
#ifndef __MACH_PRCMU_H
|
|
|
|
#define __MACH_PRCMU_H
|
|
|
|
|
2010-12-02 22:20:42 +07:00
|
|
|
void __init prcmu_early_init(void);
|
2010-08-19 18:36:01 +07:00
|
|
|
int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
|
|
|
|
int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size);
|
2010-12-08 21:13:28 +07:00
|
|
|
int prcmu_set_ape_opp(enum prcmu_ape_opp opp);
|
|
|
|
int prcmu_set_cpu_opp(enum prcmu_cpu_opp opp);
|
|
|
|
int prcmu_set_ape_cpu_opps(enum prcmu_ape_opp ape_opp,
|
|
|
|
enum prcmu_cpu_opp cpu_opp);
|
2011-05-16 03:53:56 +07:00
|
|
|
enum prcmu_ape_opp prcmu_get_ape_opp(void);
|
2010-12-08 21:13:28 +07:00
|
|
|
int prcmu_get_cpu_opp(void);
|
|
|
|
bool prcmu_has_arm_maxopp(void);
|
2010-08-19 18:36:01 +07:00
|
|
|
|
|
|
|
#endif /* __MACH_PRCMU_H */
|