Merge tag 'tilcdc-4.15-fixes' of https://github.com/jsarha/linux into drm-next
[sfrench/cifs-2.6.git] / drivers / gpu / drm / exynos / regs-hdmi.h
index a0507dc18d9e0fe75aefbb5a9bf9a72385b7f401..04be0f7e81932682e7f5d9427580f46191061d9e 100644 (file)
 #define HDMI_I2S_DSD_CON               HDMI_I2S_BASE(0x01c)
 #define HDMI_I2S_MUX_CON               HDMI_I2S_BASE(0x020)
 #define HDMI_I2S_CH_ST_CON             HDMI_I2S_BASE(0x024)
-#define HDMI_I2S_CH_ST_0               HDMI_I2S_BASE(0x028)
-#define HDMI_I2S_CH_ST_1               HDMI_I2S_BASE(0x02c)
-#define HDMI_I2S_CH_ST_2               HDMI_I2S_BASE(0x030)
-#define HDMI_I2S_CH_ST_3               HDMI_I2S_BASE(0x034)
-#define HDMI_I2S_CH_ST_4               HDMI_I2S_BASE(0x038)
+/* n must be within range 0...(HDMI_I2S_CH_ST_MAXNUM - 1) */
+#define HDMI_I2S_CH_ST_MAXNUM          5
+#define HDMI_I2S_CH_ST(n)              HDMI_I2S_BASE(0x028 + 4 * (n))
 #define HDMI_I2S_CH_ST_SH_0            HDMI_I2S_BASE(0x03c)
 #define HDMI_I2S_CH_ST_SH_1            HDMI_I2S_BASE(0x040)
 #define HDMI_I2S_CH_ST_SH_2            HDMI_I2S_BASE(0x044)