aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/include/gpio_service_interface.h
diff options
context:
space:
mode:
authorMurton Liu <[email protected]>2019-06-25 15:15:09 +0000
committerAlex Deucher <[email protected]>2019-07-18 19:27:25 +0000
commitc2cd9d04ecf0f26fb472ffbd8274a55c05df0ffb (patch)
treea44c5a9a1da65de9e87948078266982e15e8401d /drivers/gpu/drm/amd/display/include/gpio_service_interface.h
parentdrm/amd/display: 3.2.41 (diff)
downloadkernel-c2cd9d04ecf0f26fb472ffbd8274a55c05df0ffb.tar.gz
kernel-c2cd9d04ecf0f26fb472ffbd8274a55c05df0ffb.zip
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 <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Leo Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/include/gpio_service_interface.h')
-rw-r--r--drivers/gpu/drm/amd/display/include/gpio_service_interface.h18
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);