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

2017-12-11 Thread Rick Chen
and restart again. It also set channel 0 32-bit timer0 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Signed-off-by: Rick Chen <rickche...@gmail.com> Signed-off-by: Greentime Hu <green...@gmail.com> Reviewed-by: L

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

2017-12-11 Thread Rick Chen
and restart again. It also set channel 0 32-bit timer0 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Reviewed-by: Linus Walleij --- drivers/clocksource/Kconfig | 7

[PATCH v5 2/3] clocksource/drivers/atcpit100: VDSO support

2017-12-11 Thread Rick Chen
VDSO needs real-time cycle count to ensure the time accuracy. Unlike others, nds32 architecture does not define clock source, hence VDSO needs atcpit100 offering real-time cycle count to derive the correct time. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Ric

[PATCH v5 2/3] clocksource/drivers/atcpit100: VDSO support

2017-12-11 Thread Rick Chen
VDSO needs real-time cycle count to ensure the time accuracy. Unlike others, nds32 architecture does not define clock source, hence VDSO needs atcpit100 offering real-time cycle count to derive the correct time. Signed-off-by: Vincent Chen Signed-off-by: Rick Chen Signed-off-by: Greentime Hu

[PATCH v5 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-12-11 Thread Rick Chen
Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen <rickche...@gmail.com> Signed-off-by: Greentime Hu <green...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/timer/andestech,atcpit10

[PATCH v5 0/3] Add andestech atcpit100 timer

2017-12-11 Thread Rick Chen
d by Linus Walleij Rick Chen (3): clocksource/drivers/atcpit100: Add andestech atcpit100 timer clocksource/drivers/atcpit100: VDSO support dt-bindings: timer: Add andestech atcpit100 timer binding doc .../bindings/timer/andestech,atcpit100-timer.txt | 33 +++ drivers/clocksour

[PATCH v5 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-12-11 Thread Rick Chen
Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Acked-by: Rob Herring --- .../bindings/timer/andestech,atcpit100-timer.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644

[PATCH v5 0/3] Add andestech atcpit100 timer

2017-12-11 Thread Rick Chen
d by Linus Walleij Rick Chen (3): clocksource/drivers/atcpit100: Add andestech atcpit100 timer clocksource/drivers/atcpit100: VDSO support dt-bindings: timer: Add andestech atcpit100 timer binding doc .../bindings/timer/andestech,atcpit100-timer.txt | 33 +++ drivers/clocksour

[PATCH v4 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-11-09 Thread Rick Chen
Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen <rickche...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Greentime Hu <green...@gmail.com> --- .../bindings/timer/andestech,atcpit10

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

2017-11-09 Thread Rick Chen
and restart again. It also set channel 0 32-bit timer0 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Signed-off-by: Rick Chen <rickche...@gmail.com> Signed-off-by: Greentime Hu <green...@gmail.com> --- drivers/clock

[PATCH v4 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-11-09 Thread Rick Chen
Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen Acked-by: Rob Herring Signed-off-by: Greentime Hu --- .../bindings/timer/andestech,atcpit100-timer.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644

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

2017-11-09 Thread Rick Chen
and restart again. It also set channel 0 32-bit timer0 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu --- drivers/clocksource/timer-atcpit100.c | 248

[PATCH v4 2/3] clocksource/drivers/Kconfig: Support andestech atcpit100 timer

2017-11-09 Thread Rick Chen
Add CLKSRC_ATCPIT100 for Andestech atcpit100 timer selection. It often be used in Andestech AE3XX platform. Signed-off-by: Rick Chen <rickche...@gmail.com> Signed-off-by: Greentime Hu <green...@gmail.com> --- drivers/clocksource/Kconfig | 6 ++ drivers/clocksource/Makefile |

[PATCH v4 2/3] clocksource/drivers/Kconfig: Support andestech atcpit100 timer

2017-11-09 Thread Rick Chen
Add CLKSRC_ATCPIT100 for Andestech atcpit100 timer selection. It often be used in Andestech AE3XX platform. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu --- drivers/clocksource/Kconfig | 6 ++ drivers/clocksource/Makefile | 1 + 2 files changed, 7 insertions(+) diff --git

[PATCH v4 0/3] Add andestech atcpit100 timer

2017-11-09 Thread Rick Chen
use channel0 timer0 as clock event Patch 3/3 Remove description about clock-frequency Add clocks description for timer-of API Rick Chen (3): clocksource/drivers/atcpit100: Add andestech atcpit100 timer clocksource/drivers/Kconfig: Support andestech atcpit100 timer dt-bindings: timer

[PATCH v4 0/3] Add andestech atcpit100 timer

2017-11-09 Thread Rick Chen
use channel0 timer0 as clock event Patch 3/3 Remove description about clock-frequency Add clocks description for timer-of API Rick Chen (3): clocksource/drivers/atcpit100: Add andestech atcpit100 timer clocksource/drivers/Kconfig: Support andestech atcpit100 timer dt-bindings: timer

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

2017-11-06 Thread Rick Chen
again. It also set 32-bit timer1 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Signed-off-by: Rick Chen <rickche...@gmail.com> Signed-off-by: Greentime Hu <green...@gmail.com> --- drivers/clocksource/timer-atcpi

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

2017-11-06 Thread Rick Chen
again. It also set 32-bit timer1 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu --- drivers/clocksource/timer-atcpit100.c | 199 ++ 1 file changed

[PATCH v3 2/3] clocksource/drivers/Kconfig: Support andestech atcpit100 timer

2017-11-06 Thread Rick Chen
Add CLKSRC_ATCPIT100 for Andestech atcpit100 timer selection. It often be used in Andestech AE3XX platform. Signed-off-by: Rick Chen <rickche...@gmail.com> Signed-off-by: Greentime Hu <green...@gmail.com> --- drivers/clocksource/Kconfig | 6 ++ drivers/clocksource/Makefile |

[PATCH v3 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-11-06 Thread Rick Chen
Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen <rickche...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Greentime Hu <green...@gmail.com> --- .../bindings/timer/andestech,atcpit10

[PATCH v3 2/3] clocksource/drivers/Kconfig: Support andestech atcpit100 timer

2017-11-06 Thread Rick Chen
Add CLKSRC_ATCPIT100 for Andestech atcpit100 timer selection. It often be used in Andestech AE3XX platform. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu --- drivers/clocksource/Kconfig | 6 ++ drivers/clocksource/Makefile | 1 + 2 files changed, 7 insertions(+) diff --git

[PATCH v3 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-11-06 Thread Rick Chen
Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen Acked-by: Rob Herring Signed-off-by: Greentime Hu --- .../bindings/timer/andestech,atcpit100-timer.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644

[PATCH v3 0/3] *** Fix warning from kbuild test robot ***

2017-11-06 Thread Rick Chen
*** Fix warnings when make with ARCH=x86_64 from auto build test *** rick (3): clocksource/drivers/atcpit100: Add andestech atcpit100 timer clocksource/drivers/Kconfig: Support andestech atcpit100 timer dt-bindings: timer: Add andestech atcpit100 timer binding doc

[PATCH v3 0/3] *** Fix warning from kbuild test robot ***

2017-11-06 Thread Rick Chen
*** Fix warnings when make with ARCH=x86_64 from auto build test *** rick (3): clocksource/drivers/atcpit100: Add andestech atcpit100 timer clocksource/drivers/Kconfig: Support andestech atcpit100 timer dt-bindings: timer: Add andestech atcpit100 timer binding doc

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

2017-10-29 Thread Rick Chen
again. It also set 32-bit timer1 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Signed-off-by: Greentime Hu <green...@gmail.com> Signed-off-by: Rick Chen <rickche...@gmail.com> --- drivers/clocksource/timer-atcpi

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

2017-10-29 Thread Rick Chen
again. It also set 32-bit timer1 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Signed-off-by: Greentime Hu Signed-off-by: Rick Chen --- drivers/clocksource/timer-atcpit100.c | 199 ++ 1 file changed

[PATCH v2 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-10-29 Thread Rick Chen
Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Greentime Hu <green...@gmail.com> Signed-off-by: Rick Chen <rickche...@gmail.com> --- .../bindings/timer/andestech,atcpit100-timer.txt | 31 ++ 1 file changed, 3

[PATCH v2 2/3] clocksource/drivers/Kconfig: Support andestech atcpit100 timer

2017-10-29 Thread Rick Chen
Add CLKSRC_ATCPIT100 for Andestech atcpit100 timer selection. It often be used in Andestech AE3XX platform. Signed-off-by: Greentime Hu <green...@gmail.com> Signed-off-by: Rick Chen <rickche...@gmail.com> --- drivers/clocksource/Kconfig | 6 ++ drivers/clocksource/Makefile |

[PATCH v2 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-10-29 Thread Rick Chen
Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Greentime Hu Signed-off-by: Rick Chen --- .../bindings/timer/andestech,atcpit100-timer.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v2 2/3] clocksource/drivers/Kconfig: Support andestech atcpit100 timer

2017-10-29 Thread Rick Chen
Add CLKSRC_ATCPIT100 for Andestech atcpit100 timer selection. It often be used in Andestech AE3XX platform. Signed-off-by: Greentime Hu Signed-off-by: Rick Chen --- drivers/clocksource/Kconfig | 6 ++ drivers/clocksource/Makefile | 1 + 2 files changed, 7 insertions(+) diff --git