]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: shmobile: Add EMEV2 and KZM9D to ARCH_SHMOBILE_MULTI
authorMagnus Damm <damm@opensource.se>
Wed, 17 Jul 2013 20:31:18 +0000 (05:31 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 23 Jul 2013 00:52:25 +0000 (09:52 +0900)
Enable build of EMEV2 and KZM9D DT Reference in
case of ARCH_MULTIPLATFORM and ARCH_SHMOBILE_MULTI.

IS_ENABLED() is leaves the clock-emev2.c file out
in case of COMMON_CLK=y.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/Makefile
arch/arm/mach-shmobile/Kconfig
arch/arm/mach-shmobile/board-kzm9d-reference.c
arch/arm/mach-shmobile/setup-emev2.c

index af19e38f8e97a8b3b6f0524c1280eb0eb03c796c..f3861de9fd4ee06cccab4d13552da832f92e36c5 100644 (file)
@@ -193,6 +193,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \
        sh73a0-kzm9g-reference.dtb \
        r8a73a4-ape6evm.dtb \
        sh7372-mackerel.dtb
+dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d-reference.dtb
 dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5.dtb \
        socfpga_vt.dtb
 dtb-$(CONFIG_ARCH_SPEAR13XX) += spear1310-evb.dtb \
index 4c54298db2d45ebdb1ae8bf952ae8bfdbb38e288..8914c9b760488ab2965ed83178e9cefb11021793 100644 (file)
@@ -17,6 +17,21 @@ if ARCH_SHMOBILE_MULTI
 
 comment "SH-Mobile System Type"
 
+config ARCH_EMEV2
+       bool "Emma Mobile EV2"
+
+comment "SH-Mobile Board Type"
+
+config MACH_KZM9D_REFERENCE
+       bool "KZM9D board - Reference Device Tree Implementation"
+       depends on ARCH_EMEV2
+       select REGULATOR_FIXED_VOLTAGE if REGULATOR
+       ---help---
+          Use reference implementation of KZM9D board support
+          which makes a greater use of device tree at the expense
+          of not supporting a number of devices.
+
+          This is intended to aid developers
 endif
 
 if ARCH_SHMOBILE
index a7b28b24ab38e6bbcf038eb29568cf740a4d2335..8f8bb2fab07697413486d9ac07b4004b528a05bf 100644 (file)
@@ -26,7 +26,8 @@
 
 static void __init kzm9d_add_standard_devices(void)
 {
-       emev2_clock_init();
+       if (!IS_ENABLED(CONFIG_COMMON_CLK))
+               emev2_clock_init();
 
        of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
index 19980be7d6a9cad1bef8a8af877b9d2da6c62287..1553af8e04ff39fca308c2cb507565c86bafb4af 100644 (file)
@@ -175,7 +175,8 @@ static struct resource pmu_resources[] = {
 
 void __init emev2_add_standard_devices(void)
 {
-       emev2_clock_init();
+       if (!IS_ENABLED(CONFIG_COMMON_CLK))
+               emev2_clock_init();
 
        emev2_register_uart(0);
        emev2_register_uart(1);