linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 06/17] ARM: shmobile: lager-reference: Enable multiplaform kernel support
@ 2013-12-14 15:25 Laurent Pinchart
  2013-12-15 13:09 ` Geert Uytterhoeven
  2013-12-15 14:58 ` Sergei Shtylyov
  0 siblings, 2 replies; 3+ messages in thread
From: Laurent Pinchart @ 2013-12-14 15:25 UTC (permalink / raw)
  To: linux-sh

Enable multiplaform ARM architecture support for the Lager reference
board. Common clock framework initialization will be handled by the
rcar_gen2_init_timer() call, we just need to remove the legacy clock
code initialization.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
 arch/arm/boot/dts/Makefile                     | 1 +
 arch/arm/mach-shmobile/Kconfig                 | 8 ++++++++
 arch/arm/mach-shmobile/Makefile                | 1 +
 arch/arm/mach-shmobile/board-lager-reference.c | 2 ++
 4 files changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 33c6054..74e4186 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -236,6 +236,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_LEGACY) += emev2-kzm9d.dtb \
 	sh7372-mackerel.dtb
 dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d.dtb \
 	r7s72100-genmai-reference.dtb \
+	r8a7790-lager-reference.dtb \
 	r8a7791-koelsch-reference.dtb
 dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_arria5_socdk.dtb \
 	socfpga_cyclone5_socdk.dtb \
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index f01e878..a2a7bb4 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -28,6 +28,10 @@ config ARCH_EMEV2
 config ARCH_R7S72100
 	bool "RZ/A1H (R7S72100)"
 
+config ARCH_R8A7790
+	bool "R-Car H2 (R8A77900)"
+	select RENESAS_IRQC
+
 config ARCH_R8A7791
 	bool "R-Car M2 (R8A77910)"
 	select RENESAS_IRQC
@@ -47,6 +51,10 @@ config MACH_KZM9D
 	depends on ARCH_EMEV2
 	select REGULATOR_FIXED_VOLTAGE if REGULATOR
 
+config MACH_LAGER
+	bool "Lager board"
+	depends on ARCH_R8A7790
+
 comment "Renesas ARM SoCs System Configuration"
 endif
 
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile
index 1c13104..9daa9c1 100644
--- a/arch/arm/mach-shmobile/Makefile
+++ b/arch/arm/mach-shmobile/Makefile
@@ -59,6 +59,7 @@ ifdef CONFIG_ARCH_SHMOBILE_MULTI
 obj-$(CONFIG_MACH_GENMAI)	+= board-genmai-reference.o
 obj-$(CONFIG_MACH_KOELSCH)	+= board-koelsch-reference.o
 obj-$(CONFIG_MACH_KZM9D)	+= board-kzm9d-reference.o
+obj-$(CONFIG_MACH_LAGER)	+= board-lager-reference.o
 else
 obj-$(CONFIG_MACH_APE6EVM)	+= board-ape6evm.o
 obj-$(CONFIG_MACH_APE6EVM_REFERENCE)	+= board-ape6evm-reference.o
diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c
index 51a3bcc..fc43f7c 100644
--- a/arch/arm/mach-shmobile/board-lager-reference.c
+++ b/arch/arm/mach-shmobile/board-lager-reference.c
@@ -27,7 +27,9 @@
 
 static void __init lager_add_standard_devices(void)
 {
+#ifndef CONFIG_COMMON_CLK
 	r8a7790_clock_init();
+#endif
 	r8a7790_add_dt_devices();
 	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v5 06/17] ARM: shmobile: lager-reference: Enable multiplaform kernel support
  2013-12-14 15:25 [PATCH v5 06/17] ARM: shmobile: lager-reference: Enable multiplaform kernel support Laurent Pinchart
@ 2013-12-15 13:09 ` Geert Uytterhoeven
  2013-12-15 14:58 ` Sergei Shtylyov
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2013-12-15 13:09 UTC (permalink / raw)
  To: linux-sh

On Sat, Dec 14, 2013 at 4:25 PM, Laurent Pinchart
<laurent.pinchart+renesas@ideasonboard.com> wrote:
> +config ARCH_R8A7790
> +       bool "R-Car H2 (R8A77900)"

Is the trailing "0" intentional?

> +       select RENESAS_IRQC
> +
>  config ARCH_R8A7791
>         bool "R-Car M2 (R8A77910)"

Same here.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v5 06/17] ARM: shmobile: lager-reference: Enable multiplaform kernel support
  2013-12-14 15:25 [PATCH v5 06/17] ARM: shmobile: lager-reference: Enable multiplaform kernel support Laurent Pinchart
  2013-12-15 13:09 ` Geert Uytterhoeven
@ 2013-12-15 14:58 ` Sergei Shtylyov
  1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2013-12-15 14:58 UTC (permalink / raw)
  To: linux-sh

Hello.

On 15-12-2013 17:09, Geert Uytterhoeven wrote:

>> +config ARCH_R8A7790
>> +       bool "R-Car H2 (R8A77900)"

> Is the trailing "0" intentional?

>> +       select RENESAS_IRQC
>> +
>>   config ARCH_R8A7791
>>          bool "R-Car M2 (R8A77910)"

> Same here.

    Yes, it's the full model numbers.

> Gr{oetje,eeting}s,
>
>                          Geert

WBR, Sergei


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-15 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-14 15:25 [PATCH v5 06/17] ARM: shmobile: lager-reference: Enable multiplaform kernel support Laurent Pinchart
2013-12-15 13:09 ` Geert Uytterhoeven
2013-12-15 14:58 ` Sergei Shtylyov

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).