Re: [PATCH v4 4/7] rtc: ac100: Add clk output support

2016-07-21 Thread Chen-Yu Tsai
On Fri, Jul 22, 2016 at 8:24 AM, Michael Turquette wrote: > Quoting Chen-Yu Tsai (2016-07-13 20:34:34) >> On Sat, Jul 9, 2016 at 2:36 AM, Michael Turquette >> wrote: >> > Quoting Chen-Yu Tsai (2016-06-30 08:58:48) >> >> +static long ac100_clkout_round_rate(struct clk_hw *hw, unsigned long >> >>

Re: [PATCH v4 4/7] rtc: ac100: Add clk output support

2016-07-13 Thread Chen-Yu Tsai
On Sat, Jul 9, 2016 at 2:36 AM, Michael Turquette wrote: > Quoting Chen-Yu Tsai (2016-06-30 08:58:48) >> +static long ac100_clkout_round_rate(struct clk_hw *hw, unsigned long rate, >> + unsigned long prate) >> +{ >> + unsigned long best_rate = 0, tmp_rate, t

Re: [PATCH v4 4/7] rtc: ac100: Add clk output support

2016-07-08 Thread Michael Turquette
Quoting Chen-Yu Tsai (2016-06-30 08:58:48) > +static long ac100_clkout_round_rate(struct clk_hw *hw, unsigned long rate, > + unsigned long prate) > +{ > + unsigned long best_rate = 0, tmp_rate, tmp_prate; > + int i; > + > + if (prate == AC100_RTC_

[PATCH v4 4/7] rtc: ac100: Add clk output support

2016-06-30 Thread Chen-Yu Tsai
The AC100's RTC side has 3 clock outputs on external pins, which can provide a clock signal to the SoC or other modules, such as WiFi or GSM modules. Support this with a custom clk driver integrated with the rtc driver. Signed-off-by: Chen-Yu Tsai --- Changes since v3: - Renamed clk32k prefix