[media] v4l: omap4iss: csi2: Enable automatic ULP mode transition
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 29 Aug 2013 11:36:22 +0000 (08:36 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 11 Dec 2013 08:58:01 +0000 (06:58 -0200)
Automatically switch between ULP and ON states based on ULPM signal from
complex I/O.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/staging/media/omap4iss/iss_csiphy.c

index 25e6f89..d5c7cec 100644 (file)
@@ -63,8 +63,8 @@ static int csiphy_set_power(struct iss_csiphy *phy, u32 power)
 
        writel((readl(phy->cfg_regs + CSI2_COMPLEXIO_CFG) &
                ~CSI2_COMPLEXIO_CFG_PWD_CMD_MASK) |
-               power,
-               phy->cfg_regs + CSI2_COMPLEXIO_CFG);
+              power | CSI2_COMPLEXIO_CFG_PWR_AUTO,
+              phy->cfg_regs + CSI2_COMPLEXIO_CFG);
 
        retry_count = 0;
        do {