I am wondering if someone in this community can help me that the correct step to setup VPIF display. We did following steps in CCS, it worked fine, but failed in Linux environment,
1. steupPinMux
3.3V Power Domain power up
Aux Clock Controls (Optional ?)
Video Clocks setup (Optional ?)
TSIF ( Transport Stream Interface ) Clocks (Optional ?)
* 2. Setup Power Sleep Controller
* 3. enablePll0 Setup Pll1 ( DSP @ 594 MHz )
* 4. enablePll1 Setup Pll2 ( DDR @ 297 MHz )
* 5. DDR_init Setup DDR2
6. TW2880 Registers Setup (Enable input from 6467 & output)
7. Enable Dm6467 VPIF CHANNEL 2
VPIF_DMA_SIZE = 32; // DMA request size
VPIF_EMU_CTRL = 1; // Free from Emulation
VPIF_CHCTRL2 = 0; // Disable Display Channel 2
clear FLD1_Y_STRTADR and so on...
vpif_clock_setup(VCH2CLK, VCH2CLK_AUXCLK)
set FLD0_C_STRTADR and FLD1_C/ FLD0_Y/ FLD1_Y to malloced bt656NtscCT CB YT YB buffer
set VPIF_CHCTRL2 bits.
IMG_LINE_OFFSET / HSIZE_CFG configure and so on...
Start Output: Channel 2 VPIF_CHCTRL2 |= 3
The questions is: do step 2,3,4,5 (marked with "*") are necessary for setup VPIF display? Thanks.