Seung-Woo Kim | d840832 | 2011-12-21 17:39:39 +0900 | [diff] [blame] | 1 | /* |
| 2 | * |
| 3 | * Cloned from drivers/media/video/s5p-tv/regs-hdmi.h |
| 4 | * |
| 5 | * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. |
| 6 | * http://www.samsung.com/ |
| 7 | * |
| 8 | * HDMI register header file for Samsung TVOUT driver |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License version 2 as |
| 12 | * published by the Free Software Foundation. |
| 13 | */ |
| 14 | |
| 15 | #ifndef SAMSUNG_REGS_HDMI_H |
| 16 | #define SAMSUNG_REGS_HDMI_H |
| 17 | |
| 18 | /* |
| 19 | * Register part |
| 20 | */ |
| 21 | |
Joonyoung Shim | 3ecd70b | 2012-03-16 18:47:03 +0900 | [diff] [blame] | 22 | /* HDMI Version 1.3 & Common */ |
Seung-Woo Kim | d840832 | 2011-12-21 17:39:39 +0900 | [diff] [blame] | 23 | #define HDMI_CTRL_BASE(x) ((x) + 0x00000000) |
| 24 | #define HDMI_CORE_BASE(x) ((x) + 0x00010000) |
| 25 | #define HDMI_TG_BASE(x) ((x) + 0x00050000) |
| 26 | |
| 27 | /* Control registers */ |
| 28 | #define HDMI_INTC_CON HDMI_CTRL_BASE(0x0000) |
| 29 | #define HDMI_INTC_FLAG HDMI_CTRL_BASE(0x0004) |
| 30 | #define HDMI_HPD_STATUS HDMI_CTRL_BASE(0x000C) |
Joonyoung Shim | 3ecd70b | 2012-03-16 18:47:03 +0900 | [diff] [blame] | 31 | #define HDMI_V13_PHY_RSTOUT HDMI_CTRL_BASE(0x0014) |
| 32 | #define HDMI_V13_PHY_VPLL HDMI_CTRL_BASE(0x0018) |
| 33 | #define HDMI_V13_PHY_CMU HDMI_CTRL_BASE(0x001C) |
| 34 | #define HDMI_V13_CORE_RSTOUT HDMI_CTRL_BASE(0x0020) |
Seung-Woo Kim | d840832 | 2011-12-21 17:39:39 +0900 | [diff] [blame] | 35 | |
| 36 | /* Core registers */ |
| 37 | #define HDMI_CON_0 HDMI_CORE_BASE(0x0000) |
| 38 | #define HDMI_CON_1 HDMI_CORE_BASE(0x0004) |
| 39 | #define HDMI_CON_2 HDMI_CORE_BASE(0x0008) |
| 40 | #define HDMI_SYS_STATUS HDMI_CORE_BASE(0x0010) |
Joonyoung Shim | 3ecd70b | 2012-03-16 18:47:03 +0900 | [diff] [blame] | 41 | #define HDMI_V13_PHY_STATUS HDMI_CORE_BASE(0x0014) |
Seung-Woo Kim | d840832 | 2011-12-21 17:39:39 +0900 | [diff] [blame] | 42 | #define HDMI_STATUS_EN HDMI_CORE_BASE(0x0020) |
| 43 | #define HDMI_HPD HDMI_CORE_BASE(0x0030) |
| 44 | #define HDMI_MODE_SEL HDMI_CORE_BASE(0x0040) |
Joonyoung Shim | 3ecd70b | 2012-03-16 18:47:03 +0900 | [diff] [blame] | 45 | #define HDMI_ENC_EN HDMI_CORE_BASE(0x0044) |
| 46 | #define HDMI_V13_BLUE_SCREEN_0 HDMI_CORE_BASE(0x0050) |
| 47 | #define HDMI_V13_BLUE_SCREEN_1 HDMI_CORE_BASE(0x0054) |
| 48 | #define HDMI_V13_BLUE_SCREEN_2 HDMI_CORE_BASE(0x0058) |
Seung-Woo Kim | d840832 | 2011-12-21 17:39:39 +0900 | [diff] [blame] | 49 | #define HDMI_H_BLANK_0 HDMI_CORE_BASE(0x00A0) |
| 50 | #define HDMI_H_BLANK_1 HDMI_CORE_BASE(0x00A4) |
Joonyoung Shim | 3ecd70b | 2012-03-16 18:47:03 +0900 | [diff] [blame] | 51 | #define HDMI_V13_V_BLANK_0 HDMI_CORE_BASE(0x00B0) |
| 52 | #define HDMI_V13_V_BLANK_1 HDMI_CORE_BASE(0x00B4) |
| 53 | #define HDMI_V13_V_BLANK_2 HDMI_CORE_BASE(0x00B8) |
| 54 | #define HDMI_V13_H_V_LINE_0 HDMI_CORE_BASE(0x00C0) |
| 55 | #define HDMI_V13_H_V_LINE_1 HDMI_CORE_BASE(0x00C4) |
| 56 | #define HDMI_V13_H_V_LINE_2 HDMI_CORE_BASE(0x00C8) |
Seung-Woo Kim | d840832 | 2011-12-21 17:39:39 +0900 | [diff] [blame] | 57 | #define HDMI_VSYNC_POL HDMI_CORE_BASE(0x00E4) |
| 58 | #define HDMI_INT_PRO_MODE HDMI_CORE_BASE(0x00E8) |
Joonyoung Shim | 3ecd70b | 2012-03-16 18:47:03 +0900 | [diff] [blame] | 59 | #define HDMI_V13_V_BLANK_F_0 HDMI_CORE_BASE(0x0110) |
| 60 | #define HDMI_V13_V_BLANK_F_1 HDMI_CORE_BASE(0x0114) |
| 61 | #define HDMI_V13_V_BLANK_F_2 HDMI_CORE_BASE(0x0118) |
| 62 | #define HDMI_V13_H_SYNC_GEN_0 HDMI_CORE_BASE(0x0120) |
| 63 | #define HDMI_V13_H_SYNC_GEN_1 HDMI_CORE_BASE(0x0124) |
| 64 | #define HDMI_V13_H_SYNC_GEN_2 HDMI_CORE_BASE(0x0128) |
| 65 | #define HDMI_V13_V_SYNC_GEN_1_0 HDMI_CORE_BASE(0x0130) |
| 66 | #define HDMI_V13_V_SYNC_GEN_1_1 HDMI_CORE_BASE(0x0134) |
| 67 | #define HDMI_V13_V_SYNC_GEN_1_2 HDMI_CORE_BASE(0x0138) |
| 68 | #define HDMI_V13_V_SYNC_GEN_2_0 HDMI_CORE_BASE(0x0140) |
| 69 | #define HDMI_V13_V_SYNC_GEN_2_1 HDMI_CORE_BASE(0x0144) |
| 70 | #define HDMI_V13_V_SYNC_GEN_2_2 HDMI_CORE_BASE(0x0148) |
| 71 | #define HDMI_V13_V_SYNC_GEN_3_0 HDMI_CORE_BASE(0x0150) |
| 72 | #define HDMI_V13_V_SYNC_GEN_3_1 HDMI_CORE_BASE(0x0154) |
| 73 | #define HDMI_V13_V_SYNC_GEN_3_2 HDMI_CORE_BASE(0x0158) |
| 74 | #define HDMI_V13_ACR_CON HDMI_CORE_BASE(0x0180) |
| 75 | #define HDMI_V13_AVI_CON HDMI_CORE_BASE(0x0300) |
| 76 | #define HDMI_V13_AVI_BYTE(n) HDMI_CORE_BASE(0x0320 + 4 * (n)) |
| 77 | #define HDMI_V13_DC_CONTROL HDMI_CORE_BASE(0x05C0) |
| 78 | #define HDMI_V13_VIDEO_PATTERN_GEN HDMI_CORE_BASE(0x05C4) |
| 79 | #define HDMI_V13_HPD_GEN HDMI_CORE_BASE(0x05C8) |
| 80 | #define HDMI_V13_AUI_CON HDMI_CORE_BASE(0x0360) |
| 81 | #define HDMI_V13_SPD_CON HDMI_CORE_BASE(0x0400) |
Seung-Woo Kim | d840832 | 2011-12-21 17:39:39 +0900 | [diff] [blame] | 82 | |
| 83 | /* Timing generator registers */ |
| 84 | #define HDMI_TG_CMD HDMI_TG_BASE(0x0000) |
| 85 | #define HDMI_TG_H_FSZ_L HDMI_TG_BASE(0x0018) |
| 86 | #define HDMI_TG_H_FSZ_H HDMI_TG_BASE(0x001C) |
| 87 | #define HDMI_TG_HACT_ST_L HDMI_TG_BASE(0x0020) |
| 88 | #define HDMI_TG_HACT_ST_H HDMI_TG_BASE(0x0024) |
| 89 | #define HDMI_TG_HACT_SZ_L HDMI_TG_BASE(0x0028) |
| 90 | #define HDMI_TG_HACT_SZ_H HDMI_TG_BASE(0x002C) |
| 91 | #define HDMI_TG_V_FSZ_L HDMI_TG_BASE(0x0030) |
| 92 | #define HDMI_TG_V_FSZ_H HDMI_TG_BASE(0x0034) |
| 93 | #define HDMI_TG_VSYNC_L HDMI_TG_BASE(0x0038) |
| 94 | #define HDMI_TG_VSYNC_H HDMI_TG_BASE(0x003C) |
| 95 | #define HDMI_TG_VSYNC2_L HDMI_TG_BASE(0x0040) |
| 96 | #define HDMI_TG_VSYNC2_H HDMI_TG_BASE(0x0044) |
| 97 | #define HDMI_TG_VACT_ST_L HDMI_TG_BASE(0x0048) |
| 98 | #define HDMI_TG_VACT_ST_H HDMI_TG_BASE(0x004C) |
| 99 | #define HDMI_TG_VACT_SZ_L HDMI_TG_BASE(0x0050) |
| 100 | #define HDMI_TG_VACT_SZ_H HDMI_TG_BASE(0x0054) |
| 101 | #define HDMI_TG_FIELD_CHG_L HDMI_TG_BASE(0x0058) |
| 102 | #define HDMI_TG_FIELD_CHG_H HDMI_TG_BASE(0x005C) |
| 103 | #define HDMI_TG_VACT_ST2_L HDMI_TG_BASE(0x0060) |
| 104 | #define HDMI_TG_VACT_ST2_H HDMI_TG_BASE(0x0064) |
| 105 | #define HDMI_TG_VSYNC_TOP_HDMI_L HDMI_TG_BASE(0x0078) |
| 106 | #define HDMI_TG_VSYNC_TOP_HDMI_H HDMI_TG_BASE(0x007C) |
| 107 | #define HDMI_TG_VSYNC_BOT_HDMI_L HDMI_TG_BASE(0x0080) |
| 108 | #define HDMI_TG_VSYNC_BOT_HDMI_H HDMI_TG_BASE(0x0084) |
| 109 | #define HDMI_TG_FIELD_TOP_HDMI_L HDMI_TG_BASE(0x0088) |
| 110 | #define HDMI_TG_FIELD_TOP_HDMI_H HDMI_TG_BASE(0x008C) |
| 111 | #define HDMI_TG_FIELD_BOT_HDMI_L HDMI_TG_BASE(0x0090) |
| 112 | #define HDMI_TG_FIELD_BOT_HDMI_H HDMI_TG_BASE(0x0094) |
| 113 | |
| 114 | /* |
| 115 | * Bit definition part |
| 116 | */ |
| 117 | |
| 118 | /* HDMI_INTC_CON */ |
| 119 | #define HDMI_INTC_EN_GLOBAL (1 << 6) |
| 120 | #define HDMI_INTC_EN_HPD_PLUG (1 << 3) |
| 121 | #define HDMI_INTC_EN_HPD_UNPLUG (1 << 2) |
| 122 | |
| 123 | /* HDMI_INTC_FLAG */ |
| 124 | #define HDMI_INTC_FLAG_HPD_PLUG (1 << 3) |
| 125 | #define HDMI_INTC_FLAG_HPD_UNPLUG (1 << 2) |
| 126 | |
| 127 | /* HDMI_PHY_RSTOUT */ |
| 128 | #define HDMI_PHY_SW_RSTOUT (1 << 0) |
| 129 | |
| 130 | /* HDMI_CORE_RSTOUT */ |
| 131 | #define HDMI_CORE_SW_RSTOUT (1 << 0) |
| 132 | |
| 133 | /* HDMI_CON_0 */ |
| 134 | #define HDMI_BLUE_SCR_EN (1 << 5) |
| 135 | #define HDMI_EN (1 << 0) |
| 136 | |
| 137 | /* HDMI_PHY_STATUS */ |
| 138 | #define HDMI_PHY_STATUS_READY (1 << 0) |
| 139 | |
| 140 | /* HDMI_MODE_SEL */ |
| 141 | #define HDMI_MODE_HDMI_EN (1 << 1) |
| 142 | #define HDMI_MODE_DVI_EN (1 << 0) |
| 143 | #define HDMI_MODE_MASK (3 << 0) |
| 144 | |
| 145 | /* HDMI_TG_CMD */ |
| 146 | #define HDMI_TG_EN (1 << 0) |
| 147 | #define HDMI_FIELD_EN (1 << 1) |
| 148 | |
Joonyoung Shim | 3ecd70b | 2012-03-16 18:47:03 +0900 | [diff] [blame] | 149 | |
| 150 | /* HDMI Version 1.4 */ |
| 151 | /* Control registers */ |
| 152 | /* #define HDMI_INTC_CON HDMI_CTRL_BASE(0x0000) */ |
| 153 | /* #define HDMI_INTC_FLAG HDMI_CTRL_BASE(0x0004) */ |
| 154 | #define HDMI_HDCP_KEY_LOAD HDMI_CTRL_BASE(0x0008) |
| 155 | /* #define HDMI_HPD_STATUS HDMI_CTRL_BASE(0x000C) */ |
| 156 | #define HDMI_INTC_CON_1 HDMI_CTRL_BASE(0x0010) |
| 157 | #define HDMI_INTC_FLAG_1 HDMI_CTRL_BASE(0x0014) |
| 158 | #define HDMI_PHY_STATUS_0 HDMI_CTRL_BASE(0x0020) |
| 159 | #define HDMI_PHY_STATUS_CMU HDMI_CTRL_BASE(0x0024) |
| 160 | #define HDMI_PHY_STATUS_PLL HDMI_CTRL_BASE(0x0028) |
| 161 | #define HDMI_PHY_CON_0 HDMI_CTRL_BASE(0x0030) |
| 162 | #define HDMI_HPD_CTRL HDMI_CTRL_BASE(0x0040) |
| 163 | #define HDMI_HPD_ST HDMI_CTRL_BASE(0x0044) |
| 164 | #define HDMI_HPD_TH_X HDMI_CTRL_BASE(0x0050) |
| 165 | #define HDMI_AUDIO_CLKSEL HDMI_CTRL_BASE(0x0070) |
| 166 | #define HDMI_PHY_RSTOUT HDMI_CTRL_BASE(0x0074) |
| 167 | #define HDMI_PHY_VPLL HDMI_CTRL_BASE(0x0078) |
| 168 | #define HDMI_PHY_CMU HDMI_CTRL_BASE(0x007C) |
| 169 | #define HDMI_CORE_RSTOUT HDMI_CTRL_BASE(0x0080) |
| 170 | |
| 171 | /* Video related registers */ |
| 172 | #define HDMI_YMAX HDMI_CORE_BASE(0x0060) |
| 173 | #define HDMI_YMIN HDMI_CORE_BASE(0x0064) |
| 174 | #define HDMI_CMAX HDMI_CORE_BASE(0x0068) |
| 175 | #define HDMI_CMIN HDMI_CORE_BASE(0x006C) |
| 176 | |
| 177 | #define HDMI_V2_BLANK_0 HDMI_CORE_BASE(0x00B0) |
| 178 | #define HDMI_V2_BLANK_1 HDMI_CORE_BASE(0x00B4) |
| 179 | #define HDMI_V1_BLANK_0 HDMI_CORE_BASE(0x00B8) |
| 180 | #define HDMI_V1_BLANK_1 HDMI_CORE_BASE(0x00BC) |
| 181 | |
| 182 | #define HDMI_V_LINE_0 HDMI_CORE_BASE(0x00C0) |
| 183 | #define HDMI_V_LINE_1 HDMI_CORE_BASE(0x00C4) |
| 184 | #define HDMI_H_LINE_0 HDMI_CORE_BASE(0x00C8) |
| 185 | #define HDMI_H_LINE_1 HDMI_CORE_BASE(0x00CC) |
| 186 | |
| 187 | #define HDMI_HSYNC_POL HDMI_CORE_BASE(0x00E0) |
| 188 | |
| 189 | #define HDMI_V_BLANK_F0_0 HDMI_CORE_BASE(0x0110) |
| 190 | #define HDMI_V_BLANK_F0_1 HDMI_CORE_BASE(0x0114) |
| 191 | #define HDMI_V_BLANK_F1_0 HDMI_CORE_BASE(0x0118) |
| 192 | #define HDMI_V_BLANK_F1_1 HDMI_CORE_BASE(0x011C) |
| 193 | |
| 194 | #define HDMI_H_SYNC_START_0 HDMI_CORE_BASE(0x0120) |
| 195 | #define HDMI_H_SYNC_START_1 HDMI_CORE_BASE(0x0124) |
| 196 | #define HDMI_H_SYNC_END_0 HDMI_CORE_BASE(0x0128) |
| 197 | #define HDMI_H_SYNC_END_1 HDMI_CORE_BASE(0x012C) |
| 198 | |
| 199 | #define HDMI_V_SYNC_LINE_BEF_2_0 HDMI_CORE_BASE(0x0130) |
| 200 | #define HDMI_V_SYNC_LINE_BEF_2_1 HDMI_CORE_BASE(0x0134) |
| 201 | #define HDMI_V_SYNC_LINE_BEF_1_0 HDMI_CORE_BASE(0x0138) |
| 202 | #define HDMI_V_SYNC_LINE_BEF_1_1 HDMI_CORE_BASE(0x013C) |
| 203 | |
| 204 | #define HDMI_V_SYNC_LINE_AFT_2_0 HDMI_CORE_BASE(0x0140) |
| 205 | #define HDMI_V_SYNC_LINE_AFT_2_1 HDMI_CORE_BASE(0x0144) |
| 206 | #define HDMI_V_SYNC_LINE_AFT_1_0 HDMI_CORE_BASE(0x0148) |
| 207 | #define HDMI_V_SYNC_LINE_AFT_1_1 HDMI_CORE_BASE(0x014C) |
| 208 | |
| 209 | #define HDMI_V_SYNC_LINE_AFT_PXL_2_0 HDMI_CORE_BASE(0x0150) |
| 210 | #define HDMI_V_SYNC_LINE_AFT_PXL_2_1 HDMI_CORE_BASE(0x0154) |
| 211 | #define HDMI_V_SYNC_LINE_AFT_PXL_1_0 HDMI_CORE_BASE(0x0158) |
| 212 | #define HDMI_V_SYNC_LINE_AFT_PXL_1_1 HDMI_CORE_BASE(0x015C) |
| 213 | |
| 214 | #define HDMI_V_BLANK_F2_0 HDMI_CORE_BASE(0x0160) |
| 215 | #define HDMI_V_BLANK_F2_1 HDMI_CORE_BASE(0x0164) |
| 216 | #define HDMI_V_BLANK_F3_0 HDMI_CORE_BASE(0x0168) |
| 217 | #define HDMI_V_BLANK_F3_1 HDMI_CORE_BASE(0x016C) |
| 218 | #define HDMI_V_BLANK_F4_0 HDMI_CORE_BASE(0x0170) |
| 219 | #define HDMI_V_BLANK_F4_1 HDMI_CORE_BASE(0x0174) |
| 220 | #define HDMI_V_BLANK_F5_0 HDMI_CORE_BASE(0x0178) |
| 221 | #define HDMI_V_BLANK_F5_1 HDMI_CORE_BASE(0x017C) |
| 222 | |
| 223 | #define HDMI_V_SYNC_LINE_AFT_3_0 HDMI_CORE_BASE(0x0180) |
| 224 | #define HDMI_V_SYNC_LINE_AFT_3_1 HDMI_CORE_BASE(0x0184) |
| 225 | #define HDMI_V_SYNC_LINE_AFT_4_0 HDMI_CORE_BASE(0x0188) |
| 226 | #define HDMI_V_SYNC_LINE_AFT_4_1 HDMI_CORE_BASE(0x018C) |
| 227 | #define HDMI_V_SYNC_LINE_AFT_5_0 HDMI_CORE_BASE(0x0190) |
| 228 | #define HDMI_V_SYNC_LINE_AFT_5_1 HDMI_CORE_BASE(0x0194) |
| 229 | #define HDMI_V_SYNC_LINE_AFT_6_0 HDMI_CORE_BASE(0x0198) |
| 230 | #define HDMI_V_SYNC_LINE_AFT_6_1 HDMI_CORE_BASE(0x019C) |
| 231 | |
| 232 | #define HDMI_V_SYNC_LINE_AFT_PXL_3_0 HDMI_CORE_BASE(0x01A0) |
| 233 | #define HDMI_V_SYNC_LINE_AFT_PXL_3_1 HDMI_CORE_BASE(0x01A4) |
| 234 | #define HDMI_V_SYNC_LINE_AFT_PXL_4_0 HDMI_CORE_BASE(0x01A8) |
| 235 | #define HDMI_V_SYNC_LINE_AFT_PXL_4_1 HDMI_CORE_BASE(0x01AC) |
| 236 | #define HDMI_V_SYNC_LINE_AFT_PXL_5_0 HDMI_CORE_BASE(0x01B0) |
| 237 | #define HDMI_V_SYNC_LINE_AFT_PXL_5_1 HDMI_CORE_BASE(0x01B4) |
| 238 | #define HDMI_V_SYNC_LINE_AFT_PXL_6_0 HDMI_CORE_BASE(0x01B8) |
| 239 | #define HDMI_V_SYNC_LINE_AFT_PXL_6_1 HDMI_CORE_BASE(0x01BC) |
| 240 | |
| 241 | #define HDMI_VACT_SPACE_1_0 HDMI_CORE_BASE(0x01C0) |
| 242 | #define HDMI_VACT_SPACE_1_1 HDMI_CORE_BASE(0x01C4) |
| 243 | #define HDMI_VACT_SPACE_2_0 HDMI_CORE_BASE(0x01C8) |
| 244 | #define HDMI_VACT_SPACE_2_1 HDMI_CORE_BASE(0x01CC) |
| 245 | #define HDMI_VACT_SPACE_3_0 HDMI_CORE_BASE(0x01D0) |
| 246 | #define HDMI_VACT_SPACE_3_1 HDMI_CORE_BASE(0x01D4) |
| 247 | #define HDMI_VACT_SPACE_4_0 HDMI_CORE_BASE(0x01D8) |
| 248 | #define HDMI_VACT_SPACE_4_1 HDMI_CORE_BASE(0x01DC) |
| 249 | #define HDMI_VACT_SPACE_5_0 HDMI_CORE_BASE(0x01E0) |
| 250 | #define HDMI_VACT_SPACE_5_1 HDMI_CORE_BASE(0x01E4) |
| 251 | #define HDMI_VACT_SPACE_6_0 HDMI_CORE_BASE(0x01E8) |
| 252 | #define HDMI_VACT_SPACE_6_1 HDMI_CORE_BASE(0x01EC) |
| 253 | |
| 254 | #define HDMI_GCP_CON HDMI_CORE_BASE(0x0200) |
| 255 | #define HDMI_GCP_BYTE1 HDMI_CORE_BASE(0x0210) |
| 256 | #define HDMI_GCP_BYTE2 HDMI_CORE_BASE(0x0214) |
| 257 | #define HDMI_GCP_BYTE3 HDMI_CORE_BASE(0x0218) |
| 258 | |
| 259 | /* Audio related registers */ |
| 260 | #define HDMI_ASP_CON HDMI_CORE_BASE(0x0300) |
| 261 | #define HDMI_ASP_SP_FLAT HDMI_CORE_BASE(0x0304) |
| 262 | #define HDMI_ASP_CHCFG0 HDMI_CORE_BASE(0x0310) |
| 263 | #define HDMI_ASP_CHCFG1 HDMI_CORE_BASE(0x0314) |
| 264 | #define HDMI_ASP_CHCFG2 HDMI_CORE_BASE(0x0318) |
| 265 | #define HDMI_ASP_CHCFG3 HDMI_CORE_BASE(0x031C) |
| 266 | |
| 267 | #define HDMI_ACR_CON HDMI_CORE_BASE(0x0400) |
| 268 | #define HDMI_ACR_MCTS0 HDMI_CORE_BASE(0x0410) |
| 269 | #define HDMI_ACR_MCTS1 HDMI_CORE_BASE(0x0414) |
| 270 | #define HDMI_ACR_MCTS2 HDMI_CORE_BASE(0x0418) |
| 271 | #define HDMI_ACR_N0 HDMI_CORE_BASE(0x0430) |
| 272 | #define HDMI_ACR_N1 HDMI_CORE_BASE(0x0434) |
| 273 | #define HDMI_ACR_N2 HDMI_CORE_BASE(0x0438) |
| 274 | |
| 275 | /* Packet related registers */ |
| 276 | #define HDMI_ACP_CON HDMI_CORE_BASE(0x0500) |
| 277 | #define HDMI_ACP_TYPE HDMI_CORE_BASE(0x0514) |
| 278 | #define HDMI_ACP_DATA(n) HDMI_CORE_BASE(0x0520 + 4 * (n)) |
| 279 | |
| 280 | #define HDMI_ISRC_CON HDMI_CORE_BASE(0x0600) |
| 281 | #define HDMI_ISRC1_HEADER1 HDMI_CORE_BASE(0x0614) |
| 282 | #define HDMI_ISRC1_DATA(n) HDMI_CORE_BASE(0x0620 + 4 * (n)) |
| 283 | #define HDMI_ISRC2_DATA(n) HDMI_CORE_BASE(0x06A0 + 4 * (n)) |
| 284 | |
| 285 | #define HDMI_AVI_CON HDMI_CORE_BASE(0x0700) |
| 286 | #define HDMI_AVI_HEADER0 HDMI_CORE_BASE(0x0710) |
| 287 | #define HDMI_AVI_HEADER1 HDMI_CORE_BASE(0x0714) |
| 288 | #define HDMI_AVI_HEADER2 HDMI_CORE_BASE(0x0718) |
| 289 | #define HDMI_AVI_CHECK_SUM HDMI_CORE_BASE(0x071C) |
| 290 | #define HDMI_AVI_BYTE(n) HDMI_CORE_BASE(0x0720 + 4 * (n)) |
| 291 | |
| 292 | #define HDMI_AUI_CON HDMI_CORE_BASE(0x0800) |
| 293 | #define HDMI_AUI_HEADER0 HDMI_CORE_BASE(0x0810) |
| 294 | #define HDMI_AUI_HEADER1 HDMI_CORE_BASE(0x0814) |
| 295 | #define HDMI_AUI_HEADER2 HDMI_CORE_BASE(0x0818) |
| 296 | #define HDMI_AUI_CHECK_SUM HDMI_CORE_BASE(0x081C) |
| 297 | #define HDMI_AUI_BYTE(n) HDMI_CORE_BASE(0x0820 + 4 * (n)) |
| 298 | |
| 299 | #define HDMI_MPG_CON HDMI_CORE_BASE(0x0900) |
| 300 | #define HDMI_MPG_CHECK_SUM HDMI_CORE_BASE(0x091C) |
| 301 | #define HDMI_MPG_DATA(n) HDMI_CORE_BASE(0x0920 + 4 * (n)) |
| 302 | |
| 303 | #define HDMI_SPD_CON HDMI_CORE_BASE(0x0A00) |
| 304 | #define HDMI_SPD_HEADER0 HDMI_CORE_BASE(0x0A10) |
| 305 | #define HDMI_SPD_HEADER1 HDMI_CORE_BASE(0x0A14) |
| 306 | #define HDMI_SPD_HEADER2 HDMI_CORE_BASE(0x0A18) |
| 307 | #define HDMI_SPD_DATA(n) HDMI_CORE_BASE(0x0A20 + 4 * (n)) |
| 308 | |
| 309 | #define HDMI_GAMUT_CON HDMI_CORE_BASE(0x0B00) |
| 310 | #define HDMI_GAMUT_HEADER0 HDMI_CORE_BASE(0x0B10) |
| 311 | #define HDMI_GAMUT_HEADER1 HDMI_CORE_BASE(0x0B14) |
| 312 | #define HDMI_GAMUT_HEADER2 HDMI_CORE_BASE(0x0B18) |
| 313 | #define HDMI_GAMUT_METADATA(n) HDMI_CORE_BASE(0x0B20 + 4 * (n)) |
| 314 | |
| 315 | #define HDMI_VSI_CON HDMI_CORE_BASE(0x0C00) |
| 316 | #define HDMI_VSI_HEADER0 HDMI_CORE_BASE(0x0C10) |
| 317 | #define HDMI_VSI_HEADER1 HDMI_CORE_BASE(0x0C14) |
| 318 | #define HDMI_VSI_HEADER2 HDMI_CORE_BASE(0x0C18) |
| 319 | #define HDMI_VSI_DATA(n) HDMI_CORE_BASE(0x0C20 + 4 * (n)) |
| 320 | |
| 321 | #define HDMI_DC_CONTROL HDMI_CORE_BASE(0x0D00) |
| 322 | #define HDMI_VIDEO_PATTERN_GEN HDMI_CORE_BASE(0x0D04) |
| 323 | |
| 324 | #define HDMI_AN_SEED_SEL HDMI_CORE_BASE(0x0E48) |
| 325 | #define HDMI_AN_SEED_0 HDMI_CORE_BASE(0x0E58) |
| 326 | #define HDMI_AN_SEED_1 HDMI_CORE_BASE(0x0E5C) |
| 327 | #define HDMI_AN_SEED_2 HDMI_CORE_BASE(0x0E60) |
| 328 | #define HDMI_AN_SEED_3 HDMI_CORE_BASE(0x0E64) |
| 329 | |
| 330 | /* HDCP related registers */ |
| 331 | #define HDMI_HDCP_SHA1(n) HDMI_CORE_BASE(0x7000 + 4 * (n)) |
| 332 | #define HDMI_HDCP_KSV_LIST(n) HDMI_CORE_BASE(0x7050 + 4 * (n)) |
| 333 | |
| 334 | #define HDMI_HDCP_KSV_LIST_CON HDMI_CORE_BASE(0x7064) |
| 335 | #define HDMI_HDCP_SHA_RESULT HDMI_CORE_BASE(0x7070) |
| 336 | #define HDMI_HDCP_CTRL1 HDMI_CORE_BASE(0x7080) |
| 337 | #define HDMI_HDCP_CTRL2 HDMI_CORE_BASE(0x7084) |
| 338 | #define HDMI_HDCP_CHECK_RESULT HDMI_CORE_BASE(0x7090) |
| 339 | #define HDMI_HDCP_BKSV(n) HDMI_CORE_BASE(0x70A0 + 4 * (n)) |
| 340 | #define HDMI_HDCP_AKSV(n) HDMI_CORE_BASE(0x70C0 + 4 * (n)) |
| 341 | #define HDMI_HDCP_AN(n) HDMI_CORE_BASE(0x70E0 + 4 * (n)) |
| 342 | |
| 343 | #define HDMI_HDCP_BCAPS HDMI_CORE_BASE(0x7100) |
| 344 | #define HDMI_HDCP_BSTATUS_0 HDMI_CORE_BASE(0x7110) |
| 345 | #define HDMI_HDCP_BSTATUS_1 HDMI_CORE_BASE(0x7114) |
| 346 | #define HDMI_HDCP_RI_0 HDMI_CORE_BASE(0x7140) |
| 347 | #define HDMI_HDCP_RI_1 HDMI_CORE_BASE(0x7144) |
| 348 | #define HDMI_HDCP_I2C_INT HDMI_CORE_BASE(0x7180) |
| 349 | #define HDMI_HDCP_AN_INT HDMI_CORE_BASE(0x7190) |
| 350 | #define HDMI_HDCP_WDT_INT HDMI_CORE_BASE(0x71A0) |
| 351 | #define HDMI_HDCP_RI_INT HDMI_CORE_BASE(0x71B0) |
| 352 | #define HDMI_HDCP_RI_COMPARE_0 HDMI_CORE_BASE(0x71D0) |
| 353 | #define HDMI_HDCP_RI_COMPARE_1 HDMI_CORE_BASE(0x71D4) |
| 354 | #define HDMI_HDCP_FRAME_COUNT HDMI_CORE_BASE(0x71E0) |
| 355 | |
| 356 | #define HDMI_RGB_ROUND_EN HDMI_CORE_BASE(0xD500) |
| 357 | #define HDMI_VACT_SPACE_R_0 HDMI_CORE_BASE(0xD504) |
| 358 | #define HDMI_VACT_SPACE_R_1 HDMI_CORE_BASE(0xD508) |
| 359 | #define HDMI_VACT_SPACE_G_0 HDMI_CORE_BASE(0xD50C) |
| 360 | #define HDMI_VACT_SPACE_G_1 HDMI_CORE_BASE(0xD510) |
| 361 | #define HDMI_VACT_SPACE_B_0 HDMI_CORE_BASE(0xD514) |
| 362 | #define HDMI_VACT_SPACE_B_1 HDMI_CORE_BASE(0xD518) |
| 363 | |
| 364 | #define HDMI_BLUE_SCREEN_B_0 HDMI_CORE_BASE(0xD520) |
| 365 | #define HDMI_BLUE_SCREEN_B_1 HDMI_CORE_BASE(0xD524) |
| 366 | #define HDMI_BLUE_SCREEN_G_0 HDMI_CORE_BASE(0xD528) |
| 367 | #define HDMI_BLUE_SCREEN_G_1 HDMI_CORE_BASE(0xD52C) |
| 368 | #define HDMI_BLUE_SCREEN_R_0 HDMI_CORE_BASE(0xD530) |
| 369 | #define HDMI_BLUE_SCREEN_R_1 HDMI_CORE_BASE(0xD534) |
| 370 | |
| 371 | /* Timing generator registers */ |
| 372 | /* TG configure/status registers */ |
| 373 | #define HDMI_TG_VACT_ST3_L HDMI_TG_BASE(0x0068) |
| 374 | #define HDMI_TG_VACT_ST3_H HDMI_TG_BASE(0x006c) |
| 375 | #define HDMI_TG_VACT_ST4_L HDMI_TG_BASE(0x0070) |
| 376 | #define HDMI_TG_VACT_ST4_H HDMI_TG_BASE(0x0074) |
| 377 | #define HDMI_TG_3D HDMI_TG_BASE(0x00F0) |
| 378 | |
Seung-Woo Kim | d840832 | 2011-12-21 17:39:39 +0900 | [diff] [blame] | 379 | #endif /* SAMSUNG_REGS_HDMI_H */ |