Date:2012-04-25 15:39:31 (8 years 6 months ago)
Author:Maarten ter Huurne
Commit:0ff19649b347708021af975c15c64cfa04fa0078
Message:MIPS: JZ4740: SLCD: Add PAL-60 mode for TV-out.

The same timings are used as for NTSC: the differences are all in the
configuration of the TV encoder chip and that happens in user space
currently.
Files: drivers/video/jz4740_slcd_fb.c (3 diffs)

Change Details

drivers/video/jz4740_slcd_fb.c
591591#define FBIOA320TVOUT 0x46F0
592592#define FB_A320TV_OFF 0
593593#define FB_A320TV_NTSC 1
594#define FB_A320TV_PAL 2
595#define FB_A320TV_LAST 2
594#define FB_A320TV_PAL50 2
595#define FB_A320TV_PAL60 3
596#define FB_A320TV_LAST 3
596597
597598static int jzfb_tv_out(struct jzfb *jzfb, unsigned int mode)
598599{
...... 
622623        /* V-Sync pulse end position */
623624        writel(10, jzfb->base + JZ_REG_LCD_VSYNC);
624625
625        if (mode == FB_A320TV_PAL) {
626            /* PAL */
626        if (mode == FB_A320TV_PAL50) {
627            /* PAL 50 Hz */
627628            /* H-Sync pulse start position */
628            writel(0x0000007D, jzfb->base + JZ_REG_LCD_HSYNC);
629            writel(0x0000007d, jzfb->base + JZ_REG_LCD_HSYNC);
629630            /* virtual area size */
630631            writel(0x036c0112, jzfb->base + JZ_REG_LCD_VAT);
631632            /* horizontal start/end point */
...... 
633634            /* vertical start/end point */
634635            writel(0x001b010b, jzfb->base + JZ_REG_LCD_DAV);
635636        } else {
636            /* NTSC */
637            /* NTSC and PAL 60 Hz */
637638            writel(0x0000003c, jzfb->base + JZ_REG_LCD_HSYNC);
638639            writel(0x02e00110, jzfb->base + JZ_REG_LCD_VAT);
639640            writel(0x019902d9, jzfb->base + JZ_REG_LCD_DAH);

Archive Download the corresponding diff file



interactive