diff options
Diffstat (limited to 'cpu/mpc8xx/lcd.c')
-rw-r--r-- | cpu/mpc8xx/lcd.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cpu/mpc8xx/lcd.c b/cpu/mpc8xx/lcd.c index 9f4b210820b..ec9fbfce0d5 100644 --- a/cpu/mpc8xx/lcd.c +++ b/cpu/mpc8xx/lcd.c @@ -25,6 +25,8 @@ /* ** HEADER FILES */ /************************************************************************/ +/* #define DEBUG */ + #include <config.h> #include <common.h> #include <watchdog.h> @@ -1057,6 +1059,23 @@ static void lcd_enable (void) /* Now turn on LCD_ON */ immr->im_cpm.cp_pbdat |= 0x00001000; #endif +#ifdef CONFIG_RRVISION + debug ("PC4->Output(1): enable LVDS\n"); + debug ("PC5->Output(0): disable PAL clock\n"); + immr->im_ioport.iop_pddir |= 0x1000; + immr->im_ioport.iop_pcpar &= ~(0x0C00); + immr->im_ioport.iop_pcdir |= 0x0C00 ; + immr->im_ioport.iop_pcdat |= 0x0800 ; + immr->im_ioport.iop_pcdat &= ~(0x0400); + debug ("PDPAR=0x%04X PDDIR=0x%04X PDDAT=0x%04X\n", + immr->im_ioport.iop_pdpar, + immr->im_ioport.iop_pddir, + immr->im_ioport.iop_pddat); + debug ("PCPAR=0x%04X PCDIR=0x%04X PCDAT=0x%04X\n", + immr->im_ioport.iop_pcpar, + immr->im_ioport.iop_pcdir, + immr->im_ioport.iop_pcdat); +#endif } /*----------------------------------------------------------------------*/ |