Hi, All
     I want to switch output format between PAL and LCD. So I just
reset vpss module before switching  output format in davinci frame
buffer driver(davincifb.c). for example:
        reset_vpss();
        davincifb_pal_composite_config(on);
     however, there are nothing showed on PAL TV. If I don't call
reset_vpss(), then the TV can show something , but the picture is
displaced.  and how to reset vpss ? thanks for any comments.

#define PSC_BASE IO_ADDRESS(0x01c41000)
#define PSC_PTSTATE (PSC_BASE + 0x128)
#define PSC_MDCTL_VPSS (PSC_BASE + 0xa00)
#define PSC_PTCMD (PSC_BASE + 0x120)
#define SyncReset 0x01
#define PSC_MDCTL_NEXT 0x03
        reset_vpss()
       {
          int pt_state = dispc_reg_in(PSC_PTSTATE);
          if((pt_state & 0x01) == 0)
       {
            dispc_reg_merge(PSC_MDCTL_VPSS, SyncReset, PSC_MDCTL_NEXT);
            dispc_reg_out(PSC_PTCMD, 0x01); //set ptcmd go bit.
        }

       }


-- 
Best Regards
Feng zeheng

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to