2 * Copyright (C) Jernej Skrabec <jernej.skrabec@siol.net>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
15 /* VI channel CSC units offsets */
16 #define CCSC00_OFFSET 0xAA050
17 #define CCSC01_OFFSET 0xFA000
18 #define CCSC10_OFFSET 0xA0000
19 #define CCSC11_OFFSET 0xF0000
21 #define SUN8I_CSC_CTRL(base) (base + 0x0)
22 #define SUN8I_CSC_COEFF(base, i) (base + 0x10 + 4 * i)
24 #define SUN8I_CSC_CTRL_EN BIT(0)
28 SUN8I_CSC_MODE_YUV2RGB
,
29 SUN8I_CSC_MODE_YVU2RGB
,
32 void sun8i_csc_set_ccsc_coefficients(struct sun8i_mixer
*mixer
, int layer
,
33 enum sun8i_csc_mode mode
);
34 void sun8i_csc_enable_ccsc(struct sun8i_mixer
*mixer
, int layer
, bool enable
);