forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/gpu/drm/amd/display/dc/inc/hw/gpio.h
....@@ -28,12 +28,22 @@
2828
2929 #include "gpio_types.h"
3030
31
+
32
+union gpio_hw_container {
33
+ struct hw_ddc *ddc;
34
+ struct hw_generic *generic;
35
+ struct hw_hpd *hpd;
36
+};
37
+
3138 struct gpio {
3239 struct gpio_service *service;
3340 struct hw_gpio_pin *pin;
3441 enum gpio_id id;
3542 uint32_t en;
43
+
44
+ union gpio_hw_container hw_container;
3645 enum gpio_mode mode;
46
+
3747 /* when GPIO comes from VBIOS, it has defined output state */
3848 enum gpio_pin_output_state output_state;
3949 };