summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorGuoniu.Zhou <guoniu.zhou@nxp.com>2017-09-06 14:23:13 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:28:27 +0800
commit6c088299f5dac3493c9ceb4bca331df327163e2e (patch)
tree8d1f86fa34b479a91a435a968f80485023c6942b /include/uapi/linux
parent38124726b7b33d38f40cf7537c891dd5925f5938 (diff)
MLK-16374-3: PxP: improve stride parameter setting compatible
In pxp lib, the unit of stride parameter is pixel and stride is not equal with width parameter of out buffer in some cases. In order to use latest pxp lib in old version rootfs, PXP_DEVICE_LEGACY macro is used to distinguish pxp drvier version. Because the new pxp driver define a new variable and pxp lib can know this through PXP_DEVICE_LEGACY, and determine if use it. Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com> Reviewed-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 91da74e81cfdd2774b39a7574edf93de3f2a3f25)
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/pxp_dma.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/pxp_dma.h b/include/uapi/linux/pxp_dma.h
index 4b0b4f041719..76983abb4344 100644
--- a/include/uapi/linux/pxp_dma.h
+++ b/include/uapi/linux/pxp_dma.h
@@ -127,6 +127,8 @@ typedef unsigned char bool;
#define ALPHA_MODE_LEGACY 0x2
#define ALPHA_MODE_PORTER_DUFF 0x3
+#define PXP_DEVICE_LEGACY
+
/* Order significant! */
enum pxp_channel_status {
PXP_CHANNEL_FREE,
@@ -313,6 +315,7 @@ struct pxp_proc_data {
bool reagl_en; /* enable reagl/-d */
bool reagl_d_en; /* enable reagl or reagl-d */
bool detection_only;
+ bool pxp_legacy;
int lut;
bool lut_cleanup;
unsigned int lut_status_1;