xref: /linux/drivers/gpu/drm/bridge/synopsys/dw-hdmi-audio.h (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
235dc8aabSLaurent Pinchart #ifndef DW_HDMI_AUDIO_H
335dc8aabSLaurent Pinchart #define DW_HDMI_AUDIO_H
435dc8aabSLaurent Pinchart 
535dc8aabSLaurent Pinchart struct dw_hdmi;
635dc8aabSLaurent Pinchart 
735dc8aabSLaurent Pinchart struct dw_hdmi_audio_data {
835dc8aabSLaurent Pinchart 	phys_addr_t phys;
935dc8aabSLaurent Pinchart 	void __iomem *base;
1035dc8aabSLaurent Pinchart 	int irq;
1135dc8aabSLaurent Pinchart 	struct dw_hdmi *hdmi;
12*3f2532d6SNeil Armstrong 	u8 *(*get_eld)(struct dw_hdmi *hdmi);
1335dc8aabSLaurent Pinchart };
1435dc8aabSLaurent Pinchart 
1535dc8aabSLaurent Pinchart struct dw_hdmi_i2s_audio_data {
1635dc8aabSLaurent Pinchart 	struct dw_hdmi *hdmi;
1735dc8aabSLaurent Pinchart 
1835dc8aabSLaurent Pinchart 	void (*write)(struct dw_hdmi *hdmi, u8 val, int offset);
1935dc8aabSLaurent Pinchart 	u8 (*read)(struct dw_hdmi *hdmi, int offset);
20*3f2532d6SNeil Armstrong 	u8 *(*get_eld)(struct dw_hdmi *hdmi);
2135dc8aabSLaurent Pinchart };
2235dc8aabSLaurent Pinchart 
2335dc8aabSLaurent Pinchart #endif
24