RE: [PATCH v2 2/2] clocksource: Add Intel Keem Bay Timer Support

2021-01-20 Thread Ayyathurai, Vijayakannan
Hi Andy, > From: andriy.shevche...@linux.intel.com > > > > > + data.base = of_iomap(np, 2); > > > > + if (!data.base) > > > > + return -ENXIO; > > > > + > > > > + ret = keembay_clocksource_init(np, ); > > > > + if (ret) > > > > + goto exit; > >

Re: [PATCH v2 2/2] clocksource: Add Intel Keem Bay Timer Support

2021-01-19 Thread andriy.shevche...@linux.intel.com
On Tue, Jan 19, 2021 at 02:56:36AM +, Ayyathurai, Vijayakannan wrote: ... > > > + data.base = of_iomap(np, 2); > > > + if (!data.base) > > > + return -ENXIO; > > > + > > > + ret = keembay_clocksource_init(np, ); > > > + if (ret) > > > + goto exit; > > > + > > > + ret =

RE: [PATCH v2 2/2] clocksource: Add Intel Keem Bay Timer Support

2021-01-18 Thread Ayyathurai, Vijayakannan
Hi Daniel, > From: Daniel Lezcano > > From: Vijayakannan Ayyathurai > > [ ... ] > > > +static struct timer_of keembay_ce_to = { > > + .flags = TIMER_OF_IRQ | TIMER_OF_BASE | TIMER_OF_CLOCK, > > + .clkevt = { > > + .name = "keembay_sys_clkevt", > > +

Re: [PATCH v2 2/2] clocksource: Add Intel Keem Bay Timer Support

2021-01-18 Thread Daniel Lezcano
On 30/12/2020 07:25, vijayakannan.ayyathu...@intel.com wrote: > From: Vijayakannan Ayyathurai [ ... ] > +static struct timer_of keembay_ce_to = { > + .flags = TIMER_OF_IRQ | TIMER_OF_BASE | TIMER_OF_CLOCK, > + .clkevt = { > + .name = "keembay_sys_clkevt",

[PATCH v2 2/2] clocksource: Add Intel Keem Bay Timer Support

2020-12-29 Thread vijayakannan . ayyathurai
From: Vijayakannan Ayyathurai Add generic clocksource and clockevent driver for the timer IP used in Intel Keem Bay SoC. One free running Counter used as a clocksource device and one Timer used as a clockevent device. Both are enabled through TIM_GEN_CONFIG register. This register is in the DT