From fc23d209fd5a3059016552872a0165e8a68496b7 Mon Sep 17 00:00:00 2001 From: Veera Sundaram Sankaran Date: Fri, 6 Feb 2015 14:54:35 -0800 Subject: msm: mdss: re-factor new rotator flags Change rot_180 and rot_270 flags to be a combination of few other flags, as those would summarize the respective operation. This would adhere more to how hardware behaves and also allows more combinations. Change-Id: Ib8e6e9e01710b773284e3ec496c689b8d786502c Signed-off-by: Veera Sundaram Sankaran --- include/uapi/linux/mdss_rotator.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/mdss_rotator.h b/include/uapi/linux/mdss_rotator.h index 6def3ea2f17f..f8c9c16449b5 100644 --- a/include/uapi/linux/mdss_rotator.h +++ b/include/uapi/linux/mdss_rotator.h @@ -24,7 +24,7 @@ Rotation request flag **********************************************************************/ /* no rotation flag, i.e. color space conversion */ -#define MDP_ROTATION_NOP 0x01 +#define MDP_ROTATION_NOP 0x01 /* left/right flip */ #define MDP_ROTATION_FLIP_LR 0x02 @@ -33,19 +33,19 @@ Rotation request flag #define MDP_ROTATION_FLIP_UD 0x04 /* rotate 90 degree */ -#define MDP_ROTATION_90 0x08 +#define MDP_ROTATION_90 0x08 /* rotate 180 degre */ -#define MDP_ROTATION_180 0x10 +#define MDP_ROTATION_180 (MDP_ROTATION_FLIP_LR | MDP_ROTATION_FLIP_UD) /* rotate 270 degree */ -#define MDP_ROTATION_270 0x20 +#define MDP_ROTATION_270 (MDP_ROTATION_90 | MDP_ROTATION_180) /* enable bwc */ -#define MDP_ROTATION_BWC_EN 0x40 +#define MDP_ROTATION_BWC_EN 0x40 /* secure data */ -#define MDP_ROTATION_SECURE 0x80 +#define MDP_ROTATION_SECURE 0x80 /********************************************************************** Rotation commit flag -- cgit v1.2.3