Skip to content

Commit 317f283

Browse files
committed
drm/i915/audio: move LPE audio regs to intel_audio_regs.h
There are too few registers to warrant a dedicated file for LPE audio regs, but the audio reg file is better than i915_reg.h. v2: Rebase Reviewed-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/b5ee35309b2e0905aaa12d944b3d379c45a8a0bd.1714128645.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <[email protected]>
1 parent b55f3bb commit 317f283

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,20 @@
148148
#define HBLANK_START_COUNT_96 4
149149
#define HBLANK_START_COUNT_128 5
150150

151+
/* LPE Audio */
152+
#define I915_HDMI_LPE_AUDIO_BASE (VLV_DISPLAY_BASE + 0x65000)
153+
#define I915_HDMI_LPE_AUDIO_SIZE 0x1000
154+
155+
#define VLV_AUD_CHICKEN_BIT_REG _MMIO(VLV_DISPLAY_BASE + 0x62F38)
156+
#define VLV_CHICKEN_BIT_DBG_ENABLE (1 << 0)
157+
158+
#define _VLV_AUD_PORT_EN_B_DBG 0x62F20
159+
#define _VLV_AUD_PORT_EN_C_DBG 0x62F30
160+
#define _VLV_AUD_PORT_EN_D_DBG 0x62F34
161+
#define VLV_AUD_PORT_EN_DBG(port) _MMIO_BASE_PORT3(VLV_DISPLAY_BASE, (port) - PORT_B, \
162+
_VLV_AUD_PORT_EN_B_DBG, \
163+
_VLV_AUD_PORT_EN_C_DBG, \
164+
_VLV_AUD_PORT_EN_D_DBG)
165+
#define VLV_AMP_MUTE (1 << 1)
166+
151167
#endif /* __INTEL_AUDIO_REGS_H__ */

drivers/gpu/drm/i915/display/intel_lpe_audio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
#include "i915_drv.h"
7474
#include "i915_irq.h"
75-
#include "i915_reg.h"
75+
#include "intel_audio_regs.h"
7676
#include "intel_de.h"
7777
#include "intel_lpe_audio.h"
7878
#include "intel_pci_config.h"

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -966,22 +966,6 @@
966966
#define I915_ASLE_INTERRUPT (1 << 0)
967967
#define I915_BSD_USER_INTERRUPT (1 << 25)
968968

969-
#define I915_HDMI_LPE_AUDIO_BASE (VLV_DISPLAY_BASE + 0x65000)
970-
#define I915_HDMI_LPE_AUDIO_SIZE 0x1000
971-
972-
/* DisplayPort Audio w/ LPE */
973-
#define VLV_AUD_CHICKEN_BIT_REG _MMIO(VLV_DISPLAY_BASE + 0x62F38)
974-
#define VLV_CHICKEN_BIT_DBG_ENABLE (1 << 0)
975-
976-
#define _VLV_AUD_PORT_EN_B_DBG 0x62F20
977-
#define _VLV_AUD_PORT_EN_C_DBG 0x62F30
978-
#define _VLV_AUD_PORT_EN_D_DBG 0x62F34
979-
#define VLV_AUD_PORT_EN_DBG(port) _MMIO_BASE_PORT3(VLV_DISPLAY_BASE, (port) - PORT_B, \
980-
_VLV_AUD_PORT_EN_B_DBG, \
981-
_VLV_AUD_PORT_EN_C_DBG, \
982-
_VLV_AUD_PORT_EN_D_DBG)
983-
#define VLV_AMP_MUTE (1 << 1)
984-
985969
#define GEN6_BSD_RNCID _MMIO(0x12198)
986970

987971
#define GEN7_FF_THREAD_MODE _MMIO(0x20a0)

0 commit comments

Comments
 (0)