Commit cce093ee authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

[media] v4l: omap4iss: Move common code out of switch...case

Code common to all cases can be moved out of the switch...case
statement.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ea72717e
...@@ -178,12 +178,10 @@ void omap4iss_configure_bridge(struct iss_device *iss, ...@@ -178,12 +178,10 @@ void omap4iss_configure_bridge(struct iss_device *iss,
switch (input) { switch (input) {
case IPIPEIF_INPUT_CSI2A: case IPIPEIF_INPUT_CSI2A:
issctrl_val |= ISS_CTRL_INPUT_SEL_CSI2A; issctrl_val |= ISS_CTRL_INPUT_SEL_CSI2A;
isp5ctrl_val |= ISP5_CTRL_VD_PULSE_EXT;
break; break;
case IPIPEIF_INPUT_CSI2B: case IPIPEIF_INPUT_CSI2B:
issctrl_val |= ISS_CTRL_INPUT_SEL_CSI2B; issctrl_val |= ISS_CTRL_INPUT_SEL_CSI2B;
isp5ctrl_val |= ISP5_CTRL_VD_PULSE_EXT;
break; break;
default: default:
...@@ -192,7 +190,8 @@ void omap4iss_configure_bridge(struct iss_device *iss, ...@@ -192,7 +190,8 @@ void omap4iss_configure_bridge(struct iss_device *iss,
issctrl_val |= ISS_CTRL_SYNC_DETECT_VS_RAISING; issctrl_val |= ISS_CTRL_SYNC_DETECT_VS_RAISING;
isp5ctrl_val |= ISP5_CTRL_PSYNC_CLK_SEL | ISP5_CTRL_SYNC_ENABLE; isp5ctrl_val |= ISP5_CTRL_VD_PULSE_EXT | ISP5_CTRL_PSYNC_CLK_SEL |
ISP5_CTRL_SYNC_ENABLE;
writel(issctrl_val, iss->regs[OMAP4_ISS_MEM_TOP] + ISS_CTRL); writel(issctrl_val, iss->regs[OMAP4_ISS_MEM_TOP] + ISS_CTRL);
writel(isp5ctrl_val, iss->regs[OMAP4_ISS_MEM_ISP_SYS1] + ISP5_CTRL); writel(isp5ctrl_val, iss->regs[OMAP4_ISS_MEM_ISP_SYS1] + ISP5_CTRL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment