xref: /linux/drivers/gpu/drm/bridge/synopsys/dw-hdmi-audio.h (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef DW_HDMI_AUDIO_H
3 #define DW_HDMI_AUDIO_H
4 
5 struct dw_hdmi;
6 
7 struct dw_hdmi_audio_data {
8 	phys_addr_t phys;
9 	void __iomem *base;
10 	int irq;
11 	struct dw_hdmi *hdmi;
12 	u8 *(*get_eld)(struct dw_hdmi *hdmi);
13 };
14 
15 struct dw_hdmi_i2s_audio_data {
16 	struct dw_hdmi *hdmi;
17 
18 	void (*write)(struct dw_hdmi *hdmi, u8 val, int offset);
19 	u8 (*read)(struct dw_hdmi *hdmi, int offset);
20 	u8 *(*get_eld)(struct dw_hdmi *hdmi);
21 };
22 
23 #endif
24