lkml.org 
[lkml]   [2023]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 6/6] soc: samsung: pm_domains: Add Exynos850 support
Date
Add a new compatible string for Exynos850, providing all HW specific
data, which enables Exynos PD support for this chip.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
drivers/soc/samsung/pm_domains.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)

diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c
index ec630a151247..795d8a9cd4b5 100644
--- a/drivers/soc/samsung/pm_domains.c
+++ b/drivers/soc/samsung/pm_domains.c
@@ -20,6 +20,8 @@
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>

+#include <dt-bindings/power/samsung,exynos850-power.h>
+
/* Register offsets inside Power Domain area in PMU */
#define EXYNOS_PD_CONF 0x0
#define EXYNOS_PD_STATUS 0x4
@@ -132,6 +134,21 @@ static const struct exynos_pm_domain_config exynos5433_cfg = {
.local_pwr_cfg = 0xf,
};

+static const unsigned int exynos850_pd_offsets[] = {
+ [EXYNOS850_PD_HSI] = 0x1c80,
+ [EXYNOS850_PD_G3D] = 0x1d00,
+ [EXYNOS850_PD_MFCMSCL] = 0x1d80,
+ [EXYNOS850_PD_DPU] = 0x2000,
+ [EXYNOS850_PD_AUD] = 0x2080,
+ [EXYNOS850_PD_IS] = 0x2100,
+};
+
+static const struct exynos_pm_domain_config exynos850_cfg = {
+ .local_pwr_cfg = 0x1,
+ .pd_offsets = exynos850_pd_offsets,
+ .pd_offsets_num = ARRAY_SIZE(exynos850_pd_offsets),
+};
+
static const struct of_device_id exynos_pm_domain_of_match[] = {
{
.compatible = "samsung,exynos4210-pd",
@@ -139,6 +156,9 @@ static const struct of_device_id exynos_pm_domain_of_match[] = {
}, {
.compatible = "samsung,exynos5433-pd",
.data = &exynos5433_cfg,
+ }, {
+ .compatible = "samsung,exynos850-pd",
+ .data = &exynos850_cfg,
},
{ },
};
--
2.39.2
\
 
 \ /
  Last update: 2023-03-27 00:50    [W:0.107 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site