45 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* arch/arm/mach-msm/acpuclock.h
 | 
						|
 *
 | 
						|
 * MSM architecture clock driver header
 | 
						|
 *
 | 
						|
 * Copyright (C) 2007 Google, Inc.
 | 
						|
 * Copyright (c) 2007 QUALCOMM Incorporated
 | 
						|
 * Author: San Mehat <san@android.com>
 | 
						|
 *
 | 
						|
 * This software is licensed under the terms of the GNU General Public
 | 
						|
 * License version 2, as published by the Free Software Foundation, and
 | 
						|
 * may be copied, distributed, and modified under those terms.
 | 
						|
 *
 | 
						|
 * This program is distributed in the hope that it will be useful,
 | 
						|
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
 * GNU General Public License for more details.
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef __ARCH_ARM_MACH_MSM_ACPUCLOCK_H
 | 
						|
#define __ARCH_ARM_MACH_MSM_ACPUCLOCK_H
 | 
						|
 | 
						|
enum setrate_reason {
 | 
						|
	SETRATE_CPUFREQ = 0,
 | 
						|
	SETRATE_SWFI,
 | 
						|
	SETRATE_PC,
 | 
						|
	SETRATE_PC_IDLE,
 | 
						|
};
 | 
						|
 | 
						|
#if defined(CONFIG_ARCH_MSM_SCORPION)
 | 
						|
int acpuclk_set_rate(unsigned long rate, enum setrate_reason reason);
 | 
						|
unsigned long acpuclk_power_collapse(int from_idle);
 | 
						|
#else
 | 
						|
int acpuclk_set_rate(unsigned long rate, enum setrate_reason reason);
 | 
						|
unsigned long acpuclk_power_collapse(int from_idle);
 | 
						|
#endif
 | 
						|
unsigned long acpuclk_get_rate(void);
 | 
						|
uint32_t acpuclk_get_switch_time(void);
 | 
						|
unsigned long acpuclk_wait_for_irq(void);
 | 
						|
unsigned long acpuclk_get_wfi_rate(void);
 | 
						|
 | 
						|
 | 
						|
#endif
 | 
						|
 |