diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2014-07-28 08:14:32 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-07-31 01:32:21 -0400 |
commit | c2fff85e21818952aa0ee5778926beee6c03e579 (patch) | |
tree | ae19565d16ad482dfe647363c2664beeb592df3a | |
parent | 4a9b37371822c6b47fdd87118e4f91b5ebc70b6f (diff) |
ARM: hisi: remove smp from machine descriptor
Use CPU_METHOD_OF_DECLARE() instead. And declare smp method in dts file.
Changelog:
v6:
* Use hisilicon,hi3620-smp as enable-method property in Hi3620 dts.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Acked-by: Wei Xu <xuwei5@hisilicon.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm/boot/dts/hi3620.dtsi | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/hisi-x5hd2-dkb.dts | 1 | ||||
-rw-r--r-- | arch/arm/mach-hisi/hisilicon.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-hisi/platsmp.c | 3 |
4 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/hi3620.dtsi b/arch/arm/boot/dts/hi3620.dtsi index ab1116d086be..a7b0d3d72adb 100644 --- a/arch/arm/boot/dts/hi3620.dtsi +++ b/arch/arm/boot/dts/hi3620.dtsi | |||
@@ -33,6 +33,7 @@ | |||
33 | cpus { | 33 | cpus { |
34 | #address-cells = <1>; | 34 | #address-cells = <1>; |
35 | #size-cells = <0>; | 35 | #size-cells = <0>; |
36 | enable-method = "hisilicon,hi3620-smp"; | ||
36 | 37 | ||
37 | cpu@0 { | 38 | cpu@0 { |
38 | device_type = "cpu"; | 39 | device_type = "cpu"; |
diff --git a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts index 9eafb7b00a26..05b44c272c9a 100644 --- a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts +++ b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts | |||
@@ -21,6 +21,7 @@ | |||
21 | cpus { | 21 | cpus { |
22 | #address-cells = <1>; | 22 | #address-cells = <1>; |
23 | #size-cells = <0>; | 23 | #size-cells = <0>; |
24 | enable-method = "hisilicon,hix5hd2-smp"; | ||
24 | 25 | ||
25 | cpu@0 { | 26 | cpu@0 { |
26 | compatible = "arm,cortex-a9"; | 27 | compatible = "arm,cortex-a9"; |
diff --git a/arch/arm/mach-hisi/hisilicon.c b/arch/arm/mach-hisi/hisilicon.c index 7996c6b74339..7cda6dda3cd0 100644 --- a/arch/arm/mach-hisi/hisilicon.c +++ b/arch/arm/mach-hisi/hisilicon.c | |||
@@ -18,8 +18,6 @@ | |||
18 | #include <asm/mach/arch.h> | 18 | #include <asm/mach/arch.h> |
19 | #include <asm/mach/map.h> | 19 | #include <asm/mach/map.h> |
20 | 20 | ||
21 | #include "core.h" | ||
22 | |||
23 | #define HI3620_SYSCTRL_PHYS_BASE 0xfc802000 | 21 | #define HI3620_SYSCTRL_PHYS_BASE 0xfc802000 |
24 | #define HI3620_SYSCTRL_VIRT_BASE 0xfe802000 | 22 | #define HI3620_SYSCTRL_VIRT_BASE 0xfe802000 |
25 | 23 | ||
@@ -55,7 +53,6 @@ static const char *hi3xxx_compat[] __initconst = { | |||
55 | DT_MACHINE_START(HI3620, "Hisilicon Hi3620 (Flattened Device Tree)") | 53 | DT_MACHINE_START(HI3620, "Hisilicon Hi3620 (Flattened Device Tree)") |
56 | .map_io = hi3620_map_io, | 54 | .map_io = hi3620_map_io, |
57 | .dt_compat = hi3xxx_compat, | 55 | .dt_compat = hi3xxx_compat, |
58 | .smp = smp_ops(hi3xxx_smp_ops), | ||
59 | MACHINE_END | 56 | MACHINE_END |
60 | 57 | ||
61 | static const char *hix5hd2_compat[] __initconst = { | 58 | static const char *hix5hd2_compat[] __initconst = { |
@@ -65,5 +62,4 @@ static const char *hix5hd2_compat[] __initconst = { | |||
65 | 62 | ||
66 | DT_MACHINE_START(HIX5HD2_DT, "Hisilicon HIX5HD2 (Flattened Device Tree)") | 63 | DT_MACHINE_START(HIX5HD2_DT, "Hisilicon HIX5HD2 (Flattened Device Tree)") |
67 | .dt_compat = hix5hd2_compat, | 64 | .dt_compat = hix5hd2_compat, |
68 | .smp = smp_ops(hix5hd2_smp_ops), | ||
69 | MACHINE_END | 65 | MACHINE_END |
diff --git a/arch/arm/mach-hisi/platsmp.c b/arch/arm/mach-hisi/platsmp.c index ecf7058d5c15..575dd8285f1f 100644 --- a/arch/arm/mach-hisi/platsmp.c +++ b/arch/arm/mach-hisi/platsmp.c | |||
@@ -131,3 +131,6 @@ struct smp_operations hix5hd2_smp_ops __initdata = { | |||
131 | .cpu_die = hix5hd2_cpu_die, | 131 | .cpu_die = hix5hd2_cpu_die, |
132 | #endif | 132 | #endif |
133 | }; | 133 | }; |
134 | |||
135 | CPU_METHOD_OF_DECLARE(hi3xxx_smp, "hisilicon,hi3620-smp", &hi3xxx_smp_ops); | ||
136 | CPU_METHOD_OF_DECLARE(hix5hd2_smp, "hisilicon,hix5hd2-smp", &hix5hd2_smp_ops); | ||