diff options
author | Liu Ying <victor.liu@nxp.com> | 2017-07-24 13:29:58 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | be8dde782072e51ec04f4e3565f8b2e0ee8326ba (patch) | |
tree | f4459a9ad3eca8adcaffd0f8da97535a9c2134be | |
parent | 0f1e0edcc061e685f0839a5b3f55f3eaa5c210f5 (diff) |
MLK-16075-2 gpu: imx: dpu: prv: Cleanup definitions for YUV conversion mode bits
This patch cleans up definitions for the YUV conversion mode register field.
Two macros are introduced for users to program the field easily.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
-rw-r--r-- | drivers/gpu/imx/dpu/dpu-prv.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/gpu/imx/dpu/dpu-prv.h b/drivers/gpu/imx/dpu/dpu-prv.h index caf95d175c40..4dd87c3c8bbd 100644 --- a/drivers/gpu/imx/dpu/dpu-prv.h +++ b/drivers/gpu/imx/dpu/dpu-prv.h @@ -74,11 +74,13 @@ typedef enum { #define RGBALPHATRANSENABLE BIT(15) #define PREMULCONSTRGB BIT(16) typedef enum { - YUVCONVERSION__OFF, - YUVCONVERSION__ITU601, - YUVCONVERSION__ITU601_FR, - YUVCONVERSION__ITU709, -} yuvconversion_t; + YUVCONVERSIONMODE__OFF, + YUVCONVERSIONMODE__ITU601, + YUVCONVERSIONMODE__ITU601_FR, + YUVCONVERSIONMODE__ITU709, +} yuvconversionmode_t; +#define YUVCONVERSIONMODE_MASK 0x60000 +#define YUVCONVERSIONMODE(m) (((m) & 0x3) << 17) #define GAMMAREMOVEENABLE BIT(20) #define CLIPWINDOWENABLE BIT(30) #define SOURCEBUFFERENABLE BIT(31) |