cm_t35: update lcd predefines

Current predefines do not fit cm-t3730 very well (some of them produce
artifacts in the image).
Update LCD predefines to accommodate both cm-t35 and cm-t3730 modules.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
master
Nikita Kiryanov 11 years ago committed by Tom Rini
parent 5b28f20458
commit f9f6686ff8
  1. 8
      board/compulab/common/omap3_display.c

@ -51,6 +51,7 @@ static const struct panel_config preset_dvi_640X480 = {
.lcd_size = PANEL_LCD_SIZE(640, 480), .lcd_size = PANEL_LCD_SIZE(640, 480),
.timing_h = DSS_HBP(48) | DSS_HFP(16) | DSS_HSW(96), .timing_h = DSS_HBP(48) | DSS_HFP(16) | DSS_HSW(96),
.timing_v = DSS_VBP(33) | DSS_VFP(10) | DSS_VSW(2), .timing_v = DSS_VBP(33) | DSS_VFP(10) | DSS_VSW(2),
.pol_freq = DSS_IHS | DSS_IVS | DSS_IPC,
.divisor = 12 | (1 << 16), .divisor = 12 | (1 << 16),
.data_lines = LCD_INTERFACE_24_BIT, .data_lines = LCD_INTERFACE_24_BIT,
.panel_type = ACTIVE_DISPLAY, .panel_type = ACTIVE_DISPLAY,
@ -62,6 +63,7 @@ static const struct panel_config preset_dvi_800X600 = {
.lcd_size = PANEL_LCD_SIZE(800, 600), .lcd_size = PANEL_LCD_SIZE(800, 600),
.timing_h = DSS_HBP(88) | DSS_HFP(40) | DSS_HSW(128), .timing_h = DSS_HBP(88) | DSS_HFP(40) | DSS_HSW(128),
.timing_v = DSS_VBP(23) | DSS_VFP(1) | DSS_VSW(4), .timing_v = DSS_VBP(23) | DSS_VFP(1) | DSS_VSW(4),
.pol_freq = DSS_IHS | DSS_IVS | DSS_IPC,
.divisor = 8 | (1 << 16), .divisor = 8 | (1 << 16),
.data_lines = LCD_INTERFACE_24_BIT, .data_lines = LCD_INTERFACE_24_BIT,
.panel_type = ACTIVE_DISPLAY, .panel_type = ACTIVE_DISPLAY,
@ -73,6 +75,7 @@ static const struct panel_config preset_dvi_1024X768 = {
.lcd_size = PANEL_LCD_SIZE(1024, 768), .lcd_size = PANEL_LCD_SIZE(1024, 768),
.timing_h = DSS_HBP(160) | DSS_HFP(24) | DSS_HSW(136), .timing_h = DSS_HBP(160) | DSS_HFP(24) | DSS_HSW(136),
.timing_v = DSS_VBP(29) | DSS_VFP(3) | DSS_VSW(6), .timing_v = DSS_VBP(29) | DSS_VFP(3) | DSS_VSW(6),
.pol_freq = DSS_IHS | DSS_IVS | DSS_IPC,
.divisor = 5 | (1 << 16), .divisor = 5 | (1 << 16),
.data_lines = LCD_INTERFACE_24_BIT, .data_lines = LCD_INTERFACE_24_BIT,
.panel_type = ACTIVE_DISPLAY, .panel_type = ACTIVE_DISPLAY,
@ -84,7 +87,8 @@ static const struct panel_config preset_dvi_1152X864 = {
.lcd_size = PANEL_LCD_SIZE(1152, 864), .lcd_size = PANEL_LCD_SIZE(1152, 864),
.timing_h = DSS_HBP(256) | DSS_HFP(64) | DSS_HSW(128), .timing_h = DSS_HBP(256) | DSS_HFP(64) | DSS_HSW(128),
.timing_v = DSS_VBP(32) | DSS_VFP(1) | DSS_VSW(3), .timing_v = DSS_VBP(32) | DSS_VFP(1) | DSS_VSW(3),
.divisor = 3 | (1 << 16), .pol_freq = DSS_IHS | DSS_IVS | DSS_IPC,
.divisor = 4 | (1 << 16),
.data_lines = LCD_INTERFACE_24_BIT, .data_lines = LCD_INTERFACE_24_BIT,
.panel_type = ACTIVE_DISPLAY, .panel_type = ACTIVE_DISPLAY,
.load_mode = 2, .load_mode = 2,
@ -95,6 +99,7 @@ static const struct panel_config preset_dvi_1280X960 = {
.lcd_size = PANEL_LCD_SIZE(1280, 960), .lcd_size = PANEL_LCD_SIZE(1280, 960),
.timing_h = DSS_HBP(312) | DSS_HFP(96) | DSS_HSW(112), .timing_h = DSS_HBP(312) | DSS_HFP(96) | DSS_HSW(112),
.timing_v = DSS_VBP(36) | DSS_VFP(1) | DSS_VSW(3), .timing_v = DSS_VBP(36) | DSS_VFP(1) | DSS_VSW(3),
.pol_freq = DSS_IHS | DSS_IVS | DSS_IPC,
.divisor = 3 | (1 << 16), .divisor = 3 | (1 << 16),
.data_lines = LCD_INTERFACE_24_BIT, .data_lines = LCD_INTERFACE_24_BIT,
.panel_type = ACTIVE_DISPLAY, .panel_type = ACTIVE_DISPLAY,
@ -106,6 +111,7 @@ static const struct panel_config preset_dvi_1280X1024 = {
.lcd_size = PANEL_LCD_SIZE(1280, 1024), .lcd_size = PANEL_LCD_SIZE(1280, 1024),
.timing_h = DSS_HBP(248) | DSS_HFP(48) | DSS_HSW(112), .timing_h = DSS_HBP(248) | DSS_HFP(48) | DSS_HSW(112),
.timing_v = DSS_VBP(38) | DSS_VFP(1) | DSS_VSW(3), .timing_v = DSS_VBP(38) | DSS_VFP(1) | DSS_VSW(3),
.pol_freq = DSS_IHS | DSS_IVS | DSS_IPC,
.divisor = 3 | (1 << 16), .divisor = 3 | (1 << 16),
.data_lines = LCD_INTERFACE_24_BIT, .data_lines = LCD_INTERFACE_24_BIT,
.panel_type = ACTIVE_DISPLAY, .panel_type = ACTIVE_DISPLAY,

Loading…
Cancel
Save