diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 14:14:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 14:14:29 -0400 |
commit | b3345d7c57d70e6cb6749af25cdbe80515582e99 (patch) | |
tree | 04cce706bc7e944ad1fb257108a8ae735948f97f /arch/arm/mach-exynos/platsmp.c | |
parent | 44c916d58b9ef1f2c4aec2def57fa8289c716a60 (diff) | |
parent | c2fff85e21818952aa0ee5778926beee6c03e579 (diff) |
Merge tag 'soc-for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC platform changes from Olof Johansson:
"This is the bulk of new SoC enablement and other platform changes for
3.17:
- Samsung S5PV210 has been converted to DT and multiplatform
- Clock drivers and bindings for some of the lower-end i.MX 1/2
platforms
- Kirkwood, one of the popular Marvell platforms, is folded into the
mvebu platform code, removing mach-kirkwood
- Hwmod data for TI AM43xx and DRA7 platforms
- More additions of Renesas shmobile platform support
- Removal of plat-samsung contents that can be removed with S5PV210
being multiplatform/DT-enabled and the other two old platforms
being removed
New platforms (most with only basic support right now):
- Hisilicon X5HD2 settop box chipset is introduced
- Mediatek MT6589 (mobile chipset) is introduced
- Broadcom BCM7xxx settop box chipset is introduced
+ as usual a lot other pieces all over the platform code"
* tag 'soc-for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (240 commits)
ARM: hisi: remove smp from machine descriptor
power: reset: move hisilicon reboot code
ARM: dts: Add hix5hd2-dkb dts file.
ARM: debug: Rename Hi3716 to HIX5HD2
ARM: hisi: enable hix5hd2 SoC
ARM: hisi: add ARCH_HISI
MAINTAINERS: add entry for Broadcom ARM STB architecture
ARM: brcmstb: select GISB arbiter and interrupt drivers
ARM: brcmstb: add infrastructure for ARM-based Broadcom STB SoCs
ARM: configs: enable SMP in bcm_defconfig
ARM: add SMP support for Broadcom mobile SoCs
Documentation: arm: misc updates to Marvell EBU SoC status
Documentation: arm: add URLs to public datasheets for the Marvell Armada XP SoC
ARM: mvebu: fix build without platforms selected
ARM: mvebu: add cpuidle support for Armada 38x
ARM: mvebu: add cpuidle support for Armada 370
cpuidle: mvebu: add Armada 38x support
cpuidle: mvebu: add Armada 370 support
cpuidle: mvebu: rename the driver from armada-370-xp to mvebu-v7
ARM: mvebu: export the SCU address
...
Diffstat (limited to 'arch/arm/mach-exynos/platsmp.c')
-rw-r--r-- | arch/arm/mach-exynos/platsmp.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index e5a8d764f24c..a9f1cf759949 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c | |||
@@ -26,6 +26,8 @@ | |||
26 | #include <asm/smp_scu.h> | 26 | #include <asm/smp_scu.h> |
27 | #include <asm/firmware.h> | 27 | #include <asm/firmware.h> |
28 | 28 | ||
29 | #include <mach/map.h> | ||
30 | |||
29 | #include "common.h" | 31 | #include "common.h" |
30 | #include "regs-pmu.h" | 32 | #include "regs-pmu.h" |
31 | 33 | ||
@@ -41,7 +43,7 @@ extern void exynos4_secondary_startup(void); | |||
41 | */ | 43 | */ |
42 | void exynos_cpu_power_down(int cpu) | 44 | void exynos_cpu_power_down(int cpu) |
43 | { | 45 | { |
44 | __raw_writel(0, EXYNOS_ARM_CORE_CONFIGURATION(cpu)); | 46 | pmu_raw_writel(0, EXYNOS_ARM_CORE_CONFIGURATION(cpu)); |
45 | } | 47 | } |
46 | 48 | ||
47 | /** | 49 | /** |
@@ -52,8 +54,8 @@ void exynos_cpu_power_down(int cpu) | |||
52 | */ | 54 | */ |
53 | void exynos_cpu_power_up(int cpu) | 55 | void exynos_cpu_power_up(int cpu) |
54 | { | 56 | { |
55 | __raw_writel(S5P_CORE_LOCAL_PWR_EN, | 57 | pmu_raw_writel(S5P_CORE_LOCAL_PWR_EN, |
56 | EXYNOS_ARM_CORE_CONFIGURATION(cpu)); | 58 | EXYNOS_ARM_CORE_CONFIGURATION(cpu)); |
57 | } | 59 | } |
58 | 60 | ||
59 | /** | 61 | /** |
@@ -63,7 +65,7 @@ void exynos_cpu_power_up(int cpu) | |||
63 | */ | 65 | */ |
64 | int exynos_cpu_power_state(int cpu) | 66 | int exynos_cpu_power_state(int cpu) |
65 | { | 67 | { |
66 | return (__raw_readl(EXYNOS_ARM_CORE_STATUS(cpu)) & | 68 | return (pmu_raw_readl(EXYNOS_ARM_CORE_STATUS(cpu)) & |
67 | S5P_CORE_LOCAL_PWR_EN); | 69 | S5P_CORE_LOCAL_PWR_EN); |
68 | } | 70 | } |
69 | 71 | ||
@@ -73,7 +75,7 @@ int exynos_cpu_power_state(int cpu) | |||
73 | */ | 75 | */ |
74 | void exynos_cluster_power_down(int cluster) | 76 | void exynos_cluster_power_down(int cluster) |
75 | { | 77 | { |
76 | __raw_writel(0, EXYNOS_COMMON_CONFIGURATION(cluster)); | 78 | pmu_raw_writel(0, EXYNOS_COMMON_CONFIGURATION(cluster)); |
77 | } | 79 | } |
78 | 80 | ||
79 | /** | 81 | /** |
@@ -82,8 +84,8 @@ void exynos_cluster_power_down(int cluster) | |||
82 | */ | 84 | */ |
83 | void exynos_cluster_power_up(int cluster) | 85 | void exynos_cluster_power_up(int cluster) |
84 | { | 86 | { |
85 | __raw_writel(S5P_CORE_LOCAL_PWR_EN, | 87 | pmu_raw_writel(S5P_CORE_LOCAL_PWR_EN, |
86 | EXYNOS_COMMON_CONFIGURATION(cluster)); | 88 | EXYNOS_COMMON_CONFIGURATION(cluster)); |
87 | } | 89 | } |
88 | 90 | ||
89 | /** | 91 | /** |
@@ -93,14 +95,14 @@ void exynos_cluster_power_up(int cluster) | |||
93 | */ | 95 | */ |
94 | int exynos_cluster_power_state(int cluster) | 96 | int exynos_cluster_power_state(int cluster) |
95 | { | 97 | { |
96 | return (__raw_readl(EXYNOS_COMMON_STATUS(cluster)) & | 98 | return (pmu_raw_readl(EXYNOS_COMMON_STATUS(cluster)) & |
97 | S5P_CORE_LOCAL_PWR_EN); | 99 | S5P_CORE_LOCAL_PWR_EN); |
98 | } | 100 | } |
99 | 101 | ||
100 | static inline void __iomem *cpu_boot_reg_base(void) | 102 | static inline void __iomem *cpu_boot_reg_base(void) |
101 | { | 103 | { |
102 | if (soc_is_exynos4210() && samsung_rev() == EXYNOS4210_REV_1_1) | 104 | if (soc_is_exynos4210() && samsung_rev() == EXYNOS4210_REV_1_1) |
103 | return S5P_INFORM5; | 105 | return pmu_base_addr + S5P_INFORM5; |
104 | return sysram_base_addr; | 106 | return sysram_base_addr; |
105 | } | 107 | } |
106 | 108 | ||