diff mbox series

[2/2] media: imx-pxp: Disable LUT and Rotation 0 blocks

Message ID 20200510223100.11641-3-laurent.pinchart@ideasonboard.com
State New
Headers show
Series [1/2] media: imx-pxp: Fix routing configuration for i.MX7 | expand

Commit Message

Laurent Pinchart May 10, 2020, 10:31 p.m. UTC
The LUT block is configured in bypass mode, and the Rotation 0 block has
a harcoded 0 degrees rotation. Disable those two blocks, and update
routing accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 drivers/media/platform/imx-pxp.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/drivers/media/platform/imx-pxp.c b/drivers/media/platform/imx-pxp.c
index 53e3f8c8435f..f34317e4a6ed 100644
--- a/drivers/media/platform/imx-pxp.c
+++ b/drivers/media/platform/imx-pxp.c
@@ -919,12 +919,12 @@  static int pxp_start(struct pxp_ctx *ctx, struct vb2_v4l2_buffer *in_vb,
 	 */
 	pxp_write(dev, HW_PXP_DATA_PATH_CTRL0,
 		  BF_PXP_DATA_PATH_CTRL0_MUX15_SEL(3)|
-		  BF_PXP_DATA_PATH_CTRL0_MUX14_SEL(0)|
+		  BF_PXP_DATA_PATH_CTRL0_MUX14_SEL(1)|
 		  BF_PXP_DATA_PATH_CTRL0_MUX13_SEL(3)|
-		  BF_PXP_DATA_PATH_CTRL0_MUX12_SEL(1)|
-		  BF_PXP_DATA_PATH_CTRL0_MUX11_SEL(0)|
+		  BF_PXP_DATA_PATH_CTRL0_MUX12_SEL(3)|
+		  BF_PXP_DATA_PATH_CTRL0_MUX11_SEL(1)|
 		  BF_PXP_DATA_PATH_CTRL0_MUX10_SEL(3)|
-		  BF_PXP_DATA_PATH_CTRL0_MUX9_SEL(1)|
+		  BF_PXP_DATA_PATH_CTRL0_MUX9_SEL(3)|
 		  BF_PXP_DATA_PATH_CTRL0_MUX8_SEL(0)|
 		  BF_PXP_DATA_PATH_CTRL0_MUX7_SEL(3)|
 		  BF_PXP_DATA_PATH_CTRL0_MUX6_SEL(1)|
@@ -944,7 +944,6 @@  static int pxp_start(struct pxp_ctx *ctx, struct vb2_v4l2_buffer *in_vb,
 	pxp_write(dev, HW_PXP_CTRL_SET, BM_PXP_CTRL_IRQ_ENABLE);
 	pxp_write(dev, HW_PXP_CTRL_SET,
 		  BM_PXP_CTRL_ENABLE | BM_PXP_CTRL_ENABLE_CSC2 |
-		  BM_PXP_CTRL_ENABLE_LUT | BM_PXP_CTRL_ENABLE_ROTATE0 |
 		  BM_PXP_CTRL_ENABLE_PS_AS_OUT);
 
 	return 0;