prcmu.h 866 字节
Newer Older
L
Linus Walleij 已提交
1 2 3 4
/*
 * Copyright (C) STMicroelectronics 2009
 * Copyright (C) ST-Ericsson SA 2010
 *
5 6 7 8
 * Author: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
 * Author: Sundar Iyer <sundar.iyer@stericsson.com>
 * Author: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
 *
L
Linus Walleij 已提交
9 10
 * License Terms: GNU General Public License v2
 *
11
 * PRCM Unit f/w API
L
Linus Walleij 已提交
12 13 14
 */
#ifndef __MACH_PRCMU_H
#define __MACH_PRCMU_H
15
#include <mach/prcmu-defs.h>
L
Linus Walleij 已提交
16

17
void __init prcmu_early_init(void);
L
Linus Walleij 已提交
18 19
int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size);
20 21 22 23 24 25 26
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);
int prcmu_get_ape_opp(void);
int prcmu_get_cpu_opp(void);
bool prcmu_has_arm_maxopp(void);
L
Linus Walleij 已提交
27 28

#endif /* __MACH_PRCMU_H */