@@ -34,7 +34,7 @@ struct reg_entry {
34
34
unsigned long value ;
35
35
};
36
36
37
- static struct reg_entry rgb_enable [] = {
37
+ static const struct reg_entry rgb_enable [] = {
38
38
{ DC_COM_PIN_OUTPUT_ENABLE (0 ), 0x00000000 },
39
39
{ DC_COM_PIN_OUTPUT_ENABLE (1 ), 0x00000000 },
40
40
{ DC_COM_PIN_OUTPUT_ENABLE (2 ), 0x00000000 },
@@ -103,15 +103,6 @@ static void tegra_rgb_encoder_enable(struct drm_encoder *encoder)
103
103
struct tegra_rgb * rgb = to_rgb (output );
104
104
u32 value ;
105
105
106
- /*
107
- * Temporal hack for S6E63M0
108
- *
109
- * Pins DATA_ENABLE, H_SYNC, V_SYNC, PIXEL_CLOCK are low polarity,
110
- * set this in the registers to make the panel working.
111
- */
112
- if (of_machine_is_compatible ("samsung,i927" ))
113
- rgb_enable [7 ].value = 0x00000100 ;
114
-
115
106
tegra_dc_write_regs (rgb -> dc , rgb_enable , ARRAY_SIZE (rgb_enable ));
116
107
117
108
value = DE_SELECT_ACTIVE | DE_CONTROL_NORMAL ;
@@ -121,10 +112,6 @@ static void tegra_rgb_encoder_enable(struct drm_encoder *encoder)
121
112
value = tegra_dc_readl (rgb -> dc , DC_COM_PIN_OUTPUT_POLARITY (1 ));
122
113
value &= ~LVS_OUTPUT_POLARITY_LOW ;
123
114
value &= ~LHS_OUTPUT_POLARITY_LOW ;
124
- if (of_machine_is_compatible ("samsung,i927" )) {
125
- value |= LVS_OUTPUT_POLARITY_LOW ;
126
- value |= LHS_OUTPUT_POLARITY_LOW ;
127
- }
128
115
tegra_dc_writel (rgb -> dc , value , DC_COM_PIN_OUTPUT_POLARITY (1 ));
129
116
130
117
/* XXX: parameterize? */
0 commit comments