* [PATCH] fixup! ARM: rockchip: rk3588: add memsize detection
@ 2023-05-22 5:13 Ahmad Fatoum
0 siblings, 0 replies; only message in thread
From: Ahmad Fatoum @ 2023-05-22 5:13 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
Extension of the Rockchip DMC driver for RK3588 support broke the
existing support for RK3566. Patch that up.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/arm/mach-rockchip/dmc.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-rockchip/dmc.c b/arch/arm/mach-rockchip/dmc.c
index 85fa8acd192f..630f0f6b7347 100644
--- a/arch/arm/mach-rockchip/dmc.c
+++ b/arch/arm/mach-rockchip/dmc.c
@@ -25,6 +25,7 @@
#define RK3399_INT_REG_START 0xf0000000
#define RK3568_INT_REG_START RK3399_INT_REG_START
+#define RK3588_INT_REG_START RK3568_INT_REG_START
struct rockchip_dmc_drvdata {
unsigned int os_reg2;
@@ -228,11 +229,17 @@ static const struct rockchip_dmc_drvdata rk3399_drvdata = {
};
static const struct rockchip_dmc_drvdata rk3568_drvdata = {
+ .os_reg2 = RK3568_PMUGRF_OS_REG2,
+ .os_reg3 = RK3568_PMUGRF_OS_REG3,
+ .internal_registers_start = RK3568_INT_REG_START,
+};
+
+static const struct rockchip_dmc_drvdata rk3588_drvdata = {
.os_reg2 = RK3588_PMUGRF_OS_REG2,
.os_reg3 = RK3588_PMUGRF_OS_REG3,
.os_reg4 = RK3588_PMUGRF_OS_REG4,
.os_reg5 = RK3588_PMUGRF_OS_REG5,
- .internal_registers_start = RK3568_INT_REG_START,
+ .internal_registers_start = RK3588_INT_REG_START,
};
static struct of_device_id rockchip_dmc_dt_ids[] = {
@@ -246,7 +253,7 @@ static struct of_device_id rockchip_dmc_dt_ids[] = {
},
{
.compatible = "rockchip,rk3588-dmc",
- .data = &rk3568_drvdata,
+ .data = &rk3588_drvdata,
},
{ /* sentinel */ }
};
--
2.39.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-22 5:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-22 5:13 [PATCH] fixup! ARM: rockchip: rk3588: add memsize detection Ahmad Fatoum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox