* [PATCH v2 06/10] ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree
@ 2014-09-02 9:13 Ulrich Hecht
2014-09-04 7:10 ` Simon Horman
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ulrich Hecht @ 2014-09-02 9:13 UTC (permalink / raw)
To: linux-sh
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++
arch/arm/mach-shmobile/setup-sh73a0.c | 11 +----------
2 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
index e33d698..83c6058 100644
--- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
+++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
@@ -177,6 +177,10 @@
clock-frequency = <48000000>;
};
+&cmt1 {
+ status = "ok";
+};
+
&i2c0 {
status = "okay";
as3711@40 {
diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c
index 6d73b83..2c6ef79 100644
--- a/arch/arm/mach-shmobile/setup-sh73a0.c
+++ b/arch/arm/mach-shmobile/setup-sh73a0.c
@@ -697,10 +697,6 @@ static struct platform_device irqpin3_device = {
},
};
-static struct platform_device *sh73a0_devices_dt[] __initdata = {
- &cmt1_device,
-};
-
static struct platform_device *sh73a0_early_devices[] __initdata = {
&scif0_device,
&scif1_device,
@@ -713,6 +709,7 @@ static struct platform_device *sh73a0_early_devices[] __initdata = {
&scif8_device,
&tmu0_device,
&ipmmu_device,
+ &cmt1_device,
};
static struct platform_device *sh73a0_late_devices[] __initdata = {
@@ -737,8 +734,6 @@ void __init sh73a0_add_standard_devices(void)
/* Clear software reset bit on SY-DMAC module */
__raw_writel(__raw_readl(SRCR2) & ~(1 << 18), SRCR2);
- platform_add_devices(sh73a0_devices_dt,
- ARRAY_SIZE(sh73a0_devices_dt));
platform_add_devices(sh73a0_early_devices,
ARRAY_SIZE(sh73a0_early_devices));
platform_add_devices(sh73a0_late_devices,
@@ -765,8 +760,6 @@ void __init sh73a0_earlytimer_init(void)
void __init sh73a0_add_early_devices(void)
{
- early_platform_add_devices(sh73a0_devices_dt,
- ARRAY_SIZE(sh73a0_devices_dt));
early_platform_add_devices(sh73a0_early_devices,
ARRAY_SIZE(sh73a0_early_devices));
@@ -782,8 +775,6 @@ void __init sh73a0_add_standard_devices_dt(void)
#ifndef CONFIG_COMMON_CLK
sh73a0_clock_init();
#endif
- platform_add_devices(sh73a0_devices_dt,
- ARRAY_SIZE(sh73a0_devices_dt));
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}
--
1.8.4.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 06/10] ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree
2014-09-02 9:13 [PATCH v2 06/10] ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree Ulrich Hecht
@ 2014-09-04 7:10 ` Simon Horman
2014-09-09 21:50 ` Laurent Pinchart
2014-09-09 23:55 ` Simon Horman
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-09-04 7:10 UTC (permalink / raw)
To: linux-sh
On Tue, Sep 02, 2014 at 11:13:02AM +0200, Ulrich Hecht wrote:
> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
> ---
> arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++
> arch/arm/mach-shmobile/setup-sh73a0.c | 11 +----------
Please split this into two patches, one per file.
> 2 files changed, 5 insertions(+), 10 deletions(-)
>
> diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> index e33d698..83c6058 100644
> --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> @@ -177,6 +177,10 @@
> clock-frequency = <48000000>;
> };
>
> +&cmt1 {
> + status = "ok";
> +};
> +
> &i2c0 {
> status = "okay";
> as3711@40 {
> diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c
> index 6d73b83..2c6ef79 100644
> --- a/arch/arm/mach-shmobile/setup-sh73a0.c
> +++ b/arch/arm/mach-shmobile/setup-sh73a0.c
> @@ -697,10 +697,6 @@ static struct platform_device irqpin3_device = {
> },
> };
>
> -static struct platform_device *sh73a0_devices_dt[] __initdata = {
> - &cmt1_device,
> -};
> -
> static struct platform_device *sh73a0_early_devices[] __initdata = {
> &scif0_device,
> &scif1_device,
> @@ -713,6 +709,7 @@ static struct platform_device *sh73a0_early_devices[] __initdata = {
> &scif8_device,
> &tmu0_device,
> &ipmmu_device,
> + &cmt1_device,
> };
>
> static struct platform_device *sh73a0_late_devices[] __initdata = {
> @@ -737,8 +734,6 @@ void __init sh73a0_add_standard_devices(void)
> /* Clear software reset bit on SY-DMAC module */
> __raw_writel(__raw_readl(SRCR2) & ~(1 << 18), SRCR2);
>
> - platform_add_devices(sh73a0_devices_dt,
> - ARRAY_SIZE(sh73a0_devices_dt));
> platform_add_devices(sh73a0_early_devices,
> ARRAY_SIZE(sh73a0_early_devices));
> platform_add_devices(sh73a0_late_devices,
> @@ -765,8 +760,6 @@ void __init sh73a0_earlytimer_init(void)
>
> void __init sh73a0_add_early_devices(void)
> {
> - early_platform_add_devices(sh73a0_devices_dt,
> - ARRAY_SIZE(sh73a0_devices_dt));
> early_platform_add_devices(sh73a0_early_devices,
> ARRAY_SIZE(sh73a0_early_devices));
>
> @@ -782,8 +775,6 @@ void __init sh73a0_add_standard_devices_dt(void)
> #ifndef CONFIG_COMMON_CLK
> sh73a0_clock_init();
> #endif
> - platform_add_devices(sh73a0_devices_dt,
> - ARRAY_SIZE(sh73a0_devices_dt));
> of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
> }
>
> --
> 1.8.4.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 06/10] ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree
2014-09-02 9:13 [PATCH v2 06/10] ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree Ulrich Hecht
2014-09-04 7:10 ` Simon Horman
@ 2014-09-09 21:50 ` Laurent Pinchart
2014-09-09 23:55 ` Simon Horman
2 siblings, 0 replies; 4+ messages in thread
From: Laurent Pinchart @ 2014-09-09 21:50 UTC (permalink / raw)
To: linux-sh
Hi Simon,
On Thursday 04 September 2014 16:10:25 Simon Horman wrote:
> On Tue, Sep 02, 2014 at 11:13:02AM +0200, Ulrich Hecht wrote:
> > Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
> > ---
> >
> > arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++
> > arch/arm/mach-shmobile/setup-sh73a0.c | 11 +----------
>
> Please split this into two patches, one per file.
This would break bisection.
> > 2 files changed, 5 insertions(+), 10 deletions(-)
> >
> > diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> > b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts index e33d698..83c6058
> > 100644
> > --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> > +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> > @@ -177,6 +177,10 @@
> > clock-frequency = <48000000>;
> > };
> >
> > +&cmt1 {
> > + status = "ok";
> > +};
> > +
> > &i2c0 {
> > status = "okay";
> > as3711@40 {
> > diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c
> > b/arch/arm/mach-shmobile/setup-sh73a0.c index 6d73b83..2c6ef79 100644
> > --- a/arch/arm/mach-shmobile/setup-sh73a0.c
> > +++ b/arch/arm/mach-shmobile/setup-sh73a0.c
> > @@ -697,10 +697,6 @@ static struct platform_device irqpin3_device = {
> > },
> > };
> >
> > -static struct platform_device *sh73a0_devices_dt[] __initdata = {
> > - &cmt1_device,
> > -};
> > -
> > static struct platform_device *sh73a0_early_devices[] __initdata = {
> > &scif0_device,
> > &scif1_device,
> > @@ -713,6 +709,7 @@ static struct platform_device *sh73a0_early_devices[]
> > __initdata = {>
> > &scif8_device,
> > &tmu0_device,
> > &ipmmu_device,
> > + &cmt1_device,
> > };
> >
> > static struct platform_device *sh73a0_late_devices[] __initdata = {
> > @@ -737,8 +734,6 @@ void __init sh73a0_add_standard_devices(void)
> >
> > /* Clear software reset bit on SY-DMAC module */
> > __raw_writel(__raw_readl(SRCR2) & ~(1 << 18), SRCR2);
> > - platform_add_devices(sh73a0_devices_dt,
> > - ARRAY_SIZE(sh73a0_devices_dt));
> > platform_add_devices(sh73a0_early_devices,
> > ARRAY_SIZE(sh73a0_early_devices));
> > platform_add_devices(sh73a0_late_devices,
> > @@ -765,8 +760,6 @@ void __init sh73a0_earlytimer_init(void)
> >
> > void __init sh73a0_add_early_devices(void)
> > {
> > - early_platform_add_devices(sh73a0_devices_dt,
> > - ARRAY_SIZE(sh73a0_devices_dt));
> > early_platform_add_devices(sh73a0_early_devices,
> > ARRAY_SIZE(sh73a0_early_devices));
> >
> > @@ -782,8 +775,6 @@ void __init sh73a0_add_standard_devices_dt(void)
> > #ifndef CONFIG_COMMON_CLK
> > sh73a0_clock_init();
> > #endif
> > - platform_add_devices(sh73a0_devices_dt,
> > - ARRAY_SIZE(sh73a0_devices_dt));
> > of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
> > }
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 06/10] ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree
2014-09-02 9:13 [PATCH v2 06/10] ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree Ulrich Hecht
2014-09-04 7:10 ` Simon Horman
2014-09-09 21:50 ` Laurent Pinchart
@ 2014-09-09 23:55 ` Simon Horman
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-09-09 23:55 UTC (permalink / raw)
To: linux-sh
On Wed, Sep 10, 2014 at 12:50:19AM +0300, Laurent Pinchart wrote:
> Hi Simon,
>
> On Thursday 04 September 2014 16:10:25 Simon Horman wrote:
> > On Tue, Sep 02, 2014 at 11:13:02AM +0200, Ulrich Hecht wrote:
> > > Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
> > > ---
> > >
> > > arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++
> > > arch/arm/mach-shmobile/setup-sh73a0.c | 11 +----------
> >
> > Please split this into two patches, one per file.
>
> This would break bisection.
Thanks, in that case I withdraw my request.
>
> > > 2 files changed, 5 insertions(+), 10 deletions(-)
> > >
> > > diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> > > b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts index e33d698..83c6058
> > > 100644
> > > --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> > > +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> > > @@ -177,6 +177,10 @@
> > > clock-frequency = <48000000>;
> > > };
> > >
> > > +&cmt1 {
> > > + status = "ok";
> > > +};
> > > +
> > > &i2c0 {
> > > status = "okay";
> > > as3711@40 {
> > > diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c
> > > b/arch/arm/mach-shmobile/setup-sh73a0.c index 6d73b83..2c6ef79 100644
> > > --- a/arch/arm/mach-shmobile/setup-sh73a0.c
> > > +++ b/arch/arm/mach-shmobile/setup-sh73a0.c
> > > @@ -697,10 +697,6 @@ static struct platform_device irqpin3_device = {
> > > },
> > > };
> > >
> > > -static struct platform_device *sh73a0_devices_dt[] __initdata = {
> > > - &cmt1_device,
> > > -};
> > > -
> > > static struct platform_device *sh73a0_early_devices[] __initdata = {
> > > &scif0_device,
> > > &scif1_device,
> > > @@ -713,6 +709,7 @@ static struct platform_device *sh73a0_early_devices[]
> > > __initdata = {>
> > > &scif8_device,
> > > &tmu0_device,
> > > &ipmmu_device,
> > > + &cmt1_device,
> > > };
> > >
> > > static struct platform_device *sh73a0_late_devices[] __initdata = {
> > > @@ -737,8 +734,6 @@ void __init sh73a0_add_standard_devices(void)
> > >
> > > /* Clear software reset bit on SY-DMAC module */
> > > __raw_writel(__raw_readl(SRCR2) & ~(1 << 18), SRCR2);
> > > - platform_add_devices(sh73a0_devices_dt,
> > > - ARRAY_SIZE(sh73a0_devices_dt));
> > > platform_add_devices(sh73a0_early_devices,
> > > ARRAY_SIZE(sh73a0_early_devices));
> > > platform_add_devices(sh73a0_late_devices,
> > > @@ -765,8 +760,6 @@ void __init sh73a0_earlytimer_init(void)
> > >
> > > void __init sh73a0_add_early_devices(void)
> > > {
> > > - early_platform_add_devices(sh73a0_devices_dt,
> > > - ARRAY_SIZE(sh73a0_devices_dt));
> > > early_platform_add_devices(sh73a0_early_devices,
> > > ARRAY_SIZE(sh73a0_early_devices));
> > >
> > > @@ -782,8 +775,6 @@ void __init sh73a0_add_standard_devices_dt(void)
> > > #ifndef CONFIG_COMMON_CLK
> > > sh73a0_clock_init();
> > > #endif
> > > - platform_add_devices(sh73a0_devices_dt,
> > > - ARRAY_SIZE(sh73a0_devices_dt));
> > > of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
> > > }
>
> --
> Regards,
>
> Laurent Pinchart
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-09 23:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-02 9:13 [PATCH v2 06/10] ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree Ulrich Hecht
2014-09-04 7:10 ` Simon Horman
2014-09-09 21:50 ` Laurent Pinchart
2014-09-09 23:55 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).