you need to set register according to your connection, since you set IPUx_DC_GEN_MASK4CHAN_5 to 1, so you need MEM->DP, and use channel #23 as input channel, right?and you can refer to the display driver:
ipu_disp.c\ipu3\mxc\drivers - linux-imx - i.MX Linux kernel