From mboxrd@z Thu Jan 1 00:00:00 1970 From: heiko@sntech.de (Heiko =?utf-8?q?St=C3=BCbner?=) Date: Sat, 6 Jul 2013 00:51:08 +0200 Subject: [PATCH 0/9] clocksource: dw_apb_timer: support for timer variant used in rk3188 SoCs Message-ID: <201307060051.09716.heiko@sntech.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org The Rockchip rk3188 SoCs use a variant of the timer with some slight modifications. This series implements them as quirks for the dw_apb_timer. Tested on a rk3188 for the quirk handling and on a rk3066a to check that nothing broke. Heiko Stuebner (5): clocksource: dw_apb_timer: infrastructure to handle quirks clocksource: dw_apb_timer: flexible register addresses clocksource: dw_apb_timer: quirk for variants with 64bit counter clocksource: dw_apb_timer_of: add quirk handling clocksource: dw_apb_timer: special variant for rockchip rk3188 timers Ulrich Prinz (4): clocksource: dw_apb_timer: use the eoi callback to clear pending interrupts clocksource: dw_apb_timer: quirk for variants without EOI register clocksource: dw_apb_timer: quirk for inverted int mask clocksource: dw_apb_timer: quirk for inverted timer mode setting .../bindings/arm/rockchip/rk3188-timer.txt | 20 +++ arch/x86/kernel/apb_timer.c | 4 +- drivers/clocksource/dw_apb_timer.c | 166 +++++++++++++++----- drivers/clocksource/dw_apb_timer_of.c | 27 +++- include/linux/dw_apb_timer.h | 34 +++- 5 files changed, 198 insertions(+), 53 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/rockchip/rk3188-timer.txt -- 1.7.10.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko =?utf-8?q?St=C3=BCbner?= Subject: [PATCH 0/9] clocksource: dw_apb_timer: support for timer variant used in rk3188 SoCs Date: Sat, 6 Jul 2013 00:51:08 +0200 Message-ID: <201307060051.09716.heiko@sntech.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: John Stultz Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Herring , Grant Likely , Jamie Iles , Thomas Gleixner , Ulrich Prinz , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org The Rockchip rk3188 SoCs use a variant of the timer with some slight modifications. This series implements them as quirks for the dw_apb_timer. Tested on a rk3188 for the quirk handling and on a rk3066a to check that nothing broke. Heiko Stuebner (5): clocksource: dw_apb_timer: infrastructure to handle quirks clocksource: dw_apb_timer: flexible register addresses clocksource: dw_apb_timer: quirk for variants with 64bit counter clocksource: dw_apb_timer_of: add quirk handling clocksource: dw_apb_timer: special variant for rockchip rk3188 timers Ulrich Prinz (4): clocksource: dw_apb_timer: use the eoi callback to clear pending interrupts clocksource: dw_apb_timer: quirk for variants without EOI register clocksource: dw_apb_timer: quirk for inverted int mask clocksource: dw_apb_timer: quirk for inverted timer mode setting .../bindings/arm/rockchip/rk3188-timer.txt | 20 +++ arch/x86/kernel/apb_timer.c | 4 +- drivers/clocksource/dw_apb_timer.c | 166 +++++++++++++++----- drivers/clocksource/dw_apb_timer_of.c | 27 +++- include/linux/dw_apb_timer.h | 34 +++- 5 files changed, 198 insertions(+), 53 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/rockchip/rk3188-timer.txt -- 1.7.10.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752207Ab3GEWvY (ORCPT ); Fri, 5 Jul 2013 18:51:24 -0400 Received: from gloria.sntech.de ([95.129.55.99]:37914 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019Ab3GEWvX (ORCPT ); Fri, 5 Jul 2013 18:51:23 -0400 To: John Stultz Subject: [PATCH 0/9] clocksource: dw_apb_timer: support for timer variant used in rk3188 SoCs Cc: Thomas Gleixner , Jamie Iles , Dinh Nguyen , Grant Likely , linux-arm-kernel@lists.infradead.org, Rob Herring , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Olof Johansson , Ulrich Prinz From: Heiko =?utf-8?q?St=C3=BCbner?= Date: Sat, 6 Jul 2013 00:51:08 +0200 MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201307060051.09716.heiko@sntech.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Rockchip rk3188 SoCs use a variant of the timer with some slight modifications. This series implements them as quirks for the dw_apb_timer. Tested on a rk3188 for the quirk handling and on a rk3066a to check that nothing broke. Heiko Stuebner (5): clocksource: dw_apb_timer: infrastructure to handle quirks clocksource: dw_apb_timer: flexible register addresses clocksource: dw_apb_timer: quirk for variants with 64bit counter clocksource: dw_apb_timer_of: add quirk handling clocksource: dw_apb_timer: special variant for rockchip rk3188 timers Ulrich Prinz (4): clocksource: dw_apb_timer: use the eoi callback to clear pending interrupts clocksource: dw_apb_timer: quirk for variants without EOI register clocksource: dw_apb_timer: quirk for inverted int mask clocksource: dw_apb_timer: quirk for inverted timer mode setting .../bindings/arm/rockchip/rk3188-timer.txt | 20 +++ arch/x86/kernel/apb_timer.c | 4 +- drivers/clocksource/dw_apb_timer.c | 166 +++++++++++++++----- drivers/clocksource/dw_apb_timer_of.c | 27 +++- include/linux/dw_apb_timer.h | 34 +++- 5 files changed, 198 insertions(+), 53 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/rockchip/rk3188-timer.txt -- 1.7.10.4