Skip to content

Commit bd3bcb9

Browse files
jernejskmripard
authored andcommitted
drm/sun4i: Add CCSC property to DE2 configuration
Base addresses of channel output CSC (CCSC) depends whether mixer in question is first or second and if it is second, if supports VEP or not. This new property will tell which set of base addresses to take. Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Link: https://patchwork.freedesktop.org/patch/msgid/20171201060550.10392-23-jernej.skrabec@siol.net
1 parent b862a64 commit bd3bcb9

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎drivers/gpu/drm/sun4i/sun8i_mixer.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ static const struct sun8i_mixer_cfg sun8i_v3s_mixer_cfg = {
337337
.vi_num = 2,
338338
.ui_num = 1,
339339
.scaler_mask = 0x3,
340+
.ccsc = 0,
340341
};
341342

342343
static const struct of_device_id sun8i_mixer_of_table[] = {

‎drivers/gpu/drm/sun4i/sun8i_mixer.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,16 @@ struct de2_fmt_info {
9898
* First, scaler supports for VI channels is defined and after that, scaler
9999
* support for UI channels. For example, if mixer has 2 VI channels without
100100
* scaler and 2 UI channels with scaler, bitmask would be 0xC.
101+
* @ccsc: select set of CCSC base addresses
102+
* Set value to 0 if this is first mixer or second mixer with VEP support.
103+
* Set value to 1 if this is second mixer without VEP support. Other values
104+
* are invalid.
101105
*/
102106
struct sun8i_mixer_cfg {
103107
int vi_num;
104108
int ui_num;
105109
int scaler_mask;
110+
int ccsc;
106111
};
107112

108113
struct sun8i_mixer {

0 commit comments

Comments
 (0)