aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2014-01-02 13:23:58 -0500
committerOlof Johansson <olof@lixom.net>2014-01-02 13:23:58 -0500
commitc56569b37273e23c5f9576592fa4c5e5f859ed47 (patch)
treeb6a906c2421511d43aaa4639f6ad16d50b571471
parentaa1ed457aee209d445dc2ac65c535eb7e232c788 (diff)
parent47c5a5d6fd5839946c948563573cd9de077a91bb (diff)
Merge branch 'qcom/dt' into next/dt
* qcom/dt: ARM: dts: MSM8974: Add MMIO architected timer node ARM: dts: MSM8974: Add restart node ARM: msm: Simplify ARCH_MSM_DT config ARM: msm: Add support for MSM8974 SoC ARM: msm: trout: fix uninit var warning Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--arch/arm/boot/dts/qcom-msm8974.dtsi97
-rw-r--r--arch/arm/mach-msm/Kconfig15
-rw-r--r--arch/arm/mach-msm/board-trout.c12
3 files changed, 116 insertions, 8 deletions
diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
new file mode 100644
index 000000000000..6ac94967d2d3
--- /dev/null
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -0,0 +1,97 @@
1/dts-v1/;
2
3#include "skeleton.dtsi"
4
5/ {
6 model = "Qualcomm MSM8974";
7 compatible = "qcom,msm8974";
8 interrupt-parent = <&intc>;
9
10 soc: soc {
11 #address-cells = <1>;
12 #size-cells = <1>;
13 ranges;
14 compatible = "simple-bus";
15
16 intc: interrupt-controller@f9000000 {
17 compatible = "qcom,msm-qgic2";
18 interrupt-controller;
19 #interrupt-cells = <3>;
20 reg = <0xf9000000 0x1000>,
21 <0xf9002000 0x1000>;
22 };
23
24 timer {
25 compatible = "arm,armv7-timer";
26 interrupts = <1 2 0xf08>,
27 <1 3 0xf08>,
28 <1 4 0xf08>,
29 <1 1 0xf08>;
30 clock-frequency = <19200000>;
31 };
32
33 timer@f9020000 {
34 #address-cells = <1>;
35 #size-cells = <1>;
36 ranges;
37 compatible = "arm,armv7-timer-mem";
38 reg = <0xf9020000 0x1000>;
39 clock-frequency = <19200000>;
40
41 frame@f9021000 {
42 frame-number = <0>;
43 interrupts = <0 8 0x4>,
44 <0 7 0x4>;
45 reg = <0xf9021000 0x1000>,
46 <0xf9022000 0x1000>;
47 };
48
49 frame@f9023000 {
50 frame-number = <1>;
51 interrupts = <0 9 0x4>;
52 reg = <0xf9023000 0x1000>;
53 status = "disabled";
54 };
55
56 frame@f9024000 {
57 frame-number = <2>;
58 interrupts = <0 10 0x4>;
59 reg = <0xf9024000 0x1000>;
60 status = "disabled";
61 };
62
63 frame@f9025000 {
64 frame-number = <3>;
65 interrupts = <0 11 0x4>;
66 reg = <0xf9025000 0x1000>;
67 status = "disabled";
68 };
69
70 frame@f9026000 {
71 frame-number = <4>;
72 interrupts = <0 12 0x4>;
73 reg = <0xf9026000 0x1000>;
74 status = "disabled";
75 };
76
77 frame@f9027000 {
78 frame-number = <5>;
79 interrupts = <0 13 0x4>;
80 reg = <0xf9027000 0x1000>;
81 status = "disabled";
82 };
83
84 frame@f9028000 {
85 frame-number = <6>;
86 interrupts = <0 14 0x4>;
87 reg = <0xf9028000 0x1000>;
88 status = "disabled";
89 };
90 };
91
92 restart@fc4ab000 {
93 compatible = "qcom,pshold";
94 reg = <0xfc4ab000 0x4>;
95 };
96 };
97};
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
index 2586c2865874..702553b96137 100644
--- a/arch/arm/mach-msm/Kconfig
+++ b/arch/arm/mach-msm/Kconfig
@@ -44,6 +44,7 @@ endchoice
44 44
45config ARCH_MSM8X60 45config ARCH_MSM8X60
46 bool "MSM8X60" 46 bool "MSM8X60"
47 select ARCH_MSM_DT
47 select ARM_GIC 48 select ARM_GIC
48 select CPU_V7 49 select CPU_V7
49 select GPIO_MSM_V2 50 select GPIO_MSM_V2
@@ -52,15 +53,25 @@ config ARCH_MSM8X60
52 53
53config ARCH_MSM8960 54config ARCH_MSM8960
54 bool "MSM8960" 55 bool "MSM8960"
56 select ARCH_MSM_DT
55 select ARM_GIC 57 select ARM_GIC
56 select CPU_V7 58 select CPU_V7
57 select HAVE_SMP 59 select HAVE_SMP
58 select GPIO_MSM_V2 60 select GPIO_MSM_V2
59 select MSM_SCM if SMP 61 select MSM_SCM if SMP
60 62
63config ARCH_MSM8974
64 bool "MSM8974"
65 select ARCH_MSM_DT
66 select ARM_GIC
67 select CPU_V7
68 select HAVE_ARM_ARCH_TIMER
69 select HAVE_SMP
70 select MSM_SCM if SMP
71 select USE_OF
72
61config ARCH_MSM_DT 73config ARCH_MSM_DT
62 def_bool y 74 bool
63 depends on (ARCH_MSM8X60 || ARCH_MSM8960)
64 select SPARSE_IRQ 75 select SPARSE_IRQ
65 select USE_OF 76 select USE_OF
66 77
diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c
index ccf6621bc664..015d544aa017 100644
--- a/arch/arm/mach-msm/board-trout.c
+++ b/arch/arm/mach-msm/board-trout.c
@@ -13,6 +13,7 @@
13 * GNU General Public License for more details. 13 * GNU General Public License for more details.
14 * 14 *
15 */ 15 */
16#define pr_fmt(fmt) "%s: " fmt, __func__
16 17
17#include <linux/kernel.h> 18#include <linux/kernel.h>
18#include <linux/init.h> 19#include <linux/init.h>
@@ -68,12 +69,11 @@ static void __init trout_init(void)
68 69
69 platform_add_devices(devices, ARRAY_SIZE(devices)); 70 platform_add_devices(devices, ARRAY_SIZE(devices));
70 71
71#ifdef CONFIG_MMC 72 if (IS_ENABLED(CONFIG_MMC)) {
72 rc = trout_init_mmc(system_rev); 73 rc = trout_init_mmc(system_rev);
73 if (rc) 74 if (rc)
74 printk(KERN_CRIT "%s: MMC init failure (%d)\n", __func__, rc); 75 pr_crit("MMC init failure (%d)\n", rc);
75#endif 76 }
76
77} 77}
78 78
79static struct map_desc trout_io_desc[] __initdata = { 79static struct map_desc trout_io_desc[] __initdata = {