Skip to contentSkip to conversation

arm: exynos: Enable mcpm for dual-cluster 5800 SoC

PATCH New Abhilash Kesavan 2 participants 2 messages May 26, 2014 – May 30, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: exynos: Enable mcpm for dual-cluster 5800 SoC

5800 is very similar to 5420. We can re-use the existing MCPM support for 5800 for secondary boot-up and switching.

---
 arch/arm/mach-exynos/mcpm-exynos.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
arch/arm/mach-exynos/mcpm-exynos.c +7 -1
index 1ac618c..20707bd 100644
@@ -290,13 +290,19 @@ static void __naked exynos_pm_power_up_setup(unsigned int affinity_level)
 	"b	cci_enable_port_for_self");
 }
 
+static const struct of_device_id exynos_dt_mcpm_match[] = {
+	{ .compatible = "samsung,exynos5420" },
+	{ .compatible = "samsung,exynos5800" },
+	{},
+};
+
 static int __init exynos_mcpm_init(void)
 {
 	struct device_node *node;
 	void __iomem *ns_sram_base_addr;
 	int ret;
 
-	node = of_find_compatible_node(NULL, NULL, "samsung,exynos5420");
+	node = of_find_matching_node(NULL, exynos_dt_mcpm_match);
 	if (!node)
 		return -ENODEV;
 	of_node_put(node);
Signature · 1 line
1.7.9.5
Applied
#1 lore raw

PATCH 1/1 arm: exynos: Enable mcpm for dual-cluster 5800 SoC

Quoted 23 lines · Abhilash Kesavan

5800 is very similar to 5420. We can re-use the existing MCPM support for 5800 for secondary boot-up and switching.

---
  arch/arm/mach-exynos/mcpm-exynos.c |    8 +++++++-
  1 file changed, 7 insertions(+), 1 deletion(-)
arch/arm/mach-exynos/mcpm-exynos.c +6 -0
index 1ac618c..20707bd 100644
@@ -290,13 +290,19 @@ static void __naked exynos_pm_power_up_setup(unsigned int affinity_level)
  	"b	cci_enable_port_for_self");
  }
 
+static const struct of_device_id exynos_dt_mcpm_match[] = {
+	{ .compatible = "samsung,exynos5420" },
+	{ .compatible = "samsung,exynos5800" },
+	{},
+};
+
  static int __init exynos_mcpm_init(void)

arch/arm/mach-exynos/mcpm-exynos.c static void __naked exynos_pm_power_up_setup(unsigned int affinity_level) · line 308

Quoted 10 lines
arch/arm/mach-exynos/mcpm-exynos.c +1 -1
  {
  	struct device_node *node;
  	void __iomem *ns_sram_base_addr;
  	int ret;
 
-	node = of_find_compatible_node(NULL, NULL, "samsung,exynos5420");
+	node = of_find_matching_node(NULL, exynos_dt_mcpm_match);
  	if (!node)
  		return -ENODEV;
  	of_node_put(node);

Applied, thanks.

- Kukjin