/* Deal with the controller. Do everything we think we need to have the interface operating according to the desired format.  */
static void cafe_ctlr_dma(struct cafe_camera *cam)
/* Deal with the controller. Do everything we think we need to have the interface operating according to the desired format.  */
static void cafe_ctlr_dma(struct cafe_camera *cam)
{
	cafe_reg_write(cam, REG_Y0BAR, cam->dma_handles[0]);
	cafe_reg_write(cam, REG_Y1BAR, cam->dma_handles[1]);
	if (cam->nbufs > 2) {
		cafe_reg_write(cam, REG_Y2BAR, cam->dma_handles[2]);
		cafe_reg_clear_bit(cam, REG_CTRL1, C1_TWOBUFS);
	}
	else
		cafe_reg_set_bit(cam, REG_CTRL1, C1_TWOBUFS);
	cafe_reg_write(cam, REG_UBAR, 0);
}