Searched refs:ctrlclock (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/media/platform/soc_camera/
H A Domap1_camera.c429 u32 ctrlclock = CAM_READ_CACHE(pcdev, CTRLCLOCK); start_capture() local
441 if (unlikely(ctrlclock & LCLK_EN)) start_capture()
443 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock & ~LCLK_EN); start_capture()
459 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock | LCLK_EN); start_capture()
466 u32 ctrlclock = CAM_READ_CACHE(pcdev, CTRLCLOCK); suspend_capture() local
468 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock & ~LCLK_EN); suspend_capture()
917 u32 ctrlclock; omap1_cam_clock_start() local
922 ctrlclock = CAM_READ(pcdev, CTRLCLOCK); omap1_cam_clock_start()
923 ctrlclock &= ~(CAMEXCLK_EN | MCLK_EN | DPLL_EN); omap1_cam_clock_start()
924 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock); omap1_cam_clock_start()
926 ctrlclock &= ~FOSCMOD_MASK; omap1_cam_clock_start()
929 ctrlclock |= CAMEXCLK_EN | FOSCMOD_6MHz; omap1_cam_clock_start()
932 ctrlclock |= CAMEXCLK_EN | FOSCMOD_8MHz | DPLL_EN; omap1_cam_clock_start()
935 ctrlclock |= CAMEXCLK_EN | FOSCMOD_9_6MHz | DPLL_EN; omap1_cam_clock_start()
938 ctrlclock |= CAMEXCLK_EN | FOSCMOD_12MHz; omap1_cam_clock_start()
941 ctrlclock |= CAMEXCLK_EN | FOSCMOD_24MHz | DPLL_EN; omap1_cam_clock_start()
945 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock & ~DPLL_EN); omap1_cam_clock_start()
948 ctrlclock |= MCLK_EN; omap1_cam_clock_start()
949 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock); omap1_cam_clock_start()
959 u32 ctrlclock; omap1_cam_clock_stop() local
967 ctrlclock = CAM_READ_CACHE(pcdev, CTRLCLOCK); omap1_cam_clock_stop()
968 ctrlclock &= ~(MCLK_EN | DPLL_EN | CAMEXCLK_EN); omap1_cam_clock_stop()
969 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock); omap1_cam_clock_stop()
971 ctrlclock = (ctrlclock & ~FOSCMOD_MASK) | FOSCMOD_12MHz; omap1_cam_clock_stop()
972 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock); omap1_cam_clock_stop()
973 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock | MCLK_EN); omap1_cam_clock_stop()
975 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock & ~MCLK_EN); omap1_cam_clock_stop()
1447 u32 ctrlclock, mode; omap1_cam_set_bus_param() local
1483 ctrlclock = CAM_READ_CACHE(pcdev, CTRLCLOCK); omap1_cam_set_bus_param()
1484 if (ctrlclock & LCLK_EN) omap1_cam_set_bus_param()
1485 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock & ~LCLK_EN); omap1_cam_set_bus_param()
1489 ctrlclock |= POLCLK; omap1_cam_set_bus_param()
1492 ctrlclock &= ~POLCLK; omap1_cam_set_bus_param()
1494 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock & ~LCLK_EN); omap1_cam_set_bus_param()
1496 if (ctrlclock & LCLK_EN) omap1_cam_set_bus_param()
1497 CAM_WRITE(pcdev, CTRLCLOCK, ctrlclock); omap1_cam_set_bus_param()

Completed in 64 milliseconds