Folks,

I'm trying to switch VPBE to digital mode. I've patched
drivers/video/davincifb.c and added new init function listed below.
Osciloscope shows nothing on digital out, of course. What is wrong?
What I forgot?

static void davincifb_ntsc_rgb_config(int on)
{
       DBGENTER;

       if (on) {
               dispc_reg_out(VENC_VMOD, 0);

               /* VMOD.VDMD (12-15) = RGB666 (2h)
                * VMOD.VENC(0) = 1 */
             dispc_reg_out(VENC_VMOD, (BIT00 | BIT13));

               /* VIDCTL.VCLKE (13) = 1
                * VIDCTL.VCLKZ default
                * VIDCTL.VCLKP default
                * VIDCTL.SYDIR default
                * VIDCTL.DOMD (4,5) = 3h */
               dispc_reg_out(VENC_VIDCTL, (BIT13 | BIT04 | BIT05));

       } else {
               /* Reset video encoder module */
               dispc_reg_out(VENC_VMOD, 0);
       }
       DBGEXIT;
}
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to