linux/drivers/gpu/drm/i915/display/intel_audio_regs.h

/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2022 Intel Corporation
 */

#ifndef __INTEL_AUDIO_REGS_H__
#define __INTEL_AUDIO_REGS_H__

#include "intel_display_reg_defs.h"

#define G4X_AUD_CNTL_ST
#define G4X_ELD_VALID
#define G4X_ELD_BUFFER_SIZE_MASK
#define G4X_ELD_ADDRESS_MASK
#define G4X_ELD_ACK
#define G4X_HDMIW_HDMIEDID

#define _IBX_HDMIW_HDMIEDID_A
#define _IBX_HDMIW_HDMIEDID_B
#define IBX_HDMIW_HDMIEDID(pipe)
#define _IBX_AUD_CNTL_ST_A
#define _IBX_AUD_CNTL_ST_B
#define IBX_AUD_CNTL_ST(pipe)
#define IBX_ELD_BUFFER_SIZE_MASK
#define IBX_ELD_ADDRESS_MASK
#define IBX_ELD_ACK
#define IBX_AUD_CNTL_ST2
#define IBX_CP_READY(port)
#define IBX_ELD_VALID(port)

#define _CPT_HDMIW_HDMIEDID_A
#define _CPT_HDMIW_HDMIEDID_B
#define CPT_HDMIW_HDMIEDID(pipe)
#define _CPT_AUD_CNTL_ST_A
#define _CPT_AUD_CNTL_ST_B
#define CPT_AUD_CNTL_ST(pipe)
#define CPT_AUD_CNTRL_ST2

#define _VLV_HDMIW_HDMIEDID_A
#define _VLV_HDMIW_HDMIEDID_B
#define VLV_HDMIW_HDMIEDID(pipe)
#define _VLV_AUD_CNTL_ST_A
#define _VLV_AUD_CNTL_ST_B
#define VLV_AUD_CNTL_ST(pipe)
#define VLV_AUD_CNTL_ST2

#define _IBX_AUD_CONFIG_A
#define _IBX_AUD_CONFIG_B
#define IBX_AUD_CFG(pipe)
#define _CPT_AUD_CONFIG_A
#define _CPT_AUD_CONFIG_B
#define CPT_AUD_CFG(pipe)
#define _VLV_AUD_CONFIG_A
#define _VLV_AUD_CONFIG_B
#define VLV_AUD_CFG(pipe)
#define AUD_CONFIG_N_VALUE_INDEX
#define AUD_CONFIG_N_PROG_ENABLE
#define AUD_CONFIG_UPPER_N_MASK
#define AUD_CONFIG_LOWER_N_MASK
#define AUD_CONFIG_N_MASK
#define AUD_CONFIG_N(n)
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_25175
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_25200
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_27000
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_27027
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_54000
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_54054
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_74176
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_74250
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_148352
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_148500
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_296703
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_297000
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_593407
#define AUD_CONFIG_PIXEL_CLOCK_HDMI_594000
#define AUD_CONFIG_DISABLE_NCTS

#define _HSW_AUD_CONFIG_A
#define _HSW_AUD_CONFIG_B
#define HSW_AUD_CFG(trans)

#define _HSW_AUD_MISC_CTRL_A
#define _HSW_AUD_MISC_CTRL_B
#define HSW_AUD_MISC_CTRL(trans)

#define _HSW_AUD_M_CTS_ENABLE_A
#define _HSW_AUD_M_CTS_ENABLE_B
#define HSW_AUD_M_CTS_ENABLE(trans)
#define AUD_M_CTS_M_VALUE_INDEX
#define AUD_M_CTS_M_PROG_ENABLE
#define AUD_CONFIG_M_MASK

#define _HSW_AUD_DIP_ELD_CTRL_ST_A
#define _HSW_AUD_DIP_ELD_CTRL_ST_B
#define HSW_AUD_DIP_ELD_CTRL(trans)

/* Audio Digital Converter */
#define _HSW_AUD_DIG_CNVT_1
#define _HSW_AUD_DIG_CNVT_2
#define AUD_DIG_CNVT(trans)
#define DIP_PORT_SEL_MASK

#define _HSW_AUD_EDID_DATA_A
#define _HSW_AUD_EDID_DATA_B
#define HSW_AUD_EDID_DATA(trans)

#define HSW_AUD_PIPE_CONV_CFG
#define HSW_AUD_PIN_ELD_CP_VLD
#define AUDIO_INACTIVE(trans)
#define AUDIO_OUTPUT_ENABLE(trans)
#define AUDIO_CP_READY(trans)
#define AUDIO_ELD_VALID(trans)

#define _AUD_TCA_DP_2DOT0_CTRL
#define _AUD_TCB_DP_2DOT0_CTRL
#define AUD_DP_2DOT0_CTRL(trans)
#define AUD_ENABLE_SDP_SPLIT

#define HSW_AUD_CHICKENBIT
#define SKL_AUD_CODEC_WAKE_SIGNAL

#define AUD_FREQ_CNTRL
#define AUD_PIN_BUF_CTL
#define AUD_PIN_BUF_ENABLE

#define AUD_TS_CDCLK_M
#define AUD_TS_CDCLK_M_EN
#define AUD_TS_CDCLK_N

/* Display Audio Config Reg */
#define AUD_CONFIG_BE
#define HBLANK_EARLY_ENABLE_ICL(pipe)
#define HBLANK_EARLY_ENABLE_TGL(pipe)
#define HBLANK_START_COUNT_MASK(pipe)
#define HBLANK_START_COUNT(pipe, val)
#define NUMBER_SAMPLES_PER_LINE_MASK(pipe)
#define NUMBER_SAMPLES_PER_LINE(pipe, val)

#define HBLANK_START_COUNT_8
#define HBLANK_START_COUNT_16
#define HBLANK_START_COUNT_32
#define HBLANK_START_COUNT_64
#define HBLANK_START_COUNT_96
#define HBLANK_START_COUNT_128

/* LPE Audio */
#define I915_HDMI_LPE_AUDIO_BASE
#define I915_HDMI_LPE_AUDIO_SIZE

#define VLV_AUD_CHICKEN_BIT_REG
#define VLV_CHICKEN_BIT_DBG_ENABLE

#define _VLV_AUD_PORT_EN_B_DBG
#define _VLV_AUD_PORT_EN_C_DBG
#define _VLV_AUD_PORT_EN_D_DBG
#define VLV_AUD_PORT_EN_DBG(port)
#define VLV_AMP_MUTE

#define AUD_CHICKENBIT_REG3
#define DACBE_DISABLE_MIN_HBLANK_FIX

#endif /* __INTEL_AUDIO_REGS_H__ */