/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2014 MediaTek Inc.
* Author: Jie Qiu <jie.qiu@mediatek.com>
*/
#ifndef _MTK_HDMI_REGS_H
#define _MTK_HDMI_REGS_H
#define GRL_INT_MASK 0 x18
#define GRL_IFM_PORT 0 x188
#define GRL_CH_SWAP 0 x198
#define LR_SWAP BIT(0 )
#define LFE_CC_SWAP BIT(1 )
#define LSRS_SWAP BIT(2 )
#define RLS_RRS_SWAP BIT(3 )
#define LR_STATUS_SWAP BIT(4 )
#define GRL_I2S_C_STA0 0 x140
#define GRL_I2S_C_STA1 0 x144
#define GRL_I2S_C_STA2 0 x148
#define GRL_I2S_C_STA3 0 x14C
#define GRL_I2S_C_STA4 0 x150
#define GRL_I2S_UV 0 x154
#define I2S_UV_V BIT(0 )
#define I2S_UV_U BIT(1 )
#define I2S_UV_CH_EN_MASK 0 x3c
#define I2S_UV_CH_EN(x) BIT((x) + 2 )
#define I2S_UV_TMDS_DEBUG BIT(6 )
#define I2S_UV_NORMAL_INFO_INV BIT(7 )
#define GRL_ACP_ISRC_CTRL 0 x158
#define VS_EN BIT(0 )
#define ACP_EN BIT(1 )
#define ISRC1_EN BIT(2 )
#define ISRC2_EN BIT(3 )
#define GAMUT_EN BIT(4 )
#define GRL_CTS_CTRL 0 x160
#define CTS_CTRL_SOFT BIT(0 )
#define GRL_INT 0 x14
#define INT_MDI BIT(0 )
#define INT_HDCP BIT(1 )
#define INT_FIFO_O BIT(2 )
#define INT_FIFO_U BIT(3 )
#define INT_IFM_ERR BIT(4 )
#define INT_INF_DONE BIT(5 )
#define INT_NCTS_DONE BIT(6 )
#define INT_CTRL_PKT_DONE BIT(7 )
#define GRL_INT_MASK 0 x18
#define GRL_CTRL 0 x1C
#define CTRL_GEN_EN BIT(2 )
#define CTRL_SPD_EN BIT(3 )
#define CTRL_MPEG_EN BIT(4 )
#define CTRL_AUDIO_EN BIT(5 )
#define CTRL_AVI_EN BIT(6 )
#define CTRL_AVMUTE BIT(7 )
#define GRL_STATUS 0 x20
#define STATUS_HTPLG BIT(0 )
#define STATUS_PORD BIT(1 )
#define GRL_DIVN 0 x170
#define NCTS_WRI_ANYTIME BIT(6 )
#define GRL_AUDIO_CFG 0 x17C
#define AUDIO_ZERO BIT(0 )
#define HIGH_BIT_RATE BIT(1 )
#define SACD_DST BIT(2 )
#define DST_NORMAL_DOUBLE BIT(3 )
#define DSD_INV BIT(4 )
#define LR_INV BIT(5 )
#define LR_MIX BIT(6 )
#define DSD_SEL BIT(7 )
#define GRL_NCTS 0 x184
#define GRL_CH_SW0 0 x18C
#define GRL_CH_SW1 0 x190
#define GRL_CH_SW2 0 x194
#define CH_SWITCH(from, to) ((from) << ((to) * 3 ))
#define GRL_INFOFRM_VER 0 x19C
#define GRL_INFOFRM_TYPE 0 x1A0
#define GRL_INFOFRM_LNG 0 x1A4
#define GRL_MIX_CTRL 0 x1B4
#define MIX_CTRL_SRC_EN BIT(0 )
#define BYPASS_VOLUME BIT(1 )
#define MIX_CTRL_FLAT BIT(7 )
#define GRL_AOUT_CFG 0 x1C4
#define AOUT_BNUM_SEL_MASK 0 x03
#define AOUT_24BIT 0 x00
#define AOUT_20BIT 0 x02
#define AOUT_16BIT 0 x03
#define AOUT_FIFO_ADAP_CTRL BIT(6 )
#define AOUT_BURST_PREAMBLE_EN BIT(7 )
#define HIGH_BIT_RATE_PACKET_ALIGN (AOUT_BURST_PREAMBLE_EN | \
AOUT_FIFO_ADAP_CTRL)
#define GRL_SHIFT_L1 0 x1C0
#define GRL_SHIFT_R2 0 x1B0
#define AUDIO_PACKET_OFF BIT(6 )
#define GRL_CFG0 0 x24
#define CFG0_I2S_MODE_MASK 0 x3
#define CFG0_I2S_MODE_RTJ 0 x1
#define CFG0_I2S_MODE_LTJ 0 x0
#define CFG0_I2S_MODE_I2S 0 x2
#define CFG0_W_LENGTH_MASK 0 x30
#define CFG0_W_LENGTH_24BIT 0 x00
#define CFG0_W_LENGTH_16BIT 0 x10
#define GRL_CFG1 0 x28
#define CFG1_EDG_SEL BIT(0 )
#define CFG1_SPDIF BIT(1 )
#define CFG1_DVI BIT(2 )
#define CFG1_HDCP_DEBUG BIT(3 )
#define GRL_CFG2 0 x2c
#define CFG2_MHL_DE_SEL BIT(3 )
#define CFG2_MHL_FAKE_DE_SEL BIT(4 )
#define CFG2_MHL_DATA_REMAP BIT(5 )
#define CFG2_NOTICE_EN BIT(6 )
#define CFG2_ACLK_INV BIT(7 )
#define GRL_CFG3 0 x30
#define CFG3_AES_KEY_INDEX_MASK 0 x3f
#define CFG3_CONTROL_PACKET_DELAY BIT(6 )
#define CFG3_KSV_LOAD_START BIT(7 )
#define GRL_CFG4 0 x34
#define CFG4_AES_KEY_LOAD BIT(4 )
#define CFG4_AV_UNMUTE_EN BIT(5 )
#define CFG4_AV_UNMUTE_SET BIT(6 )
#define CFG4_MHL_MODE BIT(7 )
#define GRL_CFG5 0 x38
#define CFG5_CD_RATIO_MASK 0 x8F
#define CFG5_FS128 (0 x1 << 4 )
#define CFG5_FS256 (0 x2 << 4 )
#define CFG5_FS384 (0 x3 << 4 )
#define CFG5_FS512 (0 x4 << 4 )
#define CFG5_FS768 (0 x6 << 4 )
#define DUMMY_304 0 x304
#define CHMO_SEL (0 x3 << 2 )
#define CHM1_SEL (0 x3 << 4 )
#define CHM2_SEL (0 x3 << 6 )
#define AUDIO_I2S_NCTS_SEL BIT(1 )
#define AUDIO_I2S_NCTS_SEL_64 (1 << 1 )
#define AUDIO_I2S_NCTS_SEL_128 (0 << 1 )
#define NEW_GCP_CTRL BIT(0 )
#define NEW_GCP_CTRL_MERGE BIT(0 )
#define GRL_L_STATUS_0 0 x200
#define GRL_L_STATUS_1 0 x204
#define GRL_L_STATUS_2 0 x208
#define GRL_L_STATUS_3 0 x20c
#define GRL_L_STATUS_4 0 x210
#define GRL_L_STATUS_5 0 x214
#define GRL_L_STATUS_6 0 x218
#define GRL_L_STATUS_7 0 x21c
#define GRL_L_STATUS_8 0 x220
#define GRL_L_STATUS_9 0 x224
#define GRL_L_STATUS_10 0 x228
#define GRL_L_STATUS_11 0 x22c
#define GRL_L_STATUS_12 0 x230
#define GRL_L_STATUS_13 0 x234
#define GRL_L_STATUS_14 0 x238
#define GRL_L_STATUS_15 0 x23c
#define GRL_L_STATUS_16 0 x240
#define GRL_L_STATUS_17 0 x244
#define GRL_L_STATUS_18 0 x248
#define GRL_L_STATUS_19 0 x24c
#define GRL_L_STATUS_20 0 x250
#define GRL_L_STATUS_21 0 x254
#define GRL_L_STATUS_22 0 x258
#define GRL_L_STATUS_23 0 x25c
#define GRL_R_STATUS_0 0 x260
#define GRL_R_STATUS_1 0 x264
#define GRL_R_STATUS_2 0 x268
#define GRL_R_STATUS_3 0 x26c
#define GRL_R_STATUS_4 0 x270
#define GRL_R_STATUS_5 0 x274
#define GRL_R_STATUS_6 0 x278
#define GRL_R_STATUS_7 0 x27c
#define GRL_R_STATUS_8 0 x280
#define GRL_R_STATUS_9 0 x284
#define GRL_R_STATUS_10 0 x288
#define GRL_R_STATUS_11 0 x28c
#define GRL_R_STATUS_12 0 x290
#define GRL_R_STATUS_13 0 x294
#define GRL_R_STATUS_14 0 x298
#define GRL_R_STATUS_15 0 x29c
#define GRL_R_STATUS_16 0 x2a0
#define GRL_R_STATUS_17 0 x2a4
#define GRL_R_STATUS_18 0 x2a8
#define GRL_R_STATUS_19 0 x2ac
#define GRL_R_STATUS_20 0 x2b0
#define GRL_R_STATUS_21 0 x2b4
#define GRL_R_STATUS_22 0 x2b8
#define GRL_R_STATUS_23 0 x2bc
#define GRL_ABIST_CTRL0 0 x2D4
#define GRL_ABIST_CTRL1 0 x2D8
#define ABIST_EN BIT(7 )
#define ABIST_DATA_FMT (0 x7 << 0 )
#define VIDEO_CFG_0 0 x380
#define VIDEO_CFG_1 0 x384
#define VIDEO_CFG_2 0 x388
#define VIDEO_CFG_3 0 x38c
#define VIDEO_CFG_4 0 x390
#define VIDEO_SOURCE_SEL BIT(7 )
#define NORMAL_PATH (1 << 7 )
#define GEN_RGB (0 << 7 )
#define HDMI_SYS_CFG1C 0 x000
#define HDMI_ON BIT(0 )
#define HDMI_RST BIT(1 )
#define ANLG_ON BIT(2 )
#define CFG10_DVI BIT(3 )
#define HDMI_TST BIT(3 )
#define SYS_KEYMASK1 (0 xff << 8 )
#define SYS_KEYMASK2 (0 xff << 16 )
#define AUD_OUTSYNC_EN BIT(24 )
#define AUD_OUTSYNC_PRE_EN BIT(25 )
#define I2CM_ON BIT(26 )
#define E2PROM_TYPE_8BIT BIT(27 )
#define MCM_E2PROM_ON BIT(28 )
#define EXT_E2PROM_ON BIT(29 )
#define HTPLG_PIN_SEL_OFF BIT(30 )
#define AES_EFUSE_ENABLE BIT(31 )
#define HDMI_SYS_CFG20 0 x004
#define DEEP_COLOR_MODE_MASK (3 << 1 )
#define COLOR_8BIT_MODE (0 << 1 )
#define COLOR_10BIT_MODE (1 << 1 )
#define COLOR_12BIT_MODE (2 << 1 )
#define COLOR_16BIT_MODE (3 << 1 )
#define DEEP_COLOR_EN BIT(0 )
#define HDMI_AUDIO_TEST_SEL BIT(8 )
#define HDMI2P0_EN BIT(11 )
#define HDMI_OUT_FIFO_EN BIT(16 )
#define HDMI_OUT_FIFO_CLK_INV BIT(17 )
#define MHL_MODE_ON BIT(28 )
#define MHL_PP_MODE BIT(29 )
#define MHL_SYNC_AUTO_EN BIT(30 )
#define HDMI_PCLK_FREE_RUN BIT(31 )
#define MTK_SIP_SET_AUTHORIZED_SECURE_REG 0 x82000001
#endif
Messung V0.5 in Prozent C=96 H=94 G=94
¤ Dauer der Verarbeitung: 0.8 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland