Path: blob/master/arch/arm/mach-msm/include/mach/clk.h
17627 views
/* Copyright (c) 2009, Code Aurora Forum. All rights reserved.1*2* This program is free software; you can redistribute it and/or modify3* it under the terms of the GNU General Public License version 2 and4* only version 2 as published by the Free Software Foundation.5*6* This program is distributed in the hope that it will be useful,7* but WITHOUT ANY WARRANTY; without even the implied warranty of8* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9* GNU General Public License for more details.10*/11#ifndef __MACH_CLK_H12#define __MACH_CLK_H1314/* Magic rate value for use with PM QOS to request the board's maximum15* supported AXI rate. PM QOS will only pass positive s32 rate values16* through to the clock driver, so INT_MAX is used.17*/18#define MSM_AXI_MAX_FREQ LONG_MAX1920enum clk_reset_action {21CLK_RESET_DEASSERT = 0,22CLK_RESET_ASSERT = 123};2425struct clk;2627/* Rate is minimum clock rate in Hz */28int clk_set_min_rate(struct clk *clk, unsigned long rate);2930/* Rate is maximum clock rate in Hz */31int clk_set_max_rate(struct clk *clk, unsigned long rate);3233/* Assert/Deassert reset to a hardware block associated with a clock */34int clk_reset(struct clk *clk, enum clk_reset_action action);3536/* Set clock-specific configuration parameters */37int clk_set_flags(struct clk *clk, unsigned long flags);3839#endif404142