Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-08 Thread Arnd Bergmann
On Mon, Jan 8, 2018 at 5:08 PM, Daniel Lezcano wrote: > On 08/01/2018 16:26, Arnd Bergmann wrote: >> On Fri, Jan 5, 2018 at 10:31 AM, Daniel Lezcano >> wrote: >>> >>> etc ... >> >> I'd actually prefer to not do it for ARM either: Most other subsystems >> don't do that, and I don't see a strong r

Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-08 Thread Daniel Lezcano
On 08/01/2018 16:26, Arnd Bergmann wrote: > On Fri, Jan 5, 2018 at 10:31 AM, Daniel Lezcano > wrote: No. Can't you add in arch/ndis32/Kconfig ? +select TIMER_ATCPIT100 Like: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/Kconfi

Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-08 Thread Arnd Bergmann
On Fri, Jan 5, 2018 at 10:31 AM, Daniel Lezcano wrote: >>> No. Can't you add in arch/ndis32/Kconfig ? >>> >>> +select TIMER_ATCPIT100 >>> >>> Like: >>> >>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/Kconfig#n50 >> >> IMHO, it might be a little bit wierd if w

Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-05 Thread Daniel Lezcano
On 05/01/2018 09:45, Greentime Hu wrote: > Hi, Daniel: [ ... ] >> [ ... ] >> >>> +config CLKSRC_ATCPIT100 >>> + bool "Clocksource for AE3XX platform" >>> + depends on NDS32 || COMPILE_TEST >>> + depends on HAS_IOMEM >>> + help >>> + This optio

Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-05 Thread Greentime Hu
Hi, Daniel: 2018-01-05 3:48 GMT+08:00 Daniel Lezcano : > On 04/01/2018 15:06, Greentime Hu wrote: >> Hi, Daniel: >> >> 2018-01-04 21:50 GMT+08:00 Daniel Lezcano : >>> >>> Hi, >>> >>> sorry I missed your answer. Comments below. >>> >>> On 13/12/2017 07:06, Greentime Hu wrote: Hi, Daniel:

Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-04 Thread Daniel Lezcano
On 04/01/2018 15:06, Greentime Hu wrote: > Hi, Daniel: > > 2018-01-04 21:50 GMT+08:00 Daniel Lezcano : >> >> Hi, >> >> sorry I missed your answer. Comments below. >> >> On 13/12/2017 07:06, Greentime Hu wrote: >>> Hi, Daniel: >>> >>> 2017-12-12 18:05 GMT+08:00 Daniel Lezcano : On 12/12/2017 0

Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-04 Thread Greentime Hu
Hi, Daniel: 2018-01-04 21:50 GMT+08:00 Daniel Lezcano : > > Hi, > > sorry I missed your answer. Comments below. > > On 13/12/2017 07:06, Greentime Hu wrote: >> Hi, Daniel: >> >> 2017-12-12 18:05 GMT+08:00 Daniel Lezcano : >>> On 12/12/2017 06:46, Rick Chen wrote: ATCPIT100 is often used on th

Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-04 Thread Daniel Lezcano
Hi, sorry I missed your answer. Comments below. On 13/12/2017 07:06, Greentime Hu wrote: > Hi, Daniel: > > 2017-12-12 18:05 GMT+08:00 Daniel Lezcano : >> On 12/12/2017 06:46, Rick Chen wrote: >>> ATCPIT100 is often used on the Andes architecture, >>> This timer provide 4 PIT channels. Each PIT

Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2017-12-12 Thread Greentime Hu
Hi, Daniel: 2017-12-12 18:05 GMT+08:00 Daniel Lezcano : > On 12/12/2017 06:46, Rick Chen wrote: >> ATCPIT100 is often used on the Andes architecture, >> This timer provide 4 PIT channels. Each PIT channel is a >> multi-function timer, can be configured as 32,16,8 bit timers >> or PWM as well. >> >

Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2017-12-12 Thread Daniel Lezcano
On 12/12/2017 06:46, Rick Chen wrote: > ATCPIT100 is often used on the Andes architecture, > This timer provide 4 PIT channels. Each PIT channel is a > multi-function timer, can be configured as 32,16,8 bit timers > or PWM as well. > > For system timer it will set channel 1 32-bit timer0 as clock

[PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2017-12-11 Thread Rick Chen
ATCPIT100 is often used on the Andes architecture, This timer provide 4 PIT channels. Each PIT channel is a multi-function timer, can be configured as 32,16,8 bit timers or PWM as well. For system timer it will set channel 1 32-bit timer0 as clock source and count downwards until underflow and res