diff options
author | H. Nikolaus Schaller <hns@goldelico.com> | 2012-03-26 20:47:29 +0200 |
---|---|---|
committer | H. Nikolaus Schaller <hns@goldelico.com> | 2012-03-26 20:47:29 +0200 |
commit | 597b8feb49b3d700134ca6e8b3581a559a96de7c (patch) | |
tree | 020d248d1c4ba85c21a9b6567192b065f2c361da | |
parent | e6d6aebf7f2d42b5128141c67c19021e49d0fcd5 (diff) | |
download | bootable_bootloader_goldelico_gta04-597b8feb49b3d700134ca6e8b3581a559a96de7c.zip bootable_bootloader_goldelico_gta04-597b8feb49b3d700134ca6e8b3581a559a96de7c.tar.gz bootable_bootloader_goldelico_gta04-597b8feb49b3d700134ca6e8b3581a559a96de7c.tar.bz2 |
fixed display flicker on DM3730 CPU
-rw-r--r-- | board/goldelico/gta04/jbt6k74.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/board/goldelico/gta04/jbt6k74.c b/board/goldelico/gta04/jbt6k74.c index ddc86e1..fcc7615 100644 --- a/board/goldelico/gta04/jbt6k74.c +++ b/board/goldelico/gta04/jbt6k74.c @@ -43,8 +43,9 @@ #define DVI_BACKGROUND_COLOR 0x00fadc29 // rgb(250, 220, 41) -#define DSS1_FCLK 432000000 // see figure 15-65 -#define PIXEL_CLOCK 22000000 // approx. 22 MHz (will be divided from 432 MHz) +#define DSS1_FCLK 432000000 // compare table 4-32. figure 15-65 - but there are other factors +#define DSS1_FCLK3730 108000000 // compare table 3-34, figure 7-63 - but there are other factors +#define PIXEL_CLOCK 22000000 // approx. 22 MHz (will be divided from 432 MHz) // all values are min ratings @@ -72,7 +73,7 @@ #define DEBUGPC(x, args...) do { } while (0) #endif -static const struct panel_config lcm_cfg = +static /*const*/ struct panel_config lcm_cfg = { .timing_h = ((HBP-1)<<20) | ((HFP-1)<<8) | ((HS-1)<<0), /* Horizantal timing */ .timing_v = ((VBP+0)<<20) | ((VFP+0)<<8) | ((VS-1)<<0), /* Vertical timing */ @@ -369,6 +370,8 @@ int board_video_init(GraphicDevice *pGD) printf("No LCM connected\n"); return 1; } + if (get_cpu_family() == CPU_OMAP36XX) + lcm_cfg.divisor = (0x0001<<16)|(DSS1_FCLK3730/PIXEL_CLOCK), /* Pixel Clock divisor from dss1_fclk */ dssfb_init(&lcm_cfg); printf("did board_video_init()\n"); |