aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2013-07-17 16:31:18 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-07-22 20:52:25 -0400
commitcbc60e7c04f3c1390144d4a881f0a7b98b49da98 (patch)
treecc1f4a2dd0acb22b2219cdc9f7fa0193c1ea2ec4
parentefacfce5f8a523457e9419a25d52fe39db00b26a (diff)
ARM: shmobile: Add EMEV2 and KZM9D to ARCH_SHMOBILE_MULTI
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>
-rw-r--r--arch/arm/boot/dts/Makefile1
-rw-r--r--arch/arm/mach-shmobile/Kconfig15
-rw-r--r--arch/arm/mach-shmobile/board-kzm9d-reference.c3
-rw-r--r--arch/arm/mach-shmobile/setup-emev2.c3
4 files changed, 20 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index af19e38f8e97..f3861de9fd4e 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -193,6 +193,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \
193 sh73a0-kzm9g-reference.dtb \ 193 sh73a0-kzm9g-reference.dtb \
194 r8a73a4-ape6evm.dtb \ 194 r8a73a4-ape6evm.dtb \
195 sh7372-mackerel.dtb 195 sh7372-mackerel.dtb
196dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d-reference.dtb
196dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5.dtb \ 197dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5.dtb \
197 socfpga_vt.dtb 198 socfpga_vt.dtb
198dtb-$(CONFIG_ARCH_SPEAR13XX) += spear1310-evb.dtb \ 199dtb-$(CONFIG_ARCH_SPEAR13XX) += spear1310-evb.dtb \
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index 4c54298db2d4..8914c9b76048 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -17,6 +17,21 @@ if ARCH_SHMOBILE_MULTI
17 17
18comment "SH-Mobile System Type" 18comment "SH-Mobile System Type"
19 19
20config ARCH_EMEV2
21 bool "Emma Mobile EV2"
22
23comment "SH-Mobile Board Type"
24
25config MACH_KZM9D_REFERENCE
26 bool "KZM9D board - Reference Device Tree Implementation"
27 depends on ARCH_EMEV2
28 select REGULATOR_FIXED_VOLTAGE if REGULATOR
29 ---help---
30 Use reference implementation of KZM9D board support
31 which makes a greater use of device tree at the expense
32 of not supporting a number of devices.
33
34 This is intended to aid developers
20endif 35endif
21 36
22if ARCH_SHMOBILE 37if ARCH_SHMOBILE
diff --git a/arch/arm/mach-shmobile/board-kzm9d-reference.c b/arch/arm/mach-shmobile/board-kzm9d-reference.c
index a7b28b24ab38..8f8bb2fab076 100644
--- a/arch/arm/mach-shmobile/board-kzm9d-reference.c
+++ b/arch/arm/mach-shmobile/board-kzm9d-reference.c
@@ -26,7 +26,8 @@
26 26
27static void __init kzm9d_add_standard_devices(void) 27static void __init kzm9d_add_standard_devices(void)
28{ 28{
29 emev2_clock_init(); 29 if (!IS_ENABLED(CONFIG_COMMON_CLK))
30 emev2_clock_init();
30 31
31 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); 32 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
32} 33}
diff --git a/arch/arm/mach-shmobile/setup-emev2.c b/arch/arm/mach-shmobile/setup-emev2.c
index 19980be7d6a9..1553af8e04ff 100644
--- a/arch/arm/mach-shmobile/setup-emev2.c
+++ b/arch/arm/mach-shmobile/setup-emev2.c
@@ -175,7 +175,8 @@ static struct resource pmu_resources[] = {
175 175
176void __init emev2_add_standard_devices(void) 176void __init emev2_add_standard_devices(void)
177{ 177{
178 emev2_clock_init(); 178 if (!IS_ENABLED(CONFIG_COMMON_CLK))
179 emev2_clock_init();
179 180
180 emev2_register_uart(0); 181 emev2_register_uart(0);
181 emev2_register_uart(1); 182 emev2_register_uart(1);