diff options
| author | Veera Sundaram Sankaran <veeras@codeaurora.org> | 2015-02-06 14:54:35 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:38:53 -0700 |
| commit | fc23d209fd5a3059016552872a0165e8a68496b7 (patch) | |
| tree | f1c72ac940a1144775647aafefcc6bd43e839ed8 /include/uapi | |
| parent | 328e4bd1740a7805f769049ce70916a1392b46d9 (diff) | |
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 <veeras@codeaurora.org>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/mdss_rotator.h | 12 |
1 files changed, 6 insertions, 6 deletions
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 |
