This is ov5645 driver and tested with i.MX6 L3.0.35 BSP . It is modified based on ov5640.c.
P.S.
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)
{
if (!powerdown)
gpio_set_value(MIPI_PWDN, 1);
else
gpio_set_value(MIPI_PWDN, 0);
msleep(5);
}