summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFancy Fang <chen.fang@nxp.com>2017-03-11 17:08:42 +0800
committerAnson Huang <Anson.Huang@nxp.com>2017-06-09 22:19:56 +0800
commitd3a69fb0536060a96c014c2dad579effb2bfddf4 (patch)
tree8b08806611fc24667d3d593c6dcf22a4e04bbd21 /include
parentdeff1fd5d88f0fe0457bb1ab2b78ea435d7027a7 (diff)
MLK-14314-5 dma: pxp-v3: divide whole pxp into four parts
According to the pxp high level architecture diagram, it is better to divide the whole big pxp module into four sub-modules: 1. 2D operation module(legacy pxp and input fetch & store). 2. Dithering module. 3. WFE_A module. 4. WFE_B module. This division will simplify driver implementations and management. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 5e57840b41adb195515bd652d9624feaadf3448e)
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/pxp_dma.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/linux/pxp_dma.h b/include/uapi/linux/pxp_dma.h
index 2cfa8e412fc7..a370e0e44430 100644
--- a/include/uapi/linux/pxp_dma.h
+++ b/include/uapi/linux/pxp_dma.h
@@ -153,6 +153,13 @@ enum pxp_engine_ctrl {
PXP_ENABLE_DITHER_BYPASS = 0x2000,
};
+enum pxp_op_type {
+ PXP_OP_2D = 0x001,
+ PXP_OP_DITHER = 0x002,
+ PXP_OP_WFE_A = 0x004,
+ PXP_OP_WFE_B = 0x008,
+};
+
struct rect {
int top; /* Upper left coordinate of rectangle */
int left;
@@ -230,6 +237,8 @@ struct pxp_proc_data {
bool lut_map_updated; /* Map recently changed */
bool combine_enable;
+ enum pxp_op_type op_type;
+
/* LUT cleanup */
__u64 lut_sels;