Re: [PATCH v2 1/2] clk: qcom: common: Add API to register board clocks backwards compatibly

2015-10-28 Thread Stephen Boyd
On 10/28/2015 11:03 AM, Georgi Djakov wrote: > On 10/28/2015 03:06 AM, Stephen Boyd wrote: >> On 10/27, Stephen Boyd wrote: >>> + >>> +int qcom_cc_register_board_clk(struct device *dev, const char *path, >>> + const char *name, unsigned long rate) >>> +{ >>> + return _qco

Re: [PATCH v2 1/2] clk: qcom: common: Add API to register board clocks backwards compatibly

2015-10-28 Thread Georgi Djakov
On 10/28/2015 03:06 AM, Stephen Boyd wrote: > On 10/27, Stephen Boyd wrote: >> + >> +int qcom_cc_register_board_clk(struct device *dev, const char *path, >> + const char *name, unsigned long rate) >> +{ >> +return _qcom_cc_register_board_clk(dev, path, name, rate, >> +

Re: [PATCH v2 1/2] clk: qcom: common: Add API to register board clocks backwards compatibly

2015-10-27 Thread Stephen Boyd
On 10/27, Stephen Boyd wrote: > + > +int qcom_cc_register_board_clk(struct device *dev, const char *path, > +const char *name, unsigned long rate) > +{ > + return _qcom_cc_register_board_clk(dev, path, name, rate, > +!IS_ENABLE

[PATCH v2 1/2] clk: qcom: common: Add API to register board clocks backwards compatibly

2015-10-27 Thread Stephen Boyd
We want to put the XO board clocks into the dt files, but we also need to be backwards compatible with an older dtb. Add an API to the common code to do this. This also makes a place for us to handle the case when the RPM clock driver is enabled and we don't want to register the fixed factor clock.