Hi,
My task is to make OMAP4430 receive a data from FPGA over the CCP2 camera interface, throughput > 100Mb/sec. FPGA acts here as a camera sensor following "SMIA 1.0 Part 2: CCP2 Specification".
Problem is that I cannot make the CSI22 COMPLEX_IO get RESET_DONE bit set after initialisation. The initialisation sequence is shown below.
Could you, please let me know is there any source code which does a full CCP2 initialisation.
# PM_CAM_PWRSTCTRL omapconf write 0x4A307000 0x00000003 # PM_CAM_PWRSTST omapconf read 0x4A307004 # CM_CAM_CLKSTCTRL omapconf write 0x4a009000 0x00000002 omapconf read 0x4a009000 # CM_CAM_ISS_CLKCTRL omapconf write 0x4a009020 0x00000000 omapconf read 0x4a009020 omapconf write 0x4a009020 0x00000102 omapconf read 0x4a009020 # CONTROL_CAMERA_RX omapconf write 0x4A100608 0x60240000 omapconf read 0x4A100608 # CONTROL_CORE_PAD0_CSI22_DX0_PAD1_CSI22_DY0 omapconf write 0x4A1000b4 0x01000100 # CONTROL_CORE_PAD0_CSI22_DX1_PAD1_CSI22_DY1 omapconf write 0x4A1000b8 0x01000100 # ISS_HL_SYSCONFIG omapconf write 0x52000010 0x0000003D omapconf read 0x52000010 omapconf read 0x52001450 omapconf read 0x52001574 # ISS_CLKCTRL omapconf write 0x52000084 0xF0000010 # ISS_CLKSTAT omapconf read 0x52000088 # ISS_PM_STATUS omapconf read 0x5200008c # ISS_HL_IRQENABLE_SET_5 omapconf write 0x52000078 0x000303c0 # CSI2_SYSCONFIG omapconf write 0x52001410 0x00000003 omapconf write 0x52001410 0x00001000 omapconf read 0x52001414 # CCP2_SYSCONFIG omapconf write 0x52001C04 0x00000003 omapconf read 0x52001C04 omapconf write 0x52001C04 0x00001000 # CSI2_COMPLEXIO_CFG omapconf write 0x52001450 0x00000021 omapconf read 0x52001450 # CONTROL_CAMERA_RX omapconf write 0x4A100608 0x60100000 omapconf write 0x4A100608 0x60340000 mapconf write 0x52001570 0x00000008 omapconf read 0x52001570 omapconf read 0x52001574 omapconf read 0x52001450 # CSI2_COMPLEXIO_CFG omapconf write 0x52001450 0x40000021 # CSI2_TIMING page 1684 omapconf write 0x5200146C 0x7fffffff # CSI2_COMPLEXIO_CFG omapconf write 0x52001450 0x48000021 omapconf read 0x52001450 # CSI2_TIMING omapconf write 0x5200146C 0x7fff7fff omapconf read 0x52001570 omapconf read 0x52001574 omapconf read 0x52001450
Kind Regards
Dragan