Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions drivers/gpu/drm/bridge/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,13 @@ config DRM_TI_TPD12S015
Texas Instruments TPD12S015 HDMI level shifter and ESD protection
driver.

config DRM_I2C_TI_983
tristate "TI DS90UB983/DS90UB984/DS90UBMCU Serdes serializer deserializer support"
depends on DRM_BRIDGE
default y
help
Texas Instruments DS90UB983 and DS90UB984 Serdes driver

source "drivers/gpu/drm/bridge/analogix/Kconfig"

source "drivers/gpu/drm/bridge/adv7511/Kconfig"
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/bridge/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ obj-y += analogix/
obj-y += cadence/
obj-y += imx/
obj-y += synopsys/
obj-y += ti/
obj-$(CONFIG_DRM_I2C_TI_983) += ti/
5 changes: 2 additions & 3 deletions drivers/gpu/drm/bridge/ti/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
# Makefile for max serdes/deserdes i2c drivers.
#
CONFIG_DRM_I2C_TI_983=y
ccflags-y +=-DDEBUG
ccflags-y += -DDEBUG
fpd_dp_ser_drv-obj := fpd_dp_ser_drv.o
obj-$(CONFIG_DRM_I2C_TI_983)+=fpd_dp_ser_drv.o
obj-$(CONFIG_DRM_I2C_TI_983) += fpd_dp_ser_drv.o
2 changes: 2 additions & 0 deletions drivers/gpu/drm/i915/display/intel_backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -1798,8 +1798,10 @@ void intel_backlight_init_funcs(struct intel_panel *panel)
connector->panel.backlight.power = intel_pps_backlight_power;
}

#ifdef CONFIG_DRM_I2C_TI_983
if (intel_dp_mcu_init_backlight_funcs(connector) == 0)
return;
#endif

/* We're using a standard PWM backlight interface */
panel->backlight.funcs = &pwm_bl_funcs;
Expand Down
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/display/intel_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5494,6 +5494,8 @@ void intel_dp_mst_resume(struct drm_i915_private *dev_priv)
}
}


#ifdef CONFIG_DRM_I2C_TI_983
extern struct i2c_adapter *i2c_adap_mcu;

char intel_dp_ser_mcu_read_reg(struct drm_device *dev, struct i2c_adapter *adapter, u8 reg_addr, u8 *val)
Expand Down Expand Up @@ -5683,3 +5685,4 @@ int intel_dp_mcu_init_backlight_funcs(struct intel_connector *intel_connector)

return 0;
}
#endif
2 changes: 2 additions & 0 deletions drivers/gpu/drm/i915/display/intel_panel.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ void intel_panel_add_vbt_sdvo_fixed_mode(struct intel_connector *connector);
void intel_panel_add_encoder_fixed_mode(struct intel_connector *connector,
struct intel_encoder *encoder);

#ifdef CONFIG_DRM_I2C_TI_983
int intel_dp_mcu_init_backlight_funcs(struct intel_connector *intel_connector);
#endif

#endif /* __INTEL_PANEL_H__ */