Re: [PATCH V2 2/2] timer: imx-tpm: add imx tpm timer support

2017-06-19 Thread Dong Aisheng
On Tue, Jun 13, 2017 at 03:54:24PM +0200, Daniel Lezcano wrote: > On 13/06/2017 09:58, Dong Aisheng wrote: > > IMX Timer/PWM Module (TPM) supports both timer and pwm function while > > this patch only adds the timer support. PWM would be added later. > > > > The TPM counter, compare and capture re

Re: [PATCH V2 2/2] timer: imx-tpm: add imx tpm timer support

2017-06-19 Thread Dong Aisheng
On Tue, Jun 13, 2017 at 10:19:47AM +0200, Alexander Stein wrote: > On Tuesday 13 June 2017 15:58:45, Dong Aisheng wrote: > > diff --git a/drivers/clocksource/timer-imx-tpm.c > > b/drivers/clocksource/timer-imx-tpm.c new file mode 100644 > > index 000..940a4f75 > > --- /dev/null > > +++ b/driver

Re: [PATCH V2 2/2] timer: imx-tpm: add imx tpm timer support

2017-06-13 Thread Daniel Lezcano
On 13/06/2017 09:58, Dong Aisheng wrote: > IMX Timer/PWM Module (TPM) supports both timer and pwm function while > this patch only adds the timer support. PWM would be added later. > > The TPM counter, compare and capture registers are clocked by an > asynchronous clock that can remain enabled in

Re: [PATCH V2 2/2] timer: imx-tpm: add imx tpm timer support

2017-06-13 Thread Alexander Stein
On Tuesday 13 June 2017 15:58:45, Dong Aisheng wrote: > diff --git a/drivers/clocksource/timer-imx-tpm.c > b/drivers/clocksource/timer-imx-tpm.c new file mode 100644 > index 000..940a4f75 > --- /dev/null > +++ b/drivers/clocksource/timer-imx-tpm.c > @@ -0,0 +1,227 @@ > [...] > +static int tpm_s

[PATCH V2 2/2] timer: imx-tpm: add imx tpm timer support

2017-06-13 Thread Dong Aisheng
IMX Timer/PWM Module (TPM) supports both timer and pwm function while this patch only adds the timer support. PWM would be added later. The TPM counter, compare and capture registers are clocked by an asynchronous clock that can remain enabled in low power modes. Cc: Daniel Lezcano Cc: Arnd Berg