/* SPDX-License-Identifier: GPL-2.0-only */
/*
*
* Cloned from drivers / media / video / s5p - tv / regs - hdmi . h
*
* Copyright ( c ) 2010 - 2011 Samsung Electronics Co . , Ltd .
* http : //www.samsung.com/
*
* HDMI register header file for Samsung TVOUT driver
*/
#ifndef SAMSUNG_REGS_HDMI_H
#define SAMSUNG_REGS_HDMI_H
/*
* Register part
*/
/* HDMI Version 1.3 & Common */
#define HDMI_CTRL_BASE(x) ((x) + 0 x00000000)
#define HDMI_CORE_BASE(x) ((x) + 0 x00010000)
#define HDMI_I2S_BASE(x) ((x) + 0 x00040000)
#define HDMI_TG_BASE(x) ((x) + 0 x00050000)
/* Control registers */
#define HDMI_INTC_CON HDMI_CTRL_BASE(0 x0000)
#define HDMI_INTC_FLAG HDMI_CTRL_BASE(0 x0004)
#define HDMI_HPD_STATUS HDMI_CTRL_BASE(0 x000C)
#define HDMI_V13_PHY_RSTOUT HDMI_CTRL_BASE(0 x0014)
#define HDMI_V13_PHY_VPLL HDMI_CTRL_BASE(0 x0018)
#define HDMI_V13_PHY_CMU HDMI_CTRL_BASE(0 x001C)
#define HDMI_V13_CORE_RSTOUT HDMI_CTRL_BASE(0 x0020)
/* Core registers */
#define HDMI_CON_0 HDMI_CORE_BASE(0 x0000)
#define HDMI_CON_1 HDMI_CORE_BASE(0 x0004)
#define HDMI_CON_2 HDMI_CORE_BASE(0 x0008)
#define HDMI_SYS_STATUS HDMI_CORE_BASE(0 x0010)
#define HDMI_V13_PHY_STATUS HDMI_CORE_BASE(0 x0014)
#define HDMI_STATUS_EN HDMI_CORE_BASE(0 x0020)
#define HDMI_HPD HDMI_CORE_BASE(0 x0030)
#define HDMI_MODE_SEL HDMI_CORE_BASE(0 x0040)
#define HDMI_ENC_EN HDMI_CORE_BASE(0 x0044)
#define HDMI_V13_BLUE_SCREEN_0 HDMI_CORE_BASE(0 x0050)
#define HDMI_V13_BLUE_SCREEN_1 HDMI_CORE_BASE(0 x0054)
#define HDMI_V13_BLUE_SCREEN_2 HDMI_CORE_BASE(0 x0058)
#define HDMI_H_BLANK_0 HDMI_CORE_BASE(0 x00A0)
#define HDMI_H_BLANK_1 HDMI_CORE_BASE(0 x00A4)
#define HDMI_V13_V_BLANK_0 HDMI_CORE_BASE(0 x00B0)
#define HDMI_V13_V_BLANK_1 HDMI_CORE_BASE(0 x00B4)
#define HDMI_V13_V_BLANK_2 HDMI_CORE_BASE(0 x00B8)
#define HDMI_V13_H_V_LINE_0 HDMI_CORE_BASE(0 x00C0)
#define HDMI_V13_H_V_LINE_1 HDMI_CORE_BASE(0 x00C4)
#define HDMI_V13_H_V_LINE_2 HDMI_CORE_BASE(0 x00C8)
#define HDMI_VSYNC_POL HDMI_CORE_BASE(0 x00E4)
#define HDMI_INT_PRO_MODE HDMI_CORE_BASE(0 x00E8)
#define HDMI_V13_V_BLANK_F_0 HDMI_CORE_BASE(0 x0110)
#define HDMI_V13_V_BLANK_F_1 HDMI_CORE_BASE(0 x0114)
#define HDMI_V13_V_BLANK_F_2 HDMI_CORE_BASE(0 x0118)
#define HDMI_V13_H_SYNC_GEN_0 HDMI_CORE_BASE(0 x0120)
#define HDMI_V13_H_SYNC_GEN_1 HDMI_CORE_BASE(0 x0124)
#define HDMI_V13_H_SYNC_GEN_2 HDMI_CORE_BASE(0 x0128)
#define HDMI_V13_V_SYNC_GEN_1_0 HDMI_CORE_BASE(0 x0130)
#define HDMI_V13_V_SYNC_GEN_1_1 HDMI_CORE_BASE(0 x0134)
#define HDMI_V13_V_SYNC_GEN_1_2 HDMI_CORE_BASE(0 x0138)
#define HDMI_V13_V_SYNC_GEN_2_0 HDMI_CORE_BASE(0 x0140)
#define HDMI_V13_V_SYNC_GEN_2_1 HDMI_CORE_BASE(0 x0144)
#define HDMI_V13_V_SYNC_GEN_2_2 HDMI_CORE_BASE(0 x0148)
#define HDMI_V13_V_SYNC_GEN_3_0 HDMI_CORE_BASE(0 x0150)
#define HDMI_V13_V_SYNC_GEN_3_1 HDMI_CORE_BASE(0 x0154)
#define HDMI_V13_V_SYNC_GEN_3_2 HDMI_CORE_BASE(0 x0158)
#define HDMI_V13_AVI_CON HDMI_CORE_BASE(0 x0300)
#define HDMI_V13_AVI_BYTE(n) HDMI_CORE_BASE(0 x0320 + 4 * (n))
#define HDMI_V13_DC_CONTROL HDMI_CORE_BASE(0 x05C0)
#define HDMI_V13_VIDEO_PATTERN_GEN HDMI_CORE_BASE(0 x05C4)
#define HDMI_V13_HPD_GEN HDMI_CORE_BASE(0 x05C8)
#define HDMI_V13_AUI_CON HDMI_CORE_BASE(0 x0360)
#define HDMI_V13_SPD_CON HDMI_CORE_BASE(0 x0400)
/* Timing generator registers */
#define HDMI_TG_CMD HDMI_TG_BASE(0 x0000)
#define HDMI_TG_H_FSZ_L HDMI_TG_BASE(0 x0018)
#define HDMI_TG_H_FSZ_H HDMI_TG_BASE(0 x001C)
#define HDMI_TG_HACT_ST_L HDMI_TG_BASE(0 x0020)
#define HDMI_TG_HACT_ST_H HDMI_TG_BASE(0 x0024)
#define HDMI_TG_HACT_SZ_L HDMI_TG_BASE(0 x0028)
#define HDMI_TG_HACT_SZ_H HDMI_TG_BASE(0 x002C)
#define HDMI_TG_V_FSZ_L HDMI_TG_BASE(0 x0030)
#define HDMI_TG_V_FSZ_H HDMI_TG_BASE(0 x0034)
#define HDMI_TG_VSYNC_L HDMI_TG_BASE(0 x0038)
#define HDMI_TG_VSYNC_H HDMI_TG_BASE(0 x003C)
#define HDMI_TG_VSYNC2_L HDMI_TG_BASE(0 x0040)
#define HDMI_TG_VSYNC2_H HDMI_TG_BASE(0 x0044)
#define HDMI_TG_VACT_ST_L HDMI_TG_BASE(0 x0048)
#define HDMI_TG_VACT_ST_H HDMI_TG_BASE(0 x004C)
#define HDMI_TG_VACT_SZ_L HDMI_TG_BASE(0 x0050)
#define HDMI_TG_VACT_SZ_H HDMI_TG_BASE(0 x0054)
#define HDMI_TG_FIELD_CHG_L HDMI_TG_BASE(0 x0058)
#define HDMI_TG_FIELD_CHG_H HDMI_TG_BASE(0 x005C)
#define HDMI_TG_VACT_ST2_L HDMI_TG_BASE(0 x0060)
#define HDMI_TG_VACT_ST2_H HDMI_TG_BASE(0 x0064)
#define HDMI_TG_VSYNC_TOP_HDMI_L HDMI_TG_BASE(0 x0078)
#define HDMI_TG_VSYNC_TOP_HDMI_H HDMI_TG_BASE(0 x007C)
#define HDMI_TG_VSYNC_BOT_HDMI_L HDMI_TG_BASE(0 x0080)
#define HDMI_TG_VSYNC_BOT_HDMI_H HDMI_TG_BASE(0 x0084)
#define HDMI_TG_FIELD_TOP_HDMI_L HDMI_TG_BASE(0 x0088)
#define HDMI_TG_FIELD_TOP_HDMI_H HDMI_TG_BASE(0 x008C)
#define HDMI_TG_FIELD_BOT_HDMI_L HDMI_TG_BASE(0 x0090)
#define HDMI_TG_FIELD_BOT_HDMI_H HDMI_TG_BASE(0 x0094)
/*
* Bit definition part
*/
/* HDMI_INTC_CON */
#define HDMI_INTC_EN_GLOBAL (1 << 6 )
#define HDMI_INTC_EN_HPD_PLUG (1 << 3 )
#define HDMI_INTC_EN_HPD_UNPLUG (1 << 2 )
/* HDMI_INTC_FLAG */
#define HDMI_INTC_FLAG_HPD_PLUG (1 << 3 )
#define HDMI_INTC_FLAG_HPD_UNPLUG (1 << 2 )
/* HDMI_PHY_RSTOUT */
#define HDMI_PHY_SW_RSTOUT (1 << 0 )
/* HDMI_CORE_RSTOUT */
#define HDMI_CORE_SW_RSTOUT (1 << 0 )
/* HDMI_CON_0 */
#define HDMI_BLUE_SCR_EN (1 << 5 )
#define HDMI_ASP_EN (1 << 2 )
#define HDMI_ASP_DIS (0 << 2 )
#define HDMI_ASP_MASK (1 << 2 )
#define HDMI_EN (1 << 0 )
/* HDMI_CON_2 */
#define HDMI_VID_PREAMBLE_DIS (1 << 5 )
#define HDMI_GUARD_BAND_DIS (1 << 1 )
/* HDMI_PHY_STATUS */
#define HDMI_PHY_STATUS_READY (1 << 0 )
/* HDMI_MODE_SEL */
#define HDMI_MODE_HDMI_EN (1 << 1 )
#define HDMI_MODE_DVI_EN (1 << 0 )
#define HDMI_MODE_MASK (3 << 0 )
/* HDMI_TG_CMD */
#define HDMI_TG_EN (1 << 0 )
#define HDMI_FIELD_EN (1 << 1 )
/* HDMI Version 1.4 */
/* Control registers */
/* #define HDMI_INTC_CON HDMI_CTRL_BASE(0x0000) */
/* #define HDMI_INTC_FLAG HDMI_CTRL_BASE(0x0004) */
#define HDMI_HDCP_KEY_LOAD HDMI_CTRL_BASE(0 x0008)
/* #define HDMI_HPD_STATUS HDMI_CTRL_BASE(0x000C) */
#define HDMI_INTC_CON_1 HDMI_CTRL_BASE(0 x0010)
#define HDMI_INTC_FLAG_1 HDMI_CTRL_BASE(0 x0014)
#define HDMI_PHY_STATUS_0 HDMI_CTRL_BASE(0 x0020)
#define HDMI_PHY_STATUS_CMU HDMI_CTRL_BASE(0 x0024)
#define HDMI_PHY_STATUS_PLL HDMI_CTRL_BASE(0 x0028)
#define HDMI_PHY_CON_0 HDMI_CTRL_BASE(0 x0030)
#define HDMI_HPD_CTRL HDMI_CTRL_BASE(0 x0040)
#define HDMI_HPD_ST HDMI_CTRL_BASE(0 x0044)
#define HDMI_HPD_TH_X HDMI_CTRL_BASE(0 x0050)
#define HDMI_AUDIO_CLKSEL HDMI_CTRL_BASE(0 x0070)
#define HDMI_V14_PHY_RSTOUT HDMI_CTRL_BASE(0 x0074)
#define HDMI_PHY_VPLL HDMI_CTRL_BASE(0 x0078)
#define HDMI_PHY_CMU HDMI_CTRL_BASE(0 x007C)
#define HDMI_CORE_RSTOUT HDMI_CTRL_BASE(0 x0080)
/* PHY Control bit definition */
/* HDMI_PHY_CON_0 */
#define HDMI_PHY_POWER_OFF_EN (1 << 0 )
/* Video related registers */
#define HDMI_YMAX HDMI_CORE_BASE(0 x0060)
#define HDMI_YMIN HDMI_CORE_BASE(0 x0064)
#define HDMI_CMAX HDMI_CORE_BASE(0 x0068)
#define HDMI_CMIN HDMI_CORE_BASE(0 x006C)
#define HDMI_V2_BLANK_0 HDMI_CORE_BASE(0 x00B0)
#define HDMI_V2_BLANK_1 HDMI_CORE_BASE(0 x00B4)
#define HDMI_V1_BLANK_0 HDMI_CORE_BASE(0 x00B8)
#define HDMI_V1_BLANK_1 HDMI_CORE_BASE(0 x00BC)
#define HDMI_V_LINE_0 HDMI_CORE_BASE(0 x00C0)
#define HDMI_V_LINE_1 HDMI_CORE_BASE(0 x00C4)
#define HDMI_H_LINE_0 HDMI_CORE_BASE(0 x00C8)
#define HDMI_H_LINE_1 HDMI_CORE_BASE(0 x00CC)
#define HDMI_HSYNC_POL HDMI_CORE_BASE(0 x00E0)
#define HDMI_V_BLANK_F0_0 HDMI_CORE_BASE(0 x0110)
#define HDMI_V_BLANK_F0_1 HDMI_CORE_BASE(0 x0114)
#define HDMI_V_BLANK_F1_0 HDMI_CORE_BASE(0 x0118)
#define HDMI_V_BLANK_F1_1 HDMI_CORE_BASE(0 x011C)
#define HDMI_H_SYNC_START_0 HDMI_CORE_BASE(0 x0120)
#define HDMI_H_SYNC_START_1 HDMI_CORE_BASE(0 x0124)
#define HDMI_H_SYNC_END_0 HDMI_CORE_BASE(0 x0128)
#define HDMI_H_SYNC_END_1 HDMI_CORE_BASE(0 x012C)
#define HDMI_V_SYNC_LINE_BEF_2_0 HDMI_CORE_BASE(0 x0130)
#define HDMI_V_SYNC_LINE_BEF_2_1 HDMI_CORE_BASE(0 x0134)
#define HDMI_V_SYNC_LINE_BEF_1_0 HDMI_CORE_BASE(0 x0138)
#define HDMI_V_SYNC_LINE_BEF_1_1 HDMI_CORE_BASE(0 x013C)
#define HDMI_V_SYNC_LINE_AFT_2_0 HDMI_CORE_BASE(0 x0140)
#define HDMI_V_SYNC_LINE_AFT_2_1 HDMI_CORE_BASE(0 x0144)
#define HDMI_V_SYNC_LINE_AFT_1_0 HDMI_CORE_BASE(0 x0148)
#define HDMI_V_SYNC_LINE_AFT_1_1 HDMI_CORE_BASE(0 x014C)
#define HDMI_V_SYNC_LINE_AFT_PXL_2_0 HDMI_CORE_BASE(0 x0150)
#define HDMI_V_SYNC_LINE_AFT_PXL_2_1 HDMI_CORE_BASE(0 x0154)
#define HDMI_V_SYNC_LINE_AFT_PXL_1_0 HDMI_CORE_BASE(0 x0158)
#define HDMI_V_SYNC_LINE_AFT_PXL_1_1 HDMI_CORE_BASE(0 x015C)
#define HDMI_V_BLANK_F2_0 HDMI_CORE_BASE(0 x0160)
#define HDMI_V_BLANK_F2_1 HDMI_CORE_BASE(0 x0164)
#define HDMI_V_BLANK_F3_0 HDMI_CORE_BASE(0 x0168)
#define HDMI_V_BLANK_F3_1 HDMI_CORE_BASE(0 x016C)
#define HDMI_V_BLANK_F4_0 HDMI_CORE_BASE(0 x0170)
#define HDMI_V_BLANK_F4_1 HDMI_CORE_BASE(0 x0174)
#define HDMI_V_BLANK_F5_0 HDMI_CORE_BASE(0 x0178)
#define HDMI_V_BLANK_F5_1 HDMI_CORE_BASE(0 x017C)
#define HDMI_V_SYNC_LINE_AFT_3_0 HDMI_CORE_BASE(0 x0180)
#define HDMI_V_SYNC_LINE_AFT_3_1 HDMI_CORE_BASE(0 x0184)
#define HDMI_V_SYNC_LINE_AFT_4_0 HDMI_CORE_BASE(0 x0188)
#define HDMI_V_SYNC_LINE_AFT_4_1 HDMI_CORE_BASE(0 x018C)
#define HDMI_V_SYNC_LINE_AFT_5_0 HDMI_CORE_BASE(0 x0190)
#define HDMI_V_SYNC_LINE_AFT_5_1 HDMI_CORE_BASE(0 x0194)
#define HDMI_V_SYNC_LINE_AFT_6_0 HDMI_CORE_BASE(0 x0198)
#define HDMI_V_SYNC_LINE_AFT_6_1 HDMI_CORE_BASE(0 x019C)
#define HDMI_V_SYNC_LINE_AFT_PXL_3_0 HDMI_CORE_BASE(0 x01A0)
#define HDMI_V_SYNC_LINE_AFT_PXL_3_1 HDMI_CORE_BASE(0 x01A4)
#define HDMI_V_SYNC_LINE_AFT_PXL_4_0 HDMI_CORE_BASE(0 x01A8)
#define HDMI_V_SYNC_LINE_AFT_PXL_4_1 HDMI_CORE_BASE(0 x01AC)
#define HDMI_V_SYNC_LINE_AFT_PXL_5_0 HDMI_CORE_BASE(0 x01B0)
#define HDMI_V_SYNC_LINE_AFT_PXL_5_1 HDMI_CORE_BASE(0 x01B4)
#define HDMI_V_SYNC_LINE_AFT_PXL_6_0 HDMI_CORE_BASE(0 x01B8)
#define HDMI_V_SYNC_LINE_AFT_PXL_6_1 HDMI_CORE_BASE(0 x01BC)
#define HDMI_VACT_SPACE_1_0 HDMI_CORE_BASE(0 x01C0)
#define HDMI_VACT_SPACE_1_1 HDMI_CORE_BASE(0 x01C4)
#define HDMI_VACT_SPACE_2_0 HDMI_CORE_BASE(0 x01C8)
#define HDMI_VACT_SPACE_2_1 HDMI_CORE_BASE(0 x01CC)
#define HDMI_VACT_SPACE_3_0 HDMI_CORE_BASE(0 x01D0)
#define HDMI_VACT_SPACE_3_1 HDMI_CORE_BASE(0 x01D4)
#define HDMI_VACT_SPACE_4_0 HDMI_CORE_BASE(0 x01D8)
#define HDMI_VACT_SPACE_4_1 HDMI_CORE_BASE(0 x01DC)
#define HDMI_VACT_SPACE_5_0 HDMI_CORE_BASE(0 x01E0)
#define HDMI_VACT_SPACE_5_1 HDMI_CORE_BASE(0 x01E4)
#define HDMI_VACT_SPACE_6_0 HDMI_CORE_BASE(0 x01E8)
#define HDMI_VACT_SPACE_6_1 HDMI_CORE_BASE(0 x01EC)
#define HDMI_GCP_CON HDMI_CORE_BASE(0 x0200)
#define HDMI_GCP_BYTE1 HDMI_CORE_BASE(0 x0210)
#define HDMI_GCP_BYTE2 HDMI_CORE_BASE(0 x0214)
#define HDMI_GCP_BYTE3 HDMI_CORE_BASE(0 x0218)
/* Audio related registers */
#define HDMI_ASP_CON HDMI_CORE_BASE(0 x0300)
#define HDMI_ASP_SP_FLAT HDMI_CORE_BASE(0 x0304)
#define HDMI_ASP_CHCFG0 HDMI_CORE_BASE(0 x0310)
#define HDMI_ASP_CHCFG1 HDMI_CORE_BASE(0 x0314)
#define HDMI_ASP_CHCFG2 HDMI_CORE_BASE(0 x0318)
#define HDMI_ASP_CHCFG3 HDMI_CORE_BASE(0 x031C)
#define HDMI_V13_ACR_CON HDMI_CORE_BASE(0 x0180)
#define HDMI_V13_ACR_MCTS0 HDMI_CORE_BASE(0 x0184)
#define HDMI_V13_ACR_MCTS1 HDMI_CORE_BASE(0 x0188)
#define HDMI_V13_ACR_MCTS2 HDMI_CORE_BASE(0 x018C)
#define HDMI_V13_ACR_CTS0 HDMI_CORE_BASE(0 x0190)
#define HDMI_V13_ACR_CTS1 HDMI_CORE_BASE(0 x0194)
#define HDMI_V13_ACR_CTS2 HDMI_CORE_BASE(0 x0198)
#define HDMI_V13_ACR_N0 HDMI_CORE_BASE(0 x01A0)
#define HDMI_V13_ACR_N1 HDMI_CORE_BASE(0 x01A4)
#define HDMI_V13_ACR_N2 HDMI_CORE_BASE(0 x01A8)
#define HDMI_V14_ACR_CON HDMI_CORE_BASE(0 x0400)
#define HDMI_V14_ACR_MCTS0 HDMI_CORE_BASE(0 x0410)
#define HDMI_V14_ACR_MCTS1 HDMI_CORE_BASE(0 x0414)
#define HDMI_V14_ACR_MCTS2 HDMI_CORE_BASE(0 x0418)
#define HDMI_V14_ACR_CTS0 HDMI_CORE_BASE(0 x0420)
#define HDMI_V14_ACR_CTS1 HDMI_CORE_BASE(0 x0424)
#define HDMI_V14_ACR_CTS2 HDMI_CORE_BASE(0 x0428)
#define HDMI_V14_ACR_N0 HDMI_CORE_BASE(0 x0430)
#define HDMI_V14_ACR_N1 HDMI_CORE_BASE(0 x0434)
#define HDMI_V14_ACR_N2 HDMI_CORE_BASE(0 x0438)
/* Packet related registers */
#define HDMI_ACP_CON HDMI_CORE_BASE(0 x0500)
#define HDMI_ACP_TYPE HDMI_CORE_BASE(0 x0514)
#define HDMI_ACP_DATA(n) HDMI_CORE_BASE(0 x0520 + 4 * (n))
#define HDMI_ISRC_CON HDMI_CORE_BASE(0 x0600)
#define HDMI_ISRC1_HEADER1 HDMI_CORE_BASE(0 x0614)
#define HDMI_ISRC1_DATA(n) HDMI_CORE_BASE(0 x0620 + 4 * (n))
#define HDMI_ISRC2_DATA(n) HDMI_CORE_BASE(0 x06A0 + 4 * (n))
#define HDMI_AVI_CON HDMI_CORE_BASE(0 x0700)
#define HDMI_AVI_HEADER0 HDMI_CORE_BASE(0 x0710)
#define HDMI_AVI_HEADER1 HDMI_CORE_BASE(0 x0714)
#define HDMI_AVI_HEADER2 HDMI_CORE_BASE(0 x0718)
#define HDMI_AVI_CHECK_SUM HDMI_CORE_BASE(0 x071C)
#define HDMI_AVI_BYTE(n) HDMI_CORE_BASE(0 x0720 + 4 * (n-1 ))
#define HDMI_AUI_CON HDMI_CORE_BASE(0 x0800)
#define HDMI_AUI_HEADER0 HDMI_CORE_BASE(0 x0810)
#define HDMI_AUI_HEADER1 HDMI_CORE_BASE(0 x0814)
#define HDMI_AUI_HEADER2 HDMI_CORE_BASE(0 x0818)
#define HDMI_AUI_CHECK_SUM HDMI_CORE_BASE(0 x081C)
#define HDMI_AUI_BYTE(n) HDMI_CORE_BASE(0 x0820 + 4 * (n-1 ))
#define HDMI_MPG_CON HDMI_CORE_BASE(0 x0900)
#define HDMI_MPG_CHECK_SUM HDMI_CORE_BASE(0 x091C)
#define HDMI_MPG_DATA(n) HDMI_CORE_BASE(0 x0920 + 4 * (n))
#define HDMI_SPD_CON HDMI_CORE_BASE(0 x0A00)
#define HDMI_SPD_HEADER0 HDMI_CORE_BASE(0 x0A10)
#define HDMI_SPD_HEADER1 HDMI_CORE_BASE(0 x0A14)
#define HDMI_SPD_HEADER2 HDMI_CORE_BASE(0 x0A18)
#define HDMI_SPD_DATA(n) HDMI_CORE_BASE(0 x0A20 + 4 * (n))
#define HDMI_GAMUT_CON HDMI_CORE_BASE(0 x0B00)
#define HDMI_GAMUT_HEADER0 HDMI_CORE_BASE(0 x0B10)
#define HDMI_GAMUT_HEADER1 HDMI_CORE_BASE(0 x0B14)
#define HDMI_GAMUT_HEADER2 HDMI_CORE_BASE(0 x0B18)
#define HDMI_GAMUT_METADATA(n) HDMI_CORE_BASE(0 x0B20 + 4 * (n))
#define HDMI_VSI_CON HDMI_CORE_BASE(0 x0C00)
#define HDMI_VSI_HEADER0 HDMI_CORE_BASE(0 x0C10)
#define HDMI_VSI_HEADER1 HDMI_CORE_BASE(0 x0C14)
#define HDMI_VSI_HEADER2 HDMI_CORE_BASE(0 x0C18)
#define HDMI_VSI_DATA(n) HDMI_CORE_BASE(0 x0C20 + 4 * (n))
#define HDMI_DC_CONTROL HDMI_CORE_BASE(0 x0D00)
#define HDMI_VIDEO_PATTERN_GEN HDMI_CORE_BASE(0 x0D04)
#define HDMI_AN_SEED_SEL HDMI_CORE_BASE(0 x0E48)
#define HDMI_AN_SEED_0 HDMI_CORE_BASE(0 x0E58)
#define HDMI_AN_SEED_1 HDMI_CORE_BASE(0 x0E5C)
#define HDMI_AN_SEED_2 HDMI_CORE_BASE(0 x0E60)
#define HDMI_AN_SEED_3 HDMI_CORE_BASE(0 x0E64)
/* AVI bit definition */
#define HDMI_AVI_CON_DO_NOT_TRANSMIT (0 << 1 )
#define HDMI_AVI_CON_EVERY_VSYNC (1 << 1 )
#define AVI_ACTIVE_FORMAT_VALID (1 << 4 )
#define AVI_UNDERSCANNED_DISPLAY_VALID (1 << 1 )
/* AUI bit definition */
#define HDMI_AUI_CON_NO_TRAN (0 << 0 )
#define HDMI_AUI_CON_EVERY_VSYNC (1 << 1 )
/* VSI bit definition */
#define HDMI_VSI_CON_DO_NOT_TRANSMIT (0 << 0 )
#define HDMI_VSI_CON_EVERY_VSYNC (1 << 1 )
/* HDCP related registers */
#define HDMI_HDCP_SHA1(n) HDMI_CORE_BASE(0 x7000 + 4 * (n))
#define HDMI_HDCP_KSV_LIST(n) HDMI_CORE_BASE(0 x7050 + 4 * (n))
#define HDMI_HDCP_KSV_LIST_CON HDMI_CORE_BASE(0 x7064)
#define HDMI_HDCP_SHA_RESULT HDMI_CORE_BASE(0 x7070)
#define HDMI_HDCP_CTRL1 HDMI_CORE_BASE(0 x7080)
#define HDMI_HDCP_CTRL2 HDMI_CORE_BASE(0 x7084)
#define HDMI_HDCP_CHECK_RESULT HDMI_CORE_BASE(0 x7090)
#define HDMI_HDCP_BKSV(n) HDMI_CORE_BASE(0 x70A0 + 4 * (n))
#define HDMI_HDCP_AKSV(n) HDMI_CORE_BASE(0 x70C0 + 4 * (n))
#define HDMI_HDCP_AN(n) HDMI_CORE_BASE(0 x70E0 + 4 * (n))
#define HDMI_HDCP_BCAPS HDMI_CORE_BASE(0 x7100)
#define HDMI_HDCP_BSTATUS_0 HDMI_CORE_BASE(0 x7110)
#define HDMI_HDCP_BSTATUS_1 HDMI_CORE_BASE(0 x7114)
#define HDMI_HDCP_RI_0 HDMI_CORE_BASE(0 x7140)
#define HDMI_HDCP_RI_1 HDMI_CORE_BASE(0 x7144)
#define HDMI_HDCP_I2C_INT HDMI_CORE_BASE(0 x7180)
#define HDMI_HDCP_AN_INT HDMI_CORE_BASE(0 x7190)
#define HDMI_HDCP_WDT_INT HDMI_CORE_BASE(0 x71A0)
#define HDMI_HDCP_RI_INT HDMI_CORE_BASE(0 x71B0)
#define HDMI_HDCP_RI_COMPARE_0 HDMI_CORE_BASE(0 x71D0)
#define HDMI_HDCP_RI_COMPARE_1 HDMI_CORE_BASE(0 x71D4)
#define HDMI_HDCP_FRAME_COUNT HDMI_CORE_BASE(0 x71E0)
#define HDMI_RGB_ROUND_EN HDMI_CORE_BASE(0 xD500)
#define HDMI_VACT_SPACE_R_0 HDMI_CORE_BASE(0 xD504)
#define HDMI_VACT_SPACE_R_1 HDMI_CORE_BASE(0 xD508)
#define HDMI_VACT_SPACE_G_0 HDMI_CORE_BASE(0 xD50C)
#define HDMI_VACT_SPACE_G_1 HDMI_CORE_BASE(0 xD510)
#define HDMI_VACT_SPACE_B_0 HDMI_CORE_BASE(0 xD514)
#define HDMI_VACT_SPACE_B_1 HDMI_CORE_BASE(0 xD518)
#define HDMI_BLUE_SCREEN_B_0 HDMI_CORE_BASE(0 xD520)
#define HDMI_BLUE_SCREEN_B_1 HDMI_CORE_BASE(0 xD524)
#define HDMI_BLUE_SCREEN_G_0 HDMI_CORE_BASE(0 xD528)
#define HDMI_BLUE_SCREEN_G_1 HDMI_CORE_BASE(0 xD52C)
#define HDMI_BLUE_SCREEN_R_0 HDMI_CORE_BASE(0 xD530)
#define HDMI_BLUE_SCREEN_R_1 HDMI_CORE_BASE(0 xD534)
/* HDMI I2S register */
#define HDMI_I2S_CLK_CON HDMI_I2S_BASE(0 x000)
#define HDMI_I2S_CON_1 HDMI_I2S_BASE(0 x004)
#define HDMI_I2S_CON_2 HDMI_I2S_BASE(0 x008)
#define HDMI_I2S_PIN_SEL_0 HDMI_I2S_BASE(0 x00c)
#define HDMI_I2S_PIN_SEL_1 HDMI_I2S_BASE(0 x010)
#define HDMI_I2S_PIN_SEL_2 HDMI_I2S_BASE(0 x014)
#define HDMI_I2S_PIN_SEL_3 HDMI_I2S_BASE(0 x018)
#define HDMI_I2S_DSD_CON HDMI_I2S_BASE(0 x01c)
#define HDMI_I2S_MUX_CON HDMI_I2S_BASE(0 x020)
#define HDMI_I2S_CH_ST_CON HDMI_I2S_BASE(0 x024)
/* n must be within range 0...(HDMI_I2S_CH_ST_MAXNUM - 1) */
#define HDMI_I2S_CH_ST_MAXNUM 5
#define HDMI_I2S_CH_ST(n) HDMI_I2S_BASE(0 x028 + 4 * (n))
#define HDMI_I2S_CH_ST_SH_0 HDMI_I2S_BASE(0 x03c)
#define HDMI_I2S_CH_ST_SH_1 HDMI_I2S_BASE(0 x040)
#define HDMI_I2S_CH_ST_SH_2 HDMI_I2S_BASE(0 x044)
#define HDMI_I2S_CH_ST_SH_3 HDMI_I2S_BASE(0 x048)
#define HDMI_I2S_CH_ST_SH_4 HDMI_I2S_BASE(0 x04c)
#define HDMI_I2S_MUX_CH HDMI_I2S_BASE(0 x054)
#define HDMI_I2S_MUX_CUV HDMI_I2S_BASE(0 x058)
/* I2S bit definition */
/* I2S_CLK_CON */
#define HDMI_I2S_CLK_DIS (0 )
#define HDMI_I2S_CLK_EN (1 )
/* I2S_CON_1 */
#define HDMI_I2S_SCLK_FALLING_EDGE (0 << 1 )
#define HDMI_I2S_SCLK_RISING_EDGE (1 << 1 )
#define HDMI_I2S_L_CH_LOW_POL (0 )
#define HDMI_I2S_L_CH_HIGH_POL (1 )
/* I2S_CON_2 */
#define HDMI_I2S_MSB_FIRST_MODE (0 << 6 )
#define HDMI_I2S_LSB_FIRST_MODE (1 << 6 )
#define HDMI_I2S_BIT_CH_32FS (0 << 4 )
#define HDMI_I2S_BIT_CH_48FS (1 << 4 )
#define HDMI_I2S_BIT_CH_RESERVED (2 << 4 )
#define HDMI_I2S_SDATA_16BIT (1 << 2 )
#define HDMI_I2S_SDATA_20BIT (2 << 2 )
#define HDMI_I2S_SDATA_24BIT (3 << 2 )
#define HDMI_I2S_BASIC_FORMAT (0 )
#define HDMI_I2S_L_JUST_FORMAT (2 )
#define HDMI_I2S_R_JUST_FORMAT (3 )
#define HDMI_I2S_CON_2_CLR (~(0 xFF))
#define HDMI_I2S_SET_BIT_CH(x) (((x) & 0 x7) << 4 )
#define HDMI_I2S_SET_SDATA_BIT(x) (((x) & 0 x7) << 2 )
/* I2S_PIN_SEL_0 */
#define HDMI_I2S_SEL_SCLK(x) (((x) & 0 x7) << 4 )
#define HDMI_I2S_SEL_LRCK(x) ((x) & 0 x7)
/* I2S_PIN_SEL_1 */
#define HDMI_I2S_SEL_SDATA1(x) (((x) & 0 x7) << 4 )
#define HDMI_I2S_SEL_SDATA0(x) ((x) & 0 x7)
/* I2S_PIN_SEL_2 */
#define HDMI_I2S_SEL_SDATA3(x) (((x) & 0 x7) << 4 )
#define HDMI_I2S_SEL_SDATA2(x) ((x) & 0 x7)
/* I2S_PIN_SEL_3 */
#define HDMI_I2S_SEL_DSD(x) ((x) & 0 x7)
/* I2S_DSD_CON */
#define HDMI_I2S_DSD_CLK_RI_EDGE (1 << 1 )
#define HDMI_I2S_DSD_CLK_FA_EDGE (0 << 1 )
#define HDMI_I2S_DSD_ENABLE (1 )
#define HDMI_I2S_DSD_DISABLE (0 )
/* I2S_MUX_CON */
#define HDMI_I2S_NOISE_FILTER_ZERO (0 << 5 )
#define HDMI_I2S_NOISE_FILTER_2_STAGE (1 << 5 )
#define HDMI_I2S_NOISE_FILTER_3_STAGE (2 << 5 )
#define HDMI_I2S_NOISE_FILTER_4_STAGE (3 << 5 )
#define HDMI_I2S_NOISE_FILTER_5_STAGE (4 << 5 )
#define HDMI_I2S_IN_DISABLE (1 << 4 )
#define HDMI_I2S_IN_ENABLE (0 << 4 )
#define HDMI_I2S_AUD_SPDIF (0 << 2 )
#define HDMI_I2S_AUD_I2S (1 << 2 )
#define HDMI_I2S_AUD_DSD (2 << 2 )
#define HDMI_I2S_CUV_SPDIF_ENABLE (0 << 1 )
#define HDMI_I2S_CUV_I2S_ENABLE (1 << 1 )
#define HDMI_I2S_MUX_DISABLE (0 )
#define HDMI_I2S_MUX_ENABLE (1 )
#define HDMI_I2S_MUX_CON_CLR (~(0 xFF))
/* I2S_CH_ST_CON */
#define HDMI_I2S_CH_STATUS_RELOAD (1 )
#define HDMI_I2S_CH_ST_CON_CLR (~(1 ))
/* I2S_CH_ST_0 / I2S_CH_ST_SH_0 */
#define HDMI_I2S_CH_STATUS_MODE_0 (0 << 6 )
#define HDMI_I2S_2AUD_CH_WITHOUT_PREEMPH (0 << 3 )
#define HDMI_I2S_2AUD_CH_WITH_PREEMPH (1 << 3 )
#define HDMI_I2S_DEFAULT_EMPHASIS (0 << 3 )
#define HDMI_I2S_COPYRIGHT (0 << 2 )
#define HDMI_I2S_NO_COPYRIGHT (1 << 2 )
#define HDMI_I2S_LINEAR_PCM (0 << 1 )
#define HDMI_I2S_NO_LINEAR_PCM (1 << 1 )
#define HDMI_I2S_CONSUMER_FORMAT (0 )
#define HDMI_I2S_PROF_FORMAT (1 )
#define HDMI_I2S_CH_ST_0_CLR (~(0 xFF))
/* I2S_CH_ST_1 / I2S_CH_ST_SH_1 */
#define HDMI_I2S_CD_PLAYER (0 x00)
#define HDMI_I2S_DAT_PLAYER (0 x03)
#define HDMI_I2S_DCC_PLAYER (0 x43)
#define HDMI_I2S_MINI_DISC_PLAYER (0 x49)
/* I2S_CH_ST_2 / I2S_CH_ST_SH_2 */
#define HDMI_I2S_CHANNEL_NUM_MASK (0 xF << 4 )
#define HDMI_I2S_SOURCE_NUM_MASK (0 xF)
#define HDMI_I2S_SET_CHANNEL_NUM(x) (((x) & (0 xF)) << 4 )
#define HDMI_I2S_SET_SOURCE_NUM(x) ((x) & (0 xF))
/* I2S_CH_ST_3 / I2S_CH_ST_SH_3 */
#define HDMI_I2S_CLK_ACCUR_LEVEL_1 (1 << 4 )
#define HDMI_I2S_CLK_ACCUR_LEVEL_2 (0 << 4 )
#define HDMI_I2S_CLK_ACCUR_LEVEL_3 (2 << 4 )
#define HDMI_I2S_SMP_FREQ_44_1 (0 x0)
#define HDMI_I2S_SMP_FREQ_48 (0 x2)
#define HDMI_I2S_SMP_FREQ_32 (0 x3)
#define HDMI_I2S_SMP_FREQ_96 (0 xA)
#define HDMI_I2S_SET_SMP_FREQ(x) ((x) & (0 xF))
/* I2S_CH_ST_4 / I2S_CH_ST_SH_4 */
#define HDMI_I2S_ORG_SMP_FREQ_44_1 (0 xF << 4 )
#define HDMI_I2S_ORG_SMP_FREQ_88_2 (0 x7 << 4 )
#define HDMI_I2S_ORG_SMP_FREQ_22_05 (0 xB << 4 )
#define HDMI_I2S_ORG_SMP_FREQ_176_4 (0 x3 << 4 )
#define HDMI_I2S_WORD_LEN_NOT_DEFINE (0 x0 << 1 )
#define HDMI_I2S_WORD_LEN_MAX24_20BITS (0 x1 << 1 )
#define HDMI_I2S_WORD_LEN_MAX24_22BITS (0 x2 << 1 )
#define HDMI_I2S_WORD_LEN_MAX24_23BITS (0 x4 << 1 )
#define HDMI_I2S_WORD_LEN_MAX24_24BITS (0 x5 << 1 )
#define HDMI_I2S_WORD_LEN_MAX24_21BITS (0 x6 << 1 )
#define HDMI_I2S_WORD_LEN_MAX20_16BITS (0 x1 << 1 )
#define HDMI_I2S_WORD_LEN_MAX20_18BITS (0 x2 << 1 )
#define HDMI_I2S_WORD_LEN_MAX20_19BITS (0 x4 << 1 )
#define HDMI_I2S_WORD_LEN_MAX20_20BITS (0 x5 << 1 )
#define HDMI_I2S_WORD_LEN_MAX20_17BITS (0 x6 << 1 )
#define HDMI_I2S_WORD_LEN_MAX_24BITS (1 )
#define HDMI_I2S_WORD_LEN_MAX_20BITS (0 )
/* I2S_MUX_CH */
#define HDMI_I2S_CH3_R_EN (1 << 7 )
#define HDMI_I2S_CH3_L_EN (1 << 6 )
#define HDMI_I2S_CH3_EN (3 << 6 )
#define HDMI_I2S_CH2_R_EN (1 << 5 )
#define HDMI_I2S_CH2_L_EN (1 << 4 )
#define HDMI_I2S_CH2_EN (3 << 4 )
#define HDMI_I2S_CH1_R_EN (1 << 3 )
#define HDMI_I2S_CH1_L_EN (1 << 2 )
#define HDMI_I2S_CH1_EN (3 << 2 )
#define HDMI_I2S_CH0_R_EN (1 << 1 )
#define HDMI_I2S_CH0_L_EN (1 )
#define HDMI_I2S_CH0_EN (3 )
#define HDMI_I2S_CH_ALL_EN (0 xFF)
#define HDMI_I2S_MUX_CH_CLR (~HDMI_I2S_CH_ALL_EN)
/* I2S_MUX_CUV */
#define HDMI_I2S_CUV_R_EN (1 << 1 )
#define HDMI_I2S_CUV_L_EN (1 )
#define HDMI_I2S_CUV_RL_EN (0 x03)
/* I2S_CUV_L_R */
#define HDMI_I2S_CUV_R_DATA_MASK (0 x7 << 4 )
#define HDMI_I2S_CUV_L_DATA_MASK (0 x7)
/* Timing generator registers */
/* TG configure/status registers */
#define HDMI_TG_VACT_ST3_L HDMI_TG_BASE(0 x0068)
#define HDMI_TG_VACT_ST3_H HDMI_TG_BASE(0 x006c)
#define HDMI_TG_VACT_ST4_L HDMI_TG_BASE(0 x0070)
#define HDMI_TG_VACT_ST4_H HDMI_TG_BASE(0 x0074)
#define HDMI_TG_3D HDMI_TG_BASE(0 x00F0)
#define HDMI_TG_DECON_EN HDMI_TG_BASE(0 x01e0)
/* HDMI PHY Registers Offsets*/
#define HDMIPHY_POWER 0 x74
#define HDMIPHY_MODE_SET_DONE 0 x7c
#define HDMIPHY5433_MODE_SET_DONE 0 x84
/* HDMI PHY Values */
#define HDMI_PHY_POWER_ON 0 x80
#define HDMI_PHY_POWER_OFF 0 xff
/* HDMI PHY Values */
#define HDMI_PHY_DISABLE_MODE_SET 0 x80
#define HDMI_PHY_ENABLE_MODE_SET 0 x00
/* PMU Registers for PHY */
#define PMU_HDMI_PHY_CONTROL 0 x700
#define PMU_HDMI_PHY_ENABLE_BIT BIT(0 )
#define EXYNOS5433_SYSREG_DISP_HDMI_PHY 0 x1008
#define SYSREG_HDMI_REFCLK_INT_CLK 1
#endif /* SAMSUNG_REGS_HDMI_H */
Messung V0.5 in Prozent C=91 H=96 G=93
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-10-12)
¤
*© Formatika GbR, Deutschland