Skip to content

Commit ed712d3

Browse files
committed
Revert "drm/bridge: chrontel-ch7033: Add byteswap order setting"
Revert this patch since it depends on devicetree functionality that previously has been reverted in the below commit. commit e798ba3 ("Revert "dt-bindings: Add byteswap order to chrontel ch7033"") This reverts commit ce9564c. Signed-off-by: Robert Foss <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f47f537 commit ed712d3

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

drivers/gpu/drm/bridge/chrontel-ch7033.c

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ enum {
6868
BYTE_SWAP_GBR = 3,
6969
BYTE_SWAP_BRG = 4,
7070
BYTE_SWAP_BGR = 5,
71-
BYTE_SWAP_MAX = 6,
7271
};
7372

7473
/* Page 0, Register 0x19 */
@@ -356,8 +355,6 @@ static void ch7033_bridge_mode_set(struct drm_bridge *bridge,
356355
int hsynclen = mode->hsync_end - mode->hsync_start;
357356
int vbporch = mode->vsync_start - mode->vdisplay;
358357
int vsynclen = mode->vsync_end - mode->vsync_start;
359-
u8 byte_swap;
360-
int ret;
361358

362359
/*
363360
* Page 4
@@ -401,16 +398,8 @@ static void ch7033_bridge_mode_set(struct drm_bridge *bridge,
401398
regmap_write(priv->regmap, 0x15, vbporch);
402399
regmap_write(priv->regmap, 0x16, vsynclen);
403400

404-
/* Input color swap. Byte order is optional and will default to
405-
* BYTE_SWAP_BGR to preserve backwards compatibility with existing
406-
* driver.
407-
*/
408-
ret = of_property_read_u8(priv->bridge.of_node, "chrontel,byteswap",
409-
&byte_swap);
410-
if (!ret && byte_swap < BYTE_SWAP_MAX)
411-
regmap_update_bits(priv->regmap, 0x18, SWAP, byte_swap);
412-
else
413-
regmap_update_bits(priv->regmap, 0x18, SWAP, BYTE_SWAP_BGR);
401+
/* Input color swap. */
402+
regmap_update_bits(priv->regmap, 0x18, SWAP, BYTE_SWAP_BGR);
414403

415404
/* Input clock and sync polarity. */
416405
regmap_update_bits(priv->regmap, 0x19, 0x1, mode->clock >> 16);

0 commit comments

Comments
 (0)