diff options
author | Jerry Huang <Chang-Ming.Huang@freescale.com> | 2010-02-24 18:33:00 +0800 |
---|---|---|
committer | Scott Sweeny <scott.sweeny@timesys.com> | 2010-09-29 17:32:29 -0400 |
commit | 0144bd5c8e54ad7312b2c185c7012c0e32cc40f4 (patch) | |
tree | f507ace2964240765c776d7d79bade38814f10f7 /board | |
parent | 1d6c0e83838a2bfb93aa15326dfe79d11e511abe (diff) |
p1022ds: DIU (LVDS and DVI) support
FSL DIU (including DVI and LVDS) support
Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/p1022ds/p1022ds_diu.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/board/freescale/p1022ds/p1022ds_diu.c b/board/freescale/p1022ds/p1022ds_diu.c index 41fc12cec44..af0bcb77fe7 100644 --- a/board/freescale/p1022ds/p1022ds_diu.c +++ b/board/freescale/p1022ds/p1022ds_diu.c @@ -63,7 +63,6 @@ void diu_set_pixel_clock(unsigned int pixclock) void p1022ds_diu_init(void) { - char *monitor_port; int gamma_fix; unsigned int pixel_format; unsigned char tmp_val; @@ -75,23 +74,19 @@ void p1022ds_diu_init(void) tmp_val = in_8(pixis_base + PIXIS_BRDCFG1); pixis_arch = in_8(pixis_base + PIXIS_VER); - monitor_port = getenv("monitor"); - - if (!strncmp(monitor_port, "1", 1)) { /* 1 - LVDS */ +#ifdef CONFIG_MK_DIU1 xres = 1024; yres = 768; pixel_format = 0x88883316; gamma_fix = 0; out_8(pixis_base + PIXIS_BRDCFG1, (tmp_val & 0xf7) | 0x40 | 0x20); - - } else { /* 0, or uninitialized env var */ +#else xres = 1280; yres = 1024; pixel_format = 0x88883316; gamma_fix = 0; out_8(pixis_base + PIXIS_BRDCFG1, tmp_val | 0x80); - } - +#endif /* Set BRDCFG0[ELBC_DIU] */ tmp_val_brdcfg0 = in_8(pixis_base + PIXIS_BRDCFG0); tmp_val_brdcfg0 = (tmp_val_brdcfg0 & 0x3D) | 0x02; |