From: jamie@jamieiles.com (Jamie Iles)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/2] clocksource: dw_apb_timer: Add common DTS glue for dw_apb_timer
Date: Wed, 11 Jul 2012 00:15:25 +0100 [thread overview]
Message-ID: <20120710231525.GA27641@page> (raw)
In-Reply-To: <1341956381-496-1-git-send-email-dinguyen@altera.com>
Hi,
On Tue, Jul 10, 2012 at 04:39:40PM -0500, dinguyen at altera.com wrote:
> From: Dinh Nguyen <dinguyen@altera.com>
>
> Make a common device tree glue for clocksource/dw_apb_timer.
> Move mach-picoxcell/time.c to be a generic device tree application
> of the dw_apb_timer.
>
> Signed-off-by: Pavel Machek <pavel@denx.de>
> Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
> ---
> Documentation/devicetree/bindings/rtc/dw-apb.txt | 24 ++++++++++
> arch/arm/Kconfig | 1 +
> drivers/clocksource/Kconfig | 3 ++
> drivers/clocksource/Makefile | 1 +
> .../clocksource/dw_apb_timer_of.c | 49 +++++++++++---------
> 5 files changed, 57 insertions(+), 21 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/rtc/dw-apb.txt
> rename arch/arm/mach-picoxcell/time.c => drivers/clocksource/dw_apb_timer_of.c (60%)
>
> diff --git a/arch/arm/mach-picoxcell/time.c
> b/drivers/clocksource/dw_apb_timer_of.c
> similarity index 60%
> rename from arch/arm/mach-picoxcell/time.c
> rename to drivers/clocksource/dw_apb_timer_of.c
> index 2ecba67..83bd997 100644
> --- a/arch/arm/mach-picoxcell/time.c
> +++ b/drivers/clocksource/dw_apb_timer_of.c
> @@ -1,11 +1,20 @@
[...]
> -static const struct of_device_id picoxcell_rtc_ids[] __initconst = {
> - { .compatible = "picochip,pc3x2-rtc" },
> +static const struct of_device_id sptimer_ids[] __initconst = {
> + { .compatible = "snps,dw-apb-timer-sp" },
> { /* Sentinel */ },
Please keep picochip,pc3x2-rtc in the compatible list otherwise we won't
boot any more.
> -static const struct of_device_id picoxcell_timer_ids[] __initconst =
> {
> - { .compatible = "picochip,pc3x2-timer" },
> +static const struct of_device_id osctimer_ids[] __initconst = {
> + { .compatible = "snps,dw-apb-timer-osc" },
> {},
> };
The same here. Also, I'm not sure that the split of these patches is
correct - there isn't any bisectability here as you remove the timer in
this patch but picoxcell won't build. I think squashing these 2 patches
is fine.
I can't test on hardware right now, but with those changes:
Acked-by: Jamie Iles <jamie@jamieiles.com>
Jamie
next prev parent reply other threads:[~2012-07-10 23:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-10 21:39 [PATCH v2 1/2] clocksource: dw_apb_timer: Add common DTS glue for dw_apb_timer dinguyen at altera.com
2012-07-10 21:39 ` [PATCH v2 2/2] arm: picoxcell: Make use of dw_apb_timer_of dinguyen at altera.com
2012-07-10 23:15 ` Jamie Iles [this message]
2012-07-11 15:20 ` [PATCH v2 1/2] clocksource: dw_apb_timer: Add common DTS glue for dw_apb_timer Dinh Nguyen
2012-07-11 16:03 ` Jamie Iles
2012-07-11 16:23 ` Pavel Machek
2012-07-11 16:32 ` Dinh Nguyen
2012-07-11 1:39 ` Rob Herring
2012-07-11 15:21 ` Dinh Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120710231525.GA27641@page \
--to=jamie@jamieiles.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.