path: root/drivers/gpu/drm/amd/display/include
diff options
authorMurton Liu <>2019-06-25 11:15:09 -0400
committerAlex Deucher <>2019-07-18 14:27:25 -0500
commitc2cd9d04ecf0f26fb472ffbd8274a55c05df0ffb (patch)
treea44c5a9a1da65de9e87948078266982e15e8401d /drivers/gpu/drm/amd/display/include
parent692626fc4dfc214cecd6125b47884920990feb85 (diff)
drm/amd/display: Hook up calls to do stereo mux and dig programming to stereo control interface
[Why] Implementation of stereo mux register is complete, but unused. Need to call functions to write relevant configs. [How] Add function to write stereo config for enable/disable case and call in stereo control interface. Signed-off-by: Murton Liu <> Reviewed-by: Aric Cyr <> Acked-by: Leo Li <> Signed-off-by: Alex Deucher <>
Diffstat (limited to 'drivers/gpu/drm/amd/display/include')
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/include/gpio_service_interface.h b/drivers/gpu/drm/amd/display/include/gpio_service_interface.h
index f40259bade40..9c55d247227e 100644
--- a/drivers/gpu/drm/amd/display/include/gpio_service_interface.h
+++ b/drivers/gpu/drm/amd/display/include/gpio_service_interface.h
@@ -51,13 +51,29 @@ struct gpio *dal_gpio_service_create_irq(
uint32_t offset,
uint32_t mask);
+struct gpio *dal_gpio_service_create_generic_mux(
+ struct gpio_service *service,
+ uint32_t offset,
+ uint32_t mask);
+void dal_gpio_destroy_generic_mux(
+ struct gpio **mux);
+enum gpio_result dal_mux_setup_config(
+ struct gpio *mux,
+ struct gpio_generic_mux_config *config);
+struct gpio_pin_info dal_gpio_get_generic_pin_info(
+ struct gpio_service *service,
+ enum gpio_id id,
+ uint32_t en);
struct ddc *dal_gpio_create_ddc(
struct gpio_service *service,
uint32_t offset,
uint32_t mask,
struct gpio_ddc_hw_info *info);
void dal_gpio_destroy_ddc(
struct ddc **ddc);