diff options
author | Olof Johansson <olof@lixom.net> | 2014-01-02 13:23:48 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-01-02 13:23:48 -0500 |
commit | 63df151aa1037e4f4e71ec009a3b233ee2cc1dea (patch) | |
tree | a886c62b097a88b3ff3fc2a394177a861b373c1a /arch/arm | |
parent | dd7d395883adce2e623e4ef0af7598e6987685d9 (diff) | |
parent | 17d0900c95622c0bb672bbd7115ae228cfc3cd21 (diff) |
Merge branch 'qcom/soc' into next/soc
* qcom/soc:
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/qcom-msm8974.dtsi | 33 | ||||
-rw-r--r-- | arch/arm/mach-msm/Kconfig | 15 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-trout.c | 12 |
3 files changed, 52 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..2ebb4f09a9b6 --- /dev/null +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi | |||
@@ -0,0 +1,33 @@ | |||
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 | }; | ||
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 | ||
45 | config ARCH_MSM8X60 | 45 | config 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 | ||
53 | config ARCH_MSM8960 | 54 | config 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 | ||
63 | config 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 | |||
61 | config ARCH_MSM_DT | 73 | config 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 | ||
79 | static struct map_desc trout_io_desc[] __initdata = { | 79 | static struct map_desc trout_io_desc[] __initdata = { |