]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/bridge: tc358767: add GPIO & interrupt registers
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 28 May 2019 08:27:45 +0000 (11:27 +0300)
committerAndrzej Hajda <a.hajda@samsung.com>
Fri, 31 May 2019 13:41:30 +0000 (15:41 +0200)
Add GPIO and interrupt related registers for HPD work. Mark INTSTS_G and
GPIOI as volatile.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528082747.3631-23-tomi.valkeinen@ti.com
drivers/gpu/drm/bridge/tc358767.c

index 2b9d6046d76ec9d719e203cf907f9c8ad2f78029..b820a59ef29ec92fe700fa52a0482a7f4c6f5683 100644 (file)
 #define DP0_VIDSRC_DSI_RX              (1 << 0)
 #define DP0_VIDSRC_DPI_RX              (2 << 0)
 #define DP0_VIDSRC_COLOR_BAR           (3 << 0)
+#define GPIOM                  0x0540
+#define GPIOI                  0x054c
+#define INTCTL_G               0x0560
+#define INTSTS_G               0x0564
+#define INT_GP0_LCNT           0x0584
+#define INT_GP1_LCNT           0x0588
 
 /* Control */
 #define DP0CTL                 0x0600
@@ -1286,6 +1292,8 @@ static const struct regmap_range tc_volatile_ranges[] = {
        regmap_reg_range(DP_PHY_CTRL, DP_PHY_CTRL),
        regmap_reg_range(DP0_PLLCTRL, PXL_PLLCTRL),
        regmap_reg_range(VFUEN0, VFUEN0),
+       regmap_reg_range(INTSTS_G, INTSTS_G),
+       regmap_reg_range(GPIOI, GPIOI),
 };
 
 static const struct regmap_access_table tc_volatile_table = {