Skip to content

Commit d640b4d

Browse files
committed
Revert "drm/tegra: rgb: Hacks for S6E63M0"
This reverts commit fcae068.
1 parent 6b58478 commit d640b4d

File tree

1 file changed

+1
-14
lines changed
  • drivers/gpu/drm/tegra

1 file changed

+1
-14
lines changed

drivers/gpu/drm/tegra/rgb.c

+1-14
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct reg_entry {
3434
unsigned long value;
3535
};
3636

37-
static struct reg_entry rgb_enable[] = {
37+
static const struct reg_entry rgb_enable[] = {
3838
{ DC_COM_PIN_OUTPUT_ENABLE(0), 0x00000000 },
3939
{ DC_COM_PIN_OUTPUT_ENABLE(1), 0x00000000 },
4040
{ DC_COM_PIN_OUTPUT_ENABLE(2), 0x00000000 },
@@ -103,15 +103,6 @@ static void tegra_rgb_encoder_enable(struct drm_encoder *encoder)
103103
struct tegra_rgb *rgb = to_rgb(output);
104104
u32 value;
105105

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-
115106
tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb_enable));
116107

117108
value = DE_SELECT_ACTIVE | DE_CONTROL_NORMAL;
@@ -121,10 +112,6 @@ static void tegra_rgb_encoder_enable(struct drm_encoder *encoder)
121112
value = tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POLARITY(1));
122113
value &= ~LVS_OUTPUT_POLARITY_LOW;
123114
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-
}
128115
tegra_dc_writel(rgb->dc, value, DC_COM_PIN_OUTPUT_POLARITY(1));
129116

130117
/* XXX: parameterize? */

0 commit comments

Comments
 (0)