mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From 7e2082f55e6595ca976245d7a7ac1d89d5b1258b Mon Sep 17 00:00:00 2001
|
|
From: Jernej Skrabec <jernej.skrabec@gmail.com>
|
|
Date: Sun, 29 Sep 2024 22:04:48 +1300
|
|
Subject: drm: sun4i: de2/de3: add generic blender register reference function
|
|
|
|
The DE2 and DE3 engines have a blender register range within the
|
|
mixer engine register map, whereas the DE33 separates this out into
|
|
a separate display group.
|
|
|
|
Prepare for this by adding a function to look the blender reference up,
|
|
with a subsequent patch to add a conditional based on the DE type.
|
|
|
|
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
|
|
Signed-off-by: Ryan Walklin <ryan@testtoast.com>
|
|
---
|
|
drivers/gpu/drm/sun4i/sun8i_mixer.h | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.h b/drivers/gpu/drm/sun4i/sun8i_mixer.h
|
|
index 258f528202c1..ecba096c553b 100644
|
|
--- a/drivers/gpu/drm/sun4i/sun8i_mixer.h
|
|
+++ b/drivers/gpu/drm/sun4i/sun8i_mixer.h
|
|
@@ -227,6 +227,12 @@ sun8i_blender_base(struct sun8i_mixer *mixer)
|
|
return mixer->cfg->de_type == sun8i_mixer_de3 ? DE3_BLD_BASE : DE2_BLD_BASE;
|
|
}
|
|
|
|
+static inline struct regmap *
|
|
+sun8i_blender_regmap(struct sun8i_mixer *mixer)
|
|
+{
|
|
+ return mixer->engine.regs;
|
|
+}
|
|
+
|
|
static inline u32
|
|
sun8i_channel_base(struct sun8i_mixer *mixer, int channel)
|
|
{
|
|
--
|
|
2.51.0
|
|
|