Re: [PATCH v4] clk: at91: add generated clock driver

2015-07-30 Thread Nicolas Ferre
Le 29/07/2015 09:15, Boris Brezillon a écrit : > Hi Nicolas, > > On Tue, 28 Jul 2015 18:08:05 +0200 > Nicolas Ferre wrote: > > >> +static void clk_generated_startup(struct clk_generated *gck) >> +{ >> +struct at91_pmc *pmc = gck->pmc; >> +u32 tmp; >> + >> +pmc_lock(pmc); >> +pmc

Re: [PATCH v4] clk: at91: add generated clock driver

2015-07-29 Thread Boris Brezillon
Hi Nicolas, On Tue, 28 Jul 2015 18:08:05 +0200 Nicolas Ferre wrote: > +static void clk_generated_startup(struct clk_generated *gck) > +{ > + struct at91_pmc *pmc = gck->pmc; > + u32 tmp; > + > + pmc_lock(pmc); > + pmc_write(pmc, AT91_PMC_PCR, (gck->id & AT91_PMC_PCR_PID_MASK));

[PATCH v4] clk: at91: add generated clock driver

2015-07-28 Thread Nicolas Ferre
Add a new type of clocks that can be provided to a peripheral. In addition to the peripheral clock, this new clock that can use several input clocks as parents can generate divided rates. This would allow a peripheral to have finer grained clocks for generating a baud rate, clocking an asynchronous