This is ov5645 driver and tested with i.MX6 L3.0.35 BSP . It is modified based on ov5640.c.
The power down function for OV5645 is different from the OV5640. So modify the function in your_board.c like this:
static void mx6q_mipi_powerdown(int powerdown)
Original Attachment has been moved to: ov5645_mipi.c.zip