clk-wm831x.c (5c47e3cfd4f9d12e9f594d99118c1381c163ff98) | clk-wm831x.c (ed784c532a3d0959db488f40a96c5127f63d42dc) |
---|---|
1/* 2 * WM831x clock control 3 * 4 * Copyright 2011-2 Wolfson Microelectronics PLC. 5 * 6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 83 unchanged lines hidden (view full) --- 92 struct wm831x *wm831x = clkdata->wm831x; 93 int ret; 94 95 ret = wm831x_set_bits(wm831x, WM831X_FLL_CONTROL_1, 96 WM831X_FLL_ENA, WM831X_FLL_ENA); 97 if (ret != 0) 98 dev_crit(wm831x->dev, "Failed to enable FLL: %d\n", ret); 99 | 1/* 2 * WM831x clock control 3 * 4 * Copyright 2011-2 Wolfson Microelectronics PLC. 5 * 6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 83 unchanged lines hidden (view full) --- 92 struct wm831x *wm831x = clkdata->wm831x; 93 int ret; 94 95 ret = wm831x_set_bits(wm831x, WM831X_FLL_CONTROL_1, 96 WM831X_FLL_ENA, WM831X_FLL_ENA); 97 if (ret != 0) 98 dev_crit(wm831x->dev, "Failed to enable FLL: %d\n", ret); 99 |
100 usleep_range(2000, 2000); | 100 /* wait 2-3 ms for new frequency taking effect */ 101 usleep_range(2000, 3000); |
101 102 return ret; 103} 104 105static void wm831x_fll_unprepare(struct clk_hw *hw) 106{ 107 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, 108 fll_hw); --- 294 unchanged lines hidden --- | 102 103 return ret; 104} 105 106static void wm831x_fll_unprepare(struct clk_hw *hw) 107{ 108 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, 109 fll_hw); --- 294 unchanged lines hidden --- |