msm: camera: utils: Add option to not set src clk rate
Clients like cpas scale some clocks like slow_ahb, fast_ahb through vote level based on other hw's src clk freq while the actual src clock (camnoc) is calculated and set directly through set_src_clk API. This will overwrite freq of camnoc_axi with the same level as AHB when ahb clocks are set. Do not set src clk rate while setting rate for other clocks using level. CRs-Fixed: 2793673 Change-Id: I5538a5cebf4e47c407a2bf9778136500b1162b4a Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
This commit is contained in:
@@ -470,11 +470,12 @@ int cam_soc_util_clk_enable(struct clk *clk, const char *clk_name,
|
||||
*
|
||||
* @soc_info: Device soc information
|
||||
* @clk_level: Clock level number to set
|
||||
* @do_not_set_src_clk: If true, set clock rates except the src clk
|
||||
*
|
||||
* @return: Success or failure
|
||||
*/
|
||||
int cam_soc_util_set_clk_rate_level(struct cam_hw_soc_info *soc_info,
|
||||
enum cam_vote_level clk_level);
|
||||
enum cam_vote_level clk_level, bool do_not_set_src_clk);
|
||||
|
||||
/**
|
||||
* cam_soc_util_clk_disable()
|
||||
|
Reference in New Issue
Block a user