mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
drm/bridge: maxim-max96745: Keep video transmit port always on
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com> Change-Id: I4db1b43fc335ecad158651f228069e2d2ac4ab0c
This commit is contained in:
parent
9fa3c79ac7
commit
a0871c7ecd
|
|
@ -177,10 +177,6 @@ static void max96745_bridge_enable(struct drm_bridge *bridge)
|
|||
{
|
||||
struct max96745_bridge *ser = to_max96745_bridge(bridge);
|
||||
|
||||
regmap_update_bits(ser->regmap, 0x0100, VID_TX_EN,
|
||||
FIELD_PREP(VID_TX_EN, 1));
|
||||
msleep(50);
|
||||
|
||||
if (ser->panel)
|
||||
drm_panel_enable(ser->panel);
|
||||
|
||||
|
|
@ -205,9 +201,6 @@ static void max96745_bridge_disable(struct drm_bridge *bridge)
|
|||
|
||||
if (ser->panel)
|
||||
drm_panel_disable(ser->panel);
|
||||
|
||||
regmap_update_bits(ser->regmap, 0x0100, VID_TX_EN,
|
||||
FIELD_PREP(VID_TX_EN, 0));
|
||||
}
|
||||
|
||||
static void max96745_bridge_post_disable(struct drm_bridge *bridge)
|
||||
|
|
|
|||
|
|
@ -104,15 +104,11 @@ static void max96745_power_on(struct max96745 *max96745)
|
|||
if (!ret && FIELD_GET(VID_TX_ACTIVE_A | VID_TX_ACTIVE_B, val))
|
||||
return;
|
||||
|
||||
if (max96745->enable_gpio)
|
||||
if (max96745->enable_gpio) {
|
||||
gpiod_direction_output(max96745->enable_gpio, 1);
|
||||
else
|
||||
regmap_update_bits(max96745->regmap, 0x0010, RESET_ALL,
|
||||
FIELD_PREP(RESET_ALL, 1));
|
||||
msleep(200);
|
||||
msleep(200);
|
||||
}
|
||||
|
||||
regmap_update_bits(max96745->regmap, 0x0100, VID_TX_EN,
|
||||
FIELD_PREP(VID_TX_EN, 0));
|
||||
regmap_update_bits(max96745->regmap, 0x0076, DIS_REM_CC,
|
||||
FIELD_PREP(DIS_REM_CC, 1));
|
||||
regmap_update_bits(max96745->regmap, 0x0086, DIS_REM_CC,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user