ARM: shmobile: lager-reference: Enable multiplaform kernel support
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 11 Dec 2013 14:13:52 +0000 (15:13 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 19 Dec 2013 10:08:25 +0000 (19:08 +0900)
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>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/Makefile
arch/arm/mach-shmobile/Kconfig
arch/arm/mach-shmobile/Makefile
arch/arm/mach-shmobile/board-lager-reference.c

index 5ef42fca1db062ad6c10e9b13fbe17dadb67f938..9e22bd4caec677b55c8ec8fbea30a5410bb4dd27 100644 (file)
@@ -235,6 +235,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 \
index cd89d6348e0eda60867eaccdee1d6e428e1324a3..e7033a8584299837b8c1546d9562fa145e6ad2fa 100644 (file)
@@ -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
 
index 1c131046dec634ca92b0f61a99def17cdc7362ca..9daa9c16e6812a7bc89dc514a661149272990a86 100644 (file)
@@ -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
index 51a3bcc704e5257db674b39aa8de845d8d9fd853..fc43f7ce6577577ae71824ad82ef33a1b6e06271 100644 (file)
@@ -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);
 }