hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2021 Rockchip Electronics Co. Ltd.
 * Author: Sugar Zhang <sugar.zhang@rock-chips.com>
 */
 
#ifndef DW_HDMI_QP_AUDIO_H
#define DW_HDMI_QP_AUDIO_H
 
struct dw_hdmi_qp;
 
struct dw_hdmi_qp_audio_data {
   phys_addr_t phys;
   void __iomem *base;
   int irq;
   struct dw_hdmi_qp *hdmi;
   u8 *eld;
};
 
struct dw_hdmi_qp_i2s_audio_data {
   struct dw_hdmi_qp *hdmi;
   u8 *eld;
 
   void (*write)(struct dw_hdmi_qp *hdmi, u32 val, int offset);
   u32 (*read)(struct dw_hdmi_qp *hdmi, int offset);
   void (*mod)(struct dw_hdmi_qp *hdmi, u32 val, u32 mask, u32 reg);
};
 
#endif