linux/drivers/gpu/drm/rockchip/inno_hdmi.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
 *    Zheng Yang <[email protected]>
 *    Yakir Yang <[email protected]>
 */

#ifndef __INNO_HDMI_H__
#define __INNO_HDMI_H__

#define DDC_SEGMENT_ADDR

#define HDMI_SCL_RATE
#define DDC_BUS_FREQ_L
#define DDC_BUS_FREQ_H

#define HDMI_SYS_CTRL
#define m_RST_ANALOG
#define v_RST_ANALOG
#define v_NOT_RST_ANALOG
#define m_RST_DIGITAL
#define v_RST_DIGITAL
#define v_NOT_RST_DIGITAL
#define m_REG_CLK_INV
#define v_REG_CLK_NOT_INV
#define v_REG_CLK_INV
#define m_VCLK_INV
#define v_VCLK_NOT_INV
#define v_VCLK_INV
#define m_REG_CLK_SOURCE
#define v_REG_CLK_SOURCE_TMDS
#define v_REG_CLK_SOURCE_SYS
#define m_POWER
#define v_PWR_ON
#define v_PWR_OFF
#define m_INT_POL
#define v_INT_POL_HIGH
#define v_INT_POL_LOW

#define HDMI_VIDEO_CONTRL1
#define m_VIDEO_INPUT_FORMAT
#define m_DE_SOURCE
#define v_VIDEO_INPUT_FORMAT(n)
#define v_DE_EXTERNAL
#define v_DE_INTERNAL
enum {};

#define HDMI_VIDEO_CONTRL2
#define m_VIDEO_OUTPUT_COLOR
#define m_VIDEO_INPUT_BITS
#define m_VIDEO_INPUT_CSP
#define v_VIDEO_OUTPUT_COLOR(n)
#define v_VIDEO_INPUT_BITS(n)
#define v_VIDEO_INPUT_CSP(n)
enum {};

#define HDMI_VIDEO_CONTRL
#define m_VIDEO_AUTO_CSC
#define v_VIDEO_AUTO_CSC(n)
#define m_VIDEO_C0_C2_SWAP
#define v_VIDEO_C0_C2_SWAP(n)
enum {};

#define HDMI_VIDEO_CONTRL3
#define m_COLOR_DEPTH_NOT_INDICATED
#define m_SOF
#define m_COLOR_RANGE
#define m_CSC
#define v_COLOR_DEPTH_NOT_INDICATED(n)
#define v_SOF_ENABLE
#define v_SOF_DISABLE
#define v_COLOR_RANGE_FULL
#define v_COLOR_RANGE_LIMITED
#define v_CSC_ENABLE
#define v_CSC_DISABLE

#define HDMI_AV_MUTE
#define m_AVMUTE_CLEAR
#define m_AVMUTE_ENABLE
#define m_AUDIO_MUTE
#define m_VIDEO_BLACK
#define v_AVMUTE_CLEAR(n)
#define v_AVMUTE_ENABLE(n)
#define v_AUDIO_MUTE(n)
#define v_VIDEO_MUTE(n)

#define HDMI_VIDEO_TIMING_CTL
#define v_HSYNC_POLARITY(n)
#define v_VSYNC_POLARITY(n)
#define v_INETLACE(n)
#define v_EXTERANL_VIDEO(n)

#define HDMI_VIDEO_EXT_HTOTAL_L
#define HDMI_VIDEO_EXT_HTOTAL_H
#define HDMI_VIDEO_EXT_HBLANK_L
#define HDMI_VIDEO_EXT_HBLANK_H
#define HDMI_VIDEO_EXT_HDELAY_L
#define HDMI_VIDEO_EXT_HDELAY_H
#define HDMI_VIDEO_EXT_HDURATION_L
#define HDMI_VIDEO_EXT_HDURATION_H
#define HDMI_VIDEO_EXT_VTOTAL_L
#define HDMI_VIDEO_EXT_VTOTAL_H
#define HDMI_VIDEO_EXT_VBLANK
#define HDMI_VIDEO_EXT_VDELAY
#define HDMI_VIDEO_EXT_VDURATION

#define HDMI_VIDEO_CSC_COEF

#define HDMI_AUDIO_CTRL1
enum {};
#define v_CTS_SOURCE(n)

enum {};
#define v_DOWN_SAMPLE(n)

enum {};
#define v_AUDIO_SOURCE(n)

#define v_MCLK_ENABLE(n)
enum {};
#define v_MCLK_RATIO(n)

#define AUDIO_SAMPLE_RATE
enum {};

#define AUDIO_I2S_MODE
enum {};
#define v_I2S_CHANNEL(n)
enum {};
#define v_I2S_MODE(n)

#define AUDIO_I2S_MAP
#define AUDIO_I2S_SWAPS_SPDIF
#define v_SPIDF_FREQ(n)

#define N_32K
#define N_441K
#define N_882K
#define N_1764K
#define N_48K
#define N_96K
#define N_192K

#define HDMI_AUDIO_CHANNEL_STATUS
#define m_AUDIO_STATUS_NLPCM
#define m_AUDIO_STATUS_USE
#define m_AUDIO_STATUS_COPYRIGHT
#define m_AUDIO_STATUS_ADDITION
#define m_AUDIO_STATUS_CLK_ACCURACY
#define v_AUDIO_STATUS_NLPCM(n)
#define AUDIO_N_H
#define AUDIO_N_M
#define AUDIO_N_L

#define HDMI_AUDIO_CTS_H
#define HDMI_AUDIO_CTS_M
#define HDMI_AUDIO_CTS_L

#define HDMI_DDC_CLK_L
#define HDMI_DDC_CLK_H

#define HDMI_EDID_SEGMENT_POINTER
#define HDMI_EDID_WORD_ADDR
#define HDMI_EDID_FIFO_OFFSET
#define HDMI_EDID_FIFO_ADDR

#define HDMI_PACKET_SEND_MANUAL
#define HDMI_PACKET_SEND_AUTO
#define m_PACKET_GCP_EN
#define m_PACKET_MSI_EN
#define m_PACKET_SDI_EN
#define m_PACKET_VSI_EN
#define v_PACKET_GCP_EN(n)
#define v_PACKET_MSI_EN(n)
#define v_PACKET_SDI_EN(n)
#define v_PACKET_VSI_EN(n)

#define HDMI_CONTROL_PACKET_BUF_INDEX
enum {};

#define HDMI_CONTROL_PACKET_ADDR
#define HDMI_MAXIMUM_INFO_FRAME_SIZE
enum {};

#define HDMI_HDCP_CTRL
#define m_HDMI_DVI
#define v_HDMI_DVI(n)

#define HDMI_INTERRUPT_MASK1
#define HDMI_INTERRUPT_STATUS1
#define m_INT_ACTIVE_VSYNC
#define m_INT_EDID_READY

#define HDMI_INTERRUPT_MASK2
#define HDMI_INTERRUPT_STATUS2
#define m_INT_HDCP_ERR
#define m_INT_BKSV_FLAG
#define m_INT_HDCP_OK

#define HDMI_STATUS
#define m_HOTPLUG
#define m_MASK_INT_HOTPLUG
#define m_INT_HOTPLUG
#define v_MASK_INT_HOTPLUG(n)

#define HDMI_COLORBAR

#define HDMI_PHY_SYNC
#define HDMI_PHY_SYS_CTL
#define m_TMDS_CLK_SOURCE
#define v_TMDS_FROM_PLL
#define v_TMDS_FROM_GEN
#define m_PHASE_CLK
#define v_DEFAULT_PHASE
#define v_SYNC_PHASE
#define m_TMDS_CURRENT_PWR
#define v_TURN_ON_CURRENT
#define v_CAT_OFF_CURRENT
#define m_BANDGAP_PWR
#define v_BANDGAP_PWR_UP
#define v_BANDGAP_PWR_DOWN
#define m_PLL_PWR
#define v_PLL_PWR_UP
#define v_PLL_PWR_DOWN
#define m_TMDS_CHG_PWR
#define v_TMDS_CHG_PWR_UP
#define v_TMDS_CHG_PWR_DOWN

#define HDMI_PHY_CHG_PWR
#define v_CLK_CHG_PWR(n)
#define v_DATA_CHG_PWR(n)

#define HDMI_PHY_DRIVER
#define v_CLK_MAIN_DRIVER(n)
#define v_DATA_MAIN_DRIVER(n)

#define HDMI_PHY_PRE_EMPHASIS
#define v_PRE_EMPHASIS(n)
#define v_CLK_PRE_DRIVER(n)
#define v_DATA_PRE_DRIVER(n)

#define HDMI_PHY_FEEDBACK_DIV_RATIO_LOW
#define v_FEEDBACK_DIV_LOW(n)
#define HDMI_PHY_FEEDBACK_DIV_RATIO_HIGH
#define v_FEEDBACK_DIV_HIGH(n)

#define HDMI_PHY_PRE_DIV_RATIO
#define v_PRE_DIV_RATIO(n)

#define HDMI_CEC_CTRL
#define m_ADJUST_FOR_HISENSE
#define m_REJECT_RX_BROADCAST
#define m_BUSFREETIME_ENABLE
#define m_REJECT_RX
#define m_START_TX

#define HDMI_CEC_DATA
#define HDMI_CEC_TX_OFFSET
#define HDMI_CEC_RX_OFFSET
#define HDMI_CEC_CLK_H
#define HDMI_CEC_CLK_L
#define HDMI_CEC_TX_LENGTH
#define HDMI_CEC_RX_LENGTH
#define HDMI_CEC_TX_INT_MASK
#define m_TX_DONE
#define m_TX_NOACK
#define m_TX_BROADCAST_REJ
#define m_TX_BUSNOTFREE

#define HDMI_CEC_RX_INT_MASK
#define m_RX_LA_ERR
#define m_RX_GLITCH
#define m_RX_DONE

#define HDMI_CEC_TX_INT
#define HDMI_CEC_RX_INT
#define HDMI_CEC_BUSFREETIME_L
#define HDMI_CEC_BUSFREETIME_H
#define HDMI_CEC_LOGICADDR

#endif /* __INNO_HDMI_H__ */