clk-pxa.c (4ba24fef3eb3b142197135223b90ced2f319cd53) | clk-pxa.c (4e907ef6bd5eeb18bcc78f08bc993b94f007b79f) |
---|---|
1/* 2 * Marvell PXA family clocks 3 * 4 * Copyright (C) 2014 Robert Jarzmik 5 * 6 * Common clock code for PXA clocks ("CKEN" type clocks + DT) 7 * 8 * This program is free software; you can redistribute it and/or modify --- 32 unchanged lines hidden (view full) --- 41{ 42 struct pxa_clk *pclk = to_pxa_clk(hw); 43 struct clk_fixed_factor *fix; 44 45 if (!pclk->is_in_low_power || pclk->is_in_low_power()) 46 fix = &pclk->lp; 47 else 48 fix = &pclk->hp; | 1/* 2 * Marvell PXA family clocks 3 * 4 * Copyright (C) 2014 Robert Jarzmik 5 * 6 * Common clock code for PXA clocks ("CKEN" type clocks + DT) 7 * 8 * This program is free software; you can redistribute it and/or modify --- 32 unchanged lines hidden (view full) --- 41{ 42 struct pxa_clk *pclk = to_pxa_clk(hw); 43 struct clk_fixed_factor *fix; 44 45 if (!pclk->is_in_low_power || pclk->is_in_low_power()) 46 fix = &pclk->lp; 47 else 48 fix = &pclk->hp; |
49 fix->hw.clk = hw->clk; | 49 __clk_hw_set_clk(&fix->hw, hw); |
50 return clk_fixed_factor_ops.recalc_rate(&fix->hw, parent_rate); 51} 52 53static struct clk_ops cken_rate_ops = { 54 .recalc_rate = cken_recalc_rate, 55}; 56 57static u8 cken_get_parent(struct clk_hw *hw) --- 51 unchanged lines hidden --- | 50 return clk_fixed_factor_ops.recalc_rate(&fix->hw, parent_rate); 51} 52 53static struct clk_ops cken_rate_ops = { 54 .recalc_rate = cken_recalc_rate, 55}; 56 57static u8 cken_get_parent(struct clk_hw *hw) --- 51 unchanged lines hidden --- |