Hi,
I am porting a ov3640 cmos camera driver to dm365 platform. The camera output general YUV422 data through CIN0~CIN7 data lines, all the signals including HD,VD,PCLK are OK.
The matter is, when I started the transfer and captured a frame of image, all the data received are only 0, even though I pulled all the data lines high by a CPLD(should be read out 0xff of all the bytes!)( the CPLD interfaced between cmos and cpu with VPFE signals), it seems that dm365 hasn't read data from data lines? I have also tried to change the value of CCDCFG.YCINSWP to make sure it has read the right data lines, but there was no effect.
Following is the setting of some registers in ISIF module. Please give me some hints, thanks.
SYNCEN=0x3
MODESET=0x2004
HDW=0x0
VDW=0x0
PPLN=0x0
LPFR=0x0
SPH=0x0
LNH=0x7ff
SLV0=0x1
SLV1=0x1
LNV=0x2ff
CULH=0xffff
CULV=0xff
HSIZE=0x40
SDOFST=0x0
CADU=0x42c
CADL=0x0
LINCFG0=0x0
LINCFG1=0x0
CCOLP=0x0
CRGAIN=0x200
CGRGAIN=0x200
CGBGAIN=0x200
CBGAIN=0x200
COFSTA=0x0
FLSHCFG0=0x0
FLSHCFG1=0x0
FLSHCFG2=0x0
MISC=0x0
CGAMMAWD=0x0
REC656IF=0x0
CCDCFG=0x812
VDINT0=0x0
VDINT1=0x181
VDINT2=0x0