~funderscoreblog cgit wikiget in touch

A copy of arch/arm/include/asm/arch-axg/regs.h in the amlogic U-Boot tree.

   1 /*
   2 * Copyright (C) 2017 Amlogic, Inc. All rights reserved.
   3 * *
   4 This program is free software; you can redistribute it and/or modify
   5 * it under the terms of the GNU General Public License as published by
   6 * the Free Software Foundation; either version 2 of the License, or
   7 * (at your option) any later version.
   8 * *
   9 This program is distributed in the hope that it will be useful, but WITHOUT
  10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12 * more details.
  13 * *
  14 You should have received a copy of the GNU General Public License along
  15 * with this program; if not, write to the Free Software Foundation, Inc.,
  16 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17 * *
  18 Description:
  19 */
  20 
  21 // ----------------------------------------------------------------------
  22 // regs.h header
  23 //
  24 // bus base define, update manually
  25 //
  26 // ----------------------------------------------------------------------
  27 //
  28 #ifndef _BASE_REGISTER
  29 #define _BASE_REGISTER
  30 #define REG_BASE_AOBUS                  (0xFF800000L)
  31 #define REG_BASE_PERIPHS                (0xFF634000L)
  32 #define REG_BASE_CBUS                   (0xFFD00000L)
  33 #define REG_BASE_HIU                    (0xFF63C000L)
  34 #define REG_BASE_VCBUS                  (0xFF900000L)
  35 #define DMC_REG_BASE                    (0xFF638000L)
  36 #define REG_BASE_DSI_HOST                       (0xFFD00000L)/* 0xFFD06000L*/
  37 
  38 #endif /*_BASE_REGISTER*/
  39 
  40 
  41 #ifndef REG_OTHERS
  42 #define REG_OTHERS
  43 /* other regs */
  44 #define   SPI_START_ADDR                             0xFB000000
  45 #define P_SPI_START_ADDR    (volatile unsigned int *)0xFB000000
  46 
  47 /* name changed, need convert */
  48 #define     AO_RTI_PIN_MUX_REG                AO_RTI_PINMUX_REG0
  49 #define SEC_AO_RTI_PIN_MUX_REG            SEC_AO_RTI_PINMUX_REG0
  50 #define   P_AO_RTI_PIN_MUX_REG              P_AO_RTI_PINMUX_REG0
  51 #define     AO_RTI_PIN_MUX_REG2               AO_RTI_PINMUX_REG1
  52 #define SEC_AO_RTI_PIN_MUX_REG2           SEC_AO_RTI_PINMUX_REG1
  53 #define   P_AO_RTI_PIN_MUX_REG2             P_AO_RTI_PINMUX_REG1
  54 
  55 #endif /*REG_OTHERS*/
  56 
  57 // ----------------------------------------------------------------------
  58 // This file is automatically generated for the SW team:
  59 //
  60 // From three scripts:./create_headers_from_register_map_h.pl, create_headers_from_secure_apb4_h.pl, create_headers_for_mmc_register_map_h.pl
  61 //
  62 // DO NOT EDIT!!!!!
  63 // ----------------------------------------------------------------------
  64 //
  65 
  66 #ifndef REGS_H
  67 #define REGS_H
  68 
  69 
  70 //
  71 // Reading file:  ./register_map.h
  72 //
  73 // synopsys translate_off
  74 // synopsys translate_on
  75 //
  76 // Reading file:  periphs_reg.h
  77 //
  78 // $periphs/rtl/periphs_core register defines for the
  79 // APB bus
  80 // ------------------------------------------------------------------------------------
  81 // -----------------------------------------------
  82 // CBUS_BASE:  UART0_CBUS_BASE = 0x90
  83 // -----------------------------------------------
  84 #define   UART0_WFIFO                              (0x9000)
  85 #define P_UART0_WFIFO                              (volatile uint32_t *)((0x9000  << 2) + 0xffd00000)
  86 #define   UART0_RFIFO                              (0x9001)
  87 #define P_UART0_RFIFO                              (volatile uint32_t *)((0x9001  << 2) + 0xffd00000)
  88 #define   UART0_CONTROL                            (0x9002)
  89 #define P_UART0_CONTROL                            (volatile uint32_t *)((0x9002  << 2) + 0xffd00000)
  90 #define   UART0_STATUS                             (0x9003)
  91 #define P_UART0_STATUS                             (volatile uint32_t *)((0x9003  << 2) + 0xffd00000)
  92 #define   UART0_MISC                               (0x9004)
  93 #define P_UART0_MISC                               (volatile uint32_t *)((0x9004  << 2) + 0xffd00000)
  94 #define   UART0_REG5                               (0x9005)
  95 #define P_UART0_REG5                               (volatile uint32_t *)((0x9005  << 2) + 0xffd00000)
  96 // ------------------------------------------------------------------------------------
  97 // -----------------------------------------------
  98 // CBUS_BASE:  UART1_CBUS_BASE = 0x8c
  99 // -----------------------------------------------
 100 #define   UART1_WFIFO                              (0x8c00)
 101 #define P_UART1_WFIFO                              (volatile uint32_t *)((0x8c00  << 2) + 0xffd00000)
 102 #define   UART1_RFIFO                              (0x8c01)
 103 #define P_UART1_RFIFO                              (volatile uint32_t *)((0x8c01  << 2) + 0xffd00000)
 104 #define   UART1_CONTROL                            (0x8c02)
 105 #define P_UART1_CONTROL                            (volatile uint32_t *)((0x8c02  << 2) + 0xffd00000)
 106 #define   UART1_STATUS                             (0x8c03)
 107 #define P_UART1_STATUS                             (volatile uint32_t *)((0x8c03  << 2) + 0xffd00000)
 108 #define   UART1_MISC                               (0x8c04)
 109 #define P_UART1_MISC                               (volatile uint32_t *)((0x8c04  << 2) + 0xffd00000)
 110 #define   UART1_REG5                               (0x8c05)
 111 #define P_UART1_REG5                               (volatile uint32_t *)((0x8c05  << 2) + 0xffd00000)
 112 // ------------------------------------------------------------------------------------
 113 // -----------------------------------------------
 114 // CBUS_BASE:  I2C_M_0_CBUS_BASE = 0x7c
 115 // -----------------------------------------------
 116 #define   I2C_M_0_CONTROL_REG                      (0x7c00)
 117 #define P_I2C_M_0_CONTROL_REG                      (volatile uint32_t *)((0x7c00  << 2) + 0xffd00000)
 118     #define     I2C_M_MANUAL_SDA_I        26
 119     #define     I2C_M_MANUAL_SCL_I        25
 120     #define     I2C_M_MANUAL_SDA_O        24
 121     #define     I2C_M_MANUAL_SCL_O        23
 122     #define     I2C_M_MANUAL_EN           22
 123     #define     I2C_M_DELAY_MSB           21
 124     #define     I2C_M_DELAY_LSB           12
 125     #define     I2C_M_DATA_CNT_MSB        11
 126     #define     I2C_M_DATA_CNT_LSB        8
 127     #define     I2C_M_CURR_TOKEN_MSB      7
 128     #define     I2C_M_CURR_TOKEN_LSB      4
 129     #define     I2C_M_ERROR               3
 130     #define     I2C_M_STATUS              2
 131     #define     I2C_M_ACK_IGNORE          1
 132     #define     I2C_M_START               0
 133 #define   I2C_M_0_SLAVE_ADDR                       (0x7c01)
 134 #define P_I2C_M_0_SLAVE_ADDR                       (volatile uint32_t *)((0x7c01  << 2) + 0xffd00000)
 135 #define   I2C_M_0_TOKEN_LIST0                      (0x7c02)
 136 #define P_I2C_M_0_TOKEN_LIST0                      (volatile uint32_t *)((0x7c02  << 2) + 0xffd00000)
 137 #define   I2C_M_0_TOKEN_LIST1                      (0x7c03)
 138 #define P_I2C_M_0_TOKEN_LIST1                      (volatile uint32_t *)((0x7c03  << 2) + 0xffd00000)
 139 #define   I2C_M_0_WDATA_REG0                       (0x7c04)
 140 #define P_I2C_M_0_WDATA_REG0                       (volatile uint32_t *)((0x7c04  << 2) + 0xffd00000)
 141 #define   I2C_M_0_WDATA_REG1                       (0x7c05)
 142 #define P_I2C_M_0_WDATA_REG1                       (volatile uint32_t *)((0x7c05  << 2) + 0xffd00000)
 143 #define   I2C_M_0_RDATA_REG0                       (0x7c06)
 144 #define P_I2C_M_0_RDATA_REG0                       (volatile uint32_t *)((0x7c06  << 2) + 0xffd00000)
 145 #define   I2C_M_0_RDATA_REG1                       (0x7c07)
 146 #define P_I2C_M_0_RDATA_REG1                       (volatile uint32_t *)((0x7c07  << 2) + 0xffd00000)
 147 #define   I2C_M_0_TIMEOUT_TH                       (0x7c08)
 148 #define P_I2C_M_0_TIMEOUT_TH                       (volatile uint32_t *)((0x7c08  << 2) + 0xffd00000)
 149 // -----------------------------------------------
 150 // CBUS_BASE:  I2C_M_1_CBUS_BASE = 0x78
 151 // -----------------------------------------------
 152 #define   I2C_M_1_CONTROL_REG                      (0x7800)
 153 #define P_I2C_M_1_CONTROL_REG                      (volatile uint32_t *)((0x7800  << 2) + 0xffd00000)
 154 #define   I2C_M_1_SLAVE_ADDR                       (0x7801)
 155 #define P_I2C_M_1_SLAVE_ADDR                       (volatile uint32_t *)((0x7801  << 2) + 0xffd00000)
 156 #define   I2C_M_1_TOKEN_LIST0                      (0x7802)
 157 #define P_I2C_M_1_TOKEN_LIST0                      (volatile uint32_t *)((0x7802  << 2) + 0xffd00000)
 158 #define   I2C_M_1_TOKEN_LIST1                      (0x7803)
 159 #define P_I2C_M_1_TOKEN_LIST1                      (volatile uint32_t *)((0x7803  << 2) + 0xffd00000)
 160 #define   I2C_M_1_WDATA_REG0                       (0x7804)
 161 #define P_I2C_M_1_WDATA_REG0                       (volatile uint32_t *)((0x7804  << 2) + 0xffd00000)
 162 #define   I2C_M_1_WDATA_REG1                       (0x7805)
 163 #define P_I2C_M_1_WDATA_REG1                       (volatile uint32_t *)((0x7805  << 2) + 0xffd00000)
 164 #define   I2C_M_1_RDATA_REG0                       (0x7806)
 165 #define P_I2C_M_1_RDATA_REG0                       (volatile uint32_t *)((0x7806  << 2) + 0xffd00000)
 166 #define   I2C_M_1_RDATA_REG1                       (0x7807)
 167 #define P_I2C_M_1_RDATA_REG1                       (volatile uint32_t *)((0x7807  << 2) + 0xffd00000)
 168 #define   I2C_M_1_TIMEOUT_TH                       (0x7808)
 169 #define P_I2C_M_1_TIMEOUT_TH                       (volatile uint32_t *)((0x7808  << 2) + 0xffd00000)
 170 // ------------------------------------------------------------------------------------
 171 // -----------------------------------------------
 172 // CBUS_BASE:  I2C_M_2_CBUS_BASE = 0x74
 173 // -----------------------------------------------
 174 #define   I2C_M_2_CONTROL_REG                      (0x7400)
 175 #define P_I2C_M_2_CONTROL_REG                      (volatile uint32_t *)((0x7400  << 2) + 0xffd00000)
 176 #define   I2C_M_2_SLAVE_ADDR                       (0x7401)
 177 #define P_I2C_M_2_SLAVE_ADDR                       (volatile uint32_t *)((0x7401  << 2) + 0xffd00000)
 178 #define   I2C_M_2_TOKEN_LIST0                      (0x7402)
 179 #define P_I2C_M_2_TOKEN_LIST0                      (volatile uint32_t *)((0x7402  << 2) + 0xffd00000)
 180 #define   I2C_M_2_TOKEN_LIST1                      (0x7403)
 181 #define P_I2C_M_2_TOKEN_LIST1                      (volatile uint32_t *)((0x7403  << 2) + 0xffd00000)
 182 #define   I2C_M_2_WDATA_REG0                       (0x7404)
 183 #define P_I2C_M_2_WDATA_REG0                       (volatile uint32_t *)((0x7404  << 2) + 0xffd00000)
 184 #define   I2C_M_2_WDATA_REG1                       (0x7405)
 185 #define P_I2C_M_2_WDATA_REG1                       (volatile uint32_t *)((0x7405  << 2) + 0xffd00000)
 186 #define   I2C_M_2_RDATA_REG0                       (0x7406)
 187 #define P_I2C_M_2_RDATA_REG0                       (volatile uint32_t *)((0x7406  << 2) + 0xffd00000)
 188 #define   I2C_M_2_RDATA_REG1                       (0x7407)
 189 #define P_I2C_M_2_RDATA_REG1                       (volatile uint32_t *)((0x7407  << 2) + 0xffd00000)
 190 #define   I2C_M_2_TIMEOUT_TH                       (0x7408)
 191 #define P_I2C_M_2_TIMEOUT_TH                       (volatile uint32_t *)((0x7408  << 2) + 0xffd00000)
 192 // ------------------------------------------------------------------------------------
 193 // -----------------------------------------------
 194 // CBUS_BASE:  I2C_M_3_CBUS_BASE = 0x70
 195 // -----------------------------------------------
 196 #define   I2C_M_3_CONTROL_REG                      (0x7000)
 197 #define P_I2C_M_3_CONTROL_REG                      (volatile uint32_t *)((0x7000  << 2) + 0xffd00000)
 198 #define   I2C_M_3_SLAVE_ADDR                       (0x7001)
 199 #define P_I2C_M_3_SLAVE_ADDR                       (volatile uint32_t *)((0x7001  << 2) + 0xffd00000)
 200 #define   I2C_M_3_TOKEN_LIST0                      (0x7002)
 201 #define P_I2C_M_3_TOKEN_LIST0                      (volatile uint32_t *)((0x7002  << 2) + 0xffd00000)
 202 #define   I2C_M_3_TOKEN_LIST1                      (0x7003)
 203 #define P_I2C_M_3_TOKEN_LIST1                      (volatile uint32_t *)((0x7003  << 2) + 0xffd00000)
 204 #define   I2C_M_3_WDATA_REG0                       (0x7004)
 205 #define P_I2C_M_3_WDATA_REG0                       (volatile uint32_t *)((0x7004  << 2) + 0xffd00000)
 206 #define   I2C_M_3_WDATA_REG1                       (0x7005)
 207 #define P_I2C_M_3_WDATA_REG1                       (volatile uint32_t *)((0x7005  << 2) + 0xffd00000)
 208 #define   I2C_M_3_RDATA_REG0                       (0x7006)
 209 #define P_I2C_M_3_RDATA_REG0                       (volatile uint32_t *)((0x7006  << 2) + 0xffd00000)
 210 #define   I2C_M_3_RDATA_REG1                       (0x7007)
 211 #define P_I2C_M_3_RDATA_REG1                       (volatile uint32_t *)((0x7007  << 2) + 0xffd00000)
 212 #define   I2C_M_3_TIMEOUT_TH                       (0x7008)
 213 #define P_I2C_M_3_TIMEOUT_TH                       (volatile uint32_t *)((0x7008  << 2) + 0xffd00000)
 214 // ------------------------------------------------------------------------------------
 215 // -----------------------------------------------
 216 // CBUS_BASE:  PWM_AB_CBUS_BASE = 0x6c
 217 // -----------------------------------------------
 218 #define   PWM_PWM_A                                (0x6c00)
 219 #define P_PWM_PWM_A                                (volatile uint32_t *)((0x6c00  << 2) + 0xffd00000)
 220 #define   PWM_PWM_B                                (0x6c01)
 221 #define P_PWM_PWM_B                                (volatile uint32_t *)((0x6c01  << 2) + 0xffd00000)
 222 #define   PWM_MISC_REG_AB                          (0x6c02)
 223 #define P_PWM_MISC_REG_AB                          (volatile uint32_t *)((0x6c02  << 2) + 0xffd00000)
 224 #define   PWM_DELTA_SIGMA_AB                       (0x6c03)
 225 #define P_PWM_DELTA_SIGMA_AB                       (volatile uint32_t *)((0x6c03  << 2) + 0xffd00000)
 226 #define   PWM_TIME_AB                              (0x6c04)
 227 #define P_PWM_TIME_AB                              (volatile uint32_t *)((0x6c04  << 2) + 0xffd00000)
 228 #define   PWM_A2                                   (0x6c05)
 229 #define P_PWM_A2                                   (volatile uint32_t *)((0x6c05  << 2) + 0xffd00000)
 230 #define   PWM_B2                                   (0x6c06)
 231 #define P_PWM_B2                                   (volatile uint32_t *)((0x6c06  << 2) + 0xffd00000)
 232 #define   PWM_BLINK_AB                             (0x6c07)
 233 #define P_PWM_BLINK_AB                             (volatile uint32_t *)((0x6c07  << 2) + 0xffd00000)
 234 // ------------------------------------------------------------------------------------
 235 // -----------------------------------------------
 236 // CBUS_BASE:  PWM_CD_CBUS_BASE = 0x68
 237 // -----------------------------------------------
 238 #define   PWM_PWM_C                                (0x6800)
 239 #define P_PWM_PWM_C                                (volatile uint32_t *)((0x6800  << 2) + 0xffd00000)
 240 #define   PWM_PWM_D                                (0x6801)
 241 #define P_PWM_PWM_D                                (volatile uint32_t *)((0x6801  << 2) + 0xffd00000)
 242 #define   PWM_MISC_REG_CD                          (0x6802)
 243 #define P_PWM_MISC_REG_CD                          (volatile uint32_t *)((0x6802  << 2) + 0xffd00000)
 244 #define   PWM_DELTA_SIGMA_CD                       (0x6803)
 245 #define P_PWM_DELTA_SIGMA_CD                       (volatile uint32_t *)((0x6803  << 2) + 0xffd00000)
 246 #define   PWM_TIME_CD                              (0x6804)
 247 #define P_PWM_TIME_CD                              (volatile uint32_t *)((0x6804  << 2) + 0xffd00000)
 248 #define   PWM_C2                                   (0x6805)
 249 #define P_PWM_C2                                   (volatile uint32_t *)((0x6805  << 2) + 0xffd00000)
 250 #define   PWM_D2                                   (0x6806)
 251 #define P_PWM_D2                                   (volatile uint32_t *)((0x6806  << 2) + 0xffd00000)
 252 #define   PWM_BLINK_CD                             (0x6807)
 253 #define P_PWM_BLINK_CD                             (volatile uint32_t *)((0x6807  << 2) + 0xffd00000)
 254 // ------------------------------------------------------------------------------------
 255 // -----------------------------------------------
 256 // CBUS_BASE:  MSR_CLK_CBUS_BASE = 0x60
 257 // -----------------------------------------------
 258 #define   MSR_CLK_DUTY                             (0x6000)
 259 #define P_MSR_CLK_DUTY                             (volatile uint32_t *)((0x6000  << 2) + 0xffd00000)
 260 #define   MSR_CLK_REG0                             (0x6001)
 261 #define P_MSR_CLK_REG0                             (volatile uint32_t *)((0x6001  << 2) + 0xffd00000)
 262 #define   MSR_CLK_REG1                             (0x6002)
 263 #define P_MSR_CLK_REG1                             (volatile uint32_t *)((0x6002  << 2) + 0xffd00000)
 264 #define   MSR_CLK_REG2                             (0x6003)
 265 #define P_MSR_CLK_REG2                             (volatile uint32_t *)((0x6003  << 2) + 0xffd00000)
 266 #define   MSR_CLK_REG3                             (0x6004)
 267 #define P_MSR_CLK_REG3                             (volatile uint32_t *)((0x6004  << 2) + 0xffd00000)
 268 #define   MSR_CLK_REG4                             (0x6005)
 269 #define P_MSR_CLK_REG4                             (volatile uint32_t *)((0x6005  << 2) + 0xffd00000)
 270 #define   MSR_CLK_REG5                             (0x6006)
 271 #define P_MSR_CLK_REG5                             (volatile uint32_t *)((0x6006  << 2) + 0xffd00000)
 272 // ------------------------------------------------------------------------------------
 273 // -----------------------------------------------
 274 // CBUS_BASE:  SPIFC_CBUS_BASE = 0x50
 275 // -----------------------------------------------
 276 #define   SPI_FLASH_CMD                            (0x5000)
 277 #define P_SPI_FLASH_CMD                            (volatile uint32_t *)((0x5000  << 2) + 0xffd00000)
 278 #define   SPI_FLASH_ADDR                           (0x5001)
 279 #define P_SPI_FLASH_ADDR                           (volatile uint32_t *)((0x5001  << 2) + 0xffd00000)
 280 #define   SPI_FLASH_CTRL                           (0x5002)
 281 #define P_SPI_FLASH_CTRL                           (volatile uint32_t *)((0x5002  << 2) + 0xffd00000)
 282 #define   SPI_FLASH_CTRL1                          (0x5003)
 283 #define P_SPI_FLASH_CTRL1                          (volatile uint32_t *)((0x5003  << 2) + 0xffd00000)
 284 #define   SPI_FLASH_STATUS                         (0x5004)
 285 #define P_SPI_FLASH_STATUS                         (volatile uint32_t *)((0x5004  << 2) + 0xffd00000)
 286 #define   SPI_FLASH_CTRL2                          (0x5005)
 287 #define P_SPI_FLASH_CTRL2                          (volatile uint32_t *)((0x5005  << 2) + 0xffd00000)
 288 #define   SPI_FLASH_CLOCK                          (0x5006)
 289 #define P_SPI_FLASH_CLOCK                          (volatile uint32_t *)((0x5006  << 2) + 0xffd00000)
 290 #define   SPI_FLASH_USER                           (0x5007)
 291 #define P_SPI_FLASH_USER                           (volatile uint32_t *)((0x5007  << 2) + 0xffd00000)
 292 #define   SPI_FLASH_USER1                          (0x5008)
 293 #define P_SPI_FLASH_USER1                          (volatile uint32_t *)((0x5008  << 2) + 0xffd00000)
 294 #define   SPI_FLASH_USER2                          (0x5009)
 295 #define P_SPI_FLASH_USER2                          (volatile uint32_t *)((0x5009  << 2) + 0xffd00000)
 296 #define   SPI_FLASH_USER3                          (0x500a)
 297 #define P_SPI_FLASH_USER3                          (volatile uint32_t *)((0x500a  << 2) + 0xffd00000)
 298 #define   SPI_FLASH_USER4                          (0x500b)
 299 #define P_SPI_FLASH_USER4                          (volatile uint32_t *)((0x500b  << 2) + 0xffd00000)
 300 #define   SPI_FLASH_SLAVE                          (0x500c)
 301 #define P_SPI_FLASH_SLAVE                          (volatile uint32_t *)((0x500c  << 2) + 0xffd00000)
 302 #define   SPI_FLASH_SLAVE1                         (0x500d)
 303 #define P_SPI_FLASH_SLAVE1                         (volatile uint32_t *)((0x500d  << 2) + 0xffd00000)
 304 #define   SPI_FLASH_SLAVE2                         (0x500e)
 305 #define P_SPI_FLASH_SLAVE2                         (volatile uint32_t *)((0x500e  << 2) + 0xffd00000)
 306 #define   SPI_FLASH_SLAVE3                         (0x500f)
 307 #define P_SPI_FLASH_SLAVE3                         (volatile uint32_t *)((0x500f  << 2) + 0xffd00000)
 308 #define   SPI_FLASH_C0                             (0x5010)
 309 #define P_SPI_FLASH_C0                             (volatile uint32_t *)((0x5010  << 2) + 0xffd00000)
 310 #define   SPI_FLASH_C1                             (0x5011)
 311 #define P_SPI_FLASH_C1                             (volatile uint32_t *)((0x5011  << 2) + 0xffd00000)
 312 #define   SPI_FLASH_C2                             (0x5012)
 313 #define P_SPI_FLASH_C2                             (volatile uint32_t *)((0x5012  << 2) + 0xffd00000)
 314 #define   SPI_FLASH_C3                             (0x5013)
 315 #define P_SPI_FLASH_C3                             (volatile uint32_t *)((0x5013  << 2) + 0xffd00000)
 316 #define   SPI_FLASH_C4                             (0x5014)
 317 #define P_SPI_FLASH_C4                             (volatile uint32_t *)((0x5014  << 2) + 0xffd00000)
 318 #define   SPI_FLASH_C5                             (0x5015)
 319 #define P_SPI_FLASH_C5                             (volatile uint32_t *)((0x5015  << 2) + 0xffd00000)
 320 #define   SPI_FLASH_C6                             (0x5016)
 321 #define P_SPI_FLASH_C6                             (volatile uint32_t *)((0x5016  << 2) + 0xffd00000)
 322 #define   SPI_FLASH_C7                             (0x5017)
 323 #define P_SPI_FLASH_C7                             (volatile uint32_t *)((0x5017  << 2) + 0xffd00000)
 324 #define   SPI_FLASH_B8                             (0x5018)
 325 #define P_SPI_FLASH_B8                             (volatile uint32_t *)((0x5018  << 2) + 0xffd00000)
 326 #define   SPI_FLASH_B9                             (0x5019)
 327 #define P_SPI_FLASH_B9                             (volatile uint32_t *)((0x5019  << 2) + 0xffd00000)
 328 #define   SPI_FLASH_B10                            (0x501a)
 329 #define P_SPI_FLASH_B10                            (volatile uint32_t *)((0x501a  << 2) + 0xffd00000)
 330 #define   SPI_FLASH_B11                            (0x501b)
 331 #define P_SPI_FLASH_B11                            (volatile uint32_t *)((0x501b  << 2) + 0xffd00000)
 332 #define   SPI_FLASH_B12                            (0x501c)
 333 #define P_SPI_FLASH_B12                            (volatile uint32_t *)((0x501c  << 2) + 0xffd00000)
 334 #define   SPI_FLASH_B13                            (0x501d)
 335 #define P_SPI_FLASH_B13                            (volatile uint32_t *)((0x501d  << 2) + 0xffd00000)
 336 #define   SPI_FLASH_B14                            (0x501e)
 337 #define P_SPI_FLASH_B14                            (volatile uint32_t *)((0x501e  << 2) + 0xffd00000)
 338 #define   SPI_FLASH_B15                            (0x501f)
 339 #define P_SPI_FLASH_B15                            (volatile uint32_t *)((0x501f  << 2) + 0xffd00000)
 340 // ------------------------------------------------------------------------------------
 341 //spicc 0
 342 // -----------------------------------------------
 343 // CBUS_BASE:  SPICC0_CBUS_BASE = 0x4c
 344 // -----------------------------------------------
 345 #define   SPICC0_RXDATA                            (0x4c00)
 346 #define P_SPICC0_RXDATA                            (volatile uint32_t *)((0x4c00  << 2) + 0xffd00000)
 347 #define   SPICC0_TXDATA                            (0x4c01)
 348 #define P_SPICC0_TXDATA                            (volatile uint32_t *)((0x4c01  << 2) + 0xffd00000)
 349 #define   SPICC0_CONREG                            (0x4c02)
 350 #define P_SPICC0_CONREG                            (volatile uint32_t *)((0x4c02  << 2) + 0xffd00000)
 351 #define   SPICC0_INTREG                            (0x4c03)
 352 #define P_SPICC0_INTREG                            (volatile uint32_t *)((0x4c03  << 2) + 0xffd00000)
 353 #define   SPICC0_DMAREG                            (0x4c04)
 354 #define P_SPICC0_DMAREG                            (volatile uint32_t *)((0x4c04  << 2) + 0xffd00000)
 355 #define   SPICC0_STATREG                           (0x4c05)
 356 #define P_SPICC0_STATREG                           (volatile uint32_t *)((0x4c05  << 2) + 0xffd00000)
 357 #define   SPICC0_PERIODREG                         (0x4c06)
 358 #define P_SPICC0_PERIODREG                         (volatile uint32_t *)((0x4c06  << 2) + 0xffd00000)
 359 #define   SPICC0_TESTREG                           (0x4c07)
 360 #define P_SPICC0_TESTREG                           (volatile uint32_t *)((0x4c07  << 2) + 0xffd00000)
 361 #define   SPICC0_DRADDR                            (0x4c08)
 362 #define P_SPICC0_DRADDR                            (volatile uint32_t *)((0x4c08  << 2) + 0xffd00000)
 363 #define   SPICC0_DWADDR                            (0x4c09)
 364 #define P_SPICC0_DWADDR                            (volatile uint32_t *)((0x4c09  << 2) + 0xffd00000)
 365 #define   SPICC0_LD_CNTL0                          (0x4c0a)
 366 #define P_SPICC0_LD_CNTL0                          (volatile uint32_t *)((0x4c0a  << 2) + 0xffd00000)
 367 #define   SPICC0_LD_CNTL1                          (0x4c0b)
 368 #define P_SPICC0_LD_CNTL1                          (volatile uint32_t *)((0x4c0b  << 2) + 0xffd00000)
 369 #define   SPICC0_LD_RADDR                          (0x4c0c)
 370 #define P_SPICC0_LD_RADDR                          (volatile uint32_t *)((0x4c0c  << 2) + 0xffd00000)
 371 #define   SPICC0_LD_WADDR                          (0x4c0d)
 372 #define P_SPICC0_LD_WADDR                          (volatile uint32_t *)((0x4c0d  << 2) + 0xffd00000)
 373 #define   SPICC0_ENHANCE_CNTL                      (0x4c0e)
 374 #define P_SPICC0_ENHANCE_CNTL                      (volatile uint32_t *)((0x4c0e  << 2) + 0xffd00000)
 375 #define   SPICC0_ENHANCE_CNTL1                     (0x4c0f)
 376 #define P_SPICC0_ENHANCE_CNTL1                     (volatile uint32_t *)((0x4c0f  << 2) + 0xffd00000)
 377 // ------------------------------------------------------------------------------------
 378 //spicc 1
 379 // -----------------------------------------------
 380 // CBUS_BASE:  SPICC1_CBUS_BASE = 0x54
 381 // -----------------------------------------------
 382 #define   SPICC1_RXDATA                            (0x5400)
 383 #define P_SPICC1_RXDATA                            (volatile uint32_t *)((0x5400  << 2) + 0xffd00000)
 384 #define   SPICC1_TXDATA                            (0x5401)
 385 #define P_SPICC1_TXDATA                            (volatile uint32_t *)((0x5401  << 2) + 0xffd00000)
 386 #define   SPICC1_CONREG                            (0x5402)
 387 #define P_SPICC1_CONREG                            (volatile uint32_t *)((0x5402  << 2) + 0xffd00000)
 388 #define   SPICC1_INTREG                            (0x5403)
 389 #define P_SPICC1_INTREG                            (volatile uint32_t *)((0x5403  << 2) + 0xffd00000)
 390 #define   SPICC1_DMAREG                            (0x5404)
 391 #define P_SPICC1_DMAREG                            (volatile uint32_t *)((0x5404  << 2) + 0xffd00000)
 392 #define   SPICC1_STATREG                           (0x5405)
 393 #define P_SPICC1_STATREG                           (volatile uint32_t *)((0x5405  << 2) + 0xffd00000)
 394 #define   SPICC1_PERIODREG                         (0x5406)
 395 #define P_SPICC1_PERIODREG                         (volatile uint32_t *)((0x5406  << 2) + 0xffd00000)
 396 #define   SPICC1_TESTREG                           (0x5407)
 397 #define P_SPICC1_TESTREG                           (volatile uint32_t *)((0x5407  << 2) + 0xffd00000)
 398 #define   SPICC1_DRADDR                            (0x5408)
 399 #define P_SPICC1_DRADDR                            (volatile uint32_t *)((0x5408  << 2) + 0xffd00000)
 400 #define   SPICC1_DWADDR                            (0x5409)
 401 #define P_SPICC1_DWADDR                            (volatile uint32_t *)((0x5409  << 2) + 0xffd00000)
 402 #define   SPICC1_LD_CNTL0                          (0x540a)
 403 #define P_SPICC1_LD_CNTL0                          (volatile uint32_t *)((0x540a  << 2) + 0xffd00000)
 404 #define   SPICC1_LD_CNTL1                          (0x540b)
 405 #define P_SPICC1_LD_CNTL1                          (volatile uint32_t *)((0x540b  << 2) + 0xffd00000)
 406 #define   SPICC1_LD_RADDR                          (0x540c)
 407 #define P_SPICC1_LD_RADDR                          (volatile uint32_t *)((0x540c  << 2) + 0xffd00000)
 408 #define   SPICC1_LD_WADDR                          (0x540d)
 409 #define P_SPICC1_LD_WADDR                          (volatile uint32_t *)((0x540d  << 2) + 0xffd00000)
 410 #define   SPICC1_ENHANCE_CNTL                      (0x540e)
 411 #define P_SPICC1_ENHANCE_CNTL                      (volatile uint32_t *)((0x540e  << 2) + 0xffd00000)
 412 #define   SPICC1_ENHANCE_CNTL1                     (0x540f)
 413 #define P_SPICC1_ENHANCE_CNTL1                     (volatile uint32_t *)((0x540f  << 2) + 0xffd00000)
 414 //
 415 //
 416 // Closing file:  periphs_reg.h
 417 //
 418 //
 419 // Reading file:  isa_reg.h
 420 //
 421 // $isa/rtl/isa_core register defines for the APB bus
 422 // CBUS base slave address
 423 // -----------------------------------------------
 424 // CBUS_BASE:  ISA_CBUS_BASE = 0x3c
 425 // -----------------------------------------------
 426 // Up to 256 registers for this base
 427 #define   ISA_DEBUG_REG0                           (0x3c00)
 428 #define P_ISA_DEBUG_REG0                           (volatile uint32_t *)((0x3c00  << 2) + 0xffd00000)
 429 #define   ISA_DEBUG_REG1                           (0x3c01)
 430 #define P_ISA_DEBUG_REG1                           (volatile uint32_t *)((0x3c01  << 2) + 0xffd00000)
 431 #define   ISA_DEBUG_REG2                           (0x3c02)
 432 #define P_ISA_DEBUG_REG2                           (volatile uint32_t *)((0x3c02  << 2) + 0xffd00000)
 433 #define   ISA_DEBUG_REG3                           (0x3c03)
 434 #define P_ISA_DEBUG_REG3                           (volatile uint32_t *)((0x3c03  << 2) + 0xffd00000)
 435 #define   ISA_PLL_CLK_SIM0                         (0x3c08)
 436 #define P_ISA_PLL_CLK_SIM0                         (volatile uint32_t *)((0x3c08  << 2) + 0xffd00000)
 437 #define   ISA_CNTL_REG0                            (0x3c09)
 438 #define P_ISA_CNTL_REG0                            (volatile uint32_t *)((0x3c09  << 2) + 0xffd00000)
 439 // -----------------------------------------------------------
 440 #define   AO_CPU_IRQ_IN0_INTR_STAT                 (0x3c10)
 441 #define P_AO_CPU_IRQ_IN0_INTR_STAT                 (volatile uint32_t *)((0x3c10  << 2) + 0xffd00000)
 442 #define   AO_CPU_IRQ_IN0_INTR_STAT_CLR             (0x3c11)
 443 #define P_AO_CPU_IRQ_IN0_INTR_STAT_CLR             (volatile uint32_t *)((0x3c11  << 2) + 0xffd00000)
 444 #define   AO_CPU_IRQ_IN0_INTR_MASK                 (0x3c12)
 445 #define P_AO_CPU_IRQ_IN0_INTR_MASK                 (volatile uint32_t *)((0x3c12  << 2) + 0xffd00000)
 446 #define   AO_CPU_IRQ_IN0_INTR_FIRQ_SEL             (0x3c13)
 447 #define P_AO_CPU_IRQ_IN0_INTR_FIRQ_SEL             (volatile uint32_t *)((0x3c13  << 2) + 0xffd00000)
 448 #define   GPIO_INTR_EDGE_POL                       (0x3c20)
 449 #define P_GPIO_INTR_EDGE_POL                       (volatile uint32_t *)((0x3c20  << 2) + 0xffd00000)
 450 #define   GPIO_INTR_GPIO_SEL0                      (0x3c21)
 451 #define P_GPIO_INTR_GPIO_SEL0                      (volatile uint32_t *)((0x3c21  << 2) + 0xffd00000)
 452 #define   GPIO_INTR_GPIO_SEL1                      (0x3c22)
 453 #define P_GPIO_INTR_GPIO_SEL1                      (volatile uint32_t *)((0x3c22  << 2) + 0xffd00000)
 454 #define   GPIO_INTR_FILTER_SEL0                    (0x3c23)
 455 #define P_GPIO_INTR_FILTER_SEL0                    (volatile uint32_t *)((0x3c23  << 2) + 0xffd00000)
 456 // `define GLOBAL_INTR_DISABLE                 8'h24    never used
 457 #define   MEDIA_CPU_INTR_STAT                      (0x3c28)
 458 #define P_MEDIA_CPU_INTR_STAT                      (volatile uint32_t *)((0x3c28  << 2) + 0xffd00000)
 459 #define   MEDIA_CPU_INTR_STAT_CLR                  (0x3c29)
 460 #define P_MEDIA_CPU_INTR_STAT_CLR                  (volatile uint32_t *)((0x3c29  << 2) + 0xffd00000)
 461 #define   MEDIA_CPU_INTR_MASK                      (0x3c2a)
 462 #define P_MEDIA_CPU_INTR_MASK                      (volatile uint32_t *)((0x3c2a  << 2) + 0xffd00000)
 463 #define   MEDIA_CPU_INTR_FIRQ_SEL                  (0x3c2b)
 464 #define P_MEDIA_CPU_INTR_FIRQ_SEL                  (volatile uint32_t *)((0x3c2b  << 2) + 0xffd00000)
 465 // -----------------------------------------------------------
 466 #define   ISA_BIST_REG0                            (0x3c30)
 467 #define P_ISA_BIST_REG0                            (volatile uint32_t *)((0x3c30  << 2) + 0xffd00000)
 468 #define   ISA_BIST_REG1                            (0x3c31)
 469 #define P_ISA_BIST_REG1                            (volatile uint32_t *)((0x3c31  << 2) + 0xffd00000)
 470 // -----------------------------------------------------------
 471 #define   WATCHDOG_CNTL                            (0x3c34)
 472 #define P_WATCHDOG_CNTL                            (volatile uint32_t *)((0x3c34  << 2) + 0xffd00000)
 473 #define   WATCHDOG_CNTL1                           (0x3c35)
 474 #define P_WATCHDOG_CNTL1                           (volatile uint32_t *)((0x3c35  << 2) + 0xffd00000)
 475 #define   WATCHDOG_TCNT                            (0x3c36)
 476 #define P_WATCHDOG_TCNT                            (volatile uint32_t *)((0x3c36  << 2) + 0xffd00000)
 477 #define   WATCHDOG_RESET                           (0x3c37)
 478 #define P_WATCHDOG_RESET                           (volatile uint32_t *)((0x3c37  << 2) + 0xffd00000)
 479 // -----------------------------------------------------------
 480 #define   AHB_ARBITER_REG                          (0x3c42)
 481 #define P_AHB_ARBITER_REG                          (volatile uint32_t *)((0x3c42  << 2) + 0xffd00000)
 482 #define   AHB_ARBDEC_REG                           (0x3c43)
 483 #define P_AHB_ARBDEC_REG                           (volatile uint32_t *)((0x3c43  << 2) + 0xffd00000)
 484 #define   AHB_ARBITER2_REG                         (0x3c4a)
 485 #define P_AHB_ARBITER2_REG                         (volatile uint32_t *)((0x3c4a  << 2) + 0xffd00000)
 486 #define   DEVICE_MMCP_CNTL                         (0x3c4b)
 487 #define P_DEVICE_MMCP_CNTL                         (volatile uint32_t *)((0x3c4b  << 2) + 0xffd00000)
 488 #define   AUDIO_MMCP_CNTL                          (0x3c4c)
 489 #define P_AUDIO_MMCP_CNTL                          (volatile uint32_t *)((0x3c4c  << 2) + 0xffd00000)
 490 // -----------------------------------------------------------
 491 #define   ISA_TIMER_MUX                            (0x3c50)
 492 #define P_ISA_TIMER_MUX                            (volatile uint32_t *)((0x3c50  << 2) + 0xffd00000)
 493 #define   ISA_TIMERA                               (0x3c51)
 494 #define P_ISA_TIMERA                               (volatile uint32_t *)((0x3c51  << 2) + 0xffd00000)
 495 #define   ISA_TIMERB                               (0x3c52)
 496 #define P_ISA_TIMERB                               (volatile uint32_t *)((0x3c52  << 2) + 0xffd00000)
 497 #define   ISA_TIMERC                               (0x3c53)
 498 #define P_ISA_TIMERC                               (volatile uint32_t *)((0x3c53  << 2) + 0xffd00000)
 499 #define   ISA_TIMERD                               (0x3c54)
 500 #define P_ISA_TIMERD                               (volatile uint32_t *)((0x3c54  << 2) + 0xffd00000)
 501 #define   FBUF_ADDR                                (0x3c56)
 502 #define P_FBUF_ADDR                                (volatile uint32_t *)((0x3c56  << 2) + 0xffd00000)
 503     #define VIDEO_FRM_BUF_MSB_BIT      23
 504     #define VIDEO_FRM_BUF_LSB_BIT       2
 505 #define   SDRAM_CTL0                               (0x3c57)
 506 #define P_SDRAM_CTL0                               (volatile uint32_t *)((0x3c57  << 2) + 0xffd00000)
 507 #define   SDRAM_CTL2                               (0x3c58)
 508 #define P_SDRAM_CTL2                               (volatile uint32_t *)((0x3c58  << 2) + 0xffd00000)
 509 //`define AO_CPU_CTL                          8'h59
 510 #define   SDRAM_CTL4                               (0x3c5a)
 511 #define P_SDRAM_CTL4                               (volatile uint32_t *)((0x3c5a  << 2) + 0xffd00000)
 512 #define   SDRAM_CTL5                               (0x3c5b)
 513 #define P_SDRAM_CTL5                               (volatile uint32_t *)((0x3c5b  << 2) + 0xffd00000)
 514 #define   SDRAM_CTL6                               (0x3c5c)
 515 #define P_SDRAM_CTL6                               (volatile uint32_t *)((0x3c5c  << 2) + 0xffd00000)
 516 #define   SDRAM_CTL7                               (0x3c5d)
 517 #define P_SDRAM_CTL7                               (volatile uint32_t *)((0x3c5d  << 2) + 0xffd00000)
 518 #define   SDRAM_CTL8                               (0x3c5e)
 519 #define P_SDRAM_CTL8                               (volatile uint32_t *)((0x3c5e  << 2) + 0xffd00000)
 520 #define   AHB_MP4_MC_CTL                           (0x3c5f)
 521 #define P_AHB_MP4_MC_CTL                           (volatile uint32_t *)((0x3c5f  << 2) + 0xffd00000)
 522 #define   MEDIA_CPU_PCR                            (0x3c60)
 523 #define P_MEDIA_CPU_PCR                            (volatile uint32_t *)((0x3c60  << 2) + 0xffd00000)
 524 #define   MEDIA_CPU_CTL                            (0x3c61)
 525 #define P_MEDIA_CPU_CTL                            (volatile uint32_t *)((0x3c61  << 2) + 0xffd00000)
 526 #define   ISA_TIMERE                               (0x3c62)
 527 #define P_ISA_TIMERE                               (volatile uint32_t *)((0x3c62  << 2) + 0xffd00000)
 528 #define   ISA_TIMERE_HI                            (0x3c63)
 529 #define P_ISA_TIMERE_HI                            (volatile uint32_t *)((0x3c63  << 2) + 0xffd00000)
 530 #define   ISA_TIMER_MUX1                           (0x3c64)
 531 #define P_ISA_TIMER_MUX1                           (volatile uint32_t *)((0x3c64  << 2) + 0xffd00000)
 532 #define   ISA_TIMERF                               (0x3c65)
 533 #define P_ISA_TIMERF                               (volatile uint32_t *)((0x3c65  << 2) + 0xffd00000)
 534 #define   ISA_TIMERG                               (0x3c66)
 535 #define P_ISA_TIMERG                               (volatile uint32_t *)((0x3c66  << 2) + 0xffd00000)
 536 #define   ISA_TIMERH                               (0x3c67)
 537 #define P_ISA_TIMERH                               (volatile uint32_t *)((0x3c67  << 2) + 0xffd00000)
 538 #define   ISA_TIMERI                               (0x3c68)
 539 #define P_ISA_TIMERI                               (volatile uint32_t *)((0x3c68  << 2) + 0xffd00000)
 540 // ---------------------------------------------
 541 #define   AHB_BRIDGE_CNTL_WR                       (0x3c80)
 542 #define P_AHB_BRIDGE_CNTL_WR                       (volatile uint32_t *)((0x3c80  << 2) + 0xffd00000)
 543 #define   AHB_BRIDGE_REMAP0                        (0x3c81)
 544 #define P_AHB_BRIDGE_REMAP0                        (volatile uint32_t *)((0x3c81  << 2) + 0xffd00000)
 545 #define   AHB_BRIDGE_REMAP1                        (0x3c82)
 546 #define P_AHB_BRIDGE_REMAP1                        (volatile uint32_t *)((0x3c82  << 2) + 0xffd00000)
 547 #define   AHB_BRIDGE_REMAP2                        (0x3c83)
 548 #define P_AHB_BRIDGE_REMAP2                        (volatile uint32_t *)((0x3c83  << 2) + 0xffd00000)
 549 #define   AHB_BRIDGE_REMAP3                        (0x3c84)
 550 #define P_AHB_BRIDGE_REMAP3                        (volatile uint32_t *)((0x3c84  << 2) + 0xffd00000)
 551 #define   AHB_BRIDGE_CNTL_REG1                     (0x3c85)
 552 #define P_AHB_BRIDGE_CNTL_REG1                     (volatile uint32_t *)((0x3c85  << 2) + 0xffd00000)
 553 #define   AHB_BRIDGE_CNTL_REG2                     (0x3c86)
 554 #define P_AHB_BRIDGE_CNTL_REG2                     (volatile uint32_t *)((0x3c86  << 2) + 0xffd00000)
 555 // ---------------------------------------------
 556 //
 557 // Closing file:  isa_reg.h
 558 //
 559 //
 560 // Reading file:  emmc_reg.h
 561 //
 562 // $periphs/rtl/periphs_core register defines for the
 563 // APB bus
 564 // ------------------------------------------------------------------------------------
 565 // -----------------------------------------------
 566 // CBUS_BASE:  EMMCA_CBUS_BASE = 0x40c
 567 // -----------------------------------------------
 568 #define   EMMC_A_GCLOCK                            (0x40c00)
 569 #define P_EMMC_A_GCLOCK                            (volatile uint32_t *)((0x40c00  << 2) + 0xffd00000)
 570 #define   EMMC_A_GDELAY0                           (0x40c01)
 571 #define P_EMMC_A_GDELAY0                           (volatile uint32_t *)((0x40c01  << 2) + 0xffd00000)
 572 #define   EMMC_A_GDELAY1                           (0x40c02)
 573 #define P_EMMC_A_GDELAY1                           (volatile uint32_t *)((0x40c02  << 2) + 0xffd00000)
 574 #define   EMMC_A_GADJUST                           (0x40c03)
 575 #define P_EMMC_A_GADJUST                           (volatile uint32_t *)((0x40c03  << 2) + 0xffd00000)
 576 #define   EMMC_A_GCALOUT0                          (0x40c04)
 577 #define P_EMMC_A_GCALOUT0                          (volatile uint32_t *)((0x40c04  << 2) + 0xffd00000)
 578 #define   EMMC_A_GCALOUT1                          (0x40c05)
 579 #define P_EMMC_A_GCALOUT1                          (volatile uint32_t *)((0x40c05  << 2) + 0xffd00000)
 580 #define   EMMC_A_GCALOUT2                          (0x40c06)
 581 #define P_EMMC_A_GCALOUT2                          (volatile uint32_t *)((0x40c06  << 2) + 0xffd00000)
 582 #define   EMMC_A_GCALOUT3                          (0x40c07)
 583 #define P_EMMC_A_GCALOUT3                          (volatile uint32_t *)((0x40c07  << 2) + 0xffd00000)
 584 #define   EMMC_A_GADJ_LOG                          (0x40c08)
 585 #define P_EMMC_A_GADJ_LOG                          (volatile uint32_t *)((0x40c08  << 2) + 0xffd00000)
 586 #define   EMMC_A_GCLKTEST_LOG                      (0x40c09)
 587 #define P_EMMC_A_GCLKTEST_LOG                      (volatile uint32_t *)((0x40c09  << 2) + 0xffd00000)
 588 #define   EMMC_A_GCLKTEST_OUT                      (0x40c0a)
 589 #define P_EMMC_A_GCLKTEST_OUT                      (volatile uint32_t *)((0x40c0a  << 2) + 0xffd00000)
 590 #define   EMMC_A_GEYETEST_LOG                      (0x40c0b)
 591 #define P_EMMC_A_GEYETEST_LOG                      (volatile uint32_t *)((0x40c0b  << 2) + 0xffd00000)
 592 #define   EMMC_A_GEYETEST_OUT0                     (0x40c0c)
 593 #define P_EMMC_A_GEYETEST_OUT0                     (volatile uint32_t *)((0x40c0c  << 2) + 0xffd00000)
 594 #define   EMMC_A_GEYETEST_OUT1                     (0x40c0d)
 595 #define P_EMMC_A_GEYETEST_OUT1                     (volatile uint32_t *)((0x40c0d  << 2) + 0xffd00000)
 596 #define   EMMC_A_GINTF3                            (0x40c0e)
 597 #define P_EMMC_A_GINTF3                            (volatile uint32_t *)((0x40c0e  << 2) + 0xffd00000)
 598 #define   EMMC_A_GRESERVE                          (0x40c0f)
 599 #define P_EMMC_A_GRESERVE                          (volatile uint32_t *)((0x40c0f  << 2) + 0xffd00000)
 600 #define   EMMC_A_GSTART                            (0x40c10)
 601 #define P_EMMC_A_GSTART                            (volatile uint32_t *)((0x40c10  << 2) + 0xffd00000)
 602 #define   EMMC_A_GCFG                              (0x40c11)
 603 #define P_EMMC_A_GCFG                              (volatile uint32_t *)((0x40c11  << 2) + 0xffd00000)
 604 #define   EMMC_A_GSTATUS                           (0x40c12)
 605 #define P_EMMC_A_GSTATUS                           (volatile uint32_t *)((0x40c12  << 2) + 0xffd00000)
 606 #define   EMMC_A_GIRQ_EN                           (0x40c13)
 607 #define P_EMMC_A_GIRQ_EN                           (volatile uint32_t *)((0x40c13  << 2) + 0xffd00000)
 608 #define   EMMC_A_GCMD_CFG                          (0x40c14)
 609 #define P_EMMC_A_GCMD_CFG                          (volatile uint32_t *)((0x40c14  << 2) + 0xffd00000)
 610 #define   EMMC_A_GCMD_ARG                          (0x40c15)
 611 #define P_EMMC_A_GCMD_ARG                          (volatile uint32_t *)((0x40c15  << 2) + 0xffd00000)
 612 #define   EMMC_A_GCMD_DAT                          (0x40c16)
 613 #define P_EMMC_A_GCMD_DAT                          (volatile uint32_t *)((0x40c16  << 2) + 0xffd00000)
 614 #define   EMMC_A_GCMD_RSP                          (0x40c17)
 615 #define P_EMMC_A_GCMD_RSP                          (volatile uint32_t *)((0x40c17  << 2) + 0xffd00000)
 616 #define   EMMC_A_GCMD_RSP1                         (0x40c18)
 617 #define P_EMMC_A_GCMD_RSP1                         (volatile uint32_t *)((0x40c18  << 2) + 0xffd00000)
 618 #define   EMMC_A_GCMD_RSP2                         (0x40c19)
 619 #define P_EMMC_A_GCMD_RSP2                         (volatile uint32_t *)((0x40c19  << 2) + 0xffd00000)
 620 #define   EMMC_A_GCMD_RSP3                         (0x40c1a)
 621 #define P_EMMC_A_GCMD_RSP3                         (volatile uint32_t *)((0x40c1a  << 2) + 0xffd00000)
 622 #define   EMMC_A_RESERVED_6C                       (0x40c1b)
 623 #define P_EMMC_A_RESERVED_6C                       (volatile uint32_t *)((0x40c1b  << 2) + 0xffd00000)
 624 #define   EMMC_A_GCURR_CFG                         (0x40c1c)
 625 #define P_EMMC_A_GCURR_CFG                         (volatile uint32_t *)((0x40c1c  << 2) + 0xffd00000)
 626 #define   EMMC_A_GCURR_ARG                         (0x40c1d)
 627 #define P_EMMC_A_GCURR_ARG                         (volatile uint32_t *)((0x40c1d  << 2) + 0xffd00000)
 628 #define   EMMC_A_GCURR_DAT                         (0x40c1e)
 629 #define P_EMMC_A_GCURR_DAT                         (volatile uint32_t *)((0x40c1e  << 2) + 0xffd00000)
 630 #define   EMMC_A_GCURR_RSP                         (0x40c1f)
 631 #define P_EMMC_A_GCURR_RSP                         (volatile uint32_t *)((0x40c1f  << 2) + 0xffd00000)
 632 #define   EMMC_A_GNEXT_CFG                         (0x40c20)
 633 #define P_EMMC_A_GNEXT_CFG                         (volatile uint32_t *)((0x40c20  << 2) + 0xffd00000)
 634 #define   EMMC_A_GNEXT_ARG                         (0x40c21)
 635 #define P_EMMC_A_GNEXT_ARG                         (volatile uint32_t *)((0x40c21  << 2) + 0xffd00000)
 636 #define   EMMC_A_GNEXT_DAT                         (0x40c22)
 637 #define P_EMMC_A_GNEXT_DAT                         (volatile uint32_t *)((0x40c22  << 2) + 0xffd00000)
 638 #define   EMMC_A_GNEXT_RSP                         (0x40c23)
 639 #define P_EMMC_A_GNEXT_RSP                         (volatile uint32_t *)((0x40c23  << 2) + 0xffd00000)
 640 #define   EMMC_A_GRXD                              (0x40c24)
 641 #define P_EMMC_A_GRXD                              (volatile uint32_t *)((0x40c24  << 2) + 0xffd00000)
 642 #define   EMMC_A_GTXD                              (0x40c25)
 643 #define P_EMMC_A_GTXD                              (volatile uint32_t *)((0x40c25  << 2) + 0xffd00000)
 644 #define   EMMC_A_RESERVED_98_00                    (0x40c26)
 645 #define P_EMMC_A_RESERVED_98_00                    (volatile uint32_t *)((0x40c26  << 2) + 0xffd00000)
 646 #define   EMMC_A_RESERVED_98_01                    (0x40c27)
 647 #define P_EMMC_A_RESERVED_98_01                    (volatile uint32_t *)((0x40c27  << 2) + 0xffd00000)
 648 #define   EMMC_A_RESERVED_98_02                    (0x40c28)
 649 #define P_EMMC_A_RESERVED_98_02                    (volatile uint32_t *)((0x40c28  << 2) + 0xffd00000)
 650 #define   EMMC_A_RESERVED_98_03                    (0x40c29)
 651 #define P_EMMC_A_RESERVED_98_03                    (volatile uint32_t *)((0x40c29  << 2) + 0xffd00000)
 652 #define   EMMC_A_RESERVED_98_04                    (0x40c2a)
 653 #define P_EMMC_A_RESERVED_98_04                    (volatile uint32_t *)((0x40c2a  << 2) + 0xffd00000)
 654 #define   EMMC_A_RESERVED_98_05                    (0x40c2b)
 655 #define P_EMMC_A_RESERVED_98_05                    (volatile uint32_t *)((0x40c2b  << 2) + 0xffd00000)
 656 #define   EMMC_A_RESERVED_98_06                    (0x40c2c)
 657 #define P_EMMC_A_RESERVED_98_06                    (volatile uint32_t *)((0x40c2c  << 2) + 0xffd00000)
 658 #define   EMMC_A_RESERVED_98_07                    (0x40c2d)
 659 #define P_EMMC_A_RESERVED_98_07                    (volatile uint32_t *)((0x40c2d  << 2) + 0xffd00000)
 660 #define   EMMC_A_RESERVED_98_08                    (0x40c2e)
 661 #define P_EMMC_A_RESERVED_98_08                    (volatile uint32_t *)((0x40c2e  << 2) + 0xffd00000)
 662 #define   EMMC_A_RESERVED_98_09                    (0x40c2f)
 663 #define P_EMMC_A_RESERVED_98_09                    (volatile uint32_t *)((0x40c2f  << 2) + 0xffd00000)
 664 #define   EMMC_A_RESERVED_98_10                    (0x40c30)
 665 #define P_EMMC_A_RESERVED_98_10                    (volatile uint32_t *)((0x40c30  << 2) + 0xffd00000)
 666 #define   EMMC_A_RESERVED_98_11                    (0x40c31)
 667 #define P_EMMC_A_RESERVED_98_11                    (volatile uint32_t *)((0x40c31  << 2) + 0xffd00000)
 668 #define   EMMC_A_RESERVED_98_12                    (0x40c32)
 669 #define P_EMMC_A_RESERVED_98_12                    (volatile uint32_t *)((0x40c32  << 2) + 0xffd00000)
 670 #define   EMMC_A_RESERVED_98_13                    (0x40c33)
 671 #define P_EMMC_A_RESERVED_98_13                    (volatile uint32_t *)((0x40c33  << 2) + 0xffd00000)
 672 #define   EMMC_A_RESERVED_98_14                    (0x40c34)
 673 #define P_EMMC_A_RESERVED_98_14                    (volatile uint32_t *)((0x40c34  << 2) + 0xffd00000)
 674 #define   EMMC_A_RESERVED_98_15                    (0x40c35)
 675 #define P_EMMC_A_RESERVED_98_15                    (volatile uint32_t *)((0x40c35  << 2) + 0xffd00000)
 676 #define   EMMC_A_RESERVED_98_16                    (0x40c36)
 677 #define P_EMMC_A_RESERVED_98_16                    (volatile uint32_t *)((0x40c36  << 2) + 0xffd00000)
 678 #define   EMMC_A_RESERVED_98_17                    (0x40c37)
 679 #define P_EMMC_A_RESERVED_98_17                    (volatile uint32_t *)((0x40c37  << 2) + 0xffd00000)
 680 #define   EMMC_A_RESERVED_98_18                    (0x40c38)
 681 #define P_EMMC_A_RESERVED_98_18                    (volatile uint32_t *)((0x40c38  << 2) + 0xffd00000)
 682 #define   EMMC_A_RESERVED_98_19                    (0x40c39)
 683 #define P_EMMC_A_RESERVED_98_19                    (volatile uint32_t *)((0x40c39  << 2) + 0xffd00000)
 684 #define   EMMC_A_RESERVED_98_20                    (0x40c3a)
 685 #define P_EMMC_A_RESERVED_98_20                    (volatile uint32_t *)((0x40c3a  << 2) + 0xffd00000)
 686 #define   EMMC_A_RESERVED_98_21                    (0x40c3b)
 687 #define P_EMMC_A_RESERVED_98_21                    (volatile uint32_t *)((0x40c3b  << 2) + 0xffd00000)
 688 #define   EMMC_A_RESERVED_98_22                    (0x40c3c)
 689 #define P_EMMC_A_RESERVED_98_22                    (volatile uint32_t *)((0x40c3c  << 2) + 0xffd00000)
 690 #define   EMMC_A_RESERVED_98_23                    (0x40c3d)
 691 #define P_EMMC_A_RESERVED_98_23                    (volatile uint32_t *)((0x40c3d  << 2) + 0xffd00000)
 692 #define   EMMC_A_RESERVED_98_24                    (0x40c3e)
 693 #define P_EMMC_A_RESERVED_98_24                    (volatile uint32_t *)((0x40c3e  << 2) + 0xffd00000)
 694 #define   EMMC_A_RESERVED_98_25                    (0x40c3f)
 695 #define P_EMMC_A_RESERVED_98_25                    (volatile uint32_t *)((0x40c3f  << 2) + 0xffd00000)
 696 #define   EMMC_A_RESERVED_98_26                    (0x40c40)
 697 #define P_EMMC_A_RESERVED_98_26                    (volatile uint32_t *)((0x40c40  << 2) + 0xffd00000)
 698 #define   EMMC_A_RESERVED_98_27                    (0x40c41)
 699 #define P_EMMC_A_RESERVED_98_27                    (volatile uint32_t *)((0x40c41  << 2) + 0xffd00000)
 700 #define   EMMC_A_RESERVED_98_28                    (0x40c42)
 701 #define P_EMMC_A_RESERVED_98_28                    (volatile uint32_t *)((0x40c42  << 2) + 0xffd00000)
 702 #define   EMMC_A_RESERVED_98_29                    (0x40c43)
 703 #define P_EMMC_A_RESERVED_98_29                    (volatile uint32_t *)((0x40c43  << 2) + 0xffd00000)
 704 #define   EMMC_A_RESERVED_98_30                    (0x40c44)
 705 #define P_EMMC_A_RESERVED_98_30                    (volatile uint32_t *)((0x40c44  << 2) + 0xffd00000)
 706 #define   EMMC_A_RESERVED_98_31                    (0x40c45)
 707 #define P_EMMC_A_RESERVED_98_31                    (volatile uint32_t *)((0x40c45  << 2) + 0xffd00000)
 708 #define   EMMC_A_RESERVED_98_32                    (0x40c46)
 709 #define P_EMMC_A_RESERVED_98_32                    (volatile uint32_t *)((0x40c46  << 2) + 0xffd00000)
 710 #define   EMMC_A_RESERVED_98_33                    (0x40c47)
 711 #define P_EMMC_A_RESERVED_98_33                    (volatile uint32_t *)((0x40c47  << 2) + 0xffd00000)
 712 #define   EMMC_A_RESERVED_98_34                    (0x40c48)
 713 #define P_EMMC_A_RESERVED_98_34                    (volatile uint32_t *)((0x40c48  << 2) + 0xffd00000)
 714 #define   EMMC_A_RESERVED_98_35                    (0x40c49)
 715 #define P_EMMC_A_RESERVED_98_35                    (volatile uint32_t *)((0x40c49  << 2) + 0xffd00000)
 716 #define   EMMC_A_RESERVED_98_36                    (0x40c4a)
 717 #define P_EMMC_A_RESERVED_98_36                    (volatile uint32_t *)((0x40c4a  << 2) + 0xffd00000)
 718 #define   EMMC_A_RESERVED_98_37                    (0x40c4b)
 719 #define P_EMMC_A_RESERVED_98_37                    (volatile uint32_t *)((0x40c4b  << 2) + 0xffd00000)
 720 #define   EMMC_A_RESERVED_98_38                    (0x40c4c)
 721 #define P_EMMC_A_RESERVED_98_38                    (volatile uint32_t *)((0x40c4c  << 2) + 0xffd00000)
 722 #define   EMMC_A_RESERVED_98_39                    (0x40c4d)
 723 #define P_EMMC_A_RESERVED_98_39                    (volatile uint32_t *)((0x40c4d  << 2) + 0xffd00000)
 724 #define   EMMC_A_RESERVED_98_40                    (0x40c4e)
 725 #define P_EMMC_A_RESERVED_98_40                    (volatile uint32_t *)((0x40c4e  << 2) + 0xffd00000)
 726 #define   EMMC_A_RESERVED_98_41                    (0x40c4f)
 727 #define P_EMMC_A_RESERVED_98_41                    (volatile uint32_t *)((0x40c4f  << 2) + 0xffd00000)
 728 #define   EMMC_A_RESERVED_98_42                    (0x40c50)
 729 #define P_EMMC_A_RESERVED_98_42                    (volatile uint32_t *)((0x40c50  << 2) + 0xffd00000)
 730 #define   EMMC_A_RESERVED_98_43                    (0x40c51)
 731 #define P_EMMC_A_RESERVED_98_43                    (volatile uint32_t *)((0x40c51  << 2) + 0xffd00000)
 732 #define   EMMC_A_RESERVED_98_44                    (0x40c52)
 733 #define P_EMMC_A_RESERVED_98_44                    (volatile uint32_t *)((0x40c52  << 2) + 0xffd00000)
 734 #define   EMMC_A_RESERVED_98_45                    (0x40c53)
 735 #define P_EMMC_A_RESERVED_98_45                    (volatile uint32_t *)((0x40c53  << 2) + 0xffd00000)
 736 #define   EMMC_A_RESERVED_98_46                    (0x40c54)
 737 #define P_EMMC_A_RESERVED_98_46                    (volatile uint32_t *)((0x40c54  << 2) + 0xffd00000)
 738 #define   EMMC_A_RESERVED_98_47                    (0x40c55)
 739 #define P_EMMC_A_RESERVED_98_47                    (volatile uint32_t *)((0x40c55  << 2) + 0xffd00000)
 740 #define   EMMC_A_RESERVED_98_48                    (0x40c56)
 741 #define P_EMMC_A_RESERVED_98_48                    (volatile uint32_t *)((0x40c56  << 2) + 0xffd00000)
 742 #define   EMMC_A_RESERVED_98_49                    (0x40c57)
 743 #define P_EMMC_A_RESERVED_98_49                    (volatile uint32_t *)((0x40c57  << 2) + 0xffd00000)
 744 #define   EMMC_A_RESERVED_98_50                    (0x40c58)
 745 #define P_EMMC_A_RESERVED_98_50                    (volatile uint32_t *)((0x40c58  << 2) + 0xffd00000)
 746 #define   EMMC_A_RESERVED_98_51                    (0x40c59)
 747 #define P_EMMC_A_RESERVED_98_51                    (volatile uint32_t *)((0x40c59  << 2) + 0xffd00000)
 748 #define   EMMC_A_RESERVED_98_52                    (0x40c5a)
 749 #define P_EMMC_A_RESERVED_98_52                    (volatile uint32_t *)((0x40c5a  << 2) + 0xffd00000)
 750 #define   EMMC_A_RESERVED_98_53                    (0x40c5b)
 751 #define P_EMMC_A_RESERVED_98_53                    (volatile uint32_t *)((0x40c5b  << 2) + 0xffd00000)
 752 #define   EMMC_A_RESERVED_98_54                    (0x40c5c)
 753 #define P_EMMC_A_RESERVED_98_54                    (volatile uint32_t *)((0x40c5c  << 2) + 0xffd00000)
 754 #define   EMMC_A_RESERVED_98_55                    (0x40c5d)
 755 #define P_EMMC_A_RESERVED_98_55                    (volatile uint32_t *)((0x40c5d  << 2) + 0xffd00000)
 756 #define   EMMC_A_RESERVED_98_56                    (0x40c5e)
 757 #define P_EMMC_A_RESERVED_98_56                    (volatile uint32_t *)((0x40c5e  << 2) + 0xffd00000)
 758 #define   EMMC_A_RESERVED_98_57                    (0x40c5f)
 759 #define P_EMMC_A_RESERVED_98_57                    (volatile uint32_t *)((0x40c5f  << 2) + 0xffd00000)
 760 #define   EMMC_A_RESERVED_98_58                    (0x40c60)
 761 #define P_EMMC_A_RESERVED_98_58                    (volatile uint32_t *)((0x40c60  << 2) + 0xffd00000)
 762 #define   EMMC_A_RESERVED_98_59                    (0x40c61)
 763 #define P_EMMC_A_RESERVED_98_59                    (volatile uint32_t *)((0x40c61  << 2) + 0xffd00000)
 764 #define   EMMC_A_RESERVED_98_60                    (0x40c62)
 765 #define P_EMMC_A_RESERVED_98_60                    (volatile uint32_t *)((0x40c62  << 2) + 0xffd00000)
 766 #define   EMMC_A_RESERVED_98_61                    (0x40c63)
 767 #define P_EMMC_A_RESERVED_98_61                    (volatile uint32_t *)((0x40c63  << 2) + 0xffd00000)
 768 #define   EMMC_A_RESERVED_98_62                    (0x40c64)
 769 #define P_EMMC_A_RESERVED_98_62                    (volatile uint32_t *)((0x40c64  << 2) + 0xffd00000)
 770 #define   EMMC_A_RESERVED_98_63                    (0x40c65)
 771 #define P_EMMC_A_RESERVED_98_63                    (volatile uint32_t *)((0x40c65  << 2) + 0xffd00000)
 772 #define   EMMC_A_RESERVED_98_64                    (0x40c66)
 773 #define P_EMMC_A_RESERVED_98_64                    (volatile uint32_t *)((0x40c66  << 2) + 0xffd00000)
 774 #define   EMMC_A_RESERVED_98_65                    (0x40c67)
 775 #define P_EMMC_A_RESERVED_98_65                    (volatile uint32_t *)((0x40c67  << 2) + 0xffd00000)
 776 #define   EMMC_A_RESERVED_98_66                    (0x40c68)
 777 #define P_EMMC_A_RESERVED_98_66                    (volatile uint32_t *)((0x40c68  << 2) + 0xffd00000)
 778 #define   EMMC_A_RESERVED_98_67                    (0x40c69)
 779 #define P_EMMC_A_RESERVED_98_67                    (volatile uint32_t *)((0x40c69  << 2) + 0xffd00000)
 780 #define   EMMC_A_RESERVED_98_68                    (0x40c6a)
 781 #define P_EMMC_A_RESERVED_98_68                    (volatile uint32_t *)((0x40c6a  << 2) + 0xffd00000)
 782 #define   EMMC_A_RESERVED_98_69                    (0x40c6b)
 783 #define P_EMMC_A_RESERVED_98_69                    (volatile uint32_t *)((0x40c6b  << 2) + 0xffd00000)
 784 #define   EMMC_A_RESERVED_98_70                    (0x40c6c)
 785 #define P_EMMC_A_RESERVED_98_70                    (volatile uint32_t *)((0x40c6c  << 2) + 0xffd00000)
 786 #define   EMMC_A_RESERVED_98_71                    (0x40c6d)
 787 #define P_EMMC_A_RESERVED_98_71                    (volatile uint32_t *)((0x40c6d  << 2) + 0xffd00000)
 788 #define   EMMC_A_RESERVED_98_72                    (0x40c6e)
 789 #define P_EMMC_A_RESERVED_98_72                    (volatile uint32_t *)((0x40c6e  << 2) + 0xffd00000)
 790 #define   EMMC_A_RESERVED_98_73                    (0x40c6f)
 791 #define P_EMMC_A_RESERVED_98_73                    (volatile uint32_t *)((0x40c6f  << 2) + 0xffd00000)
 792 #define   EMMC_A_RESERVED_98_74                    (0x40c70)
 793 #define P_EMMC_A_RESERVED_98_74                    (volatile uint32_t *)((0x40c70  << 2) + 0xffd00000)
 794 #define   EMMC_A_RESERVED_98_75                    (0x40c71)
 795 #define P_EMMC_A_RESERVED_98_75                    (volatile uint32_t *)((0x40c71  << 2) + 0xffd00000)
 796 #define   EMMC_A_RESERVED_98_76                    (0x40c72)
 797 #define P_EMMC_A_RESERVED_98_76                    (volatile uint32_t *)((0x40c72  << 2) + 0xffd00000)
 798 #define   EMMC_A_RESERVED_98_77                    (0x40c73)
 799 #define P_EMMC_A_RESERVED_98_77                    (volatile uint32_t *)((0x40c73  << 2) + 0xffd00000)
 800 #define   EMMC_A_RESERVED_98_78                    (0x40c74)
 801 #define P_EMMC_A_RESERVED_98_78                    (volatile uint32_t *)((0x40c74  << 2) + 0xffd00000)
 802 #define   EMMC_A_RESERVED_98_79                    (0x40c75)
 803 #define P_EMMC_A_RESERVED_98_79                    (volatile uint32_t *)((0x40c75  << 2) + 0xffd00000)
 804 #define   EMMC_A_RESERVED_98_80                    (0x40c76)
 805 #define P_EMMC_A_RESERVED_98_80                    (volatile uint32_t *)((0x40c76  << 2) + 0xffd00000)
 806 #define   EMMC_A_RESERVED_98_81                    (0x40c77)
 807 #define P_EMMC_A_RESERVED_98_81                    (volatile uint32_t *)((0x40c77  << 2) + 0xffd00000)
 808 #define   EMMC_A_RESERVED_98_82                    (0x40c78)
 809 #define P_EMMC_A_RESERVED_98_82                    (volatile uint32_t *)((0x40c78  << 2) + 0xffd00000)
 810 #define   EMMC_A_RESERVED_98_83                    (0x40c79)
 811 #define P_EMMC_A_RESERVED_98_83                    (volatile uint32_t *)((0x40c79  << 2) + 0xffd00000)
 812 #define   EMMC_A_RESERVED_98_84                    (0x40c7a)
 813 #define P_EMMC_A_RESERVED_98_84                    (volatile uint32_t *)((0x40c7a  << 2) + 0xffd00000)
 814 #define   EMMC_A_RESERVED_98_85                    (0x40c7b)
 815 #define P_EMMC_A_RESERVED_98_85                    (volatile uint32_t *)((0x40c7b  << 2) + 0xffd00000)
 816 #define   EMMC_A_RESERVED_98_86                    (0x40c7c)
 817 #define P_EMMC_A_RESERVED_98_86                    (volatile uint32_t *)((0x40c7c  << 2) + 0xffd00000)
 818 #define   EMMC_A_RESERVED_98_87                    (0x40c7d)
 819 #define P_EMMC_A_RESERVED_98_87                    (volatile uint32_t *)((0x40c7d  << 2) + 0xffd00000)
 820 #define   EMMC_A_RESERVED_98_88                    (0x40c7e)
 821 #define P_EMMC_A_RESERVED_98_88                    (volatile uint32_t *)((0x40c7e  << 2) + 0xffd00000)
 822 #define   EMMC_A_RESERVED_98_89                    (0x40c7f)
 823 #define P_EMMC_A_RESERVED_98_89                    (volatile uint32_t *)((0x40c7f  << 2) + 0xffd00000)
 824 #define   EMMC_A_GDESC_000                         (0x40c80)
 825 #define P_EMMC_A_GDESC_000                         (volatile uint32_t *)((0x40c80  << 2) + 0xffd00000)
 826 #define   EMMC_A_GDESC_001                         (0x40c81)
 827 #define P_EMMC_A_GDESC_001                         (volatile uint32_t *)((0x40c81  << 2) + 0xffd00000)
 828 #define   EMMC_A_GDESC_002                         (0x40c82)
 829 #define P_EMMC_A_GDESC_002                         (volatile uint32_t *)((0x40c82  << 2) + 0xffd00000)
 830 #define   EMMC_A_GDESC_003                         (0x40c83)
 831 #define P_EMMC_A_GDESC_003                         (volatile uint32_t *)((0x40c83  << 2) + 0xffd00000)
 832 #define   EMMC_A_GDESC_004                         (0x40c84)
 833 #define P_EMMC_A_GDESC_004                         (volatile uint32_t *)((0x40c84  << 2) + 0xffd00000)
 834 #define   EMMC_A_GDESC_005                         (0x40c85)
 835 #define P_EMMC_A_GDESC_005                         (volatile uint32_t *)((0x40c85  << 2) + 0xffd00000)
 836 #define   EMMC_A_GDESC_006                         (0x40c86)
 837 #define P_EMMC_A_GDESC_006                         (volatile uint32_t *)((0x40c86  << 2) + 0xffd00000)
 838 #define   EMMC_A_GDESC_007                         (0x40c87)
 839 #define P_EMMC_A_GDESC_007                         (volatile uint32_t *)((0x40c87  << 2) + 0xffd00000)
 840 #define   EMMC_A_GDESC_008                         (0x40c88)
 841 #define P_EMMC_A_GDESC_008                         (volatile uint32_t *)((0x40c88  << 2) + 0xffd00000)
 842 #define   EMMC_A_GDESC_009                         (0x40c89)
 843 #define P_EMMC_A_GDESC_009                         (volatile uint32_t *)((0x40c89  << 2) + 0xffd00000)
 844 #define   EMMC_A_GDESC_010                         (0x40c8a)
 845 #define P_EMMC_A_GDESC_010                         (volatile uint32_t *)((0x40c8a  << 2) + 0xffd00000)
 846 #define   EMMC_A_GDESC_011                         (0x40c8b)
 847 #define P_EMMC_A_GDESC_011                         (volatile uint32_t *)((0x40c8b  << 2) + 0xffd00000)
 848 #define   EMMC_A_GDESC_012                         (0x40c8c)
 849 #define P_EMMC_A_GDESC_012                         (volatile uint32_t *)((0x40c8c  << 2) + 0xffd00000)
 850 #define   EMMC_A_GDESC_013                         (0x40c8d)
 851 #define P_EMMC_A_GDESC_013                         (volatile uint32_t *)((0x40c8d  << 2) + 0xffd00000)
 852 #define   EMMC_A_GDESC_014                         (0x40c8e)
 853 #define P_EMMC_A_GDESC_014                         (volatile uint32_t *)((0x40c8e  << 2) + 0xffd00000)
 854 #define   EMMC_A_GDESC_015                         (0x40c8f)
 855 #define P_EMMC_A_GDESC_015                         (volatile uint32_t *)((0x40c8f  << 2) + 0xffd00000)
 856 #define   EMMC_A_GDESC_016                         (0x40c90)
 857 #define P_EMMC_A_GDESC_016                         (volatile uint32_t *)((0x40c90  << 2) + 0xffd00000)
 858 #define   EMMC_A_GDESC_017                         (0x40c91)
 859 #define P_EMMC_A_GDESC_017                         (volatile uint32_t *)((0x40c91  << 2) + 0xffd00000)
 860 #define   EMMC_A_GDESC_018                         (0x40c92)
 861 #define P_EMMC_A_GDESC_018                         (volatile uint32_t *)((0x40c92  << 2) + 0xffd00000)
 862 #define   EMMC_A_GDESC_019                         (0x40c93)
 863 #define P_EMMC_A_GDESC_019                         (volatile uint32_t *)((0x40c93  << 2) + 0xffd00000)
 864 #define   EMMC_A_GDESC_020                         (0x40c94)
 865 #define P_EMMC_A_GDESC_020                         (volatile uint32_t *)((0x40c94  << 2) + 0xffd00000)
 866 #define   EMMC_A_GDESC_021                         (0x40c95)
 867 #define P_EMMC_A_GDESC_021                         (volatile uint32_t *)((0x40c95  << 2) + 0xffd00000)
 868 #define   EMMC_A_GDESC_022                         (0x40c96)
 869 #define P_EMMC_A_GDESC_022                         (volatile uint32_t *)((0x40c96  << 2) + 0xffd00000)
 870 #define   EMMC_A_GDESC_023                         (0x40c97)
 871 #define P_EMMC_A_GDESC_023                         (volatile uint32_t *)((0x40c97  << 2) + 0xffd00000)
 872 #define   EMMC_A_GDESC_024                         (0x40c98)
 873 #define P_EMMC_A_GDESC_024                         (volatile uint32_t *)((0x40c98  << 2) + 0xffd00000)
 874 #define   EMMC_A_GDESC_025                         (0x40c99)
 875 #define P_EMMC_A_GDESC_025                         (volatile uint32_t *)((0x40c99  << 2) + 0xffd00000)
 876 #define   EMMC_A_GDESC_026                         (0x40c9a)
 877 #define P_EMMC_A_GDESC_026                         (volatile uint32_t *)((0x40c9a  << 2) + 0xffd00000)
 878 #define   EMMC_A_GDESC_027                         (0x40c9b)
 879 #define P_EMMC_A_GDESC_027                         (volatile uint32_t *)((0x40c9b  << 2) + 0xffd00000)
 880 #define   EMMC_A_GDESC_028                         (0x40c9c)
 881 #define P_EMMC_A_GDESC_028                         (volatile uint32_t *)((0x40c9c  << 2) + 0xffd00000)
 882 #define   EMMC_A_GDESC_029                         (0x40c9d)
 883 #define P_EMMC_A_GDESC_029                         (volatile uint32_t *)((0x40c9d  << 2) + 0xffd00000)
 884 #define   EMMC_A_GDESC_030                         (0x40c9e)
 885 #define P_EMMC_A_GDESC_030                         (volatile uint32_t *)((0x40c9e  << 2) + 0xffd00000)
 886 #define   EMMC_A_GDESC_031                         (0x40c9f)
 887 #define P_EMMC_A_GDESC_031                         (volatile uint32_t *)((0x40c9f  << 2) + 0xffd00000)
 888 #define   EMMC_A_GDESC_032                         (0x40ca0)
 889 #define P_EMMC_A_GDESC_032                         (volatile uint32_t *)((0x40ca0  << 2) + 0xffd00000)
 890 #define   EMMC_A_GDESC_033                         (0x40ca1)
 891 #define P_EMMC_A_GDESC_033                         (volatile uint32_t *)((0x40ca1  << 2) + 0xffd00000)
 892 #define   EMMC_A_GDESC_034                         (0x40ca2)
 893 #define P_EMMC_A_GDESC_034                         (volatile uint32_t *)((0x40ca2  << 2) + 0xffd00000)
 894 #define   EMMC_A_GDESC_035                         (0x40ca3)
 895 #define P_EMMC_A_GDESC_035                         (volatile uint32_t *)((0x40ca3  << 2) + 0xffd00000)
 896 #define   EMMC_A_GDESC_036                         (0x40ca4)
 897 #define P_EMMC_A_GDESC_036                         (volatile uint32_t *)((0x40ca4  << 2) + 0xffd00000)
 898 #define   EMMC_A_GDESC_037                         (0x40ca5)
 899 #define P_EMMC_A_GDESC_037                         (volatile uint32_t *)((0x40ca5  << 2) + 0xffd00000)
 900 #define   EMMC_A_GDESC_038                         (0x40ca6)
 901 #define P_EMMC_A_GDESC_038                         (volatile uint32_t *)((0x40ca6  << 2) + 0xffd00000)
 902 #define   EMMC_A_GDESC_039                         (0x40ca7)
 903 #define P_EMMC_A_GDESC_039                         (volatile uint32_t *)((0x40ca7  << 2) + 0xffd00000)
 904 #define   EMMC_A_GDESC_040                         (0x40ca8)
 905 #define P_EMMC_A_GDESC_040                         (volatile uint32_t *)((0x40ca8  << 2) + 0xffd00000)
 906 #define   EMMC_A_GDESC_041                         (0x40ca9)
 907 #define P_EMMC_A_GDESC_041                         (volatile uint32_t *)((0x40ca9  << 2) + 0xffd00000)
 908 #define   EMMC_A_GDESC_042                         (0x40caa)
 909 #define P_EMMC_A_GDESC_042                         (volatile uint32_t *)((0x40caa  << 2) + 0xffd00000)
 910 #define   EMMC_A_GDESC_043                         (0x40cab)
 911 #define P_EMMC_A_GDESC_043                         (volatile uint32_t *)((0x40cab  << 2) + 0xffd00000)
 912 #define   EMMC_A_GDESC_044                         (0x40cac)
 913 #define P_EMMC_A_GDESC_044                         (volatile uint32_t *)((0x40cac  << 2) + 0xffd00000)
 914 #define   EMMC_A_GDESC_045                         (0x40cad)
 915 #define P_EMMC_A_GDESC_045                         (volatile uint32_t *)((0x40cad  << 2) + 0xffd00000)
 916 #define   EMMC_A_GDESC_046                         (0x40cae)
 917 #define P_EMMC_A_GDESC_046                         (volatile uint32_t *)((0x40cae  << 2) + 0xffd00000)
 918 #define   EMMC_A_GDESC_047                         (0x40caf)
 919 #define P_EMMC_A_GDESC_047                         (volatile uint32_t *)((0x40caf  << 2) + 0xffd00000)
 920 #define   EMMC_A_GDESC_048                         (0x40cb0)
 921 #define P_EMMC_A_GDESC_048                         (volatile uint32_t *)((0x40cb0  << 2) + 0xffd00000)
 922 #define   EMMC_A_GDESC_049                         (0x40cb1)
 923 #define P_EMMC_A_GDESC_049                         (volatile uint32_t *)((0x40cb1  << 2) + 0xffd00000)
 924 #define   EMMC_A_GDESC_050                         (0x40cb2)
 925 #define P_EMMC_A_GDESC_050                         (volatile uint32_t *)((0x40cb2  << 2) + 0xffd00000)
 926 #define   EMMC_A_GDESC_051                         (0x40cb3)
 927 #define P_EMMC_A_GDESC_051                         (volatile uint32_t *)((0x40cb3  << 2) + 0xffd00000)
 928 #define   EMMC_A_GDESC_052                         (0x40cb4)
 929 #define P_EMMC_A_GDESC_052                         (volatile uint32_t *)((0x40cb4  << 2) + 0xffd00000)
 930 #define   EMMC_A_GDESC_053                         (0x40cb5)
 931 #define P_EMMC_A_GDESC_053                         (volatile uint32_t *)((0x40cb5  << 2) + 0xffd00000)
 932 #define   EMMC_A_GDESC_054                         (0x40cb6)
 933 #define P_EMMC_A_GDESC_054                         (volatile uint32_t *)((0x40cb6  << 2) + 0xffd00000)
 934 #define   EMMC_A_GDESC_055                         (0x40cb7)
 935 #define P_EMMC_A_GDESC_055                         (volatile uint32_t *)((0x40cb7  << 2) + 0xffd00000)
 936 #define   EMMC_A_GDESC_056                         (0x40cb8)
 937 #define P_EMMC_A_GDESC_056                         (volatile uint32_t *)((0x40cb8  << 2) + 0xffd00000)
 938 #define   EMMC_A_GDESC_057                         (0x40cb9)
 939 #define P_EMMC_A_GDESC_057                         (volatile uint32_t *)((0x40cb9  << 2) + 0xffd00000)
 940 #define   EMMC_A_GDESC_058                         (0x40cba)
 941 #define P_EMMC_A_GDESC_058                         (volatile uint32_t *)((0x40cba  << 2) + 0xffd00000)
 942 #define   EMMC_A_GDESC_059                         (0x40cbb)
 943 #define P_EMMC_A_GDESC_059                         (volatile uint32_t *)((0x40cbb  << 2) + 0xffd00000)
 944 #define   EMMC_A_GDESC_060                         (0x40cbc)
 945 #define P_EMMC_A_GDESC_060                         (volatile uint32_t *)((0x40cbc  << 2) + 0xffd00000)
 946 #define   EMMC_A_GDESC_061                         (0x40cbd)
 947 #define P_EMMC_A_GDESC_061                         (volatile uint32_t *)((0x40cbd  << 2) + 0xffd00000)
 948 #define   EMMC_A_GDESC_062                         (0x40cbe)
 949 #define P_EMMC_A_GDESC_062                         (volatile uint32_t *)((0x40cbe  << 2) + 0xffd00000)
 950 #define   EMMC_A_GDESC_063                         (0x40cbf)
 951 #define P_EMMC_A_GDESC_063                         (volatile uint32_t *)((0x40cbf  << 2) + 0xffd00000)
 952 #define   EMMC_A_GDESC_064                         (0x40cc0)
 953 #define P_EMMC_A_GDESC_064                         (volatile uint32_t *)((0x40cc0  << 2) + 0xffd00000)
 954 #define   EMMC_A_GDESC_065                         (0x40cc1)
 955 #define P_EMMC_A_GDESC_065                         (volatile uint32_t *)((0x40cc1  << 2) + 0xffd00000)
 956 #define   EMMC_A_GDESC_066                         (0x40cc2)
 957 #define P_EMMC_A_GDESC_066                         (volatile uint32_t *)((0x40cc2  << 2) + 0xffd00000)
 958 #define   EMMC_A_GDESC_067                         (0x40cc3)
 959 #define P_EMMC_A_GDESC_067                         (volatile uint32_t *)((0x40cc3  << 2) + 0xffd00000)
 960 #define   EMMC_A_GDESC_068                         (0x40cc4)
 961 #define P_EMMC_A_GDESC_068                         (volatile uint32_t *)((0x40cc4  << 2) + 0xffd00000)
 962 #define   EMMC_A_GDESC_069                         (0x40cc5)
 963 #define P_EMMC_A_GDESC_069                         (volatile uint32_t *)((0x40cc5  << 2) + 0xffd00000)
 964 #define   EMMC_A_GDESC_070                         (0x40cc6)
 965 #define P_EMMC_A_GDESC_070                         (volatile uint32_t *)((0x40cc6  << 2) + 0xffd00000)
 966 #define   EMMC_A_GDESC_071                         (0x40cc7)
 967 #define P_EMMC_A_GDESC_071                         (volatile uint32_t *)((0x40cc7  << 2) + 0xffd00000)
 968 #define   EMMC_A_GDESC_072                         (0x40cc8)
 969 #define P_EMMC_A_GDESC_072                         (volatile uint32_t *)((0x40cc8  << 2) + 0xffd00000)
 970 #define   EMMC_A_GDESC_073                         (0x40cc9)
 971 #define P_EMMC_A_GDESC_073                         (volatile uint32_t *)((0x40cc9  << 2) + 0xffd00000)
 972 #define   EMMC_A_GDESC_074                         (0x40cca)
 973 #define P_EMMC_A_GDESC_074                         (volatile uint32_t *)((0x40cca  << 2) + 0xffd00000)
 974 #define   EMMC_A_GDESC_075                         (0x40ccb)
 975 #define P_EMMC_A_GDESC_075                         (volatile uint32_t *)((0x40ccb  << 2) + 0xffd00000)
 976 #define   EMMC_A_GDESC_076                         (0x40ccc)
 977 #define P_EMMC_A_GDESC_076                         (volatile uint32_t *)((0x40ccc  << 2) + 0xffd00000)
 978 #define   EMMC_A_GDESC_077                         (0x40ccd)
 979 #define P_EMMC_A_GDESC_077                         (volatile uint32_t *)((0x40ccd  << 2) + 0xffd00000)
 980 #define   EMMC_A_GDESC_078                         (0x40cce)
 981 #define P_EMMC_A_GDESC_078                         (volatile uint32_t *)((0x40cce  << 2) + 0xffd00000)
 982 #define   EMMC_A_GDESC_079                         (0x40ccf)
 983 #define P_EMMC_A_GDESC_079                         (volatile uint32_t *)((0x40ccf  << 2) + 0xffd00000)
 984 #define   EMMC_A_GDESC_080                         (0x40cd0)
 985 #define P_EMMC_A_GDESC_080                         (volatile uint32_t *)((0x40cd0  << 2) + 0xffd00000)
 986 #define   EMMC_A_GDESC_081                         (0x40cd1)
 987 #define P_EMMC_A_GDESC_081                         (volatile uint32_t *)((0x40cd1  << 2) + 0xffd00000)
 988 #define   EMMC_A_GDESC_082                         (0x40cd2)
 989 #define P_EMMC_A_GDESC_082                         (volatile uint32_t *)((0x40cd2  << 2) + 0xffd00000)
 990 #define   EMMC_A_GDESC_083                         (0x40cd3)
 991 #define P_EMMC_A_GDESC_083                         (volatile uint32_t *)((0x40cd3  << 2) + 0xffd00000)
 992 #define   EMMC_A_GDESC_084                         (0x40cd4)
 993 #define P_EMMC_A_GDESC_084                         (volatile uint32_t *)((0x40cd4  << 2) + 0xffd00000)
 994 #define   EMMC_A_GDESC_085                         (0x40cd5)
 995 #define P_EMMC_A_GDESC_085                         (volatile uint32_t *)((0x40cd5  << 2) + 0xffd00000)
 996 #define   EMMC_A_GDESC_086                         (0x40cd6)
 997 #define P_EMMC_A_GDESC_086                         (volatile uint32_t *)((0x40cd6  << 2) + 0xffd00000)
 998 #define   EMMC_A_GDESC_087                         (0x40cd7)
 999 #define P_EMMC_A_GDESC_087                         (volatile uint32_t *)((0x40cd7  << 2) + 0xffd00000)
1000 #define   EMMC_A_GDESC_088                         (0x40cd8)
1001 #define P_EMMC_A_GDESC_088                         (volatile uint32_t *)((0x40cd8  << 2) + 0xffd00000)
1002 #define   EMMC_A_GDESC_089                         (0x40cd9)
1003 #define P_EMMC_A_GDESC_089                         (volatile uint32_t *)((0x40cd9  << 2) + 0xffd00000)
1004 #define   EMMC_A_GDESC_090                         (0x40cda)
1005 #define P_EMMC_A_GDESC_090                         (volatile uint32_t *)((0x40cda  << 2) + 0xffd00000)
1006 #define   EMMC_A_GDESC_091                         (0x40cdb)
1007 #define P_EMMC_A_GDESC_091                         (volatile uint32_t *)((0x40cdb  << 2) + 0xffd00000)
1008 #define   EMMC_A_GDESC_092                         (0x40cdc)
1009 #define P_EMMC_A_GDESC_092                         (volatile uint32_t *)((0x40cdc  << 2) + 0xffd00000)
1010 #define   EMMC_A_GDESC_093                         (0x40cdd)
1011 #define P_EMMC_A_GDESC_093                         (volatile uint32_t *)((0x40cdd  << 2) + 0xffd00000)
1012 #define   EMMC_A_GDESC_094                         (0x40cde)
1013 #define P_EMMC_A_GDESC_094                         (volatile uint32_t *)((0x40cde  << 2) + 0xffd00000)
1014 #define   EMMC_A_GDESC_095                         (0x40cdf)
1015 #define P_EMMC_A_GDESC_095                         (volatile uint32_t *)((0x40cdf  << 2) + 0xffd00000)
1016 #define   EMMC_A_GDESC_096                         (0x40ce0)
1017 #define P_EMMC_A_GDESC_096                         (volatile uint32_t *)((0x40ce0  << 2) + 0xffd00000)
1018 #define   EMMC_A_GDESC_097                         (0x40ce1)
1019 #define P_EMMC_A_GDESC_097                         (volatile uint32_t *)((0x40ce1  << 2) + 0xffd00000)
1020 #define   EMMC_A_GDESC_098                         (0x40ce2)
1021 #define P_EMMC_A_GDESC_098                         (volatile uint32_t *)((0x40ce2  << 2) + 0xffd00000)
1022 #define   EMMC_A_GDESC_099                         (0x40ce3)
1023 #define P_EMMC_A_GDESC_099                         (volatile uint32_t *)((0x40ce3  << 2) + 0xffd00000)
1024 #define   EMMC_A_GDESC_100                         (0x40ce4)
1025 #define P_EMMC_A_GDESC_100                         (volatile uint32_t *)((0x40ce4  << 2) + 0xffd00000)
1026 #define   EMMC_A_GDESC_101                         (0x40ce5)
1027 #define P_EMMC_A_GDESC_101                         (volatile uint32_t *)((0x40ce5  << 2) + 0xffd00000)
1028 #define   EMMC_A_GDESC_102                         (0x40ce6)
1029 #define P_EMMC_A_GDESC_102                         (volatile uint32_t *)((0x40ce6  << 2) + 0xffd00000)
1030 #define   EMMC_A_GDESC_103                         (0x40ce7)
1031 #define P_EMMC_A_GDESC_103                         (volatile uint32_t *)((0x40ce7  << 2) + 0xffd00000)
1032 #define   EMMC_A_GDESC_104                         (0x40ce8)
1033 #define P_EMMC_A_GDESC_104                         (volatile uint32_t *)((0x40ce8  << 2) + 0xffd00000)
1034 #define   EMMC_A_GDESC_105                         (0x40ce9)
1035 #define P_EMMC_A_GDESC_105                         (volatile uint32_t *)((0x40ce9  << 2) + 0xffd00000)
1036 #define   EMMC_A_GDESC_106                         (0x40cea)
1037 #define P_EMMC_A_GDESC_106                         (volatile uint32_t *)((0x40cea  << 2) + 0xffd00000)
1038 #define   EMMC_A_GDESC_107                         (0x40ceb)
1039 #define P_EMMC_A_GDESC_107                         (volatile uint32_t *)((0x40ceb  << 2) + 0xffd00000)
1040 #define   EMMC_A_GDESC_108                         (0x40cec)
1041 #define P_EMMC_A_GDESC_108                         (volatile uint32_t *)((0x40cec  << 2) + 0xffd00000)
1042 #define   EMMC_A_GDESC_109                         (0x40ced)
1043 #define P_EMMC_A_GDESC_109                         (volatile uint32_t *)((0x40ced  << 2) + 0xffd00000)
1044 #define   EMMC_A_GDESC_110                         (0x40cee)
1045 #define P_EMMC_A_GDESC_110                         (volatile uint32_t *)((0x40cee  << 2) + 0xffd00000)
1046 #define   EMMC_A_GDESC_111                         (0x40cef)
1047 #define P_EMMC_A_GDESC_111                         (volatile uint32_t *)((0x40cef  << 2) + 0xffd00000)
1048 #define   EMMC_A_GDESC_112                         (0x40cf0)
1049 #define P_EMMC_A_GDESC_112                         (volatile uint32_t *)((0x40cf0  << 2) + 0xffd00000)
1050 #define   EMMC_A_GDESC_113                         (0x40cf1)
1051 #define P_EMMC_A_GDESC_113                         (volatile uint32_t *)((0x40cf1  << 2) + 0xffd00000)
1052 #define   EMMC_A_GDESC_114                         (0x40cf2)
1053 #define P_EMMC_A_GDESC_114                         (volatile uint32_t *)((0x40cf2  << 2) + 0xffd00000)
1054 #define   EMMC_A_GDESC_115                         (0x40cf3)
1055 #define P_EMMC_A_GDESC_115                         (volatile uint32_t *)((0x40cf3  << 2) + 0xffd00000)
1056 #define   EMMC_A_GDESC_116                         (0x40cf4)
1057 #define P_EMMC_A_GDESC_116                         (volatile uint32_t *)((0x40cf4  << 2) + 0xffd00000)
1058 #define   EMMC_A_GDESC_117                         (0x40cf5)
1059 #define P_EMMC_A_GDESC_117                         (volatile uint32_t *)((0x40cf5  << 2) + 0xffd00000)
1060 #define   EMMC_A_GDESC_118                         (0x40cf6)
1061 #define P_EMMC_A_GDESC_118                         (volatile uint32_t *)((0x40cf6  << 2) + 0xffd00000)
1062 #define   EMMC_A_GDESC_119                         (0x40cf7)
1063 #define P_EMMC_A_GDESC_119                         (volatile uint32_t *)((0x40cf7  << 2) + 0xffd00000)
1064 #define   EMMC_A_GDESC_120                         (0x40cf8)
1065 #define P_EMMC_A_GDESC_120                         (volatile uint32_t *)((0x40cf8  << 2) + 0xffd00000)
1066 #define   EMMC_A_GDESC_121                         (0x40cf9)
1067 #define P_EMMC_A_GDESC_121                         (volatile uint32_t *)((0x40cf9  << 2) + 0xffd00000)
1068 #define   EMMC_A_GDESC_122                         (0x40cfa)
1069 #define P_EMMC_A_GDESC_122                         (volatile uint32_t *)((0x40cfa  << 2) + 0xffd00000)
1070 #define   EMMC_A_GDESC_123                         (0x40cfb)
1071 #define P_EMMC_A_GDESC_123                         (volatile uint32_t *)((0x40cfb  << 2) + 0xffd00000)
1072 #define   EMMC_A_GDESC_124                         (0x40cfc)
1073 #define P_EMMC_A_GDESC_124                         (volatile uint32_t *)((0x40cfc  << 2) + 0xffd00000)
1074 #define   EMMC_A_GDESC_125                         (0x40cfd)
1075 #define P_EMMC_A_GDESC_125                         (volatile uint32_t *)((0x40cfd  << 2) + 0xffd00000)
1076 #define   EMMC_A_GDESC_126                         (0x40cfe)
1077 #define P_EMMC_A_GDESC_126                         (volatile uint32_t *)((0x40cfe  << 2) + 0xffd00000)
1078 #define   EMMC_A_GDESC_127                         (0x40cff)
1079 #define P_EMMC_A_GDESC_127                         (volatile uint32_t *)((0x40cff  << 2) + 0xffd00000)
1080 #define   EMMC_A_GPING_000                         (0x40d00)
1081 #define P_EMMC_A_GPING_000                         (volatile uint32_t *)((0x40d00  << 2) + 0xffd00000)
1082 #define   EMMC_A_GPING_001                         (0x40d01)
1083 #define P_EMMC_A_GPING_001                         (volatile uint32_t *)((0x40d01  << 2) + 0xffd00000)
1084 #define   EMMC_A_GPING_002                         (0x40d02)
1085 #define P_EMMC_A_GPING_002                         (volatile uint32_t *)((0x40d02  << 2) + 0xffd00000)
1086 #define   EMMC_A_GPING_003                         (0x40d03)
1087 #define P_EMMC_A_GPING_003                         (volatile uint32_t *)((0x40d03  << 2) + 0xffd00000)
1088 #define   EMMC_A_GPING_004                         (0x40d04)
1089 #define P_EMMC_A_GPING_004                         (volatile uint32_t *)((0x40d04  << 2) + 0xffd00000)
1090 #define   EMMC_A_GPING_005                         (0x40d05)
1091 #define P_EMMC_A_GPING_005                         (volatile uint32_t *)((0x40d05  << 2) + 0xffd00000)
1092 #define   EMMC_A_GPING_006                         (0x40d06)
1093 #define P_EMMC_A_GPING_006                         (volatile uint32_t *)((0x40d06  << 2) + 0xffd00000)
1094 #define   EMMC_A_GPING_007                         (0x40d07)
1095 #define P_EMMC_A_GPING_007                         (volatile uint32_t *)((0x40d07  << 2) + 0xffd00000)
1096 #define   EMMC_A_GPING_008                         (0x40d08)
1097 #define P_EMMC_A_GPING_008                         (volatile uint32_t *)((0x40d08  << 2) + 0xffd00000)
1098 #define   EMMC_A_GPING_009                         (0x40d09)
1099 #define P_EMMC_A_GPING_009                         (volatile uint32_t *)((0x40d09  << 2) + 0xffd00000)
1100 #define   EMMC_A_GPING_010                         (0x40d0a)
1101 #define P_EMMC_A_GPING_010                         (volatile uint32_t *)((0x40d0a  << 2) + 0xffd00000)
1102 #define   EMMC_A_GPING_011                         (0x40d0b)
1103 #define P_EMMC_A_GPING_011                         (volatile uint32_t *)((0x40d0b  << 2) + 0xffd00000)
1104 #define   EMMC_A_GPING_012                         (0x40d0c)
1105 #define P_EMMC_A_GPING_012                         (volatile uint32_t *)((0x40d0c  << 2) + 0xffd00000)
1106 #define   EMMC_A_GPING_013                         (0x40d0d)
1107 #define P_EMMC_A_GPING_013                         (volatile uint32_t *)((0x40d0d  << 2) + 0xffd00000)
1108 #define   EMMC_A_GPING_014                         (0x40d0e)
1109 #define P_EMMC_A_GPING_014                         (volatile uint32_t *)((0x40d0e  << 2) + 0xffd00000)
1110 #define   EMMC_A_GPING_015                         (0x40d0f)
1111 #define P_EMMC_A_GPING_015                         (volatile uint32_t *)((0x40d0f  << 2) + 0xffd00000)
1112 #define   EMMC_A_GPING_016                         (0x40d10)
1113 #define P_EMMC_A_GPING_016                         (volatile uint32_t *)((0x40d10  << 2) + 0xffd00000)
1114 #define   EMMC_A_GPING_017                         (0x40d11)
1115 #define P_EMMC_A_GPING_017                         (volatile uint32_t *)((0x40d11  << 2) + 0xffd00000)
1116 #define   EMMC_A_GPING_018                         (0x40d12)
1117 #define P_EMMC_A_GPING_018                         (volatile uint32_t *)((0x40d12  << 2) + 0xffd00000)
1118 #define   EMMC_A_GPING_019                         (0x40d13)
1119 #define P_EMMC_A_GPING_019                         (volatile uint32_t *)((0x40d13  << 2) + 0xffd00000)
1120 #define   EMMC_A_GPING_020                         (0x40d14)
1121 #define P_EMMC_A_GPING_020                         (volatile uint32_t *)((0x40d14  << 2) + 0xffd00000)
1122 #define   EMMC_A_GPING_021                         (0x40d15)
1123 #define P_EMMC_A_GPING_021                         (volatile uint32_t *)((0x40d15  << 2) + 0xffd00000)
1124 #define   EMMC_A_GPING_022                         (0x40d16)
1125 #define P_EMMC_A_GPING_022                         (volatile uint32_t *)((0x40d16  << 2) + 0xffd00000)
1126 #define   EMMC_A_GPING_023                         (0x40d17)
1127 #define P_EMMC_A_GPING_023                         (volatile uint32_t *)((0x40d17  << 2) + 0xffd00000)
1128 #define   EMMC_A_GPING_024                         (0x40d18)
1129 #define P_EMMC_A_GPING_024                         (volatile uint32_t *)((0x40d18  << 2) + 0xffd00000)
1130 #define   EMMC_A_GPING_025                         (0x40d19)
1131 #define P_EMMC_A_GPING_025                         (volatile uint32_t *)((0x40d19  << 2) + 0xffd00000)
1132 #define   EMMC_A_GPING_026                         (0x40d1a)
1133 #define P_EMMC_A_GPING_026                         (volatile uint32_t *)((0x40d1a  << 2) + 0xffd00000)
1134 #define   EMMC_A_GPING_027                         (0x40d1b)
1135 #define P_EMMC_A_GPING_027                         (volatile uint32_t *)((0x40d1b  << 2) + 0xffd00000)
1136 #define   EMMC_A_GPING_028                         (0x40d1c)
1137 #define P_EMMC_A_GPING_028                         (volatile uint32_t *)((0x40d1c  << 2) + 0xffd00000)
1138 #define   EMMC_A_GPING_029                         (0x40d1d)
1139 #define P_EMMC_A_GPING_029                         (volatile uint32_t *)((0x40d1d  << 2) + 0xffd00000)
1140 #define   EMMC_A_GPING_030                         (0x40d1e)
1141 #define P_EMMC_A_GPING_030                         (volatile uint32_t *)((0x40d1e  << 2) + 0xffd00000)
1142 #define   EMMC_A_GPING_031                         (0x40d1f)
1143 #define P_EMMC_A_GPING_031                         (volatile uint32_t *)((0x40d1f  << 2) + 0xffd00000)
1144 #define   EMMC_A_GPING_032                         (0x40d20)
1145 #define P_EMMC_A_GPING_032                         (volatile uint32_t *)((0x40d20  << 2) + 0xffd00000)
1146 #define   EMMC_A_GPING_033                         (0x40d21)
1147 #define P_EMMC_A_GPING_033                         (volatile uint32_t *)((0x40d21  << 2) + 0xffd00000)
1148 #define   EMMC_A_GPING_034                         (0x40d22)
1149 #define P_EMMC_A_GPING_034                         (volatile uint32_t *)((0x40d22  << 2) + 0xffd00000)
1150 #define   EMMC_A_GPING_035                         (0x40d23)
1151 #define P_EMMC_A_GPING_035                         (volatile uint32_t *)((0x40d23  << 2) + 0xffd00000)
1152 #define   EMMC_A_GPING_036                         (0x40d24)
1153 #define P_EMMC_A_GPING_036                         (volatile uint32_t *)((0x40d24  << 2) + 0xffd00000)
1154 #define   EMMC_A_GPING_037                         (0x40d25)
1155 #define P_EMMC_A_GPING_037                         (volatile uint32_t *)((0x40d25  << 2) + 0xffd00000)
1156 #define   EMMC_A_GPING_038                         (0x40d26)
1157 #define P_EMMC_A_GPING_038                         (volatile uint32_t *)((0x40d26  << 2) + 0xffd00000)
1158 #define   EMMC_A_GPING_039                         (0x40d27)
1159 #define P_EMMC_A_GPING_039                         (volatile uint32_t *)((0x40d27  << 2) + 0xffd00000)
1160 #define   EMMC_A_GPING_040                         (0x40d28)
1161 #define P_EMMC_A_GPING_040                         (volatile uint32_t *)((0x40d28  << 2) + 0xffd00000)
1162 #define   EMMC_A_GPING_041                         (0x40d29)
1163 #define P_EMMC_A_GPING_041                         (volatile uint32_t *)((0x40d29  << 2) + 0xffd00000)
1164 #define   EMMC_A_GPING_042                         (0x40d2a)
1165 #define P_EMMC_A_GPING_042                         (volatile uint32_t *)((0x40d2a  << 2) + 0xffd00000)
1166 #define   EMMC_A_GPING_043                         (0x40d2b)
1167 #define P_EMMC_A_GPING_043                         (volatile uint32_t *)((0x40d2b  << 2) + 0xffd00000)
1168 #define   EMMC_A_GPING_044                         (0x40d2c)
1169 #define P_EMMC_A_GPING_044                         (volatile uint32_t *)((0x40d2c  << 2) + 0xffd00000)
1170 #define   EMMC_A_GPING_045                         (0x40d2d)
1171 #define P_EMMC_A_GPING_045                         (volatile uint32_t *)((0x40d2d  << 2) + 0xffd00000)
1172 #define   EMMC_A_GPING_046                         (0x40d2e)
1173 #define P_EMMC_A_GPING_046                         (volatile uint32_t *)((0x40d2e  << 2) + 0xffd00000)
1174 #define   EMMC_A_GPING_047                         (0x40d2f)
1175 #define P_EMMC_A_GPING_047                         (volatile uint32_t *)((0x40d2f  << 2) + 0xffd00000)
1176 #define   EMMC_A_GPING_048                         (0x40d30)
1177 #define P_EMMC_A_GPING_048                         (volatile uint32_t *)((0x40d30  << 2) + 0xffd00000)
1178 #define   EMMC_A_GPING_049                         (0x40d31)
1179 #define P_EMMC_A_GPING_049                         (volatile uint32_t *)((0x40d31  << 2) + 0xffd00000)
1180 #define   EMMC_A_GPING_050                         (0x40d32)
1181 #define P_EMMC_A_GPING_050                         (volatile uint32_t *)((0x40d32  << 2) + 0xffd00000)
1182 #define   EMMC_A_GPING_051                         (0x40d33)
1183 #define P_EMMC_A_GPING_051                         (volatile uint32_t *)((0x40d33  << 2) + 0xffd00000)
1184 #define   EMMC_A_GPING_052                         (0x40d34)
1185 #define P_EMMC_A_GPING_052                         (volatile uint32_t *)((0x40d34  << 2) + 0xffd00000)
1186 #define   EMMC_A_GPING_053                         (0x40d35)
1187 #define P_EMMC_A_GPING_053                         (volatile uint32_t *)((0x40d35  << 2) + 0xffd00000)
1188 #define   EMMC_A_GPING_054                         (0x40d36)
1189 #define P_EMMC_A_GPING_054                         (volatile uint32_t *)((0x40d36  << 2) + 0xffd00000)
1190 #define   EMMC_A_GPING_055                         (0x40d37)
1191 #define P_EMMC_A_GPING_055                         (volatile uint32_t *)((0x40d37  << 2) + 0xffd00000)
1192 #define   EMMC_A_GPING_056                         (0x40d38)
1193 #define P_EMMC_A_GPING_056                         (volatile uint32_t *)((0x40d38  << 2) + 0xffd00000)
1194 #define   EMMC_A_GPING_057                         (0x40d39)
1195 #define P_EMMC_A_GPING_057                         (volatile uint32_t *)((0x40d39  << 2) + 0xffd00000)
1196 #define   EMMC_A_GPING_058                         (0x40d3a)
1197 #define P_EMMC_A_GPING_058                         (volatile uint32_t *)((0x40d3a  << 2) + 0xffd00000)
1198 #define   EMMC_A_GPING_059                         (0x40d3b)
1199 #define P_EMMC_A_GPING_059                         (volatile uint32_t *)((0x40d3b  << 2) + 0xffd00000)
1200 #define   EMMC_A_GPING_060                         (0x40d3c)
1201 #define P_EMMC_A_GPING_060                         (volatile uint32_t *)((0x40d3c  << 2) + 0xffd00000)
1202 #define   EMMC_A_GPING_061                         (0x40d3d)
1203 #define P_EMMC_A_GPING_061                         (volatile uint32_t *)((0x40d3d  << 2) + 0xffd00000)
1204 #define   EMMC_A_GPING_062                         (0x40d3e)
1205 #define P_EMMC_A_GPING_062                         (volatile uint32_t *)((0x40d3e  << 2) + 0xffd00000)
1206 #define   EMMC_A_GPING_063                         (0x40d3f)
1207 #define P_EMMC_A_GPING_063                         (volatile uint32_t *)((0x40d3f  << 2) + 0xffd00000)
1208 #define   EMMC_A_GPING_064                         (0x40d40)
1209 #define P_EMMC_A_GPING_064                         (volatile uint32_t *)((0x40d40  << 2) + 0xffd00000)
1210 #define   EMMC_A_GPING_065                         (0x40d41)
1211 #define P_EMMC_A_GPING_065                         (volatile uint32_t *)((0x40d41  << 2) + 0xffd00000)
1212 #define   EMMC_A_GPING_066                         (0x40d42)
1213 #define P_EMMC_A_GPING_066                         (volatile uint32_t *)((0x40d42  << 2) + 0xffd00000)
1214 #define   EMMC_A_GPING_067                         (0x40d43)
1215 #define P_EMMC_A_GPING_067                         (volatile uint32_t *)((0x40d43  << 2) + 0xffd00000)
1216 #define   EMMC_A_GPING_068                         (0x40d44)
1217 #define P_EMMC_A_GPING_068                         (volatile uint32_t *)((0x40d44  << 2) + 0xffd00000)
1218 #define   EMMC_A_GPING_069                         (0x40d45)
1219 #define P_EMMC_A_GPING_069                         (volatile uint32_t *)((0x40d45  << 2) + 0xffd00000)
1220 #define   EMMC_A_GPING_070                         (0x40d46)
1221 #define P_EMMC_A_GPING_070                         (volatile uint32_t *)((0x40d46  << 2) + 0xffd00000)
1222 #define   EMMC_A_GPING_071                         (0x40d47)
1223 #define P_EMMC_A_GPING_071                         (volatile uint32_t *)((0x40d47  << 2) + 0xffd00000)
1224 #define   EMMC_A_GPING_072                         (0x40d48)
1225 #define P_EMMC_A_GPING_072                         (volatile uint32_t *)((0x40d48  << 2) + 0xffd00000)
1226 #define   EMMC_A_GPING_073                         (0x40d49)
1227 #define P_EMMC_A_GPING_073                         (volatile uint32_t *)((0x40d49  << 2) + 0xffd00000)
1228 #define   EMMC_A_GPING_074                         (0x40d4a)
1229 #define P_EMMC_A_GPING_074                         (volatile uint32_t *)((0x40d4a  << 2) + 0xffd00000)
1230 #define   EMMC_A_GPING_075                         (0x40d4b)
1231 #define P_EMMC_A_GPING_075                         (volatile uint32_t *)((0x40d4b  << 2) + 0xffd00000)
1232 #define   EMMC_A_GPING_076                         (0x40d4c)
1233 #define P_EMMC_A_GPING_076                         (volatile uint32_t *)((0x40d4c  << 2) + 0xffd00000)
1234 #define   EMMC_A_GPING_077                         (0x40d4d)
1235 #define P_EMMC_A_GPING_077                         (volatile uint32_t *)((0x40d4d  << 2) + 0xffd00000)
1236 #define   EMMC_A_GPING_078                         (0x40d4e)
1237 #define P_EMMC_A_GPING_078                         (volatile uint32_t *)((0x40d4e  << 2) + 0xffd00000)
1238 #define   EMMC_A_GPING_079                         (0x40d4f)
1239 #define P_EMMC_A_GPING_079                         (volatile uint32_t *)((0x40d4f  << 2) + 0xffd00000)
1240 #define   EMMC_A_GPING_080                         (0x40d50)
1241 #define P_EMMC_A_GPING_080                         (volatile uint32_t *)((0x40d50  << 2) + 0xffd00000)
1242 #define   EMMC_A_GPING_081                         (0x40d51)
1243 #define P_EMMC_A_GPING_081                         (volatile uint32_t *)((0x40d51  << 2) + 0xffd00000)
1244 #define   EMMC_A_GPING_082                         (0x40d52)
1245 #define P_EMMC_A_GPING_082                         (volatile uint32_t *)((0x40d52  << 2) + 0xffd00000)
1246 #define   EMMC_A_GPING_083                         (0x40d53)
1247 #define P_EMMC_A_GPING_083                         (volatile uint32_t *)((0x40d53  << 2) + 0xffd00000)
1248 #define   EMMC_A_GPING_084                         (0x40d54)
1249 #define P_EMMC_A_GPING_084                         (volatile uint32_t *)((0x40d54  << 2) + 0xffd00000)
1250 #define   EMMC_A_GPING_085                         (0x40d55)
1251 #define P_EMMC_A_GPING_085                         (volatile uint32_t *)((0x40d55  << 2) + 0xffd00000)
1252 #define   EMMC_A_GPING_086                         (0x40d56)
1253 #define P_EMMC_A_GPING_086                         (volatile uint32_t *)((0x40d56  << 2) + 0xffd00000)
1254 #define   EMMC_A_GPING_087                         (0x40d57)
1255 #define P_EMMC_A_GPING_087                         (volatile uint32_t *)((0x40d57  << 2) + 0xffd00000)
1256 #define   EMMC_A_GPING_088                         (0x40d58)
1257 #define P_EMMC_A_GPING_088                         (volatile uint32_t *)((0x40d58  << 2) + 0xffd00000)
1258 #define   EMMC_A_GPING_089                         (0x40d59)
1259 #define P_EMMC_A_GPING_089                         (volatile uint32_t *)((0x40d59  << 2) + 0xffd00000)
1260 #define   EMMC_A_GPING_090                         (0x40d5a)
1261 #define P_EMMC_A_GPING_090                         (volatile uint32_t *)((0x40d5a  << 2) + 0xffd00000)
1262 #define   EMMC_A_GPING_091                         (0x40d5b)
1263 #define P_EMMC_A_GPING_091                         (volatile uint32_t *)((0x40d5b  << 2) + 0xffd00000)
1264 #define   EMMC_A_GPING_092                         (0x40d5c)
1265 #define P_EMMC_A_GPING_092                         (volatile uint32_t *)((0x40d5c  << 2) + 0xffd00000)
1266 #define   EMMC_A_GPING_093                         (0x40d5d)
1267 #define P_EMMC_A_GPING_093                         (volatile uint32_t *)((0x40d5d  << 2) + 0xffd00000)
1268 #define   EMMC_A_GPING_094                         (0x40d5e)
1269 #define P_EMMC_A_GPING_094                         (volatile uint32_t *)((0x40d5e  << 2) + 0xffd00000)
1270 #define   EMMC_A_GPING_095                         (0x40d5f)
1271 #define P_EMMC_A_GPING_095                         (volatile uint32_t *)((0x40d5f  << 2) + 0xffd00000)
1272 #define   EMMC_A_GPING_096                         (0x40d60)
1273 #define P_EMMC_A_GPING_096                         (volatile uint32_t *)((0x40d60  << 2) + 0xffd00000)
1274 #define   EMMC_A_GPING_097                         (0x40d61)
1275 #define P_EMMC_A_GPING_097                         (volatile uint32_t *)((0x40d61  << 2) + 0xffd00000)
1276 #define   EMMC_A_GPING_098                         (0x40d62)
1277 #define P_EMMC_A_GPING_098                         (volatile uint32_t *)((0x40d62  << 2) + 0xffd00000)
1278 #define   EMMC_A_GPING_099                         (0x40d63)
1279 #define P_EMMC_A_GPING_099                         (volatile uint32_t *)((0x40d63  << 2) + 0xffd00000)
1280 #define   EMMC_A_GPING_100                         (0x40d64)
1281 #define P_EMMC_A_GPING_100                         (volatile uint32_t *)((0x40d64  << 2) + 0xffd00000)
1282 #define   EMMC_A_GPING_101                         (0x40d65)
1283 #define P_EMMC_A_GPING_101                         (volatile uint32_t *)((0x40d65  << 2) + 0xffd00000)
1284 #define   EMMC_A_GPING_102                         (0x40d66)
1285 #define P_EMMC_A_GPING_102                         (volatile uint32_t *)((0x40d66  << 2) + 0xffd00000)
1286 #define   EMMC_A_GPING_103                         (0x40d67)
1287 #define P_EMMC_A_GPING_103                         (volatile uint32_t *)((0x40d67  << 2) + 0xffd00000)
1288 #define   EMMC_A_GPING_104                         (0x40d68)
1289 #define P_EMMC_A_GPING_104                         (volatile uint32_t *)((0x40d68  << 2) + 0xffd00000)
1290 #define   EMMC_A_GPING_105                         (0x40d69)
1291 #define P_EMMC_A_GPING_105                         (volatile uint32_t *)((0x40d69  << 2) + 0xffd00000)
1292 #define   EMMC_A_GPING_106                         (0x40d6a)
1293 #define P_EMMC_A_GPING_106                         (volatile uint32_t *)((0x40d6a  << 2) + 0xffd00000)
1294 #define   EMMC_A_GPING_107                         (0x40d6b)
1295 #define P_EMMC_A_GPING_107                         (volatile uint32_t *)((0x40d6b  << 2) + 0xffd00000)
1296 #define   EMMC_A_GPING_108                         (0x40d6c)
1297 #define P_EMMC_A_GPING_108                         (volatile uint32_t *)((0x40d6c  << 2) + 0xffd00000)
1298 #define   EMMC_A_GPING_109                         (0x40d6d)
1299 #define P_EMMC_A_GPING_109                         (volatile uint32_t *)((0x40d6d  << 2) + 0xffd00000)
1300 #define   EMMC_A_GPING_110                         (0x40d6e)
1301 #define P_EMMC_A_GPING_110                         (volatile uint32_t *)((0x40d6e  << 2) + 0xffd00000)
1302 #define   EMMC_A_GPING_111                         (0x40d6f)
1303 #define P_EMMC_A_GPING_111                         (volatile uint32_t *)((0x40d6f  << 2) + 0xffd00000)
1304 #define   EMMC_A_GPING_112                         (0x40d70)
1305 #define P_EMMC_A_GPING_112                         (volatile uint32_t *)((0x40d70  << 2) + 0xffd00000)
1306 #define   EMMC_A_GPING_113                         (0x40d71)
1307 #define P_EMMC_A_GPING_113                         (volatile uint32_t *)((0x40d71  << 2) + 0xffd00000)
1308 #define   EMMC_A_GPING_114                         (0x40d72)
1309 #define P_EMMC_A_GPING_114                         (volatile uint32_t *)((0x40d72  << 2) + 0xffd00000)
1310 #define   EMMC_A_GPING_115                         (0x40d73)
1311 #define P_EMMC_A_GPING_115                         (volatile uint32_t *)((0x40d73  << 2) + 0xffd00000)
1312 #define   EMMC_A_GPING_116                         (0x40d74)
1313 #define P_EMMC_A_GPING_116                         (volatile uint32_t *)((0x40d74  << 2) + 0xffd00000)
1314 #define   EMMC_A_GPING_117                         (0x40d75)
1315 #define P_EMMC_A_GPING_117                         (volatile uint32_t *)((0x40d75  << 2) + 0xffd00000)
1316 #define   EMMC_A_GPING_118                         (0x40d76)
1317 #define P_EMMC_A_GPING_118                         (volatile uint32_t *)((0x40d76  << 2) + 0xffd00000)
1318 #define   EMMC_A_GPING_119                         (0x40d77)
1319 #define P_EMMC_A_GPING_119                         (volatile uint32_t *)((0x40d77  << 2) + 0xffd00000)
1320 #define   EMMC_A_GPING_120                         (0x40d78)
1321 #define P_EMMC_A_GPING_120                         (volatile uint32_t *)((0x40d78  << 2) + 0xffd00000)
1322 #define   EMMC_A_GPING_121                         (0x40d79)
1323 #define P_EMMC_A_GPING_121                         (volatile uint32_t *)((0x40d79  << 2) + 0xffd00000)
1324 #define   EMMC_A_GPING_122                         (0x40d7a)
1325 #define P_EMMC_A_GPING_122                         (volatile uint32_t *)((0x40d7a  << 2) + 0xffd00000)
1326 #define   EMMC_A_GPING_123                         (0x40d7b)
1327 #define P_EMMC_A_GPING_123                         (volatile uint32_t *)((0x40d7b  << 2) + 0xffd00000)
1328 #define   EMMC_A_GPING_124                         (0x40d7c)
1329 #define P_EMMC_A_GPING_124                         (volatile uint32_t *)((0x40d7c  << 2) + 0xffd00000)
1330 #define   EMMC_A_GPING_125                         (0x40d7d)
1331 #define P_EMMC_A_GPING_125                         (volatile uint32_t *)((0x40d7d  << 2) + 0xffd00000)
1332 #define   EMMC_A_GPING_126                         (0x40d7e)
1333 #define P_EMMC_A_GPING_126                         (volatile uint32_t *)((0x40d7e  << 2) + 0xffd00000)
1334 #define   EMMC_A_GPING_127                         (0x40d7f)
1335 #define P_EMMC_A_GPING_127                         (volatile uint32_t *)((0x40d7f  << 2) + 0xffd00000)
1336 #define   EMMC_A_GPONG_000                         (0x40d80)
1337 #define P_EMMC_A_GPONG_000                         (volatile uint32_t *)((0x40d80  << 2) + 0xffd00000)
1338 #define   EMMC_A_GPONG_001                         (0x40d81)
1339 #define P_EMMC_A_GPONG_001                         (volatile uint32_t *)((0x40d81  << 2) + 0xffd00000)
1340 #define   EMMC_A_GPONG_002                         (0x40d82)
1341 #define P_EMMC_A_GPONG_002                         (volatile uint32_t *)((0x40d82  << 2) + 0xffd00000)
1342 #define   EMMC_A_GPONG_003                         (0x40d83)
1343 #define P_EMMC_A_GPONG_003                         (volatile uint32_t *)((0x40d83  << 2) + 0xffd00000)
1344 #define   EMMC_A_GPONG_004                         (0x40d84)
1345 #define P_EMMC_A_GPONG_004                         (volatile uint32_t *)((0x40d84  << 2) + 0xffd00000)
1346 #define   EMMC_A_GPONG_005                         (0x40d85)
1347 #define P_EMMC_A_GPONG_005                         (volatile uint32_t *)((0x40d85  << 2) + 0xffd00000)
1348 #define   EMMC_A_GPONG_006                         (0x40d86)
1349 #define P_EMMC_A_GPONG_006                         (volatile uint32_t *)((0x40d86  << 2) + 0xffd00000)
1350 #define   EMMC_A_GPONG_007                         (0x40d87)
1351 #define P_EMMC_A_GPONG_007                         (volatile uint32_t *)((0x40d87  << 2) + 0xffd00000)
1352 #define   EMMC_A_GPONG_008                         (0x40d88)
1353 #define P_EMMC_A_GPONG_008                         (volatile uint32_t *)((0x40d88  << 2) + 0xffd00000)
1354 #define   EMMC_A_GPONG_009                         (0x40d89)
1355 #define P_EMMC_A_GPONG_009                         (volatile uint32_t *)((0x40d89  << 2) + 0xffd00000)
1356 #define   EMMC_A_GPONG_010                         (0x40d8a)
1357 #define P_EMMC_A_GPONG_010                         (volatile uint32_t *)((0x40d8a  << 2) + 0xffd00000)
1358 #define   EMMC_A_GPONG_011                         (0x40d8b)
1359 #define P_EMMC_A_GPONG_011                         (volatile uint32_t *)((0x40d8b  << 2) + 0xffd00000)
1360 #define   EMMC_A_GPONG_012                         (0x40d8c)
1361 #define P_EMMC_A_GPONG_012                         (volatile uint32_t *)((0x40d8c  << 2) + 0xffd00000)
1362 #define   EMMC_A_GPONG_013                         (0x40d8d)
1363 #define P_EMMC_A_GPONG_013                         (volatile uint32_t *)((0x40d8d  << 2) + 0xffd00000)
1364 #define   EMMC_A_GPONG_014                         (0x40d8e)
1365 #define P_EMMC_A_GPONG_014                         (volatile uint32_t *)((0x40d8e  << 2) + 0xffd00000)
1366 #define   EMMC_A_GPONG_015                         (0x40d8f)
1367 #define P_EMMC_A_GPONG_015                         (volatile uint32_t *)((0x40d8f  << 2) + 0xffd00000)
1368 #define   EMMC_A_GPONG_016                         (0x40d90)
1369 #define P_EMMC_A_GPONG_016                         (volatile uint32_t *)((0x40d90  << 2) + 0xffd00000)
1370 #define   EMMC_A_GPONG_017                         (0x40d91)
1371 #define P_EMMC_A_GPONG_017                         (volatile uint32_t *)((0x40d91  << 2) + 0xffd00000)
1372 #define   EMMC_A_GPONG_018                         (0x40d92)
1373 #define P_EMMC_A_GPONG_018                         (volatile uint32_t *)((0x40d92  << 2) + 0xffd00000)
1374 #define   EMMC_A_GPONG_019                         (0x40d93)
1375 #define P_EMMC_A_GPONG_019                         (volatile uint32_t *)((0x40d93  << 2) + 0xffd00000)
1376 #define   EMMC_A_GPONG_020                         (0x40d94)
1377 #define P_EMMC_A_GPONG_020                         (volatile uint32_t *)((0x40d94  << 2) + 0xffd00000)
1378 #define   EMMC_A_GPONG_021                         (0x40d95)
1379 #define P_EMMC_A_GPONG_021                         (volatile uint32_t *)((0x40d95  << 2) + 0xffd00000)
1380 #define   EMMC_A_GPONG_022                         (0x40d96)
1381 #define P_EMMC_A_GPONG_022                         (volatile uint32_t *)((0x40d96  << 2) + 0xffd00000)
1382 #define   EMMC_A_GPONG_023                         (0x40d97)
1383 #define P_EMMC_A_GPONG_023                         (volatile uint32_t *)((0x40d97  << 2) + 0xffd00000)
1384 #define   EMMC_A_GPONG_024                         (0x40d98)
1385 #define P_EMMC_A_GPONG_024                         (volatile uint32_t *)((0x40d98  << 2) + 0xffd00000)
1386 #define   EMMC_A_GPONG_025                         (0x40d99)
1387 #define P_EMMC_A_GPONG_025                         (volatile uint32_t *)((0x40d99  << 2) + 0xffd00000)
1388 #define   EMMC_A_GPONG_026                         (0x40d9a)
1389 #define P_EMMC_A_GPONG_026                         (volatile uint32_t *)((0x40d9a  << 2) + 0xffd00000)
1390 #define   EMMC_A_GPONG_027                         (0x40d9b)
1391 #define P_EMMC_A_GPONG_027                         (volatile uint32_t *)((0x40d9b  << 2) + 0xffd00000)
1392 #define   EMMC_A_GPONG_028                         (0x40d9c)
1393 #define P_EMMC_A_GPONG_028                         (volatile uint32_t *)((0x40d9c  << 2) + 0xffd00000)
1394 #define   EMMC_A_GPONG_029                         (0x40d9d)
1395 #define P_EMMC_A_GPONG_029                         (volatile uint32_t *)((0x40d9d  << 2) + 0xffd00000)
1396 #define   EMMC_A_GPONG_030                         (0x40d9e)
1397 #define P_EMMC_A_GPONG_030                         (volatile uint32_t *)((0x40d9e  << 2) + 0xffd00000)
1398 #define   EMMC_A_GPONG_031                         (0x40d9f)
1399 #define P_EMMC_A_GPONG_031                         (volatile uint32_t *)((0x40d9f  << 2) + 0xffd00000)
1400 #define   EMMC_A_GPONG_032                         (0x40da0)
1401 #define P_EMMC_A_GPONG_032                         (volatile uint32_t *)((0x40da0  << 2) + 0xffd00000)
1402 #define   EMMC_A_GPONG_033                         (0x40da1)
1403 #define P_EMMC_A_GPONG_033                         (volatile uint32_t *)((0x40da1  << 2) + 0xffd00000)
1404 #define   EMMC_A_GPONG_034                         (0x40da2)
1405 #define P_EMMC_A_GPONG_034                         (volatile uint32_t *)((0x40da2  << 2) + 0xffd00000)
1406 #define   EMMC_A_GPONG_035                         (0x40da3)
1407 #define P_EMMC_A_GPONG_035                         (volatile uint32_t *)((0x40da3  << 2) + 0xffd00000)
1408 #define   EMMC_A_GPONG_036                         (0x40da4)
1409 #define P_EMMC_A_GPONG_036                         (volatile uint32_t *)((0x40da4  << 2) + 0xffd00000)
1410 #define   EMMC_A_GPONG_037                         (0x40da5)
1411 #define P_EMMC_A_GPONG_037                         (volatile uint32_t *)((0x40da5  << 2) + 0xffd00000)
1412 #define   EMMC_A_GPONG_038                         (0x40da6)
1413 #define P_EMMC_A_GPONG_038                         (volatile uint32_t *)((0x40da6  << 2) + 0xffd00000)
1414 #define   EMMC_A_GPONG_039                         (0x40da7)
1415 #define P_EMMC_A_GPONG_039                         (volatile uint32_t *)((0x40da7  << 2) + 0xffd00000)
1416 #define   EMMC_A_GPONG_040                         (0x40da8)
1417 #define P_EMMC_A_GPONG_040                         (volatile uint32_t *)((0x40da8  << 2) + 0xffd00000)
1418 #define   EMMC_A_GPONG_041                         (0x40da9)
1419 #define P_EMMC_A_GPONG_041                         (volatile uint32_t *)((0x40da9  << 2) + 0xffd00000)
1420 #define   EMMC_A_GPONG_042                         (0x40daa)
1421 #define P_EMMC_A_GPONG_042                         (volatile uint32_t *)((0x40daa  << 2) + 0xffd00000)
1422 #define   EMMC_A_GPONG_043                         (0x40dab)
1423 #define P_EMMC_A_GPONG_043                         (volatile uint32_t *)((0x40dab  << 2) + 0xffd00000)
1424 #define   EMMC_A_GPONG_044                         (0x40dac)
1425 #define P_EMMC_A_GPONG_044                         (volatile uint32_t *)((0x40dac  << 2) + 0xffd00000)
1426 #define   EMMC_A_GPONG_045                         (0x40dad)
1427 #define P_EMMC_A_GPONG_045                         (volatile uint32_t *)((0x40dad  << 2) + 0xffd00000)
1428 #define   EMMC_A_GPONG_046                         (0x40dae)
1429 #define P_EMMC_A_GPONG_046                         (volatile uint32_t *)((0x40dae  << 2) + 0xffd00000)
1430 #define   EMMC_A_GPONG_047                         (0x40daf)
1431 #define P_EMMC_A_GPONG_047                         (volatile uint32_t *)((0x40daf  << 2) + 0xffd00000)
1432 #define   EMMC_A_GPONG_048                         (0x40db0)
1433 #define P_EMMC_A_GPONG_048                         (volatile uint32_t *)((0x40db0  << 2) + 0xffd00000)
1434 #define   EMMC_A_GPONG_049                         (0x40db1)
1435 #define P_EMMC_A_GPONG_049                         (volatile uint32_t *)((0x40db1  << 2) + 0xffd00000)
1436 #define   EMMC_A_GPONG_050                         (0x40db2)
1437 #define P_EMMC_A_GPONG_050                         (volatile uint32_t *)((0x40db2  << 2) + 0xffd00000)
1438 #define   EMMC_A_GPONG_051                         (0x40db3)
1439 #define P_EMMC_A_GPONG_051                         (volatile uint32_t *)((0x40db3  << 2) + 0xffd00000)
1440 #define   EMMC_A_GPONG_052                         (0x40db4)
1441 #define P_EMMC_A_GPONG_052                         (volatile uint32_t *)((0x40db4  << 2) + 0xffd00000)
1442 #define   EMMC_A_GPONG_053                         (0x40db5)
1443 #define P_EMMC_A_GPONG_053                         (volatile uint32_t *)((0x40db5  << 2) + 0xffd00000)
1444 #define   EMMC_A_GPONG_054                         (0x40db6)
1445 #define P_EMMC_A_GPONG_054                         (volatile uint32_t *)((0x40db6  << 2) + 0xffd00000)
1446 #define   EMMC_A_GPONG_055                         (0x40db7)
1447 #define P_EMMC_A_GPONG_055                         (volatile uint32_t *)((0x40db7  << 2) + 0xffd00000)
1448 #define   EMMC_A_GPONG_056                         (0x40db8)
1449 #define P_EMMC_A_GPONG_056                         (volatile uint32_t *)((0x40db8  << 2) + 0xffd00000)
1450 #define   EMMC_A_GPONG_057                         (0x40db9)
1451 #define P_EMMC_A_GPONG_057                         (volatile uint32_t *)((0x40db9  << 2) + 0xffd00000)
1452 #define   EMMC_A_GPONG_058                         (0x40dba)
1453 #define P_EMMC_A_GPONG_058                         (volatile uint32_t *)((0x40dba  << 2) + 0xffd00000)
1454 #define   EMMC_A_GPONG_059                         (0x40dbb)
1455 #define P_EMMC_A_GPONG_059                         (volatile uint32_t *)((0x40dbb  << 2) + 0xffd00000)
1456 #define   EMMC_A_GPONG_060                         (0x40dbc)
1457 #define P_EMMC_A_GPONG_060                         (volatile uint32_t *)((0x40dbc  << 2) + 0xffd00000)
1458 #define   EMMC_A_GPONG_061                         (0x40dbd)
1459 #define P_EMMC_A_GPONG_061                         (volatile uint32_t *)((0x40dbd  << 2) + 0xffd00000)
1460 #define   EMMC_A_GPONG_062                         (0x40dbe)
1461 #define P_EMMC_A_GPONG_062                         (volatile uint32_t *)((0x40dbe  << 2) + 0xffd00000)
1462 #define   EMMC_A_GPONG_063                         (0x40dbf)
1463 #define P_EMMC_A_GPONG_063                         (volatile uint32_t *)((0x40dbf  << 2) + 0xffd00000)
1464 #define   EMMC_A_GPONG_064                         (0x40dc0)
1465 #define P_EMMC_A_GPONG_064                         (volatile uint32_t *)((0x40dc0  << 2) + 0xffd00000)
1466 #define   EMMC_A_GPONG_065                         (0x40dc1)
1467 #define P_EMMC_A_GPONG_065                         (volatile uint32_t *)((0x40dc1  << 2) + 0xffd00000)
1468 #define   EMMC_A_GPONG_066                         (0x40dc2)
1469 #define P_EMMC_A_GPONG_066                         (volatile uint32_t *)((0x40dc2  << 2) + 0xffd00000)
1470 #define   EMMC_A_GPONG_067                         (0x40dc3)
1471 #define P_EMMC_A_GPONG_067                         (volatile uint32_t *)((0x40dc3  << 2) + 0xffd00000)
1472 #define   EMMC_A_GPONG_068                         (0x40dc4)
1473 #define P_EMMC_A_GPONG_068                         (volatile uint32_t *)((0x40dc4  << 2) + 0xffd00000)
1474 #define   EMMC_A_GPONG_069                         (0x40dc5)
1475 #define P_EMMC_A_GPONG_069                         (volatile uint32_t *)((0x40dc5  << 2) + 0xffd00000)
1476 #define   EMMC_A_GPONG_070                         (0x40dc6)
1477 #define P_EMMC_A_GPONG_070                         (volatile uint32_t *)((0x40dc6  << 2) + 0xffd00000)
1478 #define   EMMC_A_GPONG_071                         (0x40dc7)
1479 #define P_EMMC_A_GPONG_071                         (volatile uint32_t *)((0x40dc7  << 2) + 0xffd00000)
1480 #define   EMMC_A_GPONG_072                         (0x40dc8)
1481 #define P_EMMC_A_GPONG_072                         (volatile uint32_t *)((0x40dc8  << 2) + 0xffd00000)
1482 #define   EMMC_A_GPONG_073                         (0x40dc9)
1483 #define P_EMMC_A_GPONG_073                         (volatile uint32_t *)((0x40dc9  << 2) + 0xffd00000)
1484 #define   EMMC_A_GPONG_074                         (0x40dca)
1485 #define P_EMMC_A_GPONG_074                         (volatile uint32_t *)((0x40dca  << 2) + 0xffd00000)
1486 #define   EMMC_A_GPONG_075                         (0x40dcb)
1487 #define P_EMMC_A_GPONG_075                         (volatile uint32_t *)((0x40dcb  << 2) + 0xffd00000)
1488 #define   EMMC_A_GPONG_076                         (0x40dcc)
1489 #define P_EMMC_A_GPONG_076                         (volatile uint32_t *)((0x40dcc  << 2) + 0xffd00000)
1490 #define   EMMC_A_GPONG_077                         (0x40dcd)
1491 #define P_EMMC_A_GPONG_077                         (volatile uint32_t *)((0x40dcd  << 2) + 0xffd00000)
1492 #define   EMMC_A_GPONG_078                         (0x40dce)
1493 #define P_EMMC_A_GPONG_078                         (volatile uint32_t *)((0x40dce  << 2) + 0xffd00000)
1494 #define   EMMC_A_GPONG_079                         (0x40dcf)
1495 #define P_EMMC_A_GPONG_079                         (volatile uint32_t *)((0x40dcf  << 2) + 0xffd00000)
1496 #define   EMMC_A_GPONG_080                         (0x40dd0)
1497 #define P_EMMC_A_GPONG_080                         (volatile uint32_t *)((0x40dd0  << 2) + 0xffd00000)
1498 #define   EMMC_A_GPONG_081                         (0x40dd1)
1499 #define P_EMMC_A_GPONG_081                         (volatile uint32_t *)((0x40dd1  << 2) + 0xffd00000)
1500 #define   EMMC_A_GPONG_082                         (0x40dd2)
1501 #define P_EMMC_A_GPONG_082                         (volatile uint32_t *)((0x40dd2  << 2) + 0xffd00000)
1502 #define   EMMC_A_GPONG_083                         (0x40dd3)
1503 #define P_EMMC_A_GPONG_083                         (volatile uint32_t *)((0x40dd3  << 2) + 0xffd00000)
1504 #define   EMMC_A_GPONG_084                         (0x40dd4)
1505 #define P_EMMC_A_GPONG_084                         (volatile uint32_t *)((0x40dd4  << 2) + 0xffd00000)
1506 #define   EMMC_A_GPONG_085                         (0x40dd5)
1507 #define P_EMMC_A_GPONG_085                         (volatile uint32_t *)((0x40dd5  << 2) + 0xffd00000)
1508 #define   EMMC_A_GPONG_086                         (0x40dd6)
1509 #define P_EMMC_A_GPONG_086                         (volatile uint32_t *)((0x40dd6  << 2) + 0xffd00000)
1510 #define   EMMC_A_GPONG_087                         (0x40dd7)
1511 #define P_EMMC_A_GPONG_087                         (volatile uint32_t *)((0x40dd7  << 2) + 0xffd00000)
1512 #define   EMMC_A_GPONG_088                         (0x40dd8)
1513 #define P_EMMC_A_GPONG_088                         (volatile uint32_t *)((0x40dd8  << 2) + 0xffd00000)
1514 #define   EMMC_A_GPONG_089                         (0x40dd9)
1515 #define P_EMMC_A_GPONG_089                         (volatile uint32_t *)((0x40dd9  << 2) + 0xffd00000)
1516 #define   EMMC_A_GPONG_090                         (0x40dda)
1517 #define P_EMMC_A_GPONG_090                         (volatile uint32_t *)((0x40dda  << 2) + 0xffd00000)
1518 #define   EMMC_A_GPONG_091                         (0x40ddb)
1519 #define P_EMMC_A_GPONG_091                         (volatile uint32_t *)((0x40ddb  << 2) + 0xffd00000)
1520 #define   EMMC_A_GPONG_092                         (0x40ddc)
1521 #define P_EMMC_A_GPONG_092                         (volatile uint32_t *)((0x40ddc  << 2) + 0xffd00000)
1522 #define   EMMC_A_GPONG_093                         (0x40ddd)
1523 #define P_EMMC_A_GPONG_093                         (volatile uint32_t *)((0x40ddd  << 2) + 0xffd00000)
1524 #define   EMMC_A_GPONG_094                         (0x40dde)
1525 #define P_EMMC_A_GPONG_094                         (volatile uint32_t *)((0x40dde  << 2) + 0xffd00000)
1526 #define   EMMC_A_GPONG_095                         (0x40ddf)
1527 #define P_EMMC_A_GPONG_095                         (volatile uint32_t *)((0x40ddf  << 2) + 0xffd00000)
1528 #define   EMMC_A_GPONG_096                         (0x40de0)
1529 #define P_EMMC_A_GPONG_096                         (volatile uint32_t *)((0x40de0  << 2) + 0xffd00000)
1530 #define   EMMC_A_GPONG_097                         (0x40de1)
1531 #define P_EMMC_A_GPONG_097                         (volatile uint32_t *)((0x40de1  << 2) + 0xffd00000)
1532 #define   EMMC_A_GPONG_098                         (0x40de2)
1533 #define P_EMMC_A_GPONG_098                         (volatile uint32_t *)((0x40de2  << 2) + 0xffd00000)
1534 #define   EMMC_A_GPONG_099                         (0x40de3)
1535 #define P_EMMC_A_GPONG_099                         (volatile uint32_t *)((0x40de3  << 2) + 0xffd00000)
1536 #define   EMMC_A_GPONG_100                         (0x40de4)
1537 #define P_EMMC_A_GPONG_100                         (volatile uint32_t *)((0x40de4  << 2) + 0xffd00000)
1538 #define   EMMC_A_GPONG_101                         (0x40de5)
1539 #define P_EMMC_A_GPONG_101                         (volatile uint32_t *)((0x40de5  << 2) + 0xffd00000)
1540 #define   EMMC_A_GPONG_102                         (0x40de6)
1541 #define P_EMMC_A_GPONG_102                         (volatile uint32_t *)((0x40de6  << 2) + 0xffd00000)
1542 #define   EMMC_A_GPONG_103                         (0x40de7)
1543 #define P_EMMC_A_GPONG_103                         (volatile uint32_t *)((0x40de7  << 2) + 0xffd00000)
1544 #define   EMMC_A_GPONG_104                         (0x40de8)
1545 #define P_EMMC_A_GPONG_104                         (volatile uint32_t *)((0x40de8  << 2) + 0xffd00000)
1546 #define   EMMC_A_GPONG_105                         (0x40de9)
1547 #define P_EMMC_A_GPONG_105                         (volatile uint32_t *)((0x40de9  << 2) + 0xffd00000)
1548 #define   EMMC_A_GPONG_106                         (0x40dea)
1549 #define P_EMMC_A_GPONG_106                         (volatile uint32_t *)((0x40dea  << 2) + 0xffd00000)
1550 #define   EMMC_A_GPONG_107                         (0x40deb)
1551 #define P_EMMC_A_GPONG_107                         (volatile uint32_t *)((0x40deb  << 2) + 0xffd00000)
1552 #define   EMMC_A_GPONG_108                         (0x40dec)
1553 #define P_EMMC_A_GPONG_108                         (volatile uint32_t *)((0x40dec  << 2) + 0xffd00000)
1554 #define   EMMC_A_GPONG_109                         (0x40ded)
1555 #define P_EMMC_A_GPONG_109                         (volatile uint32_t *)((0x40ded  << 2) + 0xffd00000)
1556 #define   EMMC_A_GPONG_110                         (0x40dee)
1557 #define P_EMMC_A_GPONG_110                         (volatile uint32_t *)((0x40dee  << 2) + 0xffd00000)
1558 #define   EMMC_A_GPONG_111                         (0x40def)
1559 #define P_EMMC_A_GPONG_111                         (volatile uint32_t *)((0x40def  << 2) + 0xffd00000)
1560 #define   EMMC_A_GPONG_112                         (0x40df0)
1561 #define P_EMMC_A_GPONG_112                         (volatile uint32_t *)((0x40df0  << 2) + 0xffd00000)
1562 #define   EMMC_A_GPONG_113                         (0x40df1)
1563 #define P_EMMC_A_GPONG_113                         (volatile uint32_t *)((0x40df1  << 2) + 0xffd00000)
1564 #define   EMMC_A_GPONG_114                         (0x40df2)
1565 #define P_EMMC_A_GPONG_114                         (volatile uint32_t *)((0x40df2  << 2) + 0xffd00000)
1566 #define   EMMC_A_GPONG_115                         (0x40df3)
1567 #define P_EMMC_A_GPONG_115                         (volatile uint32_t *)((0x40df3  << 2) + 0xffd00000)
1568 #define   EMMC_A_GPONG_116                         (0x40df4)
1569 #define P_EMMC_A_GPONG_116                         (volatile uint32_t *)((0x40df4  << 2) + 0xffd00000)
1570 #define   EMMC_A_GPONG_117                         (0x40df5)
1571 #define P_EMMC_A_GPONG_117                         (volatile uint32_t *)((0x40df5  << 2) + 0xffd00000)
1572 #define   EMMC_A_GPONG_118                         (0x40df6)
1573 #define P_EMMC_A_GPONG_118                         (volatile uint32_t *)((0x40df6  << 2) + 0xffd00000)
1574 #define   EMMC_A_GPONG_119                         (0x40df7)
1575 #define P_EMMC_A_GPONG_119                         (volatile uint32_t *)((0x40df7  << 2) + 0xffd00000)
1576 #define   EMMC_A_GPONG_120                         (0x40df8)
1577 #define P_EMMC_A_GPONG_120                         (volatile uint32_t *)((0x40df8  << 2) + 0xffd00000)
1578 #define   EMMC_A_GPONG_121                         (0x40df9)
1579 #define P_EMMC_A_GPONG_121                         (volatile uint32_t *)((0x40df9  << 2) + 0xffd00000)
1580 #define   EMMC_A_GPONG_122                         (0x40dfa)
1581 #define P_EMMC_A_GPONG_122                         (volatile uint32_t *)((0x40dfa  << 2) + 0xffd00000)
1582 #define   EMMC_A_GPONG_123                         (0x40dfb)
1583 #define P_EMMC_A_GPONG_123                         (volatile uint32_t *)((0x40dfb  << 2) + 0xffd00000)
1584 #define   EMMC_A_GPONG_124                         (0x40dfc)
1585 #define P_EMMC_A_GPONG_124                         (volatile uint32_t *)((0x40dfc  << 2) + 0xffd00000)
1586 #define   EMMC_A_GPONG_125                         (0x40dfd)
1587 #define P_EMMC_A_GPONG_125                         (volatile uint32_t *)((0x40dfd  << 2) + 0xffd00000)
1588 #define   EMMC_A_GPONG_126                         (0x40dfe)
1589 #define P_EMMC_A_GPONG_126                         (volatile uint32_t *)((0x40dfe  << 2) + 0xffd00000)
1590 #define   EMMC_A_GPONG_127                         (0x40dff)
1591 #define P_EMMC_A_GPONG_127                         (volatile uint32_t *)((0x40dff  << 2) + 0xffd00000)
1592 // -----------------------------------------------
1593 // CBUS_BASE:  EMMCB_CBUS_BASE = 0x414
1594 // -----------------------------------------------
1595 #define   EMMC_B_GCLOCK                            (0x41400)
1596 #define P_EMMC_B_GCLOCK                            (volatile uint32_t *)((0x41400  << 2) + 0xffd00000)
1597 #define   EMMC_B_GDELAY0                           (0x41401)
1598 #define P_EMMC_B_GDELAY0                           (volatile uint32_t *)((0x41401  << 2) + 0xffd00000)
1599 #define   EMMC_B_GDELAY1                           (0x41402)
1600 #define P_EMMC_B_GDELAY1                           (volatile uint32_t *)((0x41402  << 2) + 0xffd00000)
1601 #define   EMMC_B_GADJUST                           (0x41403)
1602 #define P_EMMC_B_GADJUST                           (volatile uint32_t *)((0x41403  << 2) + 0xffd00000)
1603 #define   EMMC_B_GCALOUT0                          (0x41404)
1604 #define P_EMMC_B_GCALOUT0                          (volatile uint32_t *)((0x41404  << 2) + 0xffd00000)
1605 #define   EMMC_B_GCALOUT1                          (0x41405)
1606 #define P_EMMC_B_GCALOUT1                          (volatile uint32_t *)((0x41405  << 2) + 0xffd00000)
1607 #define   EMMC_B_GCALOUT2                          (0x41406)
1608 #define P_EMMC_B_GCALOUT2                          (volatile uint32_t *)((0x41406  << 2) + 0xffd00000)
1609 #define   EMMC_B_GCALOUT3                          (0x41407)
1610 #define P_EMMC_B_GCALOUT3                          (volatile uint32_t *)((0x41407  << 2) + 0xffd00000)
1611 #define   EMMC_B_GADJ_LOG                          (0x41408)
1612 #define P_EMMC_B_GADJ_LOG                          (volatile uint32_t *)((0x41408  << 2) + 0xffd00000)
1613 #define   EMMC_B_GCLKTEST_LOG                      (0x41409)
1614 #define P_EMMC_B_GCLKTEST_LOG                      (volatile uint32_t *)((0x41409  << 2) + 0xffd00000)
1615 #define   EMMC_B_GCLKTEST_OUT                      (0x4140a)
1616 #define P_EMMC_B_GCLKTEST_OUT                      (volatile uint32_t *)((0x4140a  << 2) + 0xffd00000)
1617 #define   EMMC_B_GEYETEST_LOG                      (0x4140b)
1618 #define P_EMMC_B_GEYETEST_LOG                      (volatile uint32_t *)((0x4140b  << 2) + 0xffd00000)
1619 #define   EMMC_B_GEYETEST_OUT0                     (0x4140c)
1620 #define P_EMMC_B_GEYETEST_OUT0                     (volatile uint32_t *)((0x4140c  << 2) + 0xffd00000)
1621 #define   EMMC_B_GEYETEST_OUT1                     (0x4140d)
1622 #define P_EMMC_B_GEYETEST_OUT1                     (volatile uint32_t *)((0x4140d  << 2) + 0xffd00000)
1623 #define   EMMC_B_GINTF3                            (0x4140e)
1624 #define P_EMMC_B_GINTF3                            (volatile uint32_t *)((0x4140e  << 2) + 0xffd00000)
1625 #define   EMMC_B_GRESERVE                          (0x4140f)
1626 #define P_EMMC_B_GRESERVE                          (volatile uint32_t *)((0x4140f  << 2) + 0xffd00000)
1627 #define   EMMC_B_GSTART                            (0x41410)
1628 #define P_EMMC_B_GSTART                            (volatile uint32_t *)((0x41410  << 2) + 0xffd00000)
1629 #define   EMMC_B_GCFG                              (0x41411)
1630 #define P_EMMC_B_GCFG                              (volatile uint32_t *)((0x41411  << 2) + 0xffd00000)
1631 #define   EMMC_B_GSTATUS                           (0x41412)
1632 #define P_EMMC_B_GSTATUS                           (volatile uint32_t *)((0x41412  << 2) + 0xffd00000)
1633 #define   EMMC_B_GIRQ_EN                           (0x41413)
1634 #define P_EMMC_B_GIRQ_EN                           (volatile uint32_t *)((0x41413  << 2) + 0xffd00000)
1635 #define   EMMC_B_GCMD_CFG                          (0x41414)
1636 #define P_EMMC_B_GCMD_CFG                          (volatile uint32_t *)((0x41414  << 2) + 0xffd00000)
1637 #define   EMMC_B_GCMD_ARG                          (0x41415)
1638 #define P_EMMC_B_GCMD_ARG                          (volatile uint32_t *)((0x41415  << 2) + 0xffd00000)
1639 #define   EMMC_B_GCMD_DAT                          (0x41416)
1640 #define P_EMMC_B_GCMD_DAT                          (volatile uint32_t *)((0x41416  << 2) + 0xffd00000)
1641 #define   EMMC_B_GCMD_RSP                          (0x41417)
1642 #define P_EMMC_B_GCMD_RSP                          (volatile uint32_t *)((0x41417  << 2) + 0xffd00000)
1643 #define   EMMC_B_GCMD_RSP1                         (0x41418)
1644 #define P_EMMC_B_GCMD_RSP1                         (volatile uint32_t *)((0x41418  << 2) + 0xffd00000)
1645 #define   EMMC_B_GCMD_RSP2                         (0x41419)
1646 #define P_EMMC_B_GCMD_RSP2                         (volatile uint32_t *)((0x41419  << 2) + 0xffd00000)
1647 #define   EMMC_B_GCMD_RSP3                         (0x4141a)
1648 #define P_EMMC_B_GCMD_RSP3                         (volatile uint32_t *)((0x4141a  << 2) + 0xffd00000)
1649 #define   EMMC_B_RESERVED_6C                       (0x4141b)
1650 #define P_EMMC_B_RESERVED_6C                       (volatile uint32_t *)((0x4141b  << 2) + 0xffd00000)
1651 #define   EMMC_B_GCURR_CFG                         (0x4141c)
1652 #define P_EMMC_B_GCURR_CFG                         (volatile uint32_t *)((0x4141c  << 2) + 0xffd00000)
1653 #define   EMMC_B_GCURR_ARG                         (0x4141d)
1654 #define P_EMMC_B_GCURR_ARG                         (volatile uint32_t *)((0x4141d  << 2) + 0xffd00000)
1655 #define   EMMC_B_GCURR_DAT                         (0x4141e)
1656 #define P_EMMC_B_GCURR_DAT                         (volatile uint32_t *)((0x4141e  << 2) + 0xffd00000)
1657 #define   EMMC_B_GCURR_RSP                         (0x4141f)
1658 #define P_EMMC_B_GCURR_RSP                         (volatile uint32_t *)((0x4141f  << 2) + 0xffd00000)
1659 #define   EMMC_B_GNEXT_CFG                         (0x41420)
1660 #define P_EMMC_B_GNEXT_CFG                         (volatile uint32_t *)((0x41420  << 2) + 0xffd00000)
1661 #define   EMMC_B_GNEXT_ARG                         (0x41421)
1662 #define P_EMMC_B_GNEXT_ARG                         (volatile uint32_t *)((0x41421  << 2) + 0xffd00000)
1663 #define   EMMC_B_GNEXT_DAT                         (0x41422)
1664 #define P_EMMC_B_GNEXT_DAT                         (volatile uint32_t *)((0x41422  << 2) + 0xffd00000)
1665 #define   EMMC_B_GNEXT_RSP                         (0x41423)
1666 #define P_EMMC_B_GNEXT_RSP                         (volatile uint32_t *)((0x41423  << 2) + 0xffd00000)
1667 #define   EMMC_B_GRXD                              (0x41424)
1668 #define P_EMMC_B_GRXD                              (volatile uint32_t *)((0x41424  << 2) + 0xffd00000)
1669 #define   EMMC_B_GTXD                              (0x41425)
1670 #define P_EMMC_B_GTXD                              (volatile uint32_t *)((0x41425  << 2) + 0xffd00000)
1671 #define   EMMC_B_RESERVED_98_00                    (0x41426)
1672 #define P_EMMC_B_RESERVED_98_00                    (volatile uint32_t *)((0x41426  << 2) + 0xffd00000)
1673 #define   EMMC_B_RESERVED_98_01                    (0x41427)
1674 #define P_EMMC_B_RESERVED_98_01                    (volatile uint32_t *)((0x41427  << 2) + 0xffd00000)
1675 #define   EMMC_B_RESERVED_98_02                    (0x41428)
1676 #define P_EMMC_B_RESERVED_98_02                    (volatile uint32_t *)((0x41428  << 2) + 0xffd00000)
1677 #define   EMMC_B_RESERVED_98_03                    (0x41429)
1678 #define P_EMMC_B_RESERVED_98_03                    (volatile uint32_t *)((0x41429  << 2) + 0xffd00000)
1679 #define   EMMC_B_RESERVED_98_04                    (0x4142a)
1680 #define P_EMMC_B_RESERVED_98_04                    (volatile uint32_t *)((0x4142a  << 2) + 0xffd00000)
1681 #define   EMMC_B_RESERVED_98_05                    (0x4142b)
1682 #define P_EMMC_B_RESERVED_98_05                    (volatile uint32_t *)((0x4142b  << 2) + 0xffd00000)
1683 #define   EMMC_B_RESERVED_98_06                    (0x4142c)
1684 #define P_EMMC_B_RESERVED_98_06                    (volatile uint32_t *)((0x4142c  << 2) + 0xffd00000)
1685 #define   EMMC_B_RESERVED_98_07                    (0x4142d)
1686 #define P_EMMC_B_RESERVED_98_07                    (volatile uint32_t *)((0x4142d  << 2) + 0xffd00000)
1687 #define   EMMC_B_RESERVED_98_08                    (0x4142e)
1688 #define P_EMMC_B_RESERVED_98_08                    (volatile uint32_t *)((0x4142e  << 2) + 0xffd00000)
1689 #define   EMMC_B_RESERVED_98_09                    (0x4142f)
1690 #define P_EMMC_B_RESERVED_98_09                    (volatile uint32_t *)((0x4142f  << 2) + 0xffd00000)
1691 #define   EMMC_B_RESERVED_98_10                    (0x41430)
1692 #define P_EMMC_B_RESERVED_98_10                    (volatile uint32_t *)((0x41430  << 2) + 0xffd00000)
1693 #define   EMMC_B_RESERVED_98_11                    (0x41431)
1694 #define P_EMMC_B_RESERVED_98_11                    (volatile uint32_t *)((0x41431  << 2) + 0xffd00000)
1695 #define   EMMC_B_RESERVED_98_12                    (0x41432)
1696 #define P_EMMC_B_RESERVED_98_12                    (volatile uint32_t *)((0x41432  << 2) + 0xffd00000)
1697 #define   EMMC_B_RESERVED_98_13                    (0x41433)
1698 #define P_EMMC_B_RESERVED_98_13                    (volatile uint32_t *)((0x41433  << 2) + 0xffd00000)
1699 #define   EMMC_B_RESERVED_98_14                    (0x41434)
1700 #define P_EMMC_B_RESERVED_98_14                    (volatile uint32_t *)((0x41434  << 2) + 0xffd00000)
1701 #define   EMMC_B_RESERVED_98_15                    (0x41435)
1702 #define P_EMMC_B_RESERVED_98_15                    (volatile uint32_t *)((0x41435  << 2) + 0xffd00000)
1703 #define   EMMC_B_RESERVED_98_16                    (0x41436)
1704 #define P_EMMC_B_RESERVED_98_16                    (volatile uint32_t *)((0x41436  << 2) + 0xffd00000)
1705 #define   EMMC_B_RESERVED_98_17                    (0x41437)
1706 #define P_EMMC_B_RESERVED_98_17                    (volatile uint32_t *)((0x41437  << 2) + 0xffd00000)
1707 #define   EMMC_B_RESERVED_98_18                    (0x41438)
1708 #define P_EMMC_B_RESERVED_98_18                    (volatile uint32_t *)((0x41438  << 2) + 0xffd00000)
1709 #define   EMMC_B_RESERVED_98_19                    (0x41439)
1710 #define P_EMMC_B_RESERVED_98_19                    (volatile uint32_t *)((0x41439  << 2) + 0xffd00000)
1711 #define   EMMC_B_RESERVED_98_20                    (0x4143a)
1712 #define P_EMMC_B_RESERVED_98_20                    (volatile uint32_t *)((0x4143a  << 2) + 0xffd00000)
1713 #define   EMMC_B_RESERVED_98_21                    (0x4143b)
1714 #define P_EMMC_B_RESERVED_98_21                    (volatile uint32_t *)((0x4143b  << 2) + 0xffd00000)
1715 #define   EMMC_B_RESERVED_98_22                    (0x4143c)
1716 #define P_EMMC_B_RESERVED_98_22                    (volatile uint32_t *)((0x4143c  << 2) + 0xffd00000)
1717 #define   EMMC_B_RESERVED_98_23                    (0x4143d)
1718 #define P_EMMC_B_RESERVED_98_23                    (volatile uint32_t *)((0x4143d  << 2) + 0xffd00000)
1719 #define   EMMC_B_RESERVED_98_24                    (0x4143e)
1720 #define P_EMMC_B_RESERVED_98_24                    (volatile uint32_t *)((0x4143e  << 2) + 0xffd00000)
1721 #define   EMMC_B_RESERVED_98_25                    (0x4143f)
1722 #define P_EMMC_B_RESERVED_98_25                    (volatile uint32_t *)((0x4143f  << 2) + 0xffd00000)
1723 #define   EMMC_B_RESERVED_98_26                    (0x41440)
1724 #define P_EMMC_B_RESERVED_98_26                    (volatile uint32_t *)((0x41440  << 2) + 0xffd00000)
1725 #define   EMMC_B_RESERVED_98_27                    (0x41441)
1726 #define P_EMMC_B_RESERVED_98_27                    (volatile uint32_t *)((0x41441  << 2) + 0xffd00000)
1727 #define   EMMC_B_RESERVED_98_28                    (0x41442)
1728 #define P_EMMC_B_RESERVED_98_28                    (volatile uint32_t *)((0x41442  << 2) + 0xffd00000)
1729 #define   EMMC_B_RESERVED_98_29                    (0x41443)
1730 #define P_EMMC_B_RESERVED_98_29                    (volatile uint32_t *)((0x41443  << 2) + 0xffd00000)
1731 #define   EMMC_B_RESERVED_98_30                    (0x41444)
1732 #define P_EMMC_B_RESERVED_98_30                    (volatile uint32_t *)((0x41444  << 2) + 0xffd00000)
1733 #define   EMMC_B_RESERVED_98_31                    (0x41445)
1734 #define P_EMMC_B_RESERVED_98_31                    (volatile uint32_t *)((0x41445  << 2) + 0xffd00000)
1735 #define   EMMC_B_RESERVED_98_32                    (0x41446)
1736 #define P_EMMC_B_RESERVED_98_32                    (volatile uint32_t *)((0x41446  << 2) + 0xffd00000)
1737 #define   EMMC_B_RESERVED_98_33                    (0x41447)
1738 #define P_EMMC_B_RESERVED_98_33                    (volatile uint32_t *)((0x41447  << 2) + 0xffd00000)
1739 #define   EMMC_B_RESERVED_98_34                    (0x41448)
1740 #define P_EMMC_B_RESERVED_98_34                    (volatile uint32_t *)((0x41448  << 2) + 0xffd00000)
1741 #define   EMMC_B_RESERVED_98_35                    (0x41449)
1742 #define P_EMMC_B_RESERVED_98_35                    (volatile uint32_t *)((0x41449  << 2) + 0xffd00000)
1743 #define   EMMC_B_RESERVED_98_36                    (0x4144a)
1744 #define P_EMMC_B_RESERVED_98_36                    (volatile uint32_t *)((0x4144a  << 2) + 0xffd00000)
1745 #define   EMMC_B_RESERVED_98_37                    (0x4144b)
1746 #define P_EMMC_B_RESERVED_98_37                    (volatile uint32_t *)((0x4144b  << 2) + 0xffd00000)
1747 #define   EMMC_B_RESERVED_98_38                    (0x4144c)
1748 #define P_EMMC_B_RESERVED_98_38                    (volatile uint32_t *)((0x4144c  << 2) + 0xffd00000)
1749 #define   EMMC_B_RESERVED_98_39                    (0x4144d)
1750 #define P_EMMC_B_RESERVED_98_39                    (volatile uint32_t *)((0x4144d  << 2) + 0xffd00000)
1751 #define   EMMC_B_RESERVED_98_40                    (0x4144e)
1752 #define P_EMMC_B_RESERVED_98_40                    (volatile uint32_t *)((0x4144e  << 2) + 0xffd00000)
1753 #define   EMMC_B_RESERVED_98_41                    (0x4144f)
1754 #define P_EMMC_B_RESERVED_98_41                    (volatile uint32_t *)((0x4144f  << 2) + 0xffd00000)
1755 #define   EMMC_B_RESERVED_98_42                    (0x41450)
1756 #define P_EMMC_B_RESERVED_98_42                    (volatile uint32_t *)((0x41450  << 2) + 0xffd00000)
1757 #define   EMMC_B_RESERVED_98_43                    (0x41451)
1758 #define P_EMMC_B_RESERVED_98_43                    (volatile uint32_t *)((0x41451  << 2) + 0xffd00000)
1759 #define   EMMC_B_RESERVED_98_44                    (0x41452)
1760 #define P_EMMC_B_RESERVED_98_44                    (volatile uint32_t *)((0x41452  << 2) + 0xffd00000)
1761 #define   EMMC_B_RESERVED_98_45                    (0x41453)
1762 #define P_EMMC_B_RESERVED_98_45                    (volatile uint32_t *)((0x41453  << 2) + 0xffd00000)
1763 #define   EMMC_B_RESERVED_98_46                    (0x41454)
1764 #define P_EMMC_B_RESERVED_98_46                    (volatile uint32_t *)((0x41454  << 2) + 0xffd00000)
1765 #define   EMMC_B_RESERVED_98_47                    (0x41455)
1766 #define P_EMMC_B_RESERVED_98_47                    (volatile uint32_t *)((0x41455  << 2) + 0xffd00000)
1767 #define   EMMC_B_RESERVED_98_48                    (0x41456)
1768 #define P_EMMC_B_RESERVED_98_48                    (volatile uint32_t *)((0x41456  << 2) + 0xffd00000)
1769 #define   EMMC_B_RESERVED_98_49                    (0x41457)
1770 #define P_EMMC_B_RESERVED_98_49                    (volatile uint32_t *)((0x41457  << 2) + 0xffd00000)
1771 #define   EMMC_B_RESERVED_98_50                    (0x41458)
1772 #define P_EMMC_B_RESERVED_98_50                    (volatile uint32_t *)((0x41458  << 2) + 0xffd00000)
1773 #define   EMMC_B_RESERVED_98_51                    (0x41459)
1774 #define P_EMMC_B_RESERVED_98_51                    (volatile uint32_t *)((0x41459  << 2) + 0xffd00000)
1775 #define   EMMC_B_RESERVED_98_52                    (0x4145a)
1776 #define P_EMMC_B_RESERVED_98_52                    (volatile uint32_t *)((0x4145a  << 2) + 0xffd00000)
1777 #define   EMMC_B_RESERVED_98_53                    (0x4145b)
1778 #define P_EMMC_B_RESERVED_98_53                    (volatile uint32_t *)((0x4145b  << 2) + 0xffd00000)
1779 #define   EMMC_B_RESERVED_98_54                    (0x4145c)
1780 #define P_EMMC_B_RESERVED_98_54                    (volatile uint32_t *)((0x4145c  << 2) + 0xffd00000)
1781 #define   EMMC_B_RESERVED_98_55                    (0x4145d)
1782 #define P_EMMC_B_RESERVED_98_55                    (volatile uint32_t *)((0x4145d  << 2) + 0xffd00000)
1783 #define   EMMC_B_RESERVED_98_56                    (0x4145e)
1784 #define P_EMMC_B_RESERVED_98_56                    (volatile uint32_t *)((0x4145e  << 2) + 0xffd00000)
1785 #define   EMMC_B_RESERVED_98_57                    (0x4145f)
1786 #define P_EMMC_B_RESERVED_98_57                    (volatile uint32_t *)((0x4145f  << 2) + 0xffd00000)
1787 #define   EMMC_B_RESERVED_98_58                    (0x41460)
1788 #define P_EMMC_B_RESERVED_98_58                    (volatile uint32_t *)((0x41460  << 2) + 0xffd00000)
1789 #define   EMMC_B_RESERVED_98_59                    (0x41461)
1790 #define P_EMMC_B_RESERVED_98_59                    (volatile uint32_t *)((0x41461  << 2) + 0xffd00000)
1791 #define   EMMC_B_RESERVED_98_60                    (0x41462)
1792 #define P_EMMC_B_RESERVED_98_60                    (volatile uint32_t *)((0x41462  << 2) + 0xffd00000)
1793 #define   EMMC_B_RESERVED_98_61                    (0x41463)
1794 #define P_EMMC_B_RESERVED_98_61                    (volatile uint32_t *)((0x41463  << 2) + 0xffd00000)
1795 #define   EMMC_B_RESERVED_98_62                    (0x41464)
1796 #define P_EMMC_B_RESERVED_98_62                    (volatile uint32_t *)((0x41464  << 2) + 0xffd00000)
1797 #define   EMMC_B_RESERVED_98_63                    (0x41465)
1798 #define P_EMMC_B_RESERVED_98_63                    (volatile uint32_t *)((0x41465  << 2) + 0xffd00000)
1799 #define   EMMC_B_RESERVED_98_64                    (0x41466)
1800 #define P_EMMC_B_RESERVED_98_64                    (volatile uint32_t *)((0x41466  << 2) + 0xffd00000)
1801 #define   EMMC_B_RESERVED_98_65                    (0x41467)
1802 #define P_EMMC_B_RESERVED_98_65                    (volatile uint32_t *)((0x41467  << 2) + 0xffd00000)
1803 #define   EMMC_B_RESERVED_98_66                    (0x41468)
1804 #define P_EMMC_B_RESERVED_98_66                    (volatile uint32_t *)((0x41468  << 2) + 0xffd00000)
1805 #define   EMMC_B_RESERVED_98_67                    (0x41469)
1806 #define P_EMMC_B_RESERVED_98_67                    (volatile uint32_t *)((0x41469  << 2) + 0xffd00000)
1807 #define   EMMC_B_RESERVED_98_68                    (0x4146a)
1808 #define P_EMMC_B_RESERVED_98_68                    (volatile uint32_t *)((0x4146a  << 2) + 0xffd00000)
1809 #define   EMMC_B_RESERVED_98_69                    (0x4146b)
1810 #define P_EMMC_B_RESERVED_98_69                    (volatile uint32_t *)((0x4146b  << 2) + 0xffd00000)
1811 #define   EMMC_B_RESERVED_98_70                    (0x4146c)
1812 #define P_EMMC_B_RESERVED_98_70                    (volatile uint32_t *)((0x4146c  << 2) + 0xffd00000)
1813 #define   EMMC_B_RESERVED_98_71                    (0x4146d)
1814 #define P_EMMC_B_RESERVED_98_71                    (volatile uint32_t *)((0x4146d  << 2) + 0xffd00000)
1815 #define   EMMC_B_RESERVED_98_72                    (0x4146e)
1816 #define P_EMMC_B_RESERVED_98_72                    (volatile uint32_t *)((0x4146e  << 2) + 0xffd00000)
1817 #define   EMMC_B_RESERVED_98_73                    (0x4146f)
1818 #define P_EMMC_B_RESERVED_98_73                    (volatile uint32_t *)((0x4146f  << 2) + 0xffd00000)
1819 #define   EMMC_B_RESERVED_98_74                    (0x41470)
1820 #define P_EMMC_B_RESERVED_98_74                    (volatile uint32_t *)((0x41470  << 2) + 0xffd00000)
1821 #define   EMMC_B_RESERVED_98_75                    (0x41471)
1822 #define P_EMMC_B_RESERVED_98_75                    (volatile uint32_t *)((0x41471  << 2) + 0xffd00000)
1823 #define   EMMC_B_RESERVED_98_76                    (0x41472)
1824 #define P_EMMC_B_RESERVED_98_76                    (volatile uint32_t *)((0x41472  << 2) + 0xffd00000)
1825 #define   EMMC_B_RESERVED_98_77                    (0x41473)
1826 #define P_EMMC_B_RESERVED_98_77                    (volatile uint32_t *)((0x41473  << 2) + 0xffd00000)
1827 #define   EMMC_B_RESERVED_98_78                    (0x41474)
1828 #define P_EMMC_B_RESERVED_98_78                    (volatile uint32_t *)((0x41474  << 2) + 0xffd00000)
1829 #define   EMMC_B_RESERVED_98_79                    (0x41475)
1830 #define P_EMMC_B_RESERVED_98_79                    (volatile uint32_t *)((0x41475  << 2) + 0xffd00000)
1831 #define   EMMC_B_RESERVED_98_80                    (0x41476)
1832 #define P_EMMC_B_RESERVED_98_80                    (volatile uint32_t *)((0x41476  << 2) + 0xffd00000)
1833 #define   EMMC_B_RESERVED_98_81                    (0x41477)
1834 #define P_EMMC_B_RESERVED_98_81                    (volatile uint32_t *)((0x41477  << 2) + 0xffd00000)
1835 #define   EMMC_B_RESERVED_98_82                    (0x41478)
1836 #define P_EMMC_B_RESERVED_98_82                    (volatile uint32_t *)((0x41478  << 2) + 0xffd00000)
1837 #define   EMMC_B_RESERVED_98_83                    (0x41479)
1838 #define P_EMMC_B_RESERVED_98_83                    (volatile uint32_t *)((0x41479  << 2) + 0xffd00000)
1839 #define   EMMC_B_RESERVED_98_84                    (0x4147a)
1840 #define P_EMMC_B_RESERVED_98_84                    (volatile uint32_t *)((0x4147a  << 2) + 0xffd00000)
1841 #define   EMMC_B_RESERVED_98_85                    (0x4147b)
1842 #define P_EMMC_B_RESERVED_98_85                    (volatile uint32_t *)((0x4147b  << 2) + 0xffd00000)
1843 #define   EMMC_B_RESERVED_98_86                    (0x4147c)
1844 #define P_EMMC_B_RESERVED_98_86                    (volatile uint32_t *)((0x4147c  << 2) + 0xffd00000)
1845 #define   EMMC_B_RESERVED_98_87                    (0x4147d)
1846 #define P_EMMC_B_RESERVED_98_87                    (volatile uint32_t *)((0x4147d  << 2) + 0xffd00000)
1847 #define   EMMC_B_RESERVED_98_88                    (0x4147e)
1848 #define P_EMMC_B_RESERVED_98_88                    (volatile uint32_t *)((0x4147e  << 2) + 0xffd00000)
1849 #define   EMMC_B_RESERVED_98_89                    (0x4147f)
1850 #define P_EMMC_B_RESERVED_98_89                    (volatile uint32_t *)((0x4147f  << 2) + 0xffd00000)
1851 #define   EMMC_B_GDESC_000                         (0x41480)
1852 #define P_EMMC_B_GDESC_000                         (volatile uint32_t *)((0x41480  << 2) + 0xffd00000)
1853 #define   EMMC_B_GDESC_001                         (0x41481)
1854 #define P_EMMC_B_GDESC_001                         (volatile uint32_t *)((0x41481  << 2) + 0xffd00000)
1855 #define   EMMC_B_GDESC_002                         (0x41482)
1856 #define P_EMMC_B_GDESC_002                         (volatile uint32_t *)((0x41482  << 2) + 0xffd00000)
1857 #define   EMMC_B_GDESC_003                         (0x41483)
1858 #define P_EMMC_B_GDESC_003                         (volatile uint32_t *)((0x41483  << 2) + 0xffd00000)
1859 #define   EMMC_B_GDESC_004                         (0x41484)
1860 #define P_EMMC_B_GDESC_004                         (volatile uint32_t *)((0x41484  << 2) + 0xffd00000)
1861 #define   EMMC_B_GDESC_005                         (0x41485)
1862 #define P_EMMC_B_GDESC_005                         (volatile uint32_t *)((0x41485  << 2) + 0xffd00000)
1863 #define   EMMC_B_GDESC_006                         (0x41486)
1864 #define P_EMMC_B_GDESC_006                         (volatile uint32_t *)((0x41486  << 2) + 0xffd00000)
1865 #define   EMMC_B_GDESC_007                         (0x41487)
1866 #define P_EMMC_B_GDESC_007                         (volatile uint32_t *)((0x41487  << 2) + 0xffd00000)
1867 #define   EMMC_B_GDESC_008                         (0x41488)
1868 #define P_EMMC_B_GDESC_008                         (volatile uint32_t *)((0x41488  << 2) + 0xffd00000)
1869 #define   EMMC_B_GDESC_009                         (0x41489)
1870 #define P_EMMC_B_GDESC_009                         (volatile uint32_t *)((0x41489  << 2) + 0xffd00000)
1871 #define   EMMC_B_GDESC_010                         (0x4148a)
1872 #define P_EMMC_B_GDESC_010                         (volatile uint32_t *)((0x4148a  << 2) + 0xffd00000)
1873 #define   EMMC_B_GDESC_011                         (0x4148b)
1874 #define P_EMMC_B_GDESC_011                         (volatile uint32_t *)((0x4148b  << 2) + 0xffd00000)
1875 #define   EMMC_B_GDESC_012                         (0x4148c)
1876 #define P_EMMC_B_GDESC_012                         (volatile uint32_t *)((0x4148c  << 2) + 0xffd00000)
1877 #define   EMMC_B_GDESC_013                         (0x4148d)
1878 #define P_EMMC_B_GDESC_013                         (volatile uint32_t *)((0x4148d  << 2) + 0xffd00000)
1879 #define   EMMC_B_GDESC_014                         (0x4148e)
1880 #define P_EMMC_B_GDESC_014                         (volatile uint32_t *)((0x4148e  << 2) + 0xffd00000)
1881 #define   EMMC_B_GDESC_015                         (0x4148f)
1882 #define P_EMMC_B_GDESC_015                         (volatile uint32_t *)((0x4148f  << 2) + 0xffd00000)
1883 #define   EMMC_B_GDESC_016                         (0x41490)
1884 #define P_EMMC_B_GDESC_016                         (volatile uint32_t *)((0x41490  << 2) + 0xffd00000)
1885 #define   EMMC_B_GDESC_017                         (0x41491)
1886 #define P_EMMC_B_GDESC_017                         (volatile uint32_t *)((0x41491  << 2) + 0xffd00000)
1887 #define   EMMC_B_GDESC_018                         (0x41492)
1888 #define P_EMMC_B_GDESC_018                         (volatile uint32_t *)((0x41492  << 2) + 0xffd00000)
1889 #define   EMMC_B_GDESC_019                         (0x41493)
1890 #define P_EMMC_B_GDESC_019                         (volatile uint32_t *)((0x41493  << 2) + 0xffd00000)
1891 #define   EMMC_B_GDESC_020                         (0x41494)
1892 #define P_EMMC_B_GDESC_020                         (volatile uint32_t *)((0x41494  << 2) + 0xffd00000)
1893 #define   EMMC_B_GDESC_021                         (0x41495)
1894 #define P_EMMC_B_GDESC_021                         (volatile uint32_t *)((0x41495  << 2) + 0xffd00000)
1895 #define   EMMC_B_GDESC_022                         (0x41496)
1896 #define P_EMMC_B_GDESC_022                         (volatile uint32_t *)((0x41496  << 2) + 0xffd00000)
1897 #define   EMMC_B_GDESC_023                         (0x41497)
1898 #define P_EMMC_B_GDESC_023                         (volatile uint32_t *)((0x41497  << 2) + 0xffd00000)
1899 #define   EMMC_B_GDESC_024                         (0x41498)
1900 #define P_EMMC_B_GDESC_024                         (volatile uint32_t *)((0x41498  << 2) + 0xffd00000)
1901 #define   EMMC_B_GDESC_025                         (0x41499)
1902 #define P_EMMC_B_GDESC_025                         (volatile uint32_t *)((0x41499  << 2) + 0xffd00000)
1903 #define   EMMC_B_GDESC_026                         (0x4149a)
1904 #define P_EMMC_B_GDESC_026                         (volatile uint32_t *)((0x4149a  << 2) + 0xffd00000)
1905 #define   EMMC_B_GDESC_027                         (0x4149b)
1906 #define P_EMMC_B_GDESC_027                         (volatile uint32_t *)((0x4149b  << 2) + 0xffd00000)
1907 #define   EMMC_B_GDESC_028                         (0x4149c)
1908 #define P_EMMC_B_GDESC_028                         (volatile uint32_t *)((0x4149c  << 2) + 0xffd00000)
1909 #define   EMMC_B_GDESC_029                         (0x4149d)
1910 #define P_EMMC_B_GDESC_029                         (volatile uint32_t *)((0x4149d  << 2) + 0xffd00000)
1911 #define   EMMC_B_GDESC_030                         (0x4149e)
1912 #define P_EMMC_B_GDESC_030                         (volatile uint32_t *)((0x4149e  << 2) + 0xffd00000)
1913 #define   EMMC_B_GDESC_031                         (0x4149f)
1914 #define P_EMMC_B_GDESC_031                         (volatile uint32_t *)((0x4149f  << 2) + 0xffd00000)
1915 #define   EMMC_B_GDESC_032                         (0x414a0)
1916 #define P_EMMC_B_GDESC_032                         (volatile uint32_t *)((0x414a0  << 2) + 0xffd00000)
1917 #define   EMMC_B_GDESC_033                         (0x414a1)
1918 #define P_EMMC_B_GDESC_033                         (volatile uint32_t *)((0x414a1  << 2) + 0xffd00000)
1919 #define   EMMC_B_GDESC_034                         (0x414a2)
1920 #define P_EMMC_B_GDESC_034                         (volatile uint32_t *)((0x414a2  << 2) + 0xffd00000)
1921 #define   EMMC_B_GDESC_035                         (0x414a3)
1922 #define P_EMMC_B_GDESC_035                         (volatile uint32_t *)((0x414a3  << 2) + 0xffd00000)
1923 #define   EMMC_B_GDESC_036                         (0x414a4)
1924 #define P_EMMC_B_GDESC_036                         (volatile uint32_t *)((0x414a4  << 2) + 0xffd00000)
1925 #define   EMMC_B_GDESC_037                         (0x414a5)
1926 #define P_EMMC_B_GDESC_037                         (volatile uint32_t *)((0x414a5  << 2) + 0xffd00000)
1927 #define   EMMC_B_GDESC_038                         (0x414a6)
1928 #define P_EMMC_B_GDESC_038                         (volatile uint32_t *)((0x414a6  << 2) + 0xffd00000)
1929 #define   EMMC_B_GDESC_039                         (0x414a7)
1930 #define P_EMMC_B_GDESC_039                         (volatile uint32_t *)((0x414a7  << 2) + 0xffd00000)
1931 #define   EMMC_B_GDESC_040                         (0x414a8)
1932 #define P_EMMC_B_GDESC_040                         (volatile uint32_t *)((0x414a8  << 2) + 0xffd00000)
1933 #define   EMMC_B_GDESC_041                         (0x414a9)
1934 #define P_EMMC_B_GDESC_041                         (volatile uint32_t *)((0x414a9  << 2) + 0xffd00000)
1935 #define   EMMC_B_GDESC_042                         (0x414aa)
1936 #define P_EMMC_B_GDESC_042                         (volatile uint32_t *)((0x414aa  << 2) + 0xffd00000)
1937 #define   EMMC_B_GDESC_043                         (0x414ab)
1938 #define P_EMMC_B_GDESC_043                         (volatile uint32_t *)((0x414ab  << 2) + 0xffd00000)
1939 #define   EMMC_B_GDESC_044                         (0x414ac)
1940 #define P_EMMC_B_GDESC_044                         (volatile uint32_t *)((0x414ac  << 2) + 0xffd00000)
1941 #define   EMMC_B_GDESC_045                         (0x414ad)
1942 #define P_EMMC_B_GDESC_045                         (volatile uint32_t *)((0x414ad  << 2) + 0xffd00000)
1943 #define   EMMC_B_GDESC_046                         (0x414ae)
1944 #define P_EMMC_B_GDESC_046                         (volatile uint32_t *)((0x414ae  << 2) + 0xffd00000)
1945 #define   EMMC_B_GDESC_047                         (0x414af)
1946 #define P_EMMC_B_GDESC_047                         (volatile uint32_t *)((0x414af  << 2) + 0xffd00000)
1947 #define   EMMC_B_GDESC_048                         (0x414b0)
1948 #define P_EMMC_B_GDESC_048                         (volatile uint32_t *)((0x414b0  << 2) + 0xffd00000)
1949 #define   EMMC_B_GDESC_049                         (0x414b1)
1950 #define P_EMMC_B_GDESC_049                         (volatile uint32_t *)((0x414b1  << 2) + 0xffd00000)
1951 #define   EMMC_B_GDESC_050                         (0x414b2)
1952 #define P_EMMC_B_GDESC_050                         (volatile uint32_t *)((0x414b2  << 2) + 0xffd00000)
1953 #define   EMMC_B_GDESC_051                         (0x414b3)
1954 #define P_EMMC_B_GDESC_051                         (volatile uint32_t *)((0x414b3  << 2) + 0xffd00000)
1955 #define   EMMC_B_GDESC_052                         (0x414b4)
1956 #define P_EMMC_B_GDESC_052                         (volatile uint32_t *)((0x414b4  << 2) + 0xffd00000)
1957 #define   EMMC_B_GDESC_053                         (0x414b5)
1958 #define P_EMMC_B_GDESC_053                         (volatile uint32_t *)((0x414b5  << 2) + 0xffd00000)
1959 #define   EMMC_B_GDESC_054                         (0x414b6)
1960 #define P_EMMC_B_GDESC_054                         (volatile uint32_t *)((0x414b6  << 2) + 0xffd00000)
1961 #define   EMMC_B_GDESC_055                         (0x414b7)
1962 #define P_EMMC_B_GDESC_055                         (volatile uint32_t *)((0x414b7  << 2) + 0xffd00000)
1963 #define   EMMC_B_GDESC_056                         (0x414b8)
1964 #define P_EMMC_B_GDESC_056                         (volatile uint32_t *)((0x414b8  << 2) + 0xffd00000)
1965 #define   EMMC_B_GDESC_057                         (0x414b9)
1966 #define P_EMMC_B_GDESC_057                         (volatile uint32_t *)((0x414b9  << 2) + 0xffd00000)
1967 #define   EMMC_B_GDESC_058                         (0x414ba)
1968 #define P_EMMC_B_GDESC_058                         (volatile uint32_t *)((0x414ba  << 2) + 0xffd00000)
1969 #define   EMMC_B_GDESC_059                         (0x414bb)
1970 #define P_EMMC_B_GDESC_059                         (volatile uint32_t *)((0x414bb  << 2) + 0xffd00000)
1971 #define   EMMC_B_GDESC_060                         (0x414bc)
1972 #define P_EMMC_B_GDESC_060                         (volatile uint32_t *)((0x414bc  << 2) + 0xffd00000)
1973 #define   EMMC_B_GDESC_061                         (0x414bd)
1974 #define P_EMMC_B_GDESC_061                         (volatile uint32_t *)((0x414bd  << 2) + 0xffd00000)
1975 #define   EMMC_B_GDESC_062                         (0x414be)
1976 #define P_EMMC_B_GDESC_062                         (volatile uint32_t *)((0x414be  << 2) + 0xffd00000)
1977 #define   EMMC_B_GDESC_063                         (0x414bf)
1978 #define P_EMMC_B_GDESC_063                         (volatile uint32_t *)((0x414bf  << 2) + 0xffd00000)
1979 #define   EMMC_B_GDESC_064                         (0x414c0)
1980 #define P_EMMC_B_GDESC_064                         (volatile uint32_t *)((0x414c0  << 2) + 0xffd00000)
1981 #define   EMMC_B_GDESC_065                         (0x414c1)
1982 #define P_EMMC_B_GDESC_065                         (volatile uint32_t *)((0x414c1  << 2) + 0xffd00000)
1983 #define   EMMC_B_GDESC_066                         (0x414c2)
1984 #define P_EMMC_B_GDESC_066                         (volatile uint32_t *)((0x414c2  << 2) + 0xffd00000)
1985 #define   EMMC_B_GDESC_067                         (0x414c3)
1986 #define P_EMMC_B_GDESC_067                         (volatile uint32_t *)((0x414c3  << 2) + 0xffd00000)
1987 #define   EMMC_B_GDESC_068                         (0x414c4)
1988 #define P_EMMC_B_GDESC_068                         (volatile uint32_t *)((0x414c4  << 2) + 0xffd00000)
1989 #define   EMMC_B_GDESC_069                         (0x414c5)
1990 #define P_EMMC_B_GDESC_069                         (volatile uint32_t *)((0x414c5  << 2) + 0xffd00000)
1991 #define   EMMC_B_GDESC_070                         (0x414c6)
1992 #define P_EMMC_B_GDESC_070                         (volatile uint32_t *)((0x414c6  << 2) + 0xffd00000)
1993 #define   EMMC_B_GDESC_071                         (0x414c7)
1994 #define P_EMMC_B_GDESC_071                         (volatile uint32_t *)((0x414c7  << 2) + 0xffd00000)
1995 #define   EMMC_B_GDESC_072                         (0x414c8)
1996 #define P_EMMC_B_GDESC_072                         (volatile uint32_t *)((0x414c8  << 2) + 0xffd00000)
1997 #define   EMMC_B_GDESC_073                         (0x414c9)
1998 #define P_EMMC_B_GDESC_073                         (volatile uint32_t *)((0x414c9  << 2) + 0xffd00000)
1999 #define   EMMC_B_GDESC_074                         (0x414ca)
2000 #define P_EMMC_B_GDESC_074                         (volatile uint32_t *)((0x414ca  << 2) + 0xffd00000)
2001 #define   EMMC_B_GDESC_075                         (0x414cb)
2002 #define P_EMMC_B_GDESC_075                         (volatile uint32_t *)((0x414cb  << 2) + 0xffd00000)
2003 #define   EMMC_B_GDESC_076                         (0x414cc)
2004 #define P_EMMC_B_GDESC_076                         (volatile uint32_t *)((0x414cc  << 2) + 0xffd00000)
2005 #define   EMMC_B_GDESC_077                         (0x414cd)
2006 #define P_EMMC_B_GDESC_077                         (volatile uint32_t *)((0x414cd  << 2) + 0xffd00000)
2007 #define   EMMC_B_GDESC_078                         (0x414ce)
2008 #define P_EMMC_B_GDESC_078                         (volatile uint32_t *)((0x414ce  << 2) + 0xffd00000)
2009 #define   EMMC_B_GDESC_079                         (0x414cf)
2010 #define P_EMMC_B_GDESC_079                         (volatile uint32_t *)((0x414cf  << 2) + 0xffd00000)
2011 #define   EMMC_B_GDESC_080                         (0x414d0)
2012 #define P_EMMC_B_GDESC_080                         (volatile uint32_t *)((0x414d0  << 2) + 0xffd00000)
2013 #define   EMMC_B_GDESC_081                         (0x414d1)
2014 #define P_EMMC_B_GDESC_081                         (volatile uint32_t *)((0x414d1  << 2) + 0xffd00000)
2015 #define   EMMC_B_GDESC_082                         (0x414d2)
2016 #define P_EMMC_B_GDESC_082                         (volatile uint32_t *)((0x414d2  << 2) + 0xffd00000)
2017 #define   EMMC_B_GDESC_083                         (0x414d3)
2018 #define P_EMMC_B_GDESC_083                         (volatile uint32_t *)((0x414d3  << 2) + 0xffd00000)
2019 #define   EMMC_B_GDESC_084                         (0x414d4)
2020 #define P_EMMC_B_GDESC_084                         (volatile uint32_t *)((0x414d4  << 2) + 0xffd00000)
2021 #define   EMMC_B_GDESC_085                         (0x414d5)
2022 #define P_EMMC_B_GDESC_085                         (volatile uint32_t *)((0x414d5  << 2) + 0xffd00000)
2023 #define   EMMC_B_GDESC_086                         (0x414d6)
2024 #define P_EMMC_B_GDESC_086                         (volatile uint32_t *)((0x414d6  << 2) + 0xffd00000)
2025 #define   EMMC_B_GDESC_087                         (0x414d7)
2026 #define P_EMMC_B_GDESC_087                         (volatile uint32_t *)((0x414d7  << 2) + 0xffd00000)
2027 #define   EMMC_B_GDESC_088                         (0x414d8)
2028 #define P_EMMC_B_GDESC_088                         (volatile uint32_t *)((0x414d8  << 2) + 0xffd00000)
2029 #define   EMMC_B_GDESC_089                         (0x414d9)
2030 #define P_EMMC_B_GDESC_089                         (volatile uint32_t *)((0x414d9  << 2) + 0xffd00000)
2031 #define   EMMC_B_GDESC_090                         (0x414da)
2032 #define P_EMMC_B_GDESC_090                         (volatile uint32_t *)((0x414da  << 2) + 0xffd00000)
2033 #define   EMMC_B_GDESC_091                         (0x414db)
2034 #define P_EMMC_B_GDESC_091                         (volatile uint32_t *)((0x414db  << 2) + 0xffd00000)
2035 #define   EMMC_B_GDESC_092                         (0x414dc)
2036 #define P_EMMC_B_GDESC_092                         (volatile uint32_t *)((0x414dc  << 2) + 0xffd00000)
2037 #define   EMMC_B_GDESC_093                         (0x414dd)
2038 #define P_EMMC_B_GDESC_093                         (volatile uint32_t *)((0x414dd  << 2) + 0xffd00000)
2039 #define   EMMC_B_GDESC_094                         (0x414de)
2040 #define P_EMMC_B_GDESC_094                         (volatile uint32_t *)((0x414de  << 2) + 0xffd00000)
2041 #define   EMMC_B_GDESC_095                         (0x414df)
2042 #define P_EMMC_B_GDESC_095                         (volatile uint32_t *)((0x414df  << 2) + 0xffd00000)
2043 #define   EMMC_B_GDESC_096                         (0x414e0)
2044 #define P_EMMC_B_GDESC_096                         (volatile uint32_t *)((0x414e0  << 2) + 0xffd00000)
2045 #define   EMMC_B_GDESC_097                         (0x414e1)
2046 #define P_EMMC_B_GDESC_097                         (volatile uint32_t *)((0x414e1  << 2) + 0xffd00000)
2047 #define   EMMC_B_GDESC_098                         (0x414e2)
2048 #define P_EMMC_B_GDESC_098                         (volatile uint32_t *)((0x414e2  << 2) + 0xffd00000)
2049 #define   EMMC_B_GDESC_099                         (0x414e3)
2050 #define P_EMMC_B_GDESC_099                         (volatile uint32_t *)((0x414e3  << 2) + 0xffd00000)
2051 #define   EMMC_B_GDESC_100                         (0x414e4)
2052 #define P_EMMC_B_GDESC_100                         (volatile uint32_t *)((0x414e4  << 2) + 0xffd00000)
2053 #define   EMMC_B_GDESC_101                         (0x414e5)
2054 #define P_EMMC_B_GDESC_101                         (volatile uint32_t *)((0x414e5  << 2) + 0xffd00000)
2055 #define   EMMC_B_GDESC_102                         (0x414e6)
2056 #define P_EMMC_B_GDESC_102                         (volatile uint32_t *)((0x414e6  << 2) + 0xffd00000)
2057 #define   EMMC_B_GDESC_103                         (0x414e7)
2058 #define P_EMMC_B_GDESC_103                         (volatile uint32_t *)((0x414e7  << 2) + 0xffd00000)
2059 #define   EMMC_B_GDESC_104                         (0x414e8)
2060 #define P_EMMC_B_GDESC_104                         (volatile uint32_t *)((0x414e8  << 2) + 0xffd00000)
2061 #define   EMMC_B_GDESC_105                         (0x414e9)
2062 #define P_EMMC_B_GDESC_105                         (volatile uint32_t *)((0x414e9  << 2) + 0xffd00000)
2063 #define   EMMC_B_GDESC_106                         (0x414ea)
2064 #define P_EMMC_B_GDESC_106                         (volatile uint32_t *)((0x414ea  << 2) + 0xffd00000)
2065 #define   EMMC_B_GDESC_107                         (0x414eb)
2066 #define P_EMMC_B_GDESC_107                         (volatile uint32_t *)((0x414eb  << 2) + 0xffd00000)
2067 #define   EMMC_B_GDESC_108                         (0x414ec)
2068 #define P_EMMC_B_GDESC_108                         (volatile uint32_t *)((0x414ec  << 2) + 0xffd00000)
2069 #define   EMMC_B_GDESC_109                         (0x414ed)
2070 #define P_EMMC_B_GDESC_109                         (volatile uint32_t *)((0x414ed  << 2) + 0xffd00000)
2071 #define   EMMC_B_GDESC_110                         (0x414ee)
2072 #define P_EMMC_B_GDESC_110                         (volatile uint32_t *)((0x414ee  << 2) + 0xffd00000)
2073 #define   EMMC_B_GDESC_111                         (0x414ef)
2074 #define P_EMMC_B_GDESC_111                         (volatile uint32_t *)((0x414ef  << 2) + 0xffd00000)
2075 #define   EMMC_B_GDESC_112                         (0x414f0)
2076 #define P_EMMC_B_GDESC_112                         (volatile uint32_t *)((0x414f0  << 2) + 0xffd00000)
2077 #define   EMMC_B_GDESC_113                         (0x414f1)
2078 #define P_EMMC_B_GDESC_113                         (volatile uint32_t *)((0x414f1  << 2) + 0xffd00000)
2079 #define   EMMC_B_GDESC_114                         (0x414f2)
2080 #define P_EMMC_B_GDESC_114                         (volatile uint32_t *)((0x414f2  << 2) + 0xffd00000)
2081 #define   EMMC_B_GDESC_115                         (0x414f3)
2082 #define P_EMMC_B_GDESC_115                         (volatile uint32_t *)((0x414f3  << 2) + 0xffd00000)
2083 #define   EMMC_B_GDESC_116                         (0x414f4)
2084 #define P_EMMC_B_GDESC_116                         (volatile uint32_t *)((0x414f4  << 2) + 0xffd00000)
2085 #define   EMMC_B_GDESC_117                         (0x414f5)
2086 #define P_EMMC_B_GDESC_117                         (volatile uint32_t *)((0x414f5  << 2) + 0xffd00000)
2087 #define   EMMC_B_GDESC_118                         (0x414f6)
2088 #define P_EMMC_B_GDESC_118                         (volatile uint32_t *)((0x414f6  << 2) + 0xffd00000)
2089 #define   EMMC_B_GDESC_119                         (0x414f7)
2090 #define P_EMMC_B_GDESC_119                         (volatile uint32_t *)((0x414f7  << 2) + 0xffd00000)
2091 #define   EMMC_B_GDESC_120                         (0x414f8)
2092 #define P_EMMC_B_GDESC_120                         (volatile uint32_t *)((0x414f8  << 2) + 0xffd00000)
2093 #define   EMMC_B_GDESC_121                         (0x414f9)
2094 #define P_EMMC_B_GDESC_121                         (volatile uint32_t *)((0x414f9  << 2) + 0xffd00000)
2095 #define   EMMC_B_GDESC_122                         (0x414fa)
2096 #define P_EMMC_B_GDESC_122                         (volatile uint32_t *)((0x414fa  << 2) + 0xffd00000)
2097 #define   EMMC_B_GDESC_123                         (0x414fb)
2098 #define P_EMMC_B_GDESC_123                         (volatile uint32_t *)((0x414fb  << 2) + 0xffd00000)
2099 #define   EMMC_B_GDESC_124                         (0x414fc)
2100 #define P_EMMC_B_GDESC_124                         (volatile uint32_t *)((0x414fc  << 2) + 0xffd00000)
2101 #define   EMMC_B_GDESC_125                         (0x414fd)
2102 #define P_EMMC_B_GDESC_125                         (volatile uint32_t *)((0x414fd  << 2) + 0xffd00000)
2103 #define   EMMC_B_GDESC_126                         (0x414fe)
2104 #define P_EMMC_B_GDESC_126                         (volatile uint32_t *)((0x414fe  << 2) + 0xffd00000)
2105 #define   EMMC_B_GDESC_127                         (0x414ff)
2106 #define P_EMMC_B_GDESC_127                         (volatile uint32_t *)((0x414ff  << 2) + 0xffd00000)
2107 #define   EMMC_B_GPING_000                         (0x41500)
2108 #define P_EMMC_B_GPING_000                         (volatile uint32_t *)((0x41500  << 2) + 0xffd00000)
2109 #define   EMMC_B_GPING_001                         (0x41501)
2110 #define P_EMMC_B_GPING_001                         (volatile uint32_t *)((0x41501  << 2) + 0xffd00000)
2111 #define   EMMC_B_GPING_002                         (0x41502)
2112 #define P_EMMC_B_GPING_002                         (volatile uint32_t *)((0x41502  << 2) + 0xffd00000)
2113 #define   EMMC_B_GPING_003                         (0x41503)
2114 #define P_EMMC_B_GPING_003                         (volatile uint32_t *)((0x41503  << 2) + 0xffd00000)
2115 #define   EMMC_B_GPING_004                         (0x41504)
2116 #define P_EMMC_B_GPING_004                         (volatile uint32_t *)((0x41504  << 2) + 0xffd00000)
2117 #define   EMMC_B_GPING_005                         (0x41505)
2118 #define P_EMMC_B_GPING_005                         (volatile uint32_t *)((0x41505  << 2) + 0xffd00000)
2119 #define   EMMC_B_GPING_006                         (0x41506)
2120 #define P_EMMC_B_GPING_006                         (volatile uint32_t *)((0x41506  << 2) + 0xffd00000)
2121 #define   EMMC_B_GPING_007                         (0x41507)
2122 #define P_EMMC_B_GPING_007                         (volatile uint32_t *)((0x41507  << 2) + 0xffd00000)
2123 #define   EMMC_B_GPING_008                         (0x41508)
2124 #define P_EMMC_B_GPING_008                         (volatile uint32_t *)((0x41508  << 2) + 0xffd00000)
2125 #define   EMMC_B_GPING_009                         (0x41509)
2126 #define P_EMMC_B_GPING_009                         (volatile uint32_t *)((0x41509  << 2) + 0xffd00000)
2127 #define   EMMC_B_GPING_010                         (0x4150a)
2128 #define P_EMMC_B_GPING_010                         (volatile uint32_t *)((0x4150a  << 2) + 0xffd00000)
2129 #define   EMMC_B_GPING_011                         (0x4150b)
2130 #define P_EMMC_B_GPING_011                         (volatile uint32_t *)((0x4150b  << 2) + 0xffd00000)
2131 #define   EMMC_B_GPING_012                         (0x4150c)
2132 #define P_EMMC_B_GPING_012                         (volatile uint32_t *)((0x4150c  << 2) + 0xffd00000)
2133 #define   EMMC_B_GPING_013                         (0x4150d)
2134 #define P_EMMC_B_GPING_013                         (volatile uint32_t *)((0x4150d  << 2) + 0xffd00000)
2135 #define   EMMC_B_GPING_014                         (0x4150e)
2136 #define P_EMMC_B_GPING_014                         (volatile uint32_t *)((0x4150e  << 2) + 0xffd00000)
2137 #define   EMMC_B_GPING_015                         (0x4150f)
2138 #define P_EMMC_B_GPING_015                         (volatile uint32_t *)((0x4150f  << 2) + 0xffd00000)
2139 #define   EMMC_B_GPING_016                         (0x41510)
2140 #define P_EMMC_B_GPING_016                         (volatile uint32_t *)((0x41510  << 2) + 0xffd00000)
2141 #define   EMMC_B_GPING_017                         (0x41511)
2142 #define P_EMMC_B_GPING_017                         (volatile uint32_t *)((0x41511  << 2) + 0xffd00000)
2143 #define   EMMC_B_GPING_018                         (0x41512)
2144 #define P_EMMC_B_GPING_018                         (volatile uint32_t *)((0x41512  << 2) + 0xffd00000)
2145 #define   EMMC_B_GPING_019                         (0x41513)
2146 #define P_EMMC_B_GPING_019                         (volatile uint32_t *)((0x41513  << 2) + 0xffd00000)
2147 #define   EMMC_B_GPING_020                         (0x41514)
2148 #define P_EMMC_B_GPING_020                         (volatile uint32_t *)((0x41514  << 2) + 0xffd00000)
2149 #define   EMMC_B_GPING_021                         (0x41515)
2150 #define P_EMMC_B_GPING_021                         (volatile uint32_t *)((0x41515  << 2) + 0xffd00000)
2151 #define   EMMC_B_GPING_022                         (0x41516)
2152 #define P_EMMC_B_GPING_022                         (volatile uint32_t *)((0x41516  << 2) + 0xffd00000)
2153 #define   EMMC_B_GPING_023                         (0x41517)
2154 #define P_EMMC_B_GPING_023                         (volatile uint32_t *)((0x41517  << 2) + 0xffd00000)
2155 #define   EMMC_B_GPING_024                         (0x41518)
2156 #define P_EMMC_B_GPING_024                         (volatile uint32_t *)((0x41518  << 2) + 0xffd00000)
2157 #define   EMMC_B_GPING_025                         (0x41519)
2158 #define P_EMMC_B_GPING_025                         (volatile uint32_t *)((0x41519  << 2) + 0xffd00000)
2159 #define   EMMC_B_GPING_026                         (0x4151a)
2160 #define P_EMMC_B_GPING_026                         (volatile uint32_t *)((0x4151a  << 2) + 0xffd00000)
2161 #define   EMMC_B_GPING_027                         (0x4151b)
2162 #define P_EMMC_B_GPING_027                         (volatile uint32_t *)((0x4151b  << 2) + 0xffd00000)
2163 #define   EMMC_B_GPING_028                         (0x4151c)
2164 #define P_EMMC_B_GPING_028                         (volatile uint32_t *)((0x4151c  << 2) + 0xffd00000)
2165 #define   EMMC_B_GPING_029                         (0x4151d)
2166 #define P_EMMC_B_GPING_029                         (volatile uint32_t *)((0x4151d  << 2) + 0xffd00000)
2167 #define   EMMC_B_GPING_030                         (0x4151e)
2168 #define P_EMMC_B_GPING_030                         (volatile uint32_t *)((0x4151e  << 2) + 0xffd00000)
2169 #define   EMMC_B_GPING_031                         (0x4151f)
2170 #define P_EMMC_B_GPING_031                         (volatile uint32_t *)((0x4151f  << 2) + 0xffd00000)
2171 #define   EMMC_B_GPING_032                         (0x41520)
2172 #define P_EMMC_B_GPING_032                         (volatile uint32_t *)((0x41520  << 2) + 0xffd00000)
2173 #define   EMMC_B_GPING_033                         (0x41521)
2174 #define P_EMMC_B_GPING_033                         (volatile uint32_t *)((0x41521  << 2) + 0xffd00000)
2175 #define   EMMC_B_GPING_034                         (0x41522)
2176 #define P_EMMC_B_GPING_034                         (volatile uint32_t *)((0x41522  << 2) + 0xffd00000)
2177 #define   EMMC_B_GPING_035                         (0x41523)
2178 #define P_EMMC_B_GPING_035                         (volatile uint32_t *)((0x41523  << 2) + 0xffd00000)
2179 #define   EMMC_B_GPING_036                         (0x41524)
2180 #define P_EMMC_B_GPING_036                         (volatile uint32_t *)((0x41524  << 2) + 0xffd00000)
2181 #define   EMMC_B_GPING_037                         (0x41525)
2182 #define P_EMMC_B_GPING_037                         (volatile uint32_t *)((0x41525  << 2) + 0xffd00000)
2183 #define   EMMC_B_GPING_038                         (0x41526)
2184 #define P_EMMC_B_GPING_038                         (volatile uint32_t *)((0x41526  << 2) + 0xffd00000)
2185 #define   EMMC_B_GPING_039                         (0x41527)
2186 #define P_EMMC_B_GPING_039                         (volatile uint32_t *)((0x41527  << 2) + 0xffd00000)
2187 #define   EMMC_B_GPING_040                         (0x41528)
2188 #define P_EMMC_B_GPING_040                         (volatile uint32_t *)((0x41528  << 2) + 0xffd00000)
2189 #define   EMMC_B_GPING_041                         (0x41529)
2190 #define P_EMMC_B_GPING_041                         (volatile uint32_t *)((0x41529  << 2) + 0xffd00000)
2191 #define   EMMC_B_GPING_042                         (0x4152a)
2192 #define P_EMMC_B_GPING_042                         (volatile uint32_t *)((0x4152a  << 2) + 0xffd00000)
2193 #define   EMMC_B_GPING_043                         (0x4152b)
2194 #define P_EMMC_B_GPING_043                         (volatile uint32_t *)((0x4152b  << 2) + 0xffd00000)
2195 #define   EMMC_B_GPING_044                         (0x4152c)
2196 #define P_EMMC_B_GPING_044                         (volatile uint32_t *)((0x4152c  << 2) + 0xffd00000)
2197 #define   EMMC_B_GPING_045                         (0x4152d)
2198 #define P_EMMC_B_GPING_045                         (volatile uint32_t *)((0x4152d  << 2) + 0xffd00000)
2199 #define   EMMC_B_GPING_046                         (0x4152e)
2200 #define P_EMMC_B_GPING_046                         (volatile uint32_t *)((0x4152e  << 2) + 0xffd00000)
2201 #define   EMMC_B_GPING_047                         (0x4152f)
2202 #define P_EMMC_B_GPING_047                         (volatile uint32_t *)((0x4152f  << 2) + 0xffd00000)
2203 #define   EMMC_B_GPING_048                         (0x41530)
2204 #define P_EMMC_B_GPING_048                         (volatile uint32_t *)((0x41530  << 2) + 0xffd00000)
2205 #define   EMMC_B_GPING_049                         (0x41531)
2206 #define P_EMMC_B_GPING_049                         (volatile uint32_t *)((0x41531  << 2) + 0xffd00000)
2207 #define   EMMC_B_GPING_050                         (0x41532)
2208 #define P_EMMC_B_GPING_050                         (volatile uint32_t *)((0x41532  << 2) + 0xffd00000)
2209 #define   EMMC_B_GPING_051                         (0x41533)
2210 #define P_EMMC_B_GPING_051                         (volatile uint32_t *)((0x41533  << 2) + 0xffd00000)
2211 #define   EMMC_B_GPING_052                         (0x41534)
2212 #define P_EMMC_B_GPING_052                         (volatile uint32_t *)((0x41534  << 2) + 0xffd00000)
2213 #define   EMMC_B_GPING_053                         (0x41535)
2214 #define P_EMMC_B_GPING_053                         (volatile uint32_t *)((0x41535  << 2) + 0xffd00000)
2215 #define   EMMC_B_GPING_054                         (0x41536)
2216 #define P_EMMC_B_GPING_054                         (volatile uint32_t *)((0x41536  << 2) + 0xffd00000)
2217 #define   EMMC_B_GPING_055                         (0x41537)
2218 #define P_EMMC_B_GPING_055                         (volatile uint32_t *)((0x41537  << 2) + 0xffd00000)
2219 #define   EMMC_B_GPING_056                         (0x41538)
2220 #define P_EMMC_B_GPING_056                         (volatile uint32_t *)((0x41538  << 2) + 0xffd00000)
2221 #define   EMMC_B_GPING_057                         (0x41539)
2222 #define P_EMMC_B_GPING_057                         (volatile uint32_t *)((0x41539  << 2) + 0xffd00000)
2223 #define   EMMC_B_GPING_058                         (0x4153a)
2224 #define P_EMMC_B_GPING_058                         (volatile uint32_t *)((0x4153a  << 2) + 0xffd00000)
2225 #define   EMMC_B_GPING_059                         (0x4153b)
2226 #define P_EMMC_B_GPING_059                         (volatile uint32_t *)((0x4153b  << 2) + 0xffd00000)
2227 #define   EMMC_B_GPING_060                         (0x4153c)
2228 #define P_EMMC_B_GPING_060                         (volatile uint32_t *)((0x4153c  << 2) + 0xffd00000)
2229 #define   EMMC_B_GPING_061                         (0x4153d)
2230 #define P_EMMC_B_GPING_061                         (volatile uint32_t *)((0x4153d  << 2) + 0xffd00000)
2231 #define   EMMC_B_GPING_062                         (0x4153e)
2232 #define P_EMMC_B_GPING_062                         (volatile uint32_t *)((0x4153e  << 2) + 0xffd00000)
2233 #define   EMMC_B_GPING_063                         (0x4153f)
2234 #define P_EMMC_B_GPING_063                         (volatile uint32_t *)((0x4153f  << 2) + 0xffd00000)
2235 #define   EMMC_B_GPING_064                         (0x41540)
2236 #define P_EMMC_B_GPING_064                         (volatile uint32_t *)((0x41540  << 2) + 0xffd00000)
2237 #define   EMMC_B_GPING_065                         (0x41541)
2238 #define P_EMMC_B_GPING_065                         (volatile uint32_t *)((0x41541  << 2) + 0xffd00000)
2239 #define   EMMC_B_GPING_066                         (0x41542)
2240 #define P_EMMC_B_GPING_066                         (volatile uint32_t *)((0x41542  << 2) + 0xffd00000)
2241 #define   EMMC_B_GPING_067                         (0x41543)
2242 #define P_EMMC_B_GPING_067                         (volatile uint32_t *)((0x41543  << 2) + 0xffd00000)
2243 #define   EMMC_B_GPING_068                         (0x41544)
2244 #define P_EMMC_B_GPING_068                         (volatile uint32_t *)((0x41544  << 2) + 0xffd00000)
2245 #define   EMMC_B_GPING_069                         (0x41545)
2246 #define P_EMMC_B_GPING_069                         (volatile uint32_t *)((0x41545  << 2) + 0xffd00000)
2247 #define   EMMC_B_GPING_070                         (0x41546)
2248 #define P_EMMC_B_GPING_070                         (volatile uint32_t *)((0x41546  << 2) + 0xffd00000)
2249 #define   EMMC_B_GPING_071                         (0x41547)
2250 #define P_EMMC_B_GPING_071                         (volatile uint32_t *)((0x41547  << 2) + 0xffd00000)
2251 #define   EMMC_B_GPING_072                         (0x41548)
2252 #define P_EMMC_B_GPING_072                         (volatile uint32_t *)((0x41548  << 2) + 0xffd00000)
2253 #define   EMMC_B_GPING_073                         (0x41549)
2254 #define P_EMMC_B_GPING_073                         (volatile uint32_t *)((0x41549  << 2) + 0xffd00000)
2255 #define   EMMC_B_GPING_074                         (0x4154a)
2256 #define P_EMMC_B_GPING_074                         (volatile uint32_t *)((0x4154a  << 2) + 0xffd00000)
2257 #define   EMMC_B_GPING_075                         (0x4154b)
2258 #define P_EMMC_B_GPING_075                         (volatile uint32_t *)((0x4154b  << 2) + 0xffd00000)
2259 #define   EMMC_B_GPING_076                         (0x4154c)
2260 #define P_EMMC_B_GPING_076                         (volatile uint32_t *)((0x4154c  << 2) + 0xffd00000)
2261 #define   EMMC_B_GPING_077                         (0x4154d)
2262 #define P_EMMC_B_GPING_077                         (volatile uint32_t *)((0x4154d  << 2) + 0xffd00000)
2263 #define   EMMC_B_GPING_078                         (0x4154e)
2264 #define P_EMMC_B_GPING_078                         (volatile uint32_t *)((0x4154e  << 2) + 0xffd00000)
2265 #define   EMMC_B_GPING_079                         (0x4154f)
2266 #define P_EMMC_B_GPING_079                         (volatile uint32_t *)((0x4154f  << 2) + 0xffd00000)
2267 #define   EMMC_B_GPING_080                         (0x41550)
2268 #define P_EMMC_B_GPING_080                         (volatile uint32_t *)((0x41550  << 2) + 0xffd00000)
2269 #define   EMMC_B_GPING_081                         (0x41551)
2270 #define P_EMMC_B_GPING_081                         (volatile uint32_t *)((0x41551  << 2) + 0xffd00000)
2271 #define   EMMC_B_GPING_082                         (0x41552)
2272 #define P_EMMC_B_GPING_082                         (volatile uint32_t *)((0x41552  << 2) + 0xffd00000)
2273 #define   EMMC_B_GPING_083                         (0x41553)
2274 #define P_EMMC_B_GPING_083                         (volatile uint32_t *)((0x41553  << 2) + 0xffd00000)
2275 #define   EMMC_B_GPING_084                         (0x41554)
2276 #define P_EMMC_B_GPING_084                         (volatile uint32_t *)((0x41554  << 2) + 0xffd00000)
2277 #define   EMMC_B_GPING_085                         (0x41555)
2278 #define P_EMMC_B_GPING_085                         (volatile uint32_t *)((0x41555  << 2) + 0xffd00000)
2279 #define   EMMC_B_GPING_086                         (0x41556)
2280 #define P_EMMC_B_GPING_086                         (volatile uint32_t *)((0x41556  << 2) + 0xffd00000)
2281 #define   EMMC_B_GPING_087                         (0x41557)
2282 #define P_EMMC_B_GPING_087                         (volatile uint32_t *)((0x41557  << 2) + 0xffd00000)
2283 #define   EMMC_B_GPING_088                         (0x41558)
2284 #define P_EMMC_B_GPING_088                         (volatile uint32_t *)((0x41558  << 2) + 0xffd00000)
2285 #define   EMMC_B_GPING_089                         (0x41559)
2286 #define P_EMMC_B_GPING_089                         (volatile uint32_t *)((0x41559  << 2) + 0xffd00000)
2287 #define   EMMC_B_GPING_090                         (0x4155a)
2288 #define P_EMMC_B_GPING_090                         (volatile uint32_t *)((0x4155a  << 2) + 0xffd00000)
2289 #define   EMMC_B_GPING_091                         (0x4155b)
2290 #define P_EMMC_B_GPING_091                         (volatile uint32_t *)((0x4155b  << 2) + 0xffd00000)
2291 #define   EMMC_B_GPING_092                         (0x4155c)
2292 #define P_EMMC_B_GPING_092                         (volatile uint32_t *)((0x4155c  << 2) + 0xffd00000)
2293 #define   EMMC_B_GPING_093                         (0x4155d)
2294 #define P_EMMC_B_GPING_093                         (volatile uint32_t *)((0x4155d  << 2) + 0xffd00000)
2295 #define   EMMC_B_GPING_094                         (0x4155e)
2296 #define P_EMMC_B_GPING_094                         (volatile uint32_t *)((0x4155e  << 2) + 0xffd00000)
2297 #define   EMMC_B_GPING_095                         (0x4155f)
2298 #define P_EMMC_B_GPING_095                         (volatile uint32_t *)((0x4155f  << 2) + 0xffd00000)
2299 #define   EMMC_B_GPING_096                         (0x41560)
2300 #define P_EMMC_B_GPING_096                         (volatile uint32_t *)((0x41560  << 2) + 0xffd00000)
2301 #define   EMMC_B_GPING_097                         (0x41561)
2302 #define P_EMMC_B_GPING_097                         (volatile uint32_t *)((0x41561  << 2) + 0xffd00000)
2303 #define   EMMC_B_GPING_098                         (0x41562)
2304 #define P_EMMC_B_GPING_098                         (volatile uint32_t *)((0x41562  << 2) + 0xffd00000)
2305 #define   EMMC_B_GPING_099                         (0x41563)
2306 #define P_EMMC_B_GPING_099                         (volatile uint32_t *)((0x41563  << 2) + 0xffd00000)
2307 #define   EMMC_B_GPING_100                         (0x41564)
2308 #define P_EMMC_B_GPING_100                         (volatile uint32_t *)((0x41564  << 2) + 0xffd00000)
2309 #define   EMMC_B_GPING_101                         (0x41565)
2310 #define P_EMMC_B_GPING_101                         (volatile uint32_t *)((0x41565  << 2) + 0xffd00000)
2311 #define   EMMC_B_GPING_102                         (0x41566)
2312 #define P_EMMC_B_GPING_102                         (volatile uint32_t *)((0x41566  << 2) + 0xffd00000)
2313 #define   EMMC_B_GPING_103                         (0x41567)
2314 #define P_EMMC_B_GPING_103                         (volatile uint32_t *)((0x41567  << 2) + 0xffd00000)
2315 #define   EMMC_B_GPING_104                         (0x41568)
2316 #define P_EMMC_B_GPING_104                         (volatile uint32_t *)((0x41568  << 2) + 0xffd00000)
2317 #define   EMMC_B_GPING_105                         (0x41569)
2318 #define P_EMMC_B_GPING_105                         (volatile uint32_t *)((0x41569  << 2) + 0xffd00000)
2319 #define   EMMC_B_GPING_106                         (0x4156a)
2320 #define P_EMMC_B_GPING_106                         (volatile uint32_t *)((0x4156a  << 2) + 0xffd00000)
2321 #define   EMMC_B_GPING_107                         (0x4156b)
2322 #define P_EMMC_B_GPING_107                         (volatile uint32_t *)((0x4156b  << 2) + 0xffd00000)
2323 #define   EMMC_B_GPING_108                         (0x4156c)
2324 #define P_EMMC_B_GPING_108                         (volatile uint32_t *)((0x4156c  << 2) + 0xffd00000)
2325 #define   EMMC_B_GPING_109                         (0x4156d)
2326 #define P_EMMC_B_GPING_109                         (volatile uint32_t *)((0x4156d  << 2) + 0xffd00000)
2327 #define   EMMC_B_GPING_110                         (0x4156e)
2328 #define P_EMMC_B_GPING_110                         (volatile uint32_t *)((0x4156e  << 2) + 0xffd00000)
2329 #define   EMMC_B_GPING_111                         (0x4156f)
2330 #define P_EMMC_B_GPING_111                         (volatile uint32_t *)((0x4156f  << 2) + 0xffd00000)
2331 #define   EMMC_B_GPING_112                         (0x41570)
2332 #define P_EMMC_B_GPING_112                         (volatile uint32_t *)((0x41570  << 2) + 0xffd00000)
2333 #define   EMMC_B_GPING_113                         (0x41571)
2334 #define P_EMMC_B_GPING_113                         (volatile uint32_t *)((0x41571  << 2) + 0xffd00000)
2335 #define   EMMC_B_GPING_114                         (0x41572)
2336 #define P_EMMC_B_GPING_114                         (volatile uint32_t *)((0x41572  << 2) + 0xffd00000)
2337 #define   EMMC_B_GPING_115                         (0x41573)
2338 #define P_EMMC_B_GPING_115                         (volatile uint32_t *)((0x41573  << 2) + 0xffd00000)
2339 #define   EMMC_B_GPING_116                         (0x41574)
2340 #define P_EMMC_B_GPING_116                         (volatile uint32_t *)((0x41574  << 2) + 0xffd00000)
2341 #define   EMMC_B_GPING_117                         (0x41575)
2342 #define P_EMMC_B_GPING_117                         (volatile uint32_t *)((0x41575  << 2) + 0xffd00000)
2343 #define   EMMC_B_GPING_118                         (0x41576)
2344 #define P_EMMC_B_GPING_118                         (volatile uint32_t *)((0x41576  << 2) + 0xffd00000)
2345 #define   EMMC_B_GPING_119                         (0x41577)
2346 #define P_EMMC_B_GPING_119                         (volatile uint32_t *)((0x41577  << 2) + 0xffd00000)
2347 #define   EMMC_B_GPING_120                         (0x41578)
2348 #define P_EMMC_B_GPING_120                         (volatile uint32_t *)((0x41578  << 2) + 0xffd00000)
2349 #define   EMMC_B_GPING_121                         (0x41579)
2350 #define P_EMMC_B_GPING_121                         (volatile uint32_t *)((0x41579  << 2) + 0xffd00000)
2351 #define   EMMC_B_GPING_122                         (0x4157a)
2352 #define P_EMMC_B_GPING_122                         (volatile uint32_t *)((0x4157a  << 2) + 0xffd00000)
2353 #define   EMMC_B_GPING_123                         (0x4157b)
2354 #define P_EMMC_B_GPING_123                         (volatile uint32_t *)((0x4157b  << 2) + 0xffd00000)
2355 #define   EMMC_B_GPING_124                         (0x4157c)
2356 #define P_EMMC_B_GPING_124                         (volatile uint32_t *)((0x4157c  << 2) + 0xffd00000)
2357 #define   EMMC_B_GPING_125                         (0x4157d)
2358 #define P_EMMC_B_GPING_125                         (volatile uint32_t *)((0x4157d  << 2) + 0xffd00000)
2359 #define   EMMC_B_GPING_126                         (0x4157e)
2360 #define P_EMMC_B_GPING_126                         (volatile uint32_t *)((0x4157e  << 2) + 0xffd00000)
2361 #define   EMMC_B_GPING_127                         (0x4157f)
2362 #define P_EMMC_B_GPING_127                         (volatile uint32_t *)((0x4157f  << 2) + 0xffd00000)
2363 #define   EMMC_B_GPONG_000                         (0x41580)
2364 #define P_EMMC_B_GPONG_000                         (volatile uint32_t *)((0x41580  << 2) + 0xffd00000)
2365 #define   EMMC_B_GPONG_001                         (0x41581)
2366 #define P_EMMC_B_GPONG_001                         (volatile uint32_t *)((0x41581  << 2) + 0xffd00000)
2367 #define   EMMC_B_GPONG_002                         (0x41582)
2368 #define P_EMMC_B_GPONG_002                         (volatile uint32_t *)((0x41582  << 2) + 0xffd00000)
2369 #define   EMMC_B_GPONG_003                         (0x41583)
2370 #define P_EMMC_B_GPONG_003                         (volatile uint32_t *)((0x41583  << 2) + 0xffd00000)
2371 #define   EMMC_B_GPONG_004                         (0x41584)
2372 #define P_EMMC_B_GPONG_004                         (volatile uint32_t *)((0x41584  << 2) + 0xffd00000)
2373 #define   EMMC_B_GPONG_005                         (0x41585)
2374 #define P_EMMC_B_GPONG_005                         (volatile uint32_t *)((0x41585  << 2) + 0xffd00000)
2375 #define   EMMC_B_GPONG_006                         (0x41586)
2376 #define P_EMMC_B_GPONG_006                         (volatile uint32_t *)((0x41586  << 2) + 0xffd00000)
2377 #define   EMMC_B_GPONG_007                         (0x41587)
2378 #define P_EMMC_B_GPONG_007                         (volatile uint32_t *)((0x41587  << 2) + 0xffd00000)
2379 #define   EMMC_B_GPONG_008                         (0x41588)
2380 #define P_EMMC_B_GPONG_008                         (volatile uint32_t *)((0x41588  << 2) + 0xffd00000)
2381 #define   EMMC_B_GPONG_009                         (0x41589)
2382 #define P_EMMC_B_GPONG_009                         (volatile uint32_t *)((0x41589  << 2) + 0xffd00000)
2383 #define   EMMC_B_GPONG_010                         (0x4158a)
2384 #define P_EMMC_B_GPONG_010                         (volatile uint32_t *)((0x4158a  << 2) + 0xffd00000)
2385 #define   EMMC_B_GPONG_011                         (0x4158b)
2386 #define P_EMMC_B_GPONG_011                         (volatile uint32_t *)((0x4158b  << 2) + 0xffd00000)
2387 #define   EMMC_B_GPONG_012                         (0x4158c)
2388 #define P_EMMC_B_GPONG_012                         (volatile uint32_t *)((0x4158c  << 2) + 0xffd00000)
2389 #define   EMMC_B_GPONG_013                         (0x4158d)
2390 #define P_EMMC_B_GPONG_013                         (volatile uint32_t *)((0x4158d  << 2) + 0xffd00000)
2391 #define   EMMC_B_GPONG_014                         (0x4158e)
2392 #define P_EMMC_B_GPONG_014                         (volatile uint32_t *)((0x4158e  << 2) + 0xffd00000)
2393 #define   EMMC_B_GPONG_015                         (0x4158f)
2394 #define P_EMMC_B_GPONG_015                         (volatile uint32_t *)((0x4158f  << 2) + 0xffd00000)
2395 #define   EMMC_B_GPONG_016                         (0x41590)
2396 #define P_EMMC_B_GPONG_016                         (volatile uint32_t *)((0x41590  << 2) + 0xffd00000)
2397 #define   EMMC_B_GPONG_017                         (0x41591)
2398 #define P_EMMC_B_GPONG_017                         (volatile uint32_t *)((0x41591  << 2) + 0xffd00000)
2399 #define   EMMC_B_GPONG_018                         (0x41592)
2400 #define P_EMMC_B_GPONG_018                         (volatile uint32_t *)((0x41592  << 2) + 0xffd00000)
2401 #define   EMMC_B_GPONG_019                         (0x41593)
2402 #define P_EMMC_B_GPONG_019                         (volatile uint32_t *)((0x41593  << 2) + 0xffd00000)
2403 #define   EMMC_B_GPONG_020                         (0x41594)
2404 #define P_EMMC_B_GPONG_020                         (volatile uint32_t *)((0x41594  << 2) + 0xffd00000)
2405 #define   EMMC_B_GPONG_021                         (0x41595)
2406 #define P_EMMC_B_GPONG_021                         (volatile uint32_t *)((0x41595  << 2) + 0xffd00000)
2407 #define   EMMC_B_GPONG_022                         (0x41596)
2408 #define P_EMMC_B_GPONG_022                         (volatile uint32_t *)((0x41596  << 2) + 0xffd00000)
2409 #define   EMMC_B_GPONG_023                         (0x41597)
2410 #define P_EMMC_B_GPONG_023                         (volatile uint32_t *)((0x41597  << 2) + 0xffd00000)
2411 #define   EMMC_B_GPONG_024                         (0x41598)
2412 #define P_EMMC_B_GPONG_024                         (volatile uint32_t *)((0x41598  << 2) + 0xffd00000)
2413 #define   EMMC_B_GPONG_025                         (0x41599)
2414 #define P_EMMC_B_GPONG_025                         (volatile uint32_t *)((0x41599  << 2) + 0xffd00000)
2415 #define   EMMC_B_GPONG_026                         (0x4159a)
2416 #define P_EMMC_B_GPONG_026                         (volatile uint32_t *)((0x4159a  << 2) + 0xffd00000)
2417 #define   EMMC_B_GPONG_027                         (0x4159b)
2418 #define P_EMMC_B_GPONG_027                         (volatile uint32_t *)((0x4159b  << 2) + 0xffd00000)
2419 #define   EMMC_B_GPONG_028                         (0x4159c)
2420 #define P_EMMC_B_GPONG_028                         (volatile uint32_t *)((0x4159c  << 2) + 0xffd00000)
2421 #define   EMMC_B_GPONG_029                         (0x4159d)
2422 #define P_EMMC_B_GPONG_029                         (volatile uint32_t *)((0x4159d  << 2) + 0xffd00000)
2423 #define   EMMC_B_GPONG_030                         (0x4159e)
2424 #define P_EMMC_B_GPONG_030                         (volatile uint32_t *)((0x4159e  << 2) + 0xffd00000)
2425 #define   EMMC_B_GPONG_031                         (0x4159f)
2426 #define P_EMMC_B_GPONG_031                         (volatile uint32_t *)((0x4159f  << 2) + 0xffd00000)
2427 #define   EMMC_B_GPONG_032                         (0x415a0)
2428 #define P_EMMC_B_GPONG_032                         (volatile uint32_t *)((0x415a0  << 2) + 0xffd00000)
2429 #define   EMMC_B_GPONG_033                         (0x415a1)
2430 #define P_EMMC_B_GPONG_033                         (volatile uint32_t *)((0x415a1  << 2) + 0xffd00000)
2431 #define   EMMC_B_GPONG_034                         (0x415a2)
2432 #define P_EMMC_B_GPONG_034                         (volatile uint32_t *)((0x415a2  << 2) + 0xffd00000)
2433 #define   EMMC_B_GPONG_035                         (0x415a3)
2434 #define P_EMMC_B_GPONG_035                         (volatile uint32_t *)((0x415a3  << 2) + 0xffd00000)
2435 #define   EMMC_B_GPONG_036                         (0x415a4)
2436 #define P_EMMC_B_GPONG_036                         (volatile uint32_t *)((0x415a4  << 2) + 0xffd00000)
2437 #define   EMMC_B_GPONG_037                         (0x415a5)
2438 #define P_EMMC_B_GPONG_037                         (volatile uint32_t *)((0x415a5  << 2) + 0xffd00000)
2439 #define   EMMC_B_GPONG_038                         (0x415a6)
2440 #define P_EMMC_B_GPONG_038                         (volatile uint32_t *)((0x415a6  << 2) + 0xffd00000)
2441 #define   EMMC_B_GPONG_039                         (0x415a7)
2442 #define P_EMMC_B_GPONG_039                         (volatile uint32_t *)((0x415a7  << 2) + 0xffd00000)
2443 #define   EMMC_B_GPONG_040                         (0x415a8)
2444 #define P_EMMC_B_GPONG_040                         (volatile uint32_t *)((0x415a8  << 2) + 0xffd00000)
2445 #define   EMMC_B_GPONG_041                         (0x415a9)
2446 #define P_EMMC_B_GPONG_041                         (volatile uint32_t *)((0x415a9  << 2) + 0xffd00000)
2447 #define   EMMC_B_GPONG_042                         (0x415aa)
2448 #define P_EMMC_B_GPONG_042                         (volatile uint32_t *)((0x415aa  << 2) + 0xffd00000)
2449 #define   EMMC_B_GPONG_043                         (0x415ab)
2450 #define P_EMMC_B_GPONG_043                         (volatile uint32_t *)((0x415ab  << 2) + 0xffd00000)
2451 #define   EMMC_B_GPONG_044                         (0x415ac)
2452 #define P_EMMC_B_GPONG_044                         (volatile uint32_t *)((0x415ac  << 2) + 0xffd00000)
2453 #define   EMMC_B_GPONG_045                         (0x415ad)
2454 #define P_EMMC_B_GPONG_045                         (volatile uint32_t *)((0x415ad  << 2) + 0xffd00000)
2455 #define   EMMC_B_GPONG_046                         (0x415ae)
2456 #define P_EMMC_B_GPONG_046                         (volatile uint32_t *)((0x415ae  << 2) + 0xffd00000)
2457 #define   EMMC_B_GPONG_047                         (0x415af)
2458 #define P_EMMC_B_GPONG_047                         (volatile uint32_t *)((0x415af  << 2) + 0xffd00000)
2459 #define   EMMC_B_GPONG_048                         (0x415b0)
2460 #define P_EMMC_B_GPONG_048                         (volatile uint32_t *)((0x415b0  << 2) + 0xffd00000)
2461 #define   EMMC_B_GPONG_049                         (0x415b1)
2462 #define P_EMMC_B_GPONG_049                         (volatile uint32_t *)((0x415b1  << 2) + 0xffd00000)
2463 #define   EMMC_B_GPONG_050                         (0x415b2)
2464 #define P_EMMC_B_GPONG_050                         (volatile uint32_t *)((0x415b2  << 2) + 0xffd00000)
2465 #define   EMMC_B_GPONG_051                         (0x415b3)
2466 #define P_EMMC_B_GPONG_051                         (volatile uint32_t *)((0x415b3  << 2) + 0xffd00000)
2467 #define   EMMC_B_GPONG_052                         (0x415b4)
2468 #define P_EMMC_B_GPONG_052                         (volatile uint32_t *)((0x415b4  << 2) + 0xffd00000)
2469 #define   EMMC_B_GPONG_053                         (0x415b5)
2470 #define P_EMMC_B_GPONG_053                         (volatile uint32_t *)((0x415b5  << 2) + 0xffd00000)
2471 #define   EMMC_B_GPONG_054                         (0x415b6)
2472 #define P_EMMC_B_GPONG_054                         (volatile uint32_t *)((0x415b6  << 2) + 0xffd00000)
2473 #define   EMMC_B_GPONG_055                         (0x415b7)
2474 #define P_EMMC_B_GPONG_055                         (volatile uint32_t *)((0x415b7  << 2) + 0xffd00000)
2475 #define   EMMC_B_GPONG_056                         (0x415b8)
2476 #define P_EMMC_B_GPONG_056                         (volatile uint32_t *)((0x415b8  << 2) + 0xffd00000)
2477 #define   EMMC_B_GPONG_057                         (0x415b9)
2478 #define P_EMMC_B_GPONG_057                         (volatile uint32_t *)((0x415b9  << 2) + 0xffd00000)
2479 #define   EMMC_B_GPONG_058                         (0x415ba)
2480 #define P_EMMC_B_GPONG_058                         (volatile uint32_t *)((0x415ba  << 2) + 0xffd00000)
2481 #define   EMMC_B_GPONG_059                         (0x415bb)
2482 #define P_EMMC_B_GPONG_059                         (volatile uint32_t *)((0x415bb  << 2) + 0xffd00000)
2483 #define   EMMC_B_GPONG_060                         (0x415bc)
2484 #define P_EMMC_B_GPONG_060                         (volatile uint32_t *)((0x415bc  << 2) + 0xffd00000)
2485 #define   EMMC_B_GPONG_061                         (0x415bd)
2486 #define P_EMMC_B_GPONG_061                         (volatile uint32_t *)((0x415bd  << 2) + 0xffd00000)
2487 #define   EMMC_B_GPONG_062                         (0x415be)
2488 #define P_EMMC_B_GPONG_062                         (volatile uint32_t *)((0x415be  << 2) + 0xffd00000)
2489 #define   EMMC_B_GPONG_063                         (0x415bf)
2490 #define P_EMMC_B_GPONG_063                         (volatile uint32_t *)((0x415bf  << 2) + 0xffd00000)
2491 #define   EMMC_B_GPONG_064                         (0x415c0)
2492 #define P_EMMC_B_GPONG_064                         (volatile uint32_t *)((0x415c0  << 2) + 0xffd00000)
2493 #define   EMMC_B_GPONG_065                         (0x415c1)
2494 #define P_EMMC_B_GPONG_065                         (volatile uint32_t *)((0x415c1  << 2) + 0xffd00000)
2495 #define   EMMC_B_GPONG_066                         (0x415c2)
2496 #define P_EMMC_B_GPONG_066                         (volatile uint32_t *)((0x415c2  << 2) + 0xffd00000)
2497 #define   EMMC_B_GPONG_067                         (0x415c3)
2498 #define P_EMMC_B_GPONG_067                         (volatile uint32_t *)((0x415c3  << 2) + 0xffd00000)
2499 #define   EMMC_B_GPONG_068                         (0x415c4)
2500 #define P_EMMC_B_GPONG_068                         (volatile uint32_t *)((0x415c4  << 2) + 0xffd00000)
2501 #define   EMMC_B_GPONG_069                         (0x415c5)
2502 #define P_EMMC_B_GPONG_069                         (volatile uint32_t *)((0x415c5  << 2) + 0xffd00000)
2503 #define   EMMC_B_GPONG_070                         (0x415c6)
2504 #define P_EMMC_B_GPONG_070                         (volatile uint32_t *)((0x415c6  << 2) + 0xffd00000)
2505 #define   EMMC_B_GPONG_071                         (0x415c7)
2506 #define P_EMMC_B_GPONG_071                         (volatile uint32_t *)((0x415c7  << 2) + 0xffd00000)
2507 #define   EMMC_B_GPONG_072                         (0x415c8)
2508 #define P_EMMC_B_GPONG_072                         (volatile uint32_t *)((0x415c8  << 2) + 0xffd00000)
2509 #define   EMMC_B_GPONG_073                         (0x415c9)
2510 #define P_EMMC_B_GPONG_073                         (volatile uint32_t *)((0x415c9  << 2) + 0xffd00000)
2511 #define   EMMC_B_GPONG_074                         (0x415ca)
2512 #define P_EMMC_B_GPONG_074                         (volatile uint32_t *)((0x415ca  << 2) + 0xffd00000)
2513 #define   EMMC_B_GPONG_075                         (0x415cb)
2514 #define P_EMMC_B_GPONG_075                         (volatile uint32_t *)((0x415cb  << 2) + 0xffd00000)
2515 #define   EMMC_B_GPONG_076                         (0x415cc)
2516 #define P_EMMC_B_GPONG_076                         (volatile uint32_t *)((0x415cc  << 2) + 0xffd00000)
2517 #define   EMMC_B_GPONG_077                         (0x415cd)
2518 #define P_EMMC_B_GPONG_077                         (volatile uint32_t *)((0x415cd  << 2) + 0xffd00000)
2519 #define   EMMC_B_GPONG_078                         (0x415ce)
2520 #define P_EMMC_B_GPONG_078                         (volatile uint32_t *)((0x415ce  << 2) + 0xffd00000)
2521 #define   EMMC_B_GPONG_079                         (0x415cf)
2522 #define P_EMMC_B_GPONG_079                         (volatile uint32_t *)((0x415cf  << 2) + 0xffd00000)
2523 #define   EMMC_B_GPONG_080                         (0x415d0)
2524 #define P_EMMC_B_GPONG_080                         (volatile uint32_t *)((0x415d0  << 2) + 0xffd00000)
2525 #define   EMMC_B_GPONG_081                         (0x415d1)
2526 #define P_EMMC_B_GPONG_081                         (volatile uint32_t *)((0x415d1  << 2) + 0xffd00000)
2527 #define   EMMC_B_GPONG_082                         (0x415d2)
2528 #define P_EMMC_B_GPONG_082                         (volatile uint32_t *)((0x415d2  << 2) + 0xffd00000)
2529 #define   EMMC_B_GPONG_083                         (0x415d3)
2530 #define P_EMMC_B_GPONG_083                         (volatile uint32_t *)((0x415d3  << 2) + 0xffd00000)
2531 #define   EMMC_B_GPONG_084                         (0x415d4)
2532 #define P_EMMC_B_GPONG_084                         (volatile uint32_t *)((0x415d4  << 2) + 0xffd00000)
2533 #define   EMMC_B_GPONG_085                         (0x415d5)
2534 #define P_EMMC_B_GPONG_085                         (volatile uint32_t *)((0x415d5  << 2) + 0xffd00000)
2535 #define   EMMC_B_GPONG_086                         (0x415d6)
2536 #define P_EMMC_B_GPONG_086                         (volatile uint32_t *)((0x415d6  << 2) + 0xffd00000)
2537 #define   EMMC_B_GPONG_087                         (0x415d7)
2538 #define P_EMMC_B_GPONG_087                         (volatile uint32_t *)((0x415d7  << 2) + 0xffd00000)
2539 #define   EMMC_B_GPONG_088                         (0x415d8)
2540 #define P_EMMC_B_GPONG_088                         (volatile uint32_t *)((0x415d8  << 2) + 0xffd00000)
2541 #define   EMMC_B_GPONG_089                         (0x415d9)
2542 #define P_EMMC_B_GPONG_089                         (volatile uint32_t *)((0x415d9  << 2) + 0xffd00000)
2543 #define   EMMC_B_GPONG_090                         (0x415da)
2544 #define P_EMMC_B_GPONG_090                         (volatile uint32_t *)((0x415da  << 2) + 0xffd00000)
2545 #define   EMMC_B_GPONG_091                         (0x415db)
2546 #define P_EMMC_B_GPONG_091                         (volatile uint32_t *)((0x415db  << 2) + 0xffd00000)
2547 #define   EMMC_B_GPONG_092                         (0x415dc)
2548 #define P_EMMC_B_GPONG_092                         (volatile uint32_t *)((0x415dc  << 2) + 0xffd00000)
2549 #define   EMMC_B_GPONG_093                         (0x415dd)
2550 #define P_EMMC_B_GPONG_093                         (volatile uint32_t *)((0x415dd  << 2) + 0xffd00000)
2551 #define   EMMC_B_GPONG_094                         (0x415de)
2552 #define P_EMMC_B_GPONG_094                         (volatile uint32_t *)((0x415de  << 2) + 0xffd00000)
2553 #define   EMMC_B_GPONG_095                         (0x415df)
2554 #define P_EMMC_B_GPONG_095                         (volatile uint32_t *)((0x415df  << 2) + 0xffd00000)
2555 #define   EMMC_B_GPONG_096                         (0x415e0)
2556 #define P_EMMC_B_GPONG_096                         (volatile uint32_t *)((0x415e0  << 2) + 0xffd00000)
2557 #define   EMMC_B_GPONG_097                         (0x415e1)
2558 #define P_EMMC_B_GPONG_097                         (volatile uint32_t *)((0x415e1  << 2) + 0xffd00000)
2559 #define   EMMC_B_GPONG_098                         (0x415e2)
2560 #define P_EMMC_B_GPONG_098                         (volatile uint32_t *)((0x415e2  << 2) + 0xffd00000)
2561 #define   EMMC_B_GPONG_099                         (0x415e3)
2562 #define P_EMMC_B_GPONG_099                         (volatile uint32_t *)((0x415e3  << 2) + 0xffd00000)
2563 #define   EMMC_B_GPONG_100                         (0x415e4)
2564 #define P_EMMC_B_GPONG_100                         (volatile uint32_t *)((0x415e4  << 2) + 0xffd00000)
2565 #define   EMMC_B_GPONG_101                         (0x415e5)
2566 #define P_EMMC_B_GPONG_101                         (volatile uint32_t *)((0x415e5  << 2) + 0xffd00000)
2567 #define   EMMC_B_GPONG_102                         (0x415e6)
2568 #define P_EMMC_B_GPONG_102                         (volatile uint32_t *)((0x415e6  << 2) + 0xffd00000)
2569 #define   EMMC_B_GPONG_103                         (0x415e7)
2570 #define P_EMMC_B_GPONG_103                         (volatile uint32_t *)((0x415e7  << 2) + 0xffd00000)
2571 #define   EMMC_B_GPONG_104                         (0x415e8)
2572 #define P_EMMC_B_GPONG_104                         (volatile uint32_t *)((0x415e8  << 2) + 0xffd00000)
2573 #define   EMMC_B_GPONG_105                         (0x415e9)
2574 #define P_EMMC_B_GPONG_105                         (volatile uint32_t *)((0x415e9  << 2) + 0xffd00000)
2575 #define   EMMC_B_GPONG_106                         (0x415ea)
2576 #define P_EMMC_B_GPONG_106                         (volatile uint32_t *)((0x415ea  << 2) + 0xffd00000)
2577 #define   EMMC_B_GPONG_107                         (0x415eb)
2578 #define P_EMMC_B_GPONG_107                         (volatile uint32_t *)((0x415eb  << 2) + 0xffd00000)
2579 #define   EMMC_B_GPONG_108                         (0x415ec)
2580 #define P_EMMC_B_GPONG_108                         (volatile uint32_t *)((0x415ec  << 2) + 0xffd00000)
2581 #define   EMMC_B_GPONG_109                         (0x415ed)
2582 #define P_EMMC_B_GPONG_109                         (volatile uint32_t *)((0x415ed  << 2) + 0xffd00000)
2583 #define   EMMC_B_GPONG_110                         (0x415ee)
2584 #define P_EMMC_B_GPONG_110                         (volatile uint32_t *)((0x415ee  << 2) + 0xffd00000)
2585 #define   EMMC_B_GPONG_111                         (0x415ef)
2586 #define P_EMMC_B_GPONG_111                         (volatile uint32_t *)((0x415ef  << 2) + 0xffd00000)
2587 #define   EMMC_B_GPONG_112                         (0x415f0)
2588 #define P_EMMC_B_GPONG_112                         (volatile uint32_t *)((0x415f0  << 2) + 0xffd00000)
2589 #define   EMMC_B_GPONG_113                         (0x415f1)
2590 #define P_EMMC_B_GPONG_113                         (volatile uint32_t *)((0x415f1  << 2) + 0xffd00000)
2591 #define   EMMC_B_GPONG_114                         (0x415f2)
2592 #define P_EMMC_B_GPONG_114                         (volatile uint32_t *)((0x415f2  << 2) + 0xffd00000)
2593 #define   EMMC_B_GPONG_115                         (0x415f3)
2594 #define P_EMMC_B_GPONG_115                         (volatile uint32_t *)((0x415f3  << 2) + 0xffd00000)
2595 #define   EMMC_B_GPONG_116                         (0x415f4)
2596 #define P_EMMC_B_GPONG_116                         (volatile uint32_t *)((0x415f4  << 2) + 0xffd00000)
2597 #define   EMMC_B_GPONG_117                         (0x415f5)
2598 #define P_EMMC_B_GPONG_117                         (volatile uint32_t *)((0x415f5  << 2) + 0xffd00000)
2599 #define   EMMC_B_GPONG_118                         (0x415f6)
2600 #define P_EMMC_B_GPONG_118                         (volatile uint32_t *)((0x415f6  << 2) + 0xffd00000)
2601 #define   EMMC_B_GPONG_119                         (0x415f7)
2602 #define P_EMMC_B_GPONG_119                         (volatile uint32_t *)((0x415f7  << 2) + 0xffd00000)
2603 #define   EMMC_B_GPONG_120                         (0x415f8)
2604 #define P_EMMC_B_GPONG_120                         (volatile uint32_t *)((0x415f8  << 2) + 0xffd00000)
2605 #define   EMMC_B_GPONG_121                         (0x415f9)
2606 #define P_EMMC_B_GPONG_121                         (volatile uint32_t *)((0x415f9  << 2) + 0xffd00000)
2607 #define   EMMC_B_GPONG_122                         (0x415fa)
2608 #define P_EMMC_B_GPONG_122                         (volatile uint32_t *)((0x415fa  << 2) + 0xffd00000)
2609 #define   EMMC_B_GPONG_123                         (0x415fb)
2610 #define P_EMMC_B_GPONG_123                         (volatile uint32_t *)((0x415fb  << 2) + 0xffd00000)
2611 #define   EMMC_B_GPONG_124                         (0x415fc)
2612 #define P_EMMC_B_GPONG_124                         (volatile uint32_t *)((0x415fc  << 2) + 0xffd00000)
2613 #define   EMMC_B_GPONG_125                         (0x415fd)
2614 #define P_EMMC_B_GPONG_125                         (volatile uint32_t *)((0x415fd  << 2) + 0xffd00000)
2615 #define   EMMC_B_GPONG_126                         (0x415fe)
2616 #define P_EMMC_B_GPONG_126                         (volatile uint32_t *)((0x415fe  << 2) + 0xffd00000)
2617 #define   EMMC_B_GPONG_127                         (0x415ff)
2618 #define P_EMMC_B_GPONG_127                         (volatile uint32_t *)((0x415ff  << 2) + 0xffd00000)
2619 // -----------------------------------------------
2620 // CBUS_BASE:  EMMCC_CBUS_BASE = 0x40c
2621 // -----------------------------------------------
2622 #define   EMMC_C_GCLOCK                            (0x40c00)
2623 #define P_EMMC_C_GCLOCK                            (volatile uint32_t *)((0x40c00  << 2) + 0xffd00000)
2624 #define   EMMC_C_GDELAY0                           (0x40c01)
2625 #define P_EMMC_C_GDELAY0                           (volatile uint32_t *)((0x40c01  << 2) + 0xffd00000)
2626 #define   EMMC_C_GDELAY1                           (0x40c02)
2627 #define P_EMMC_C_GDELAY1                           (volatile uint32_t *)((0x40c02  << 2) + 0xffd00000)
2628 #define   EMMC_C_GADJUST                           (0x40c03)
2629 #define P_EMMC_C_GADJUST                           (volatile uint32_t *)((0x40c03  << 2) + 0xffd00000)
2630 #define   EMMC_C_GCALOUT0                          (0x40c04)
2631 #define P_EMMC_C_GCALOUT0                          (volatile uint32_t *)((0x40c04  << 2) + 0xffd00000)
2632 #define   EMMC_C_GCALOUT1                          (0x40c05)
2633 #define P_EMMC_C_GCALOUT1                          (volatile uint32_t *)((0x40c05  << 2) + 0xffd00000)
2634 #define   EMMC_C_GCALOUT2                          (0x40c06)
2635 #define P_EMMC_C_GCALOUT2                          (volatile uint32_t *)((0x40c06  << 2) + 0xffd00000)
2636 #define   EMMC_C_GCALOUT3                          (0x40c07)
2637 #define P_EMMC_C_GCALOUT3                          (volatile uint32_t *)((0x40c07  << 2) + 0xffd00000)
2638 #define   EMMC_C_GADJ_LOG                          (0x40c08)
2639 #define P_EMMC_C_GADJ_LOG                          (volatile uint32_t *)((0x40c08  << 2) + 0xffd00000)
2640 #define   EMMC_C_GCLKTEST_LOG                      (0x40c09)
2641 #define P_EMMC_C_GCLKTEST_LOG                      (volatile uint32_t *)((0x40c09  << 2) + 0xffd00000)
2642 #define   EMMC_C_GCLKTEST_OUT                      (0x40c0a)
2643 #define P_EMMC_C_GCLKTEST_OUT                      (volatile uint32_t *)((0x40c0a  << 2) + 0xffd00000)
2644 #define   EMMC_C_GEYETEST_LOG                      (0x40c0b)
2645 #define P_EMMC_C_GEYETEST_LOG                      (volatile uint32_t *)((0x40c0b  << 2) + 0xffd00000)
2646 #define   EMMC_C_GEYETEST_OUT0                     (0x40c0c)
2647 #define P_EMMC_C_GEYETEST_OUT0                     (volatile uint32_t *)((0x40c0c  << 2) + 0xffd00000)
2648 #define   EMMC_C_GEYETEST_OUT1                     (0x40c0d)
2649 #define P_EMMC_C_GEYETEST_OUT1                     (volatile uint32_t *)((0x40c0d  << 2) + 0xffd00000)
2650 #define   EMMC_C_GINTF3                            (0x40c0e)
2651 #define P_EMMC_C_GINTF3                            (volatile uint32_t *)((0x40c0e  << 2) + 0xffd00000)
2652 #define   EMMC_C_GRESERVE                          (0x40c0f)
2653 #define P_EMMC_C_GRESERVE                          (volatile uint32_t *)((0x40c0f  << 2) + 0xffd00000)
2654 #define   EMMC_C_GSTART                            (0x40c10)
2655 #define P_EMMC_C_GSTART                            (volatile uint32_t *)((0x40c10  << 2) + 0xffd00000)
2656 #define   EMMC_C_GCFG                              (0x40c11)
2657 #define P_EMMC_C_GCFG                              (volatile uint32_t *)((0x40c11  << 2) + 0xffd00000)
2658 #define   EMMC_C_GSTATUS                           (0x40c12)
2659 #define P_EMMC_C_GSTATUS                           (volatile uint32_t *)((0x40c12  << 2) + 0xffd00000)
2660 #define   EMMC_C_GIRQ_EN                           (0x40c13)
2661 #define P_EMMC_C_GIRQ_EN                           (volatile uint32_t *)((0x40c13  << 2) + 0xffd00000)
2662 #define   EMMC_C_GCMD_CFG                          (0x40c14)
2663 #define P_EMMC_C_GCMD_CFG                          (volatile uint32_t *)((0x40c14  << 2) + 0xffd00000)
2664 #define   EMMC_C_GCMD_ARG                          (0x40c15)
2665 #define P_EMMC_C_GCMD_ARG                          (volatile uint32_t *)((0x40c15  << 2) + 0xffd00000)
2666 #define   EMMC_C_GCMD_DAT                          (0x40c16)
2667 #define P_EMMC_C_GCMD_DAT                          (volatile uint32_t *)((0x40c16  << 2) + 0xffd00000)
2668 #define   EMMC_C_GCMD_RSP                          (0x40c17)
2669 #define P_EMMC_C_GCMD_RSP                          (volatile uint32_t *)((0x40c17  << 2) + 0xffd00000)
2670 #define   EMMC_C_GCMD_RSP1                         (0x40c18)
2671 #define P_EMMC_C_GCMD_RSP1                         (volatile uint32_t *)((0x40c18  << 2) + 0xffd00000)
2672 #define   EMMC_C_GCMD_RSP2                         (0x40c19)
2673 #define P_EMMC_C_GCMD_RSP2                         (volatile uint32_t *)((0x40c19  << 2) + 0xffd00000)
2674 #define   EMMC_C_GCMD_RSP3                         (0x40c1a)
2675 #define P_EMMC_C_GCMD_RSP3                         (volatile uint32_t *)((0x40c1a  << 2) + 0xffd00000)
2676 #define   EMMC_C_RESERVED_6C                       (0x40c1b)
2677 #define P_EMMC_C_RESERVED_6C                       (volatile uint32_t *)((0x40c1b  << 2) + 0xffd00000)
2678 #define   EMMC_C_GCURR_CFG                         (0x40c1c)
2679 #define P_EMMC_C_GCURR_CFG                         (volatile uint32_t *)((0x40c1c  << 2) + 0xffd00000)
2680 #define   EMMC_C_GCURR_ARG                         (0x40c1d)
2681 #define P_EMMC_C_GCURR_ARG                         (volatile uint32_t *)((0x40c1d  << 2) + 0xffd00000)
2682 #define   EMMC_C_GCURR_DAT                         (0x40c1e)
2683 #define P_EMMC_C_GCURR_DAT                         (volatile uint32_t *)((0x40c1e  << 2) + 0xffd00000)
2684 #define   EMMC_C_GCURR_RSP                         (0x40c1f)
2685 #define P_EMMC_C_GCURR_RSP                         (volatile uint32_t *)((0x40c1f  << 2) + 0xffd00000)
2686 #define   EMMC_C_GNEXT_CFG                         (0x40c20)
2687 #define P_EMMC_C_GNEXT_CFG                         (volatile uint32_t *)((0x40c20  << 2) + 0xffd00000)
2688 #define   EMMC_C_GNEXT_ARG                         (0x40c21)
2689 #define P_EMMC_C_GNEXT_ARG                         (volatile uint32_t *)((0x40c21  << 2) + 0xffd00000)
2690 #define   EMMC_C_GNEXT_DAT                         (0x40c22)
2691 #define P_EMMC_C_GNEXT_DAT                         (volatile uint32_t *)((0x40c22  << 2) + 0xffd00000)
2692 #define   EMMC_C_GNEXT_RSP                         (0x40c23)
2693 #define P_EMMC_C_GNEXT_RSP                         (volatile uint32_t *)((0x40c23  << 2) + 0xffd00000)
2694 #define   EMMC_C_GRXD                              (0x40c24)
2695 #define P_EMMC_C_GRXD                              (volatile uint32_t *)((0x40c24  << 2) + 0xffd00000)
2696 #define   EMMC_C_GTXD                              (0x40c25)
2697 #define P_EMMC_C_GTXD                              (volatile uint32_t *)((0x40c25  << 2) + 0xffd00000)
2698 #define   EMMC_C_RESERVED_98_00                    (0x40c26)
2699 #define P_EMMC_C_RESERVED_98_00                    (volatile uint32_t *)((0x40c26  << 2) + 0xffd00000)
2700 #define   EMMC_C_RESERVED_98_01                    (0x40c27)
2701 #define P_EMMC_C_RESERVED_98_01                    (volatile uint32_t *)((0x40c27  << 2) + 0xffd00000)
2702 #define   EMMC_C_RESERVED_98_02                    (0x40c28)
2703 #define P_EMMC_C_RESERVED_98_02                    (volatile uint32_t *)((0x40c28  << 2) + 0xffd00000)
2704 #define   EMMC_C_RESERVED_98_03                    (0x40c29)
2705 #define P_EMMC_C_RESERVED_98_03                    (volatile uint32_t *)((0x40c29  << 2) + 0xffd00000)
2706 #define   EMMC_C_RESERVED_98_04                    (0x40c2a)
2707 #define P_EMMC_C_RESERVED_98_04                    (volatile uint32_t *)((0x40c2a  << 2) + 0xffd00000)
2708 #define   EMMC_C_RESERVED_98_05                    (0x40c2b)
2709 #define P_EMMC_C_RESERVED_98_05                    (volatile uint32_t *)((0x40c2b  << 2) + 0xffd00000)
2710 #define   EMMC_C_RESERVED_98_06                    (0x40c2c)
2711 #define P_EMMC_C_RESERVED_98_06                    (volatile uint32_t *)((0x40c2c  << 2) + 0xffd00000)
2712 #define   EMMC_C_RESERVED_98_07                    (0x40c2d)
2713 #define P_EMMC_C_RESERVED_98_07                    (volatile uint32_t *)((0x40c2d  << 2) + 0xffd00000)
2714 #define   EMMC_C_RESERVED_98_08                    (0x40c2e)
2715 #define P_EMMC_C_RESERVED_98_08                    (volatile uint32_t *)((0x40c2e  << 2) + 0xffd00000)
2716 #define   EMMC_C_RESERVED_98_09                    (0x40c2f)
2717 #define P_EMMC_C_RESERVED_98_09                    (volatile uint32_t *)((0x40c2f  << 2) + 0xffd00000)
2718 #define   EMMC_C_RESERVED_98_10                    (0x40c30)
2719 #define P_EMMC_C_RESERVED_98_10                    (volatile uint32_t *)((0x40c30  << 2) + 0xffd00000)
2720 #define   EMMC_C_RESERVED_98_11                    (0x40c31)
2721 #define P_EMMC_C_RESERVED_98_11                    (volatile uint32_t *)((0x40c31  << 2) + 0xffd00000)
2722 #define   EMMC_C_RESERVED_98_12                    (0x40c32)
2723 #define P_EMMC_C_RESERVED_98_12                    (volatile uint32_t *)((0x40c32  << 2) + 0xffd00000)
2724 #define   EMMC_C_RESERVED_98_13                    (0x40c33)
2725 #define P_EMMC_C_RESERVED_98_13                    (volatile uint32_t *)((0x40c33  << 2) + 0xffd00000)
2726 #define   EMMC_C_RESERVED_98_14                    (0x40c34)
2727 #define P_EMMC_C_RESERVED_98_14                    (volatile uint32_t *)((0x40c34  << 2) + 0xffd00000)
2728 #define   EMMC_C_RESERVED_98_15                    (0x40c35)
2729 #define P_EMMC_C_RESERVED_98_15                    (volatile uint32_t *)((0x40c35  << 2) + 0xffd00000)
2730 #define   EMMC_C_RESERVED_98_16                    (0x40c36)
2731 #define P_EMMC_C_RESERVED_98_16                    (volatile uint32_t *)((0x40c36  << 2) + 0xffd00000)
2732 #define   EMMC_C_RESERVED_98_17                    (0x40c37)
2733 #define P_EMMC_C_RESERVED_98_17                    (volatile uint32_t *)((0x40c37  << 2) + 0xffd00000)
2734 #define   EMMC_C_RESERVED_98_18                    (0x40c38)
2735 #define P_EMMC_C_RESERVED_98_18                    (volatile uint32_t *)((0x40c38  << 2) + 0xffd00000)
2736 #define   EMMC_C_RESERVED_98_19                    (0x40c39)
2737 #define P_EMMC_C_RESERVED_98_19                    (volatile uint32_t *)((0x40c39  << 2) + 0xffd00000)
2738 #define   EMMC_C_RESERVED_98_20                    (0x40c3a)
2739 #define P_EMMC_C_RESERVED_98_20                    (volatile uint32_t *)((0x40c3a  << 2) + 0xffd00000)
2740 #define   EMMC_C_RESERVED_98_21                    (0x40c3b)
2741 #define P_EMMC_C_RESERVED_98_21                    (volatile uint32_t *)((0x40c3b  << 2) + 0xffd00000)
2742 #define   EMMC_C_RESERVED_98_22                    (0x40c3c)
2743 #define P_EMMC_C_RESERVED_98_22                    (volatile uint32_t *)((0x40c3c  << 2) + 0xffd00000)
2744 #define   EMMC_C_RESERVED_98_23                    (0x40c3d)
2745 #define P_EMMC_C_RESERVED_98_23                    (volatile uint32_t *)((0x40c3d  << 2) + 0xffd00000)
2746 #define   EMMC_C_RESERVED_98_24                    (0x40c3e)
2747 #define P_EMMC_C_RESERVED_98_24                    (volatile uint32_t *)((0x40c3e  << 2) + 0xffd00000)
2748 #define   EMMC_C_RESERVED_98_25                    (0x40c3f)
2749 #define P_EMMC_C_RESERVED_98_25                    (volatile uint32_t *)((0x40c3f  << 2) + 0xffd00000)
2750 #define   EMMC_C_RESERVED_98_26                    (0x40c40)
2751 #define P_EMMC_C_RESERVED_98_26                    (volatile uint32_t *)((0x40c40  << 2) + 0xffd00000)
2752 #define   EMMC_C_RESERVED_98_27                    (0x40c41)
2753 #define P_EMMC_C_RESERVED_98_27                    (volatile uint32_t *)((0x40c41  << 2) + 0xffd00000)
2754 #define   EMMC_C_RESERVED_98_28                    (0x40c42)
2755 #define P_EMMC_C_RESERVED_98_28                    (volatile uint32_t *)((0x40c42  << 2) + 0xffd00000)
2756 #define   EMMC_C_RESERVED_98_29                    (0x40c43)
2757 #define P_EMMC_C_RESERVED_98_29                    (volatile uint32_t *)((0x40c43  << 2) + 0xffd00000)
2758 #define   EMMC_C_RESERVED_98_30                    (0x40c44)
2759 #define P_EMMC_C_RESERVED_98_30                    (volatile uint32_t *)((0x40c44  << 2) + 0xffd00000)
2760 #define   EMMC_C_RESERVED_98_31                    (0x40c45)
2761 #define P_EMMC_C_RESERVED_98_31                    (volatile uint32_t *)((0x40c45  << 2) + 0xffd00000)
2762 #define   EMMC_C_RESERVED_98_32                    (0x40c46)
2763 #define P_EMMC_C_RESERVED_98_32                    (volatile uint32_t *)((0x40c46  << 2) + 0xffd00000)
2764 #define   EMMC_C_RESERVED_98_33                    (0x40c47)
2765 #define P_EMMC_C_RESERVED_98_33                    (volatile uint32_t *)((0x40c47  << 2) + 0xffd00000)
2766 #define   EMMC_C_RESERVED_98_34                    (0x40c48)
2767 #define P_EMMC_C_RESERVED_98_34                    (volatile uint32_t *)((0x40c48  << 2) + 0xffd00000)
2768 #define   EMMC_C_RESERVED_98_35                    (0x40c49)
2769 #define P_EMMC_C_RESERVED_98_35                    (volatile uint32_t *)((0x40c49  << 2) + 0xffd00000)
2770 #define   EMMC_C_RESERVED_98_36                    (0x40c4a)
2771 #define P_EMMC_C_RESERVED_98_36                    (volatile uint32_t *)((0x40c4a  << 2) + 0xffd00000)
2772 #define   EMMC_C_RESERVED_98_37                    (0x40c4b)
2773 #define P_EMMC_C_RESERVED_98_37                    (volatile uint32_t *)((0x40c4b  << 2) + 0xffd00000)
2774 #define   EMMC_C_RESERVED_98_38                    (0x40c4c)
2775 #define P_EMMC_C_RESERVED_98_38                    (volatile uint32_t *)((0x40c4c  << 2) + 0xffd00000)
2776 #define   EMMC_C_RESERVED_98_39                    (0x40c4d)
2777 #define P_EMMC_C_RESERVED_98_39                    (volatile uint32_t *)((0x40c4d  << 2) + 0xffd00000)
2778 #define   EMMC_C_RESERVED_98_40                    (0x40c4e)
2779 #define P_EMMC_C_RESERVED_98_40                    (volatile uint32_t *)((0x40c4e  << 2) + 0xffd00000)
2780 #define   EMMC_C_RESERVED_98_41                    (0x40c4f)
2781 #define P_EMMC_C_RESERVED_98_41                    (volatile uint32_t *)((0x40c4f  << 2) + 0xffd00000)
2782 #define   EMMC_C_RESERVED_98_42                    (0x40c50)
2783 #define P_EMMC_C_RESERVED_98_42                    (volatile uint32_t *)((0x40c50  << 2) + 0xffd00000)
2784 #define   EMMC_C_RESERVED_98_43                    (0x40c51)
2785 #define P_EMMC_C_RESERVED_98_43                    (volatile uint32_t *)((0x40c51  << 2) + 0xffd00000)
2786 #define   EMMC_C_RESERVED_98_44                    (0x40c52)
2787 #define P_EMMC_C_RESERVED_98_44                    (volatile uint32_t *)((0x40c52  << 2) + 0xffd00000)
2788 #define   EMMC_C_RESERVED_98_45                    (0x40c53)
2789 #define P_EMMC_C_RESERVED_98_45                    (volatile uint32_t *)((0x40c53  << 2) + 0xffd00000)
2790 #define   EMMC_C_RESERVED_98_46                    (0x40c54)
2791 #define P_EMMC_C_RESERVED_98_46                    (volatile uint32_t *)((0x40c54  << 2) + 0xffd00000)
2792 #define   EMMC_C_RESERVED_98_47                    (0x40c55)
2793 #define P_EMMC_C_RESERVED_98_47                    (volatile uint32_t *)((0x40c55  << 2) + 0xffd00000)
2794 #define   EMMC_C_RESERVED_98_48                    (0x40c56)
2795 #define P_EMMC_C_RESERVED_98_48                    (volatile uint32_t *)((0x40c56  << 2) + 0xffd00000)
2796 #define   EMMC_C_RESERVED_98_49                    (0x40c57)
2797 #define P_EMMC_C_RESERVED_98_49                    (volatile uint32_t *)((0x40c57  << 2) + 0xffd00000)
2798 #define   EMMC_C_RESERVED_98_50                    (0x40c58)
2799 #define P_EMMC_C_RESERVED_98_50                    (volatile uint32_t *)((0x40c58  << 2) + 0xffd00000)
2800 #define   EMMC_C_RESERVED_98_51                    (0x40c59)
2801 #define P_EMMC_C_RESERVED_98_51                    (volatile uint32_t *)((0x40c59  << 2) + 0xffd00000)
2802 #define   EMMC_C_RESERVED_98_52                    (0x40c5a)
2803 #define P_EMMC_C_RESERVED_98_52                    (volatile uint32_t *)((0x40c5a  << 2) + 0xffd00000)
2804 #define   EMMC_C_RESERVED_98_53                    (0x40c5b)
2805 #define P_EMMC_C_RESERVED_98_53                    (volatile uint32_t *)((0x40c5b  << 2) + 0xffd00000)
2806 #define   EMMC_C_RESERVED_98_54                    (0x40c5c)
2807 #define P_EMMC_C_RESERVED_98_54                    (volatile uint32_t *)((0x40c5c  << 2) + 0xffd00000)
2808 #define   EMMC_C_RESERVED_98_55                    (0x40c5d)
2809 #define P_EMMC_C_RESERVED_98_55                    (volatile uint32_t *)((0x40c5d  << 2) + 0xffd00000)
2810 #define   EMMC_C_RESERVED_98_56                    (0x40c5e)
2811 #define P_EMMC_C_RESERVED_98_56                    (volatile uint32_t *)((0x40c5e  << 2) + 0xffd00000)
2812 #define   EMMC_C_RESERVED_98_57                    (0x40c5f)
2813 #define P_EMMC_C_RESERVED_98_57                    (volatile uint32_t *)((0x40c5f  << 2) + 0xffd00000)
2814 #define   EMMC_C_RESERVED_98_58                    (0x40c60)
2815 #define P_EMMC_C_RESERVED_98_58                    (volatile uint32_t *)((0x40c60  << 2) + 0xffd00000)
2816 #define   EMMC_C_RESERVED_98_59                    (0x40c61)
2817 #define P_EMMC_C_RESERVED_98_59                    (volatile uint32_t *)((0x40c61  << 2) + 0xffd00000)
2818 #define   EMMC_C_RESERVED_98_60                    (0x40c62)
2819 #define P_EMMC_C_RESERVED_98_60                    (volatile uint32_t *)((0x40c62  << 2) + 0xffd00000)
2820 #define   EMMC_C_RESERVED_98_61                    (0x40c63)
2821 #define P_EMMC_C_RESERVED_98_61                    (volatile uint32_t *)((0x40c63  << 2) + 0xffd00000)
2822 #define   EMMC_C_RESERVED_98_62                    (0x40c64)
2823 #define P_EMMC_C_RESERVED_98_62                    (volatile uint32_t *)((0x40c64  << 2) + 0xffd00000)
2824 #define   EMMC_C_RESERVED_98_63                    (0x40c65)
2825 #define P_EMMC_C_RESERVED_98_63                    (volatile uint32_t *)((0x40c65  << 2) + 0xffd00000)
2826 #define   EMMC_C_RESERVED_98_64                    (0x40c66)
2827 #define P_EMMC_C_RESERVED_98_64                    (volatile uint32_t *)((0x40c66  << 2) + 0xffd00000)
2828 #define   EMMC_C_RESERVED_98_65                    (0x40c67)
2829 #define P_EMMC_C_RESERVED_98_65                    (volatile uint32_t *)((0x40c67  << 2) + 0xffd00000)
2830 #define   EMMC_C_RESERVED_98_66                    (0x40c68)
2831 #define P_EMMC_C_RESERVED_98_66                    (volatile uint32_t *)((0x40c68  << 2) + 0xffd00000)
2832 #define   EMMC_C_RESERVED_98_67                    (0x40c69)
2833 #define P_EMMC_C_RESERVED_98_67                    (volatile uint32_t *)((0x40c69  << 2) + 0xffd00000)
2834 #define   EMMC_C_RESERVED_98_68                    (0x40c6a)
2835 #define P_EMMC_C_RESERVED_98_68                    (volatile uint32_t *)((0x40c6a  << 2) + 0xffd00000)
2836 #define   EMMC_C_RESERVED_98_69                    (0x40c6b)
2837 #define P_EMMC_C_RESERVED_98_69                    (volatile uint32_t *)((0x40c6b  << 2) + 0xffd00000)
2838 #define   EMMC_C_RESERVED_98_70                    (0x40c6c)
2839 #define P_EMMC_C_RESERVED_98_70                    (volatile uint32_t *)((0x40c6c  << 2) + 0xffd00000)
2840 #define   EMMC_C_RESERVED_98_71                    (0x40c6d)
2841 #define P_EMMC_C_RESERVED_98_71                    (volatile uint32_t *)((0x40c6d  << 2) + 0xffd00000)
2842 #define   EMMC_C_RESERVED_98_72                    (0x40c6e)
2843 #define P_EMMC_C_RESERVED_98_72                    (volatile uint32_t *)((0x40c6e  << 2) + 0xffd00000)
2844 #define   EMMC_C_RESERVED_98_73                    (0x40c6f)
2845 #define P_EMMC_C_RESERVED_98_73                    (volatile uint32_t *)((0x40c6f  << 2) + 0xffd00000)
2846 #define   EMMC_C_RESERVED_98_74                    (0x40c70)
2847 #define P_EMMC_C_RESERVED_98_74                    (volatile uint32_t *)((0x40c70  << 2) + 0xffd00000)
2848 #define   EMMC_C_RESERVED_98_75                    (0x40c71)
2849 #define P_EMMC_C_RESERVED_98_75                    (volatile uint32_t *)((0x40c71  << 2) + 0xffd00000)
2850 #define   EMMC_C_RESERVED_98_76                    (0x40c72)
2851 #define P_EMMC_C_RESERVED_98_76                    (volatile uint32_t *)((0x40c72  << 2) + 0xffd00000)
2852 #define   EMMC_C_RESERVED_98_77                    (0x40c73)
2853 #define P_EMMC_C_RESERVED_98_77                    (volatile uint32_t *)((0x40c73  << 2) + 0xffd00000)
2854 #define   EMMC_C_RESERVED_98_78                    (0x40c74)
2855 #define P_EMMC_C_RESERVED_98_78                    (volatile uint32_t *)((0x40c74  << 2) + 0xffd00000)
2856 #define   EMMC_C_RESERVED_98_79                    (0x40c75)
2857 #define P_EMMC_C_RESERVED_98_79                    (volatile uint32_t *)((0x40c75  << 2) + 0xffd00000)
2858 #define   EMMC_C_RESERVED_98_80                    (0x40c76)
2859 #define P_EMMC_C_RESERVED_98_80                    (volatile uint32_t *)((0x40c76  << 2) + 0xffd00000)
2860 #define   EMMC_C_RESERVED_98_81                    (0x40c77)
2861 #define P_EMMC_C_RESERVED_98_81                    (volatile uint32_t *)((0x40c77  << 2) + 0xffd00000)
2862 #define   EMMC_C_RESERVED_98_82                    (0x40c78)
2863 #define P_EMMC_C_RESERVED_98_82                    (volatile uint32_t *)((0x40c78  << 2) + 0xffd00000)
2864 #define   EMMC_C_RESERVED_98_83                    (0x40c79)
2865 #define P_EMMC_C_RESERVED_98_83                    (volatile uint32_t *)((0x40c79  << 2) + 0xffd00000)
2866 #define   EMMC_C_RESERVED_98_84                    (0x40c7a)
2867 #define P_EMMC_C_RESERVED_98_84                    (volatile uint32_t *)((0x40c7a  << 2) + 0xffd00000)
2868 #define   EMMC_C_RESERVED_98_85                    (0x40c7b)
2869 #define P_EMMC_C_RESERVED_98_85                    (volatile uint32_t *)((0x40c7b  << 2) + 0xffd00000)
2870 #define   EMMC_C_RESERVED_98_86                    (0x40c7c)
2871 #define P_EMMC_C_RESERVED_98_86                    (volatile uint32_t *)((0x40c7c  << 2) + 0xffd00000)
2872 #define   EMMC_C_RESERVED_98_87                    (0x40c7d)
2873 #define P_EMMC_C_RESERVED_98_87                    (volatile uint32_t *)((0x40c7d  << 2) + 0xffd00000)
2874 #define   EMMC_C_RESERVED_98_88                    (0x40c7e)
2875 #define P_EMMC_C_RESERVED_98_88                    (volatile uint32_t *)((0x40c7e  << 2) + 0xffd00000)
2876 #define   EMMC_C_RESERVED_98_89                    (0x40c7f)
2877 #define P_EMMC_C_RESERVED_98_89                    (volatile uint32_t *)((0x40c7f  << 2) + 0xffd00000)
2878 #define   EMMC_C_GDESC_000                         (0x40c80)
2879 #define P_EMMC_C_GDESC_000                         (volatile uint32_t *)((0x40c80  << 2) + 0xffd00000)
2880 #define   EMMC_C_GDESC_001                         (0x40c81)
2881 #define P_EMMC_C_GDESC_001                         (volatile uint32_t *)((0x40c81  << 2) + 0xffd00000)
2882 #define   EMMC_C_GDESC_002                         (0x40c82)
2883 #define P_EMMC_C_GDESC_002                         (volatile uint32_t *)((0x40c82  << 2) + 0xffd00000)
2884 #define   EMMC_C_GDESC_003                         (0x40c83)
2885 #define P_EMMC_C_GDESC_003                         (volatile uint32_t *)((0x40c83  << 2) + 0xffd00000)
2886 #define   EMMC_C_GDESC_004                         (0x40c84)
2887 #define P_EMMC_C_GDESC_004                         (volatile uint32_t *)((0x40c84  << 2) + 0xffd00000)
2888 #define   EMMC_C_GDESC_005                         (0x40c85)
2889 #define P_EMMC_C_GDESC_005                         (volatile uint32_t *)((0x40c85  << 2) + 0xffd00000)
2890 #define   EMMC_C_GDESC_006                         (0x40c86)
2891 #define P_EMMC_C_GDESC_006                         (volatile uint32_t *)((0x40c86  << 2) + 0xffd00000)
2892 #define   EMMC_C_GDESC_007                         (0x40c87)
2893 #define P_EMMC_C_GDESC_007                         (volatile uint32_t *)((0x40c87  << 2) + 0xffd00000)
2894 #define   EMMC_C_GDESC_008                         (0x40c88)
2895 #define P_EMMC_C_GDESC_008                         (volatile uint32_t *)((0x40c88  << 2) + 0xffd00000)
2896 #define   EMMC_C_GDESC_009                         (0x40c89)
2897 #define P_EMMC_C_GDESC_009                         (volatile uint32_t *)((0x40c89  << 2) + 0xffd00000)
2898 #define   EMMC_C_GDESC_010                         (0x40c8a)
2899 #define P_EMMC_C_GDESC_010                         (volatile uint32_t *)((0x40c8a  << 2) + 0xffd00000)
2900 #define   EMMC_C_GDESC_011                         (0x40c8b)
2901 #define P_EMMC_C_GDESC_011                         (volatile uint32_t *)((0x40c8b  << 2) + 0xffd00000)
2902 #define   EMMC_C_GDESC_012                         (0x40c8c)
2903 #define P_EMMC_C_GDESC_012                         (volatile uint32_t *)((0x40c8c  << 2) + 0xffd00000)
2904 #define   EMMC_C_GDESC_013                         (0x40c8d)
2905 #define P_EMMC_C_GDESC_013                         (volatile uint32_t *)((0x40c8d  << 2) + 0xffd00000)
2906 #define   EMMC_C_GDESC_014                         (0x40c8e)
2907 #define P_EMMC_C_GDESC_014                         (volatile uint32_t *)((0x40c8e  << 2) + 0xffd00000)
2908 #define   EMMC_C_GDESC_015                         (0x40c8f)
2909 #define P_EMMC_C_GDESC_015                         (volatile uint32_t *)((0x40c8f  << 2) + 0xffd00000)
2910 #define   EMMC_C_GDESC_016                         (0x40c90)
2911 #define P_EMMC_C_GDESC_016                         (volatile uint32_t *)((0x40c90  << 2) + 0xffd00000)
2912 #define   EMMC_C_GDESC_017                         (0x40c91)
2913 #define P_EMMC_C_GDESC_017                         (volatile uint32_t *)((0x40c91  << 2) + 0xffd00000)
2914 #define   EMMC_C_GDESC_018                         (0x40c92)
2915 #define P_EMMC_C_GDESC_018                         (volatile uint32_t *)((0x40c92  << 2) + 0xffd00000)
2916 #define   EMMC_C_GDESC_019                         (0x40c93)
2917 #define P_EMMC_C_GDESC_019                         (volatile uint32_t *)((0x40c93  << 2) + 0xffd00000)
2918 #define   EMMC_C_GDESC_020                         (0x40c94)
2919 #define P_EMMC_C_GDESC_020                         (volatile uint32_t *)((0x40c94  << 2) + 0xffd00000)
2920 #define   EMMC_C_GDESC_021                         (0x40c95)
2921 #define P_EMMC_C_GDESC_021                         (volatile uint32_t *)((0x40c95  << 2) + 0xffd00000)
2922 #define   EMMC_C_GDESC_022                         (0x40c96)
2923 #define P_EMMC_C_GDESC_022                         (volatile uint32_t *)((0x40c96  << 2) + 0xffd00000)
2924 #define   EMMC_C_GDESC_023                         (0x40c97)
2925 #define P_EMMC_C_GDESC_023                         (volatile uint32_t *)((0x40c97  << 2) + 0xffd00000)
2926 #define   EMMC_C_GDESC_024                         (0x40c98)
2927 #define P_EMMC_C_GDESC_024                         (volatile uint32_t *)((0x40c98  << 2) + 0xffd00000)
2928 #define   EMMC_C_GDESC_025                         (0x40c99)
2929 #define P_EMMC_C_GDESC_025                         (volatile uint32_t *)((0x40c99  << 2) + 0xffd00000)
2930 #define   EMMC_C_GDESC_026                         (0x40c9a)
2931 #define P_EMMC_C_GDESC_026                         (volatile uint32_t *)((0x40c9a  << 2) + 0xffd00000)
2932 #define   EMMC_C_GDESC_027                         (0x40c9b)
2933 #define P_EMMC_C_GDESC_027                         (volatile uint32_t *)((0x40c9b  << 2) + 0xffd00000)
2934 #define   EMMC_C_GDESC_028                         (0x40c9c)
2935 #define P_EMMC_C_GDESC_028                         (volatile uint32_t *)((0x40c9c  << 2) + 0xffd00000)
2936 #define   EMMC_C_GDESC_029                         (0x40c9d)
2937 #define P_EMMC_C_GDESC_029                         (volatile uint32_t *)((0x40c9d  << 2) + 0xffd00000)
2938 #define   EMMC_C_GDESC_030                         (0x40c9e)
2939 #define P_EMMC_C_GDESC_030                         (volatile uint32_t *)((0x40c9e  << 2) + 0xffd00000)
2940 #define   EMMC_C_GDESC_031                         (0x40c9f)
2941 #define P_EMMC_C_GDESC_031                         (volatile uint32_t *)((0x40c9f  << 2) + 0xffd00000)
2942 #define   EMMC_C_GDESC_032                         (0x40ca0)
2943 #define P_EMMC_C_GDESC_032                         (volatile uint32_t *)((0x40ca0  << 2) + 0xffd00000)
2944 #define   EMMC_C_GDESC_033                         (0x40ca1)
2945 #define P_EMMC_C_GDESC_033                         (volatile uint32_t *)((0x40ca1  << 2) + 0xffd00000)
2946 #define   EMMC_C_GDESC_034                         (0x40ca2)
2947 #define P_EMMC_C_GDESC_034                         (volatile uint32_t *)((0x40ca2  << 2) + 0xffd00000)
2948 #define   EMMC_C_GDESC_035                         (0x40ca3)
2949 #define P_EMMC_C_GDESC_035                         (volatile uint32_t *)((0x40ca3  << 2) + 0xffd00000)
2950 #define   EMMC_C_GDESC_036                         (0x40ca4)
2951 #define P_EMMC_C_GDESC_036                         (volatile uint32_t *)((0x40ca4  << 2) + 0xffd00000)
2952 #define   EMMC_C_GDESC_037                         (0x40ca5)
2953 #define P_EMMC_C_GDESC_037                         (volatile uint32_t *)((0x40ca5  << 2) + 0xffd00000)
2954 #define   EMMC_C_GDESC_038                         (0x40ca6)
2955 #define P_EMMC_C_GDESC_038                         (volatile uint32_t *)((0x40ca6  << 2) + 0xffd00000)
2956 #define   EMMC_C_GDESC_039                         (0x40ca7)
2957 #define P_EMMC_C_GDESC_039                         (volatile uint32_t *)((0x40ca7  << 2) + 0xffd00000)
2958 #define   EMMC_C_GDESC_040                         (0x40ca8)
2959 #define P_EMMC_C_GDESC_040                         (volatile uint32_t *)((0x40ca8  << 2) + 0xffd00000)
2960 #define   EMMC_C_GDESC_041                         (0x40ca9)
2961 #define P_EMMC_C_GDESC_041                         (volatile uint32_t *)((0x40ca9  << 2) + 0xffd00000)
2962 #define   EMMC_C_GDESC_042                         (0x40caa)
2963 #define P_EMMC_C_GDESC_042                         (volatile uint32_t *)((0x40caa  << 2) + 0xffd00000)
2964 #define   EMMC_C_GDESC_043                         (0x40cab)
2965 #define P_EMMC_C_GDESC_043                         (volatile uint32_t *)((0x40cab  << 2) + 0xffd00000)
2966 #define   EMMC_C_GDESC_044                         (0x40cac)
2967 #define P_EMMC_C_GDESC_044                         (volatile uint32_t *)((0x40cac  << 2) + 0xffd00000)
2968 #define   EMMC_C_GDESC_045                         (0x40cad)
2969 #define P_EMMC_C_GDESC_045                         (volatile uint32_t *)((0x40cad  << 2) + 0xffd00000)
2970 #define   EMMC_C_GDESC_046                         (0x40cae)
2971 #define P_EMMC_C_GDESC_046                         (volatile uint32_t *)((0x40cae  << 2) + 0xffd00000)
2972 #define   EMMC_C_GDESC_047                         (0x40caf)
2973 #define P_EMMC_C_GDESC_047                         (volatile uint32_t *)((0x40caf  << 2) + 0xffd00000)
2974 #define   EMMC_C_GDESC_048                         (0x40cb0)
2975 #define P_EMMC_C_GDESC_048                         (volatile uint32_t *)((0x40cb0  << 2) + 0xffd00000)
2976 #define   EMMC_C_GDESC_049                         (0x40cb1)
2977 #define P_EMMC_C_GDESC_049                         (volatile uint32_t *)((0x40cb1  << 2) + 0xffd00000)
2978 #define   EMMC_C_GDESC_050                         (0x40cb2)
2979 #define P_EMMC_C_GDESC_050                         (volatile uint32_t *)((0x40cb2  << 2) + 0xffd00000)
2980 #define   EMMC_C_GDESC_051                         (0x40cb3)
2981 #define P_EMMC_C_GDESC_051                         (volatile uint32_t *)((0x40cb3  << 2) + 0xffd00000)
2982 #define   EMMC_C_GDESC_052                         (0x40cb4)
2983 #define P_EMMC_C_GDESC_052                         (volatile uint32_t *)((0x40cb4  << 2) + 0xffd00000)
2984 #define   EMMC_C_GDESC_053                         (0x40cb5)
2985 #define P_EMMC_C_GDESC_053                         (volatile uint32_t *)((0x40cb5  << 2) + 0xffd00000)
2986 #define   EMMC_C_GDESC_054                         (0x40cb6)
2987 #define P_EMMC_C_GDESC_054                         (volatile uint32_t *)((0x40cb6  << 2) + 0xffd00000)
2988 #define   EMMC_C_GDESC_055                         (0x40cb7)
2989 #define P_EMMC_C_GDESC_055                         (volatile uint32_t *)((0x40cb7  << 2) + 0xffd00000)
2990 #define   EMMC_C_GDESC_056                         (0x40cb8)
2991 #define P_EMMC_C_GDESC_056                         (volatile uint32_t *)((0x40cb8  << 2) + 0xffd00000)
2992 #define   EMMC_C_GDESC_057                         (0x40cb9)
2993 #define P_EMMC_C_GDESC_057                         (volatile uint32_t *)((0x40cb9  << 2) + 0xffd00000)
2994 #define   EMMC_C_GDESC_058                         (0x40cba)
2995 #define P_EMMC_C_GDESC_058                         (volatile uint32_t *)((0x40cba  << 2) + 0xffd00000)
2996 #define   EMMC_C_GDESC_059                         (0x40cbb)
2997 #define P_EMMC_C_GDESC_059                         (volatile uint32_t *)((0x40cbb  << 2) + 0xffd00000)
2998 #define   EMMC_C_GDESC_060                         (0x40cbc)
2999 #define P_EMMC_C_GDESC_060                         (volatile uint32_t *)((0x40cbc  << 2) + 0xffd00000)
3000 #define   EMMC_C_GDESC_061                         (0x40cbd)
3001 #define P_EMMC_C_GDESC_061                         (volatile uint32_t *)((0x40cbd  << 2) + 0xffd00000)
3002 #define   EMMC_C_GDESC_062                         (0x40cbe)
3003 #define P_EMMC_C_GDESC_062                         (volatile uint32_t *)((0x40cbe  << 2) + 0xffd00000)
3004 #define   EMMC_C_GDESC_063                         (0x40cbf)
3005 #define P_EMMC_C_GDESC_063                         (volatile uint32_t *)((0x40cbf  << 2) + 0xffd00000)
3006 #define   EMMC_C_GDESC_064                         (0x40cc0)
3007 #define P_EMMC_C_GDESC_064                         (volatile uint32_t *)((0x40cc0  << 2) + 0xffd00000)
3008 #define   EMMC_C_GDESC_065                         (0x40cc1)
3009 #define P_EMMC_C_GDESC_065                         (volatile uint32_t *)((0x40cc1  << 2) + 0xffd00000)
3010 #define   EMMC_C_GDESC_066                         (0x40cc2)
3011 #define P_EMMC_C_GDESC_066                         (volatile uint32_t *)((0x40cc2  << 2) + 0xffd00000)
3012 #define   EMMC_C_GDESC_067                         (0x40cc3)
3013 #define P_EMMC_C_GDESC_067                         (volatile uint32_t *)((0x40cc3  << 2) + 0xffd00000)
3014 #define   EMMC_C_GDESC_068                         (0x40cc4)
3015 #define P_EMMC_C_GDESC_068                         (volatile uint32_t *)((0x40cc4  << 2) + 0xffd00000)
3016 #define   EMMC_C_GDESC_069                         (0x40cc5)
3017 #define P_EMMC_C_GDESC_069                         (volatile uint32_t *)((0x40cc5  << 2) + 0xffd00000)
3018 #define   EMMC_C_GDESC_070                         (0x40cc6)
3019 #define P_EMMC_C_GDESC_070                         (volatile uint32_t *)((0x40cc6  << 2) + 0xffd00000)
3020 #define   EMMC_C_GDESC_071                         (0x40cc7)
3021 #define P_EMMC_C_GDESC_071                         (volatile uint32_t *)((0x40cc7  << 2) + 0xffd00000)
3022 #define   EMMC_C_GDESC_072                         (0x40cc8)
3023 #define P_EMMC_C_GDESC_072                         (volatile uint32_t *)((0x40cc8  << 2) + 0xffd00000)
3024 #define   EMMC_C_GDESC_073                         (0x40cc9)
3025 #define P_EMMC_C_GDESC_073                         (volatile uint32_t *)((0x40cc9  << 2) + 0xffd00000)
3026 #define   EMMC_C_GDESC_074                         (0x40cca)
3027 #define P_EMMC_C_GDESC_074                         (volatile uint32_t *)((0x40cca  << 2) + 0xffd00000)
3028 #define   EMMC_C_GDESC_075                         (0x40ccb)
3029 #define P_EMMC_C_GDESC_075                         (volatile uint32_t *)((0x40ccb  << 2) + 0xffd00000)
3030 #define   EMMC_C_GDESC_076                         (0x40ccc)
3031 #define P_EMMC_C_GDESC_076                         (volatile uint32_t *)((0x40ccc  << 2) + 0xffd00000)
3032 #define   EMMC_C_GDESC_077                         (0x40ccd)
3033 #define P_EMMC_C_GDESC_077                         (volatile uint32_t *)((0x40ccd  << 2) + 0xffd00000)
3034 #define   EMMC_C_GDESC_078                         (0x40cce)
3035 #define P_EMMC_C_GDESC_078                         (volatile uint32_t *)((0x40cce  << 2) + 0xffd00000)
3036 #define   EMMC_C_GDESC_079                         (0x40ccf)
3037 #define P_EMMC_C_GDESC_079                         (volatile uint32_t *)((0x40ccf  << 2) + 0xffd00000)
3038 #define   EMMC_C_GDESC_080                         (0x40cd0)
3039 #define P_EMMC_C_GDESC_080                         (volatile uint32_t *)((0x40cd0  << 2) + 0xffd00000)
3040 #define   EMMC_C_GDESC_081                         (0x40cd1)
3041 #define P_EMMC_C_GDESC_081                         (volatile uint32_t *)((0x40cd1  << 2) + 0xffd00000)
3042 #define   EMMC_C_GDESC_082                         (0x40cd2)
3043 #define P_EMMC_C_GDESC_082                         (volatile uint32_t *)((0x40cd2  << 2) + 0xffd00000)
3044 #define   EMMC_C_GDESC_083                         (0x40cd3)
3045 #define P_EMMC_C_GDESC_083                         (volatile uint32_t *)((0x40cd3  << 2) + 0xffd00000)
3046 #define   EMMC_C_GDESC_084                         (0x40cd4)
3047 #define P_EMMC_C_GDESC_084                         (volatile uint32_t *)((0x40cd4  << 2) + 0xffd00000)
3048 #define   EMMC_C_GDESC_085                         (0x40cd5)
3049 #define P_EMMC_C_GDESC_085                         (volatile uint32_t *)((0x40cd5  << 2) + 0xffd00000)
3050 #define   EMMC_C_GDESC_086                         (0x40cd6)
3051 #define P_EMMC_C_GDESC_086                         (volatile uint32_t *)((0x40cd6  << 2) + 0xffd00000)
3052 #define   EMMC_C_GDESC_087                         (0x40cd7)
3053 #define P_EMMC_C_GDESC_087                         (volatile uint32_t *)((0x40cd7  << 2) + 0xffd00000)
3054 #define   EMMC_C_GDESC_088                         (0x40cd8)
3055 #define P_EMMC_C_GDESC_088                         (volatile uint32_t *)((0x40cd8  << 2) + 0xffd00000)
3056 #define   EMMC_C_GDESC_089                         (0x40cd9)
3057 #define P_EMMC_C_GDESC_089                         (volatile uint32_t *)((0x40cd9  << 2) + 0xffd00000)
3058 #define   EMMC_C_GDESC_090                         (0x40cda)
3059 #define P_EMMC_C_GDESC_090                         (volatile uint32_t *)((0x40cda  << 2) + 0xffd00000)
3060 #define   EMMC_C_GDESC_091                         (0x40cdb)
3061 #define P_EMMC_C_GDESC_091                         (volatile uint32_t *)((0x40cdb  << 2) + 0xffd00000)
3062 #define   EMMC_C_GDESC_092                         (0x40cdc)
3063 #define P_EMMC_C_GDESC_092                         (volatile uint32_t *)((0x40cdc  << 2) + 0xffd00000)
3064 #define   EMMC_C_GDESC_093                         (0x40cdd)
3065 #define P_EMMC_C_GDESC_093                         (volatile uint32_t *)((0x40cdd  << 2) + 0xffd00000)
3066 #define   EMMC_C_GDESC_094                         (0x40cde)
3067 #define P_EMMC_C_GDESC_094                         (volatile uint32_t *)((0x40cde  << 2) + 0xffd00000)
3068 #define   EMMC_C_GDESC_095                         (0x40cdf)
3069 #define P_EMMC_C_GDESC_095                         (volatile uint32_t *)((0x40cdf  << 2) + 0xffd00000)
3070 #define   EMMC_C_GDESC_096                         (0x40ce0)
3071 #define P_EMMC_C_GDESC_096                         (volatile uint32_t *)((0x40ce0  << 2) + 0xffd00000)
3072 #define   EMMC_C_GDESC_097                         (0x40ce1)
3073 #define P_EMMC_C_GDESC_097                         (volatile uint32_t *)((0x40ce1  << 2) + 0xffd00000)
3074 #define   EMMC_C_GDESC_098                         (0x40ce2)
3075 #define P_EMMC_C_GDESC_098                         (volatile uint32_t *)((0x40ce2  << 2) + 0xffd00000)
3076 #define   EMMC_C_GDESC_099                         (0x40ce3)
3077 #define P_EMMC_C_GDESC_099                         (volatile uint32_t *)((0x40ce3  << 2) + 0xffd00000)
3078 #define   EMMC_C_GDESC_100                         (0x40ce4)
3079 #define P_EMMC_C_GDESC_100                         (volatile uint32_t *)((0x40ce4  << 2) + 0xffd00000)
3080 #define   EMMC_C_GDESC_101                         (0x40ce5)
3081 #define P_EMMC_C_GDESC_101                         (volatile uint32_t *)((0x40ce5  << 2) + 0xffd00000)
3082 #define   EMMC_C_GDESC_102                         (0x40ce6)
3083 #define P_EMMC_C_GDESC_102                         (volatile uint32_t *)((0x40ce6  << 2) + 0xffd00000)
3084 #define   EMMC_C_GDESC_103                         (0x40ce7)
3085 #define P_EMMC_C_GDESC_103                         (volatile uint32_t *)((0x40ce7  << 2) + 0xffd00000)
3086 #define   EMMC_C_GDESC_104                         (0x40ce8)
3087 #define P_EMMC_C_GDESC_104                         (volatile uint32_t *)((0x40ce8  << 2) + 0xffd00000)
3088 #define   EMMC_C_GDESC_105                         (0x40ce9)
3089 #define P_EMMC_C_GDESC_105                         (volatile uint32_t *)((0x40ce9  << 2) + 0xffd00000)
3090 #define   EMMC_C_GDESC_106                         (0x40cea)
3091 #define P_EMMC_C_GDESC_106                         (volatile uint32_t *)((0x40cea  << 2) + 0xffd00000)
3092 #define   EMMC_C_GDESC_107                         (0x40ceb)
3093 #define P_EMMC_C_GDESC_107                         (volatile uint32_t *)((0x40ceb  << 2) + 0xffd00000)
3094 #define   EMMC_C_GDESC_108                         (0x40cec)
3095 #define P_EMMC_C_GDESC_108                         (volatile uint32_t *)((0x40cec  << 2) + 0xffd00000)
3096 #define   EMMC_C_GDESC_109                         (0x40ced)
3097 #define P_EMMC_C_GDESC_109                         (volatile uint32_t *)((0x40ced  << 2) + 0xffd00000)
3098 #define   EMMC_C_GDESC_110                         (0x40cee)
3099 #define P_EMMC_C_GDESC_110                         (volatile uint32_t *)((0x40cee  << 2) + 0xffd00000)
3100 #define   EMMC_C_GDESC_111                         (0x40cef)
3101 #define P_EMMC_C_GDESC_111                         (volatile uint32_t *)((0x40cef  << 2) + 0xffd00000)
3102 #define   EMMC_C_GDESC_112                         (0x40cf0)
3103 #define P_EMMC_C_GDESC_112                         (volatile uint32_t *)((0x40cf0  << 2) + 0xffd00000)
3104 #define   EMMC_C_GDESC_113                         (0x40cf1)
3105 #define P_EMMC_C_GDESC_113                         (volatile uint32_t *)((0x40cf1  << 2) + 0xffd00000)
3106 #define   EMMC_C_GDESC_114                         (0x40cf2)
3107 #define P_EMMC_C_GDESC_114                         (volatile uint32_t *)((0x40cf2  << 2) + 0xffd00000)
3108 #define   EMMC_C_GDESC_115                         (0x40cf3)
3109 #define P_EMMC_C_GDESC_115                         (volatile uint32_t *)((0x40cf3  << 2) + 0xffd00000)
3110 #define   EMMC_C_GDESC_116                         (0x40cf4)
3111 #define P_EMMC_C_GDESC_116                         (volatile uint32_t *)((0x40cf4  << 2) + 0xffd00000)
3112 #define   EMMC_C_GDESC_117                         (0x40cf5)
3113 #define P_EMMC_C_GDESC_117                         (volatile uint32_t *)((0x40cf5  << 2) + 0xffd00000)
3114 #define   EMMC_C_GDESC_118                         (0x40cf6)
3115 #define P_EMMC_C_GDESC_118                         (volatile uint32_t *)((0x40cf6  << 2) + 0xffd00000)
3116 #define   EMMC_C_GDESC_119                         (0x40cf7)
3117 #define P_EMMC_C_GDESC_119                         (volatile uint32_t *)((0x40cf7  << 2) + 0xffd00000)
3118 #define   EMMC_C_GDESC_120                         (0x40cf8)
3119 #define P_EMMC_C_GDESC_120                         (volatile uint32_t *)((0x40cf8  << 2) + 0xffd00000)
3120 #define   EMMC_C_GDESC_121                         (0x40cf9)
3121 #define P_EMMC_C_GDESC_121                         (volatile uint32_t *)((0x40cf9  << 2) + 0xffd00000)
3122 #define   EMMC_C_GDESC_122                         (0x40cfa)
3123 #define P_EMMC_C_GDESC_122                         (volatile uint32_t *)((0x40cfa  << 2) + 0xffd00000)
3124 #define   EMMC_C_GDESC_123                         (0x40cfb)
3125 #define P_EMMC_C_GDESC_123                         (volatile uint32_t *)((0x40cfb  << 2) + 0xffd00000)
3126 #define   EMMC_C_GDESC_124                         (0x40cfc)
3127 #define P_EMMC_C_GDESC_124                         (volatile uint32_t *)((0x40cfc  << 2) + 0xffd00000)
3128 #define   EMMC_C_GDESC_125                         (0x40cfd)
3129 #define P_EMMC_C_GDESC_125                         (volatile uint32_t *)((0x40cfd  << 2) + 0xffd00000)
3130 #define   EMMC_C_GDESC_126                         (0x40cfe)
3131 #define P_EMMC_C_GDESC_126                         (volatile uint32_t *)((0x40cfe  << 2) + 0xffd00000)
3132 #define   EMMC_C_GDESC_127                         (0x40cff)
3133 #define P_EMMC_C_GDESC_127                         (volatile uint32_t *)((0x40cff  << 2) + 0xffd00000)
3134 #define   EMMC_C_GPING_000                         (0x40d00)
3135 #define P_EMMC_C_GPING_000                         (volatile uint32_t *)((0x40d00  << 2) + 0xffd00000)
3136 #define   EMMC_C_GPING_001                         (0x40d01)
3137 #define P_EMMC_C_GPING_001                         (volatile uint32_t *)((0x40d01  << 2) + 0xffd00000)
3138 #define   EMMC_C_GPING_002                         (0x40d02)
3139 #define P_EMMC_C_GPING_002                         (volatile uint32_t *)((0x40d02  << 2) + 0xffd00000)
3140 #define   EMMC_C_GPING_003                         (0x40d03)
3141 #define P_EMMC_C_GPING_003                         (volatile uint32_t *)((0x40d03  << 2) + 0xffd00000)
3142 #define   EMMC_C_GPING_004                         (0x40d04)
3143 #define P_EMMC_C_GPING_004                         (volatile uint32_t *)((0x40d04  << 2) + 0xffd00000)
3144 #define   EMMC_C_GPING_005                         (0x40d05)
3145 #define P_EMMC_C_GPING_005                         (volatile uint32_t *)((0x40d05  << 2) + 0xffd00000)
3146 #define   EMMC_C_GPING_006                         (0x40d06)
3147 #define P_EMMC_C_GPING_006                         (volatile uint32_t *)((0x40d06  << 2) + 0xffd00000)
3148 #define   EMMC_C_GPING_007                         (0x40d07)
3149 #define P_EMMC_C_GPING_007                         (volatile uint32_t *)((0x40d07  << 2) + 0xffd00000)
3150 #define   EMMC_C_GPING_008                         (0x40d08)
3151 #define P_EMMC_C_GPING_008                         (volatile uint32_t *)((0x40d08  << 2) + 0xffd00000)
3152 #define   EMMC_C_GPING_009                         (0x40d09)
3153 #define P_EMMC_C_GPING_009                         (volatile uint32_t *)((0x40d09  << 2) + 0xffd00000)
3154 #define   EMMC_C_GPING_010                         (0x40d0a)
3155 #define P_EMMC_C_GPING_010                         (volatile uint32_t *)((0x40d0a  << 2) + 0xffd00000)
3156 #define   EMMC_C_GPING_011                         (0x40d0b)
3157 #define P_EMMC_C_GPING_011                         (volatile uint32_t *)((0x40d0b  << 2) + 0xffd00000)
3158 #define   EMMC_C_GPING_012                         (0x40d0c)
3159 #define P_EMMC_C_GPING_012                         (volatile uint32_t *)((0x40d0c  << 2) + 0xffd00000)
3160 #define   EMMC_C_GPING_013                         (0x40d0d)
3161 #define P_EMMC_C_GPING_013                         (volatile uint32_t *)((0x40d0d  << 2) + 0xffd00000)
3162 #define   EMMC_C_GPING_014                         (0x40d0e)
3163 #define P_EMMC_C_GPING_014                         (volatile uint32_t *)((0x40d0e  << 2) + 0xffd00000)
3164 #define   EMMC_C_GPING_015                         (0x40d0f)
3165 #define P_EMMC_C_GPING_015                         (volatile uint32_t *)((0x40d0f  << 2) + 0xffd00000)
3166 #define   EMMC_C_GPING_016                         (0x40d10)
3167 #define P_EMMC_C_GPING_016                         (volatile uint32_t *)((0x40d10  << 2) + 0xffd00000)
3168 #define   EMMC_C_GPING_017                         (0x40d11)
3169 #define P_EMMC_C_GPING_017                         (volatile uint32_t *)((0x40d11  << 2) + 0xffd00000)
3170 #define   EMMC_C_GPING_018                         (0x40d12)
3171 #define P_EMMC_C_GPING_018                         (volatile uint32_t *)((0x40d12  << 2) + 0xffd00000)
3172 #define   EMMC_C_GPING_019                         (0x40d13)
3173 #define P_EMMC_C_GPING_019                         (volatile uint32_t *)((0x40d13  << 2) + 0xffd00000)
3174 #define   EMMC_C_GPING_020                         (0x40d14)
3175 #define P_EMMC_C_GPING_020                         (volatile uint32_t *)((0x40d14  << 2) + 0xffd00000)
3176 #define   EMMC_C_GPING_021                         (0x40d15)
3177 #define P_EMMC_C_GPING_021                         (volatile uint32_t *)((0x40d15  << 2) + 0xffd00000)
3178 #define   EMMC_C_GPING_022                         (0x40d16)
3179 #define P_EMMC_C_GPING_022                         (volatile uint32_t *)((0x40d16  << 2) + 0xffd00000)
3180 #define   EMMC_C_GPING_023                         (0x40d17)
3181 #define P_EMMC_C_GPING_023                         (volatile uint32_t *)((0x40d17  << 2) + 0xffd00000)
3182 #define   EMMC_C_GPING_024                         (0x40d18)
3183 #define P_EMMC_C_GPING_024                         (volatile uint32_t *)((0x40d18  << 2) + 0xffd00000)
3184 #define   EMMC_C_GPING_025                         (0x40d19)
3185 #define P_EMMC_C_GPING_025                         (volatile uint32_t *)((0x40d19  << 2) + 0xffd00000)
3186 #define   EMMC_C_GPING_026                         (0x40d1a)
3187 #define P_EMMC_C_GPING_026                         (volatile uint32_t *)((0x40d1a  << 2) + 0xffd00000)
3188 #define   EMMC_C_GPING_027                         (0x40d1b)
3189 #define P_EMMC_C_GPING_027                         (volatile uint32_t *)((0x40d1b  << 2) + 0xffd00000)
3190 #define   EMMC_C_GPING_028                         (0x40d1c)
3191 #define P_EMMC_C_GPING_028                         (volatile uint32_t *)((0x40d1c  << 2) + 0xffd00000)
3192 #define   EMMC_C_GPING_029                         (0x40d1d)
3193 #define P_EMMC_C_GPING_029                         (volatile uint32_t *)((0x40d1d  << 2) + 0xffd00000)
3194 #define   EMMC_C_GPING_030                         (0x40d1e)
3195 #define P_EMMC_C_GPING_030                         (volatile uint32_t *)((0x40d1e  << 2) + 0xffd00000)
3196 #define   EMMC_C_GPING_031                         (0x40d1f)
3197 #define P_EMMC_C_GPING_031                         (volatile uint32_t *)((0x40d1f  << 2) + 0xffd00000)
3198 #define   EMMC_C_GPING_032                         (0x40d20)
3199 #define P_EMMC_C_GPING_032                         (volatile uint32_t *)((0x40d20  << 2) + 0xffd00000)
3200 #define   EMMC_C_GPING_033                         (0x40d21)
3201 #define P_EMMC_C_GPING_033                         (volatile uint32_t *)((0x40d21  << 2) + 0xffd00000)
3202 #define   EMMC_C_GPING_034                         (0x40d22)
3203 #define P_EMMC_C_GPING_034                         (volatile uint32_t *)((0x40d22  << 2) + 0xffd00000)
3204 #define   EMMC_C_GPING_035                         (0x40d23)
3205 #define P_EMMC_C_GPING_035                         (volatile uint32_t *)((0x40d23  << 2) + 0xffd00000)
3206 #define   EMMC_C_GPING_036                         (0x40d24)
3207 #define P_EMMC_C_GPING_036                         (volatile uint32_t *)((0x40d24  << 2) + 0xffd00000)
3208 #define   EMMC_C_GPING_037                         (0x40d25)
3209 #define P_EMMC_C_GPING_037                         (volatile uint32_t *)((0x40d25  << 2) + 0xffd00000)
3210 #define   EMMC_C_GPING_038                         (0x40d26)
3211 #define P_EMMC_C_GPING_038                         (volatile uint32_t *)((0x40d26  << 2) + 0xffd00000)
3212 #define   EMMC_C_GPING_039                         (0x40d27)
3213 #define P_EMMC_C_GPING_039                         (volatile uint32_t *)((0x40d27  << 2) + 0xffd00000)
3214 #define   EMMC_C_GPING_040                         (0x40d28)
3215 #define P_EMMC_C_GPING_040                         (volatile uint32_t *)((0x40d28  << 2) + 0xffd00000)
3216 #define   EMMC_C_GPING_041                         (0x40d29)
3217 #define P_EMMC_C_GPING_041                         (volatile uint32_t *)((0x40d29  << 2) + 0xffd00000)
3218 #define   EMMC_C_GPING_042                         (0x40d2a)
3219 #define P_EMMC_C_GPING_042                         (volatile uint32_t *)((0x40d2a  << 2) + 0xffd00000)
3220 #define   EMMC_C_GPING_043                         (0x40d2b)
3221 #define P_EMMC_C_GPING_043                         (volatile uint32_t *)((0x40d2b  << 2) + 0xffd00000)
3222 #define   EMMC_C_GPING_044                         (0x40d2c)
3223 #define P_EMMC_C_GPING_044                         (volatile uint32_t *)((0x40d2c  << 2) + 0xffd00000)
3224 #define   EMMC_C_GPING_045                         (0x40d2d)
3225 #define P_EMMC_C_GPING_045                         (volatile uint32_t *)((0x40d2d  << 2) + 0xffd00000)
3226 #define   EMMC_C_GPING_046                         (0x40d2e)
3227 #define P_EMMC_C_GPING_046                         (volatile uint32_t *)((0x40d2e  << 2) + 0xffd00000)
3228 #define   EMMC_C_GPING_047                         (0x40d2f)
3229 #define P_EMMC_C_GPING_047                         (volatile uint32_t *)((0x40d2f  << 2) + 0xffd00000)
3230 #define   EMMC_C_GPING_048                         (0x40d30)
3231 #define P_EMMC_C_GPING_048                         (volatile uint32_t *)((0x40d30  << 2) + 0xffd00000)
3232 #define   EMMC_C_GPING_049                         (0x40d31)
3233 #define P_EMMC_C_GPING_049                         (volatile uint32_t *)((0x40d31  << 2) + 0xffd00000)
3234 #define   EMMC_C_GPING_050                         (0x40d32)
3235 #define P_EMMC_C_GPING_050                         (volatile uint32_t *)((0x40d32  << 2) + 0xffd00000)
3236 #define   EMMC_C_GPING_051                         (0x40d33)
3237 #define P_EMMC_C_GPING_051                         (volatile uint32_t *)((0x40d33  << 2) + 0xffd00000)
3238 #define   EMMC_C_GPING_052                         (0x40d34)
3239 #define P_EMMC_C_GPING_052                         (volatile uint32_t *)((0x40d34  << 2) + 0xffd00000)
3240 #define   EMMC_C_GPING_053                         (0x40d35)
3241 #define P_EMMC_C_GPING_053                         (volatile uint32_t *)((0x40d35  << 2) + 0xffd00000)
3242 #define   EMMC_C_GPING_054                         (0x40d36)
3243 #define P_EMMC_C_GPING_054                         (volatile uint32_t *)((0x40d36  << 2) + 0xffd00000)
3244 #define   EMMC_C_GPING_055                         (0x40d37)
3245 #define P_EMMC_C_GPING_055                         (volatile uint32_t *)((0x40d37  << 2) + 0xffd00000)
3246 #define   EMMC_C_GPING_056                         (0x40d38)
3247 #define P_EMMC_C_GPING_056                         (volatile uint32_t *)((0x40d38  << 2) + 0xffd00000)
3248 #define   EMMC_C_GPING_057                         (0x40d39)
3249 #define P_EMMC_C_GPING_057                         (volatile uint32_t *)((0x40d39  << 2) + 0xffd00000)
3250 #define   EMMC_C_GPING_058                         (0x40d3a)
3251 #define P_EMMC_C_GPING_058                         (volatile uint32_t *)((0x40d3a  << 2) + 0xffd00000)
3252 #define   EMMC_C_GPING_059                         (0x40d3b)
3253 #define P_EMMC_C_GPING_059                         (volatile uint32_t *)((0x40d3b  << 2) + 0xffd00000)
3254 #define   EMMC_C_GPING_060                         (0x40d3c)
3255 #define P_EMMC_C_GPING_060                         (volatile uint32_t *)((0x40d3c  << 2) + 0xffd00000)
3256 #define   EMMC_C_GPING_061                         (0x40d3d)
3257 #define P_EMMC_C_GPING_061                         (volatile uint32_t *)((0x40d3d  << 2) + 0xffd00000)
3258 #define   EMMC_C_GPING_062                         (0x40d3e)
3259 #define P_EMMC_C_GPING_062                         (volatile uint32_t *)((0x40d3e  << 2) + 0xffd00000)
3260 #define   EMMC_C_GPING_063                         (0x40d3f)
3261 #define P_EMMC_C_GPING_063                         (volatile uint32_t *)((0x40d3f  << 2) + 0xffd00000)
3262 #define   EMMC_C_GPING_064                         (0x40d40)
3263 #define P_EMMC_C_GPING_064                         (volatile uint32_t *)((0x40d40  << 2) + 0xffd00000)
3264 #define   EMMC_C_GPING_065                         (0x40d41)
3265 #define P_EMMC_C_GPING_065                         (volatile uint32_t *)((0x40d41  << 2) + 0xffd00000)
3266 #define   EMMC_C_GPING_066                         (0x40d42)
3267 #define P_EMMC_C_GPING_066                         (volatile uint32_t *)((0x40d42  << 2) + 0xffd00000)
3268 #define   EMMC_C_GPING_067                         (0x40d43)
3269 #define P_EMMC_C_GPING_067                         (volatile uint32_t *)((0x40d43  << 2) + 0xffd00000)
3270 #define   EMMC_C_GPING_068                         (0x40d44)
3271 #define P_EMMC_C_GPING_068                         (volatile uint32_t *)((0x40d44  << 2) + 0xffd00000)
3272 #define   EMMC_C_GPING_069                         (0x40d45)
3273 #define P_EMMC_C_GPING_069                         (volatile uint32_t *)((0x40d45  << 2) + 0xffd00000)
3274 #define   EMMC_C_GPING_070                         (0x40d46)
3275 #define P_EMMC_C_GPING_070                         (volatile uint32_t *)((0x40d46  << 2) + 0xffd00000)
3276 #define   EMMC_C_GPING_071                         (0x40d47)
3277 #define P_EMMC_C_GPING_071                         (volatile uint32_t *)((0x40d47  << 2) + 0xffd00000)
3278 #define   EMMC_C_GPING_072                         (0x40d48)
3279 #define P_EMMC_C_GPING_072                         (volatile uint32_t *)((0x40d48  << 2) + 0xffd00000)
3280 #define   EMMC_C_GPING_073                         (0x40d49)
3281 #define P_EMMC_C_GPING_073                         (volatile uint32_t *)((0x40d49  << 2) + 0xffd00000)
3282 #define   EMMC_C_GPING_074                         (0x40d4a)
3283 #define P_EMMC_C_GPING_074                         (volatile uint32_t *)((0x40d4a  << 2) + 0xffd00000)
3284 #define   EMMC_C_GPING_075                         (0x40d4b)
3285 #define P_EMMC_C_GPING_075                         (volatile uint32_t *)((0x40d4b  << 2) + 0xffd00000)
3286 #define   EMMC_C_GPING_076                         (0x40d4c)
3287 #define P_EMMC_C_GPING_076                         (volatile uint32_t *)((0x40d4c  << 2) + 0xffd00000)
3288 #define   EMMC_C_GPING_077                         (0x40d4d)
3289 #define P_EMMC_C_GPING_077                         (volatile uint32_t *)((0x40d4d  << 2) + 0xffd00000)
3290 #define   EMMC_C_GPING_078                         (0x40d4e)
3291 #define P_EMMC_C_GPING_078                         (volatile uint32_t *)((0x40d4e  << 2) + 0xffd00000)
3292 #define   EMMC_C_GPING_079                         (0x40d4f)
3293 #define P_EMMC_C_GPING_079                         (volatile uint32_t *)((0x40d4f  << 2) + 0xffd00000)
3294 #define   EMMC_C_GPING_080                         (0x40d50)
3295 #define P_EMMC_C_GPING_080                         (volatile uint32_t *)((0x40d50  << 2) + 0xffd00000)
3296 #define   EMMC_C_GPING_081                         (0x40d51)
3297 #define P_EMMC_C_GPING_081                         (volatile uint32_t *)((0x40d51  << 2) + 0xffd00000)
3298 #define   EMMC_C_GPING_082                         (0x40d52)
3299 #define P_EMMC_C_GPING_082                         (volatile uint32_t *)((0x40d52  << 2) + 0xffd00000)
3300 #define   EMMC_C_GPING_083                         (0x40d53)
3301 #define P_EMMC_C_GPING_083                         (volatile uint32_t *)((0x40d53  << 2) + 0xffd00000)
3302 #define   EMMC_C_GPING_084                         (0x40d54)
3303 #define P_EMMC_C_GPING_084                         (volatile uint32_t *)((0x40d54  << 2) + 0xffd00000)
3304 #define   EMMC_C_GPING_085                         (0x40d55)
3305 #define P_EMMC_C_GPING_085                         (volatile uint32_t *)((0x40d55  << 2) + 0xffd00000)
3306 #define   EMMC_C_GPING_086                         (0x40d56)
3307 #define P_EMMC_C_GPING_086                         (volatile uint32_t *)((0x40d56  << 2) + 0xffd00000)
3308 #define   EMMC_C_GPING_087                         (0x40d57)
3309 #define P_EMMC_C_GPING_087                         (volatile uint32_t *)((0x40d57  << 2) + 0xffd00000)
3310 #define   EMMC_C_GPING_088                         (0x40d58)
3311 #define P_EMMC_C_GPING_088                         (volatile uint32_t *)((0x40d58  << 2) + 0xffd00000)
3312 #define   EMMC_C_GPING_089                         (0x40d59)
3313 #define P_EMMC_C_GPING_089                         (volatile uint32_t *)((0x40d59  << 2) + 0xffd00000)
3314 #define   EMMC_C_GPING_090                         (0x40d5a)
3315 #define P_EMMC_C_GPING_090                         (volatile uint32_t *)((0x40d5a  << 2) + 0xffd00000)
3316 #define   EMMC_C_GPING_091                         (0x40d5b)
3317 #define P_EMMC_C_GPING_091                         (volatile uint32_t *)((0x40d5b  << 2) + 0xffd00000)
3318 #define   EMMC_C_GPING_092                         (0x40d5c)
3319 #define P_EMMC_C_GPING_092                         (volatile uint32_t *)((0x40d5c  << 2) + 0xffd00000)
3320 #define   EMMC_C_GPING_093                         (0x40d5d)
3321 #define P_EMMC_C_GPING_093                         (volatile uint32_t *)((0x40d5d  << 2) + 0xffd00000)
3322 #define   EMMC_C_GPING_094                         (0x40d5e)
3323 #define P_EMMC_C_GPING_094                         (volatile uint32_t *)((0x40d5e  << 2) + 0xffd00000)
3324 #define   EMMC_C_GPING_095                         (0x40d5f)
3325 #define P_EMMC_C_GPING_095                         (volatile uint32_t *)((0x40d5f  << 2) + 0xffd00000)
3326 #define   EMMC_C_GPING_096                         (0x40d60)
3327 #define P_EMMC_C_GPING_096                         (volatile uint32_t *)((0x40d60  << 2) + 0xffd00000)
3328 #define   EMMC_C_GPING_097                         (0x40d61)
3329 #define P_EMMC_C_GPING_097                         (volatile uint32_t *)((0x40d61  << 2) + 0xffd00000)
3330 #define   EMMC_C_GPING_098                         (0x40d62)
3331 #define P_EMMC_C_GPING_098                         (volatile uint32_t *)((0x40d62  << 2) + 0xffd00000)
3332 #define   EMMC_C_GPING_099                         (0x40d63)
3333 #define P_EMMC_C_GPING_099                         (volatile uint32_t *)((0x40d63  << 2) + 0xffd00000)
3334 #define   EMMC_C_GPING_100                         (0x40d64)
3335 #define P_EMMC_C_GPING_100                         (volatile uint32_t *)((0x40d64  << 2) + 0xffd00000)
3336 #define   EMMC_C_GPING_101                         (0x40d65)
3337 #define P_EMMC_C_GPING_101                         (volatile uint32_t *)((0x40d65  << 2) + 0xffd00000)
3338 #define   EMMC_C_GPING_102                         (0x40d66)
3339 #define P_EMMC_C_GPING_102                         (volatile uint32_t *)((0x40d66  << 2) + 0xffd00000)
3340 #define   EMMC_C_GPING_103                         (0x40d67)
3341 #define P_EMMC_C_GPING_103                         (volatile uint32_t *)((0x40d67  << 2) + 0xffd00000)
3342 #define   EMMC_C_GPING_104                         (0x40d68)
3343 #define P_EMMC_C_GPING_104                         (volatile uint32_t *)((0x40d68  << 2) + 0xffd00000)
3344 #define   EMMC_C_GPING_105                         (0x40d69)
3345 #define P_EMMC_C_GPING_105                         (volatile uint32_t *)((0x40d69  << 2) + 0xffd00000)
3346 #define   EMMC_C_GPING_106                         (0x40d6a)
3347 #define P_EMMC_C_GPING_106                         (volatile uint32_t *)((0x40d6a  << 2) + 0xffd00000)
3348 #define   EMMC_C_GPING_107                         (0x40d6b)
3349 #define P_EMMC_C_GPING_107                         (volatile uint32_t *)((0x40d6b  << 2) + 0xffd00000)
3350 #define   EMMC_C_GPING_108                         (0x40d6c)
3351 #define P_EMMC_C_GPING_108                         (volatile uint32_t *)((0x40d6c  << 2) + 0xffd00000)
3352 #define   EMMC_C_GPING_109                         (0x40d6d)
3353 #define P_EMMC_C_GPING_109                         (volatile uint32_t *)((0x40d6d  << 2) + 0xffd00000)
3354 #define   EMMC_C_GPING_110                         (0x40d6e)
3355 #define P_EMMC_C_GPING_110                         (volatile uint32_t *)((0x40d6e  << 2) + 0xffd00000)
3356 #define   EMMC_C_GPING_111                         (0x40d6f)
3357 #define P_EMMC_C_GPING_111                         (volatile uint32_t *)((0x40d6f  << 2) + 0xffd00000)
3358 #define   EMMC_C_GPING_112                         (0x40d70)
3359 #define P_EMMC_C_GPING_112                         (volatile uint32_t *)((0x40d70  << 2) + 0xffd00000)
3360 #define   EMMC_C_GPING_113                         (0x40d71)
3361 #define P_EMMC_C_GPING_113                         (volatile uint32_t *)((0x40d71  << 2) + 0xffd00000)
3362 #define   EMMC_C_GPING_114                         (0x40d72)
3363 #define P_EMMC_C_GPING_114                         (volatile uint32_t *)((0x40d72  << 2) + 0xffd00000)
3364 #define   EMMC_C_GPING_115                         (0x40d73)
3365 #define P_EMMC_C_GPING_115                         (volatile uint32_t *)((0x40d73  << 2) + 0xffd00000)
3366 #define   EMMC_C_GPING_116                         (0x40d74)
3367 #define P_EMMC_C_GPING_116                         (volatile uint32_t *)((0x40d74  << 2) + 0xffd00000)
3368 #define   EMMC_C_GPING_117                         (0x40d75)
3369 #define P_EMMC_C_GPING_117                         (volatile uint32_t *)((0x40d75  << 2) + 0xffd00000)
3370 #define   EMMC_C_GPING_118                         (0x40d76)
3371 #define P_EMMC_C_GPING_118                         (volatile uint32_t *)((0x40d76  << 2) + 0xffd00000)
3372 #define   EMMC_C_GPING_119                         (0x40d77)
3373 #define P_EMMC_C_GPING_119                         (volatile uint32_t *)((0x40d77  << 2) + 0xffd00000)
3374 #define   EMMC_C_GPING_120                         (0x40d78)
3375 #define P_EMMC_C_GPING_120                         (volatile uint32_t *)((0x40d78  << 2) + 0xffd00000)
3376 #define   EMMC_C_GPING_121                         (0x40d79)
3377 #define P_EMMC_C_GPING_121                         (volatile uint32_t *)((0x40d79  << 2) + 0xffd00000)
3378 #define   EMMC_C_GPING_122                         (0x40d7a)
3379 #define P_EMMC_C_GPING_122                         (volatile uint32_t *)((0x40d7a  << 2) + 0xffd00000)
3380 #define   EMMC_C_GPING_123                         (0x40d7b)
3381 #define P_EMMC_C_GPING_123                         (volatile uint32_t *)((0x40d7b  << 2) + 0xffd00000)
3382 #define   EMMC_C_GPING_124                         (0x40d7c)
3383 #define P_EMMC_C_GPING_124                         (volatile uint32_t *)((0x40d7c  << 2) + 0xffd00000)
3384 #define   EMMC_C_GPING_125                         (0x40d7d)
3385 #define P_EMMC_C_GPING_125                         (volatile uint32_t *)((0x40d7d  << 2) + 0xffd00000)
3386 #define   EMMC_C_GPING_126                         (0x40d7e)
3387 #define P_EMMC_C_GPING_126                         (volatile uint32_t *)((0x40d7e  << 2) + 0xffd00000)
3388 #define   EMMC_C_GPING_127                         (0x40d7f)
3389 #define P_EMMC_C_GPING_127                         (volatile uint32_t *)((0x40d7f  << 2) + 0xffd00000)
3390 #define   EMMC_C_GPONG_000                         (0x40d80)
3391 #define P_EMMC_C_GPONG_000                         (volatile uint32_t *)((0x40d80  << 2) + 0xffd00000)
3392 #define   EMMC_C_GPONG_001                         (0x40d81)
3393 #define P_EMMC_C_GPONG_001                         (volatile uint32_t *)((0x40d81  << 2) + 0xffd00000)
3394 #define   EMMC_C_GPONG_002                         (0x40d82)
3395 #define P_EMMC_C_GPONG_002                         (volatile uint32_t *)((0x40d82  << 2) + 0xffd00000)
3396 #define   EMMC_C_GPONG_003                         (0x40d83)
3397 #define P_EMMC_C_GPONG_003                         (volatile uint32_t *)((0x40d83  << 2) + 0xffd00000)
3398 #define   EMMC_C_GPONG_004                         (0x40d84)
3399 #define P_EMMC_C_GPONG_004                         (volatile uint32_t *)((0x40d84  << 2) + 0xffd00000)
3400 #define   EMMC_C_GPONG_005                         (0x40d85)
3401 #define P_EMMC_C_GPONG_005                         (volatile uint32_t *)((0x40d85  << 2) + 0xffd00000)
3402 #define   EMMC_C_GPONG_006                         (0x40d86)
3403 #define P_EMMC_C_GPONG_006                         (volatile uint32_t *)((0x40d86  << 2) + 0xffd00000)
3404 #define   EMMC_C_GPONG_007                         (0x40d87)
3405 #define P_EMMC_C_GPONG_007                         (volatile uint32_t *)((0x40d87  << 2) + 0xffd00000)
3406 #define   EMMC_C_GPONG_008                         (0x40d88)
3407 #define P_EMMC_C_GPONG_008                         (volatile uint32_t *)((0x40d88  << 2) + 0xffd00000)
3408 #define   EMMC_C_GPONG_009                         (0x40d89)
3409 #define P_EMMC_C_GPONG_009                         (volatile uint32_t *)((0x40d89  << 2) + 0xffd00000)
3410 #define   EMMC_C_GPONG_010                         (0x40d8a)
3411 #define P_EMMC_C_GPONG_010                         (volatile uint32_t *)((0x40d8a  << 2) + 0xffd00000)
3412 #define   EMMC_C_GPONG_011                         (0x40d8b)
3413 #define P_EMMC_C_GPONG_011                         (volatile uint32_t *)((0x40d8b  << 2) + 0xffd00000)
3414 #define   EMMC_C_GPONG_012                         (0x40d8c)
3415 #define P_EMMC_C_GPONG_012                         (volatile uint32_t *)((0x40d8c  << 2) + 0xffd00000)
3416 #define   EMMC_C_GPONG_013                         (0x40d8d)
3417 #define P_EMMC_C_GPONG_013                         (volatile uint32_t *)((0x40d8d  << 2) + 0xffd00000)
3418 #define   EMMC_C_GPONG_014                         (0x40d8e)
3419 #define P_EMMC_C_GPONG_014                         (volatile uint32_t *)((0x40d8e  << 2) + 0xffd00000)
3420 #define   EMMC_C_GPONG_015                         (0x40d8f)
3421 #define P_EMMC_C_GPONG_015                         (volatile uint32_t *)((0x40d8f  << 2) + 0xffd00000)
3422 #define   EMMC_C_GPONG_016                         (0x40d90)
3423 #define P_EMMC_C_GPONG_016                         (volatile uint32_t *)((0x40d90  << 2) + 0xffd00000)
3424 #define   EMMC_C_GPONG_017                         (0x40d91)
3425 #define P_EMMC_C_GPONG_017                         (volatile uint32_t *)((0x40d91  << 2) + 0xffd00000)
3426 #define   EMMC_C_GPONG_018                         (0x40d92)
3427 #define P_EMMC_C_GPONG_018                         (volatile uint32_t *)((0x40d92  << 2) + 0xffd00000)
3428 #define   EMMC_C_GPONG_019                         (0x40d93)
3429 #define P_EMMC_C_GPONG_019                         (volatile uint32_t *)((0x40d93  << 2) + 0xffd00000)
3430 #define   EMMC_C_GPONG_020                         (0x40d94)
3431 #define P_EMMC_C_GPONG_020                         (volatile uint32_t *)((0x40d94  << 2) + 0xffd00000)
3432 #define   EMMC_C_GPONG_021                         (0x40d95)
3433 #define P_EMMC_C_GPONG_021                         (volatile uint32_t *)((0x40d95  << 2) + 0xffd00000)
3434 #define   EMMC_C_GPONG_022                         (0x40d96)
3435 #define P_EMMC_C_GPONG_022                         (volatile uint32_t *)((0x40d96  << 2) + 0xffd00000)
3436 #define   EMMC_C_GPONG_023                         (0x40d97)
3437 #define P_EMMC_C_GPONG_023                         (volatile uint32_t *)((0x40d97  << 2) + 0xffd00000)
3438 #define   EMMC_C_GPONG_024                         (0x40d98)
3439 #define P_EMMC_C_GPONG_024                         (volatile uint32_t *)((0x40d98  << 2) + 0xffd00000)
3440 #define   EMMC_C_GPONG_025                         (0x40d99)
3441 #define P_EMMC_C_GPONG_025                         (volatile uint32_t *)((0x40d99  << 2) + 0xffd00000)
3442 #define   EMMC_C_GPONG_026                         (0x40d9a)
3443 #define P_EMMC_C_GPONG_026                         (volatile uint32_t *)((0x40d9a  << 2) + 0xffd00000)
3444 #define   EMMC_C_GPONG_027                         (0x40d9b)
3445 #define P_EMMC_C_GPONG_027                         (volatile uint32_t *)((0x40d9b  << 2) + 0xffd00000)
3446 #define   EMMC_C_GPONG_028                         (0x40d9c)
3447 #define P_EMMC_C_GPONG_028                         (volatile uint32_t *)((0x40d9c  << 2) + 0xffd00000)
3448 #define   EMMC_C_GPONG_029                         (0x40d9d)
3449 #define P_EMMC_C_GPONG_029                         (volatile uint32_t *)((0x40d9d  << 2) + 0xffd00000)
3450 #define   EMMC_C_GPONG_030                         (0x40d9e)
3451 #define P_EMMC_C_GPONG_030                         (volatile uint32_t *)((0x40d9e  << 2) + 0xffd00000)
3452 #define   EMMC_C_GPONG_031                         (0x40d9f)
3453 #define P_EMMC_C_GPONG_031                         (volatile uint32_t *)((0x40d9f  << 2) + 0xffd00000)
3454 #define   EMMC_C_GPONG_032                         (0x40da0)
3455 #define P_EMMC_C_GPONG_032                         (volatile uint32_t *)((0x40da0  << 2) + 0xffd00000)
3456 #define   EMMC_C_GPONG_033                         (0x40da1)
3457 #define P_EMMC_C_GPONG_033                         (volatile uint32_t *)((0x40da1  << 2) + 0xffd00000)
3458 #define   EMMC_C_GPONG_034                         (0x40da2)
3459 #define P_EMMC_C_GPONG_034                         (volatile uint32_t *)((0x40da2  << 2) + 0xffd00000)
3460 #define   EMMC_C_GPONG_035                         (0x40da3)
3461 #define P_EMMC_C_GPONG_035                         (volatile uint32_t *)((0x40da3  << 2) + 0xffd00000)
3462 #define   EMMC_C_GPONG_036                         (0x40da4)
3463 #define P_EMMC_C_GPONG_036                         (volatile uint32_t *)((0x40da4  << 2) + 0xffd00000)
3464 #define   EMMC_C_GPONG_037                         (0x40da5)
3465 #define P_EMMC_C_GPONG_037                         (volatile uint32_t *)((0x40da5  << 2) + 0xffd00000)
3466 #define   EMMC_C_GPONG_038                         (0x40da6)
3467 #define P_EMMC_C_GPONG_038                         (volatile uint32_t *)((0x40da6  << 2) + 0xffd00000)
3468 #define   EMMC_C_GPONG_039                         (0x40da7)
3469 #define P_EMMC_C_GPONG_039                         (volatile uint32_t *)((0x40da7  << 2) + 0xffd00000)
3470 #define   EMMC_C_GPONG_040                         (0x40da8)
3471 #define P_EMMC_C_GPONG_040                         (volatile uint32_t *)((0x40da8  << 2) + 0xffd00000)
3472 #define   EMMC_C_GPONG_041                         (0x40da9)
3473 #define P_EMMC_C_GPONG_041                         (volatile uint32_t *)((0x40da9  << 2) + 0xffd00000)
3474 #define   EMMC_C_GPONG_042                         (0x40daa)
3475 #define P_EMMC_C_GPONG_042                         (volatile uint32_t *)((0x40daa  << 2) + 0xffd00000)
3476 #define   EMMC_C_GPONG_043                         (0x40dab)
3477 #define P_EMMC_C_GPONG_043                         (volatile uint32_t *)((0x40dab  << 2) + 0xffd00000)
3478 #define   EMMC_C_GPONG_044                         (0x40dac)
3479 #define P_EMMC_C_GPONG_044                         (volatile uint32_t *)((0x40dac  << 2) + 0xffd00000)
3480 #define   EMMC_C_GPONG_045                         (0x40dad)
3481 #define P_EMMC_C_GPONG_045                         (volatile uint32_t *)((0x40dad  << 2) + 0xffd00000)
3482 #define   EMMC_C_GPONG_046                         (0x40dae)
3483 #define P_EMMC_C_GPONG_046                         (volatile uint32_t *)((0x40dae  << 2) + 0xffd00000)
3484 #define   EMMC_C_GPONG_047                         (0x40daf)
3485 #define P_EMMC_C_GPONG_047                         (volatile uint32_t *)((0x40daf  << 2) + 0xffd00000)
3486 #define   EMMC_C_GPONG_048                         (0x40db0)
3487 #define P_EMMC_C_GPONG_048                         (volatile uint32_t *)((0x40db0  << 2) + 0xffd00000)
3488 #define   EMMC_C_GPONG_049                         (0x40db1)
3489 #define P_EMMC_C_GPONG_049                         (volatile uint32_t *)((0x40db1  << 2) + 0xffd00000)
3490 #define   EMMC_C_GPONG_050                         (0x40db2)
3491 #define P_EMMC_C_GPONG_050                         (volatile uint32_t *)((0x40db2  << 2) + 0xffd00000)
3492 #define   EMMC_C_GPONG_051                         (0x40db3)
3493 #define P_EMMC_C_GPONG_051                         (volatile uint32_t *)((0x40db3  << 2) + 0xffd00000)
3494 #define   EMMC_C_GPONG_052                         (0x40db4)
3495 #define P_EMMC_C_GPONG_052                         (volatile uint32_t *)((0x40db4  << 2) + 0xffd00000)
3496 #define   EMMC_C_GPONG_053                         (0x40db5)
3497 #define P_EMMC_C_GPONG_053                         (volatile uint32_t *)((0x40db5  << 2) + 0xffd00000)
3498 #define   EMMC_C_GPONG_054                         (0x40db6)
3499 #define P_EMMC_C_GPONG_054                         (volatile uint32_t *)((0x40db6  << 2) + 0xffd00000)
3500 #define   EMMC_C_GPONG_055                         (0x40db7)
3501 #define P_EMMC_C_GPONG_055                         (volatile uint32_t *)((0x40db7  << 2) + 0xffd00000)
3502 #define   EMMC_C_GPONG_056                         (0x40db8)
3503 #define P_EMMC_C_GPONG_056                         (volatile uint32_t *)((0x40db8  << 2) + 0xffd00000)
3504 #define   EMMC_C_GPONG_057                         (0x40db9)
3505 #define P_EMMC_C_GPONG_057                         (volatile uint32_t *)((0x40db9  << 2) + 0xffd00000)
3506 #define   EMMC_C_GPONG_058                         (0x40dba)
3507 #define P_EMMC_C_GPONG_058                         (volatile uint32_t *)((0x40dba  << 2) + 0xffd00000)
3508 #define   EMMC_C_GPONG_059                         (0x40dbb)
3509 #define P_EMMC_C_GPONG_059                         (volatile uint32_t *)((0x40dbb  << 2) + 0xffd00000)
3510 #define   EMMC_C_GPONG_060                         (0x40dbc)
3511 #define P_EMMC_C_GPONG_060                         (volatile uint32_t *)((0x40dbc  << 2) + 0xffd00000)
3512 #define   EMMC_C_GPONG_061                         (0x40dbd)
3513 #define P_EMMC_C_GPONG_061                         (volatile uint32_t *)((0x40dbd  << 2) + 0xffd00000)
3514 #define   EMMC_C_GPONG_062                         (0x40dbe)
3515 #define P_EMMC_C_GPONG_062                         (volatile uint32_t *)((0x40dbe  << 2) + 0xffd00000)
3516 #define   EMMC_C_GPONG_063                         (0x40dbf)
3517 #define P_EMMC_C_GPONG_063                         (volatile uint32_t *)((0x40dbf  << 2) + 0xffd00000)
3518 #define   EMMC_C_GPONG_064                         (0x40dc0)
3519 #define P_EMMC_C_GPONG_064                         (volatile uint32_t *)((0x40dc0  << 2) + 0xffd00000)
3520 #define   EMMC_C_GPONG_065                         (0x40dc1)
3521 #define P_EMMC_C_GPONG_065                         (volatile uint32_t *)((0x40dc1  << 2) + 0xffd00000)
3522 #define   EMMC_C_GPONG_066                         (0x40dc2)
3523 #define P_EMMC_C_GPONG_066                         (volatile uint32_t *)((0x40dc2  << 2) + 0xffd00000)
3524 #define   EMMC_C_GPONG_067                         (0x40dc3)
3525 #define P_EMMC_C_GPONG_067                         (volatile uint32_t *)((0x40dc3  << 2) + 0xffd00000)
3526 #define   EMMC_C_GPONG_068                         (0x40dc4)
3527 #define P_EMMC_C_GPONG_068                         (volatile uint32_t *)((0x40dc4  << 2) + 0xffd00000)
3528 #define   EMMC_C_GPONG_069                         (0x40dc5)
3529 #define P_EMMC_C_GPONG_069                         (volatile uint32_t *)((0x40dc5  << 2) + 0xffd00000)
3530 #define   EMMC_C_GPONG_070                         (0x40dc6)
3531 #define P_EMMC_C_GPONG_070                         (volatile uint32_t *)((0x40dc6  << 2) + 0xffd00000)
3532 #define   EMMC_C_GPONG_071                         (0x40dc7)
3533 #define P_EMMC_C_GPONG_071                         (volatile uint32_t *)((0x40dc7  << 2) + 0xffd00000)
3534 #define   EMMC_C_GPONG_072                         (0x40dc8)
3535 #define P_EMMC_C_GPONG_072                         (volatile uint32_t *)((0x40dc8  << 2) + 0xffd00000)
3536 #define   EMMC_C_GPONG_073                         (0x40dc9)
3537 #define P_EMMC_C_GPONG_073                         (volatile uint32_t *)((0x40dc9  << 2) + 0xffd00000)
3538 #define   EMMC_C_GPONG_074                         (0x40dca)
3539 #define P_EMMC_C_GPONG_074                         (volatile uint32_t *)((0x40dca  << 2) + 0xffd00000)
3540 #define   EMMC_C_GPONG_075                         (0x40dcb)
3541 #define P_EMMC_C_GPONG_075                         (volatile uint32_t *)((0x40dcb  << 2) + 0xffd00000)
3542 #define   EMMC_C_GPONG_076                         (0x40dcc)
3543 #define P_EMMC_C_GPONG_076                         (volatile uint32_t *)((0x40dcc  << 2) + 0xffd00000)
3544 #define   EMMC_C_GPONG_077                         (0x40dcd)
3545 #define P_EMMC_C_GPONG_077                         (volatile uint32_t *)((0x40dcd  << 2) + 0xffd00000)
3546 #define   EMMC_C_GPONG_078                         (0x40dce)
3547 #define P_EMMC_C_GPONG_078                         (volatile uint32_t *)((0x40dce  << 2) + 0xffd00000)
3548 #define   EMMC_C_GPONG_079                         (0x40dcf)
3549 #define P_EMMC_C_GPONG_079                         (volatile uint32_t *)((0x40dcf  << 2) + 0xffd00000)
3550 #define   EMMC_C_GPONG_080                         (0x40dd0)
3551 #define P_EMMC_C_GPONG_080                         (volatile uint32_t *)((0x40dd0  << 2) + 0xffd00000)
3552 #define   EMMC_C_GPONG_081                         (0x40dd1)
3553 #define P_EMMC_C_GPONG_081                         (volatile uint32_t *)((0x40dd1  << 2) + 0xffd00000)
3554 #define   EMMC_C_GPONG_082                         (0x40dd2)
3555 #define P_EMMC_C_GPONG_082                         (volatile uint32_t *)((0x40dd2  << 2) + 0xffd00000)
3556 #define   EMMC_C_GPONG_083                         (0x40dd3)
3557 #define P_EMMC_C_GPONG_083                         (volatile uint32_t *)((0x40dd3  << 2) + 0xffd00000)
3558 #define   EMMC_C_GPONG_084                         (0x40dd4)
3559 #define P_EMMC_C_GPONG_084                         (volatile uint32_t *)((0x40dd4  << 2) + 0xffd00000)
3560 #define   EMMC_C_GPONG_085                         (0x40dd5)
3561 #define P_EMMC_C_GPONG_085                         (volatile uint32_t *)((0x40dd5  << 2) + 0xffd00000)
3562 #define   EMMC_C_GPONG_086                         (0x40dd6)
3563 #define P_EMMC_C_GPONG_086                         (volatile uint32_t *)((0x40dd6  << 2) + 0xffd00000)
3564 #define   EMMC_C_GPONG_087                         (0x40dd7)
3565 #define P_EMMC_C_GPONG_087                         (volatile uint32_t *)((0x40dd7  << 2) + 0xffd00000)
3566 #define   EMMC_C_GPONG_088                         (0x40dd8)
3567 #define P_EMMC_C_GPONG_088                         (volatile uint32_t *)((0x40dd8  << 2) + 0xffd00000)
3568 #define   EMMC_C_GPONG_089                         (0x40dd9)
3569 #define P_EMMC_C_GPONG_089                         (volatile uint32_t *)((0x40dd9  << 2) + 0xffd00000)
3570 #define   EMMC_C_GPONG_090                         (0x40dda)
3571 #define P_EMMC_C_GPONG_090                         (volatile uint32_t *)((0x40dda  << 2) + 0xffd00000)
3572 #define   EMMC_C_GPONG_091                         (0x40ddb)
3573 #define P_EMMC_C_GPONG_091                         (volatile uint32_t *)((0x40ddb  << 2) + 0xffd00000)
3574 #define   EMMC_C_GPONG_092                         (0x40ddc)
3575 #define P_EMMC_C_GPONG_092                         (volatile uint32_t *)((0x40ddc  << 2) + 0xffd00000)
3576 #define   EMMC_C_GPONG_093                         (0x40ddd)
3577 #define P_EMMC_C_GPONG_093                         (volatile uint32_t *)((0x40ddd  << 2) + 0xffd00000)
3578 #define   EMMC_C_GPONG_094                         (0x40dde)
3579 #define P_EMMC_C_GPONG_094                         (volatile uint32_t *)((0x40dde  << 2) + 0xffd00000)
3580 #define   EMMC_C_GPONG_095                         (0x40ddf)
3581 #define P_EMMC_C_GPONG_095                         (volatile uint32_t *)((0x40ddf  << 2) + 0xffd00000)
3582 #define   EMMC_C_GPONG_096                         (0x40de0)
3583 #define P_EMMC_C_GPONG_096                         (volatile uint32_t *)((0x40de0  << 2) + 0xffd00000)
3584 #define   EMMC_C_GPONG_097                         (0x40de1)
3585 #define P_EMMC_C_GPONG_097                         (volatile uint32_t *)((0x40de1  << 2) + 0xffd00000)
3586 #define   EMMC_C_GPONG_098                         (0x40de2)
3587 #define P_EMMC_C_GPONG_098                         (volatile uint32_t *)((0x40de2  << 2) + 0xffd00000)
3588 #define   EMMC_C_GPONG_099                         (0x40de3)
3589 #define P_EMMC_C_GPONG_099                         (volatile uint32_t *)((0x40de3  << 2) + 0xffd00000)
3590 #define   EMMC_C_GPONG_100                         (0x40de4)
3591 #define P_EMMC_C_GPONG_100                         (volatile uint32_t *)((0x40de4  << 2) + 0xffd00000)
3592 #define   EMMC_C_GPONG_101                         (0x40de5)
3593 #define P_EMMC_C_GPONG_101                         (volatile uint32_t *)((0x40de5  << 2) + 0xffd00000)
3594 #define   EMMC_C_GPONG_102                         (0x40de6)
3595 #define P_EMMC_C_GPONG_102                         (volatile uint32_t *)((0x40de6  << 2) + 0xffd00000)
3596 #define   EMMC_C_GPONG_103                         (0x40de7)
3597 #define P_EMMC_C_GPONG_103                         (volatile uint32_t *)((0x40de7  << 2) + 0xffd00000)
3598 #define   EMMC_C_GPONG_104                         (0x40de8)
3599 #define P_EMMC_C_GPONG_104                         (volatile uint32_t *)((0x40de8  << 2) + 0xffd00000)
3600 #define   EMMC_C_GPONG_105                         (0x40de9)
3601 #define P_EMMC_C_GPONG_105                         (volatile uint32_t *)((0x40de9  << 2) + 0xffd00000)
3602 #define   EMMC_C_GPONG_106                         (0x40dea)
3603 #define P_EMMC_C_GPONG_106                         (volatile uint32_t *)((0x40dea  << 2) + 0xffd00000)
3604 #define   EMMC_C_GPONG_107                         (0x40deb)
3605 #define P_EMMC_C_GPONG_107                         (volatile uint32_t *)((0x40deb  << 2) + 0xffd00000)
3606 #define   EMMC_C_GPONG_108                         (0x40dec)
3607 #define P_EMMC_C_GPONG_108                         (volatile uint32_t *)((0x40dec  << 2) + 0xffd00000)
3608 #define   EMMC_C_GPONG_109                         (0x40ded)
3609 #define P_EMMC_C_GPONG_109                         (volatile uint32_t *)((0x40ded  << 2) + 0xffd00000)
3610 #define   EMMC_C_GPONG_110                         (0x40dee)
3611 #define P_EMMC_C_GPONG_110                         (volatile uint32_t *)((0x40dee  << 2) + 0xffd00000)
3612 #define   EMMC_C_GPONG_111                         (0x40def)
3613 #define P_EMMC_C_GPONG_111                         (volatile uint32_t *)((0x40def  << 2) + 0xffd00000)
3614 #define   EMMC_C_GPONG_112                         (0x40df0)
3615 #define P_EMMC_C_GPONG_112                         (volatile uint32_t *)((0x40df0  << 2) + 0xffd00000)
3616 #define   EMMC_C_GPONG_113                         (0x40df1)
3617 #define P_EMMC_C_GPONG_113                         (volatile uint32_t *)((0x40df1  << 2) + 0xffd00000)
3618 #define   EMMC_C_GPONG_114                         (0x40df2)
3619 #define P_EMMC_C_GPONG_114                         (volatile uint32_t *)((0x40df2  << 2) + 0xffd00000)
3620 #define   EMMC_C_GPONG_115                         (0x40df3)
3621 #define P_EMMC_C_GPONG_115                         (volatile uint32_t *)((0x40df3  << 2) + 0xffd00000)
3622 #define   EMMC_C_GPONG_116                         (0x40df4)
3623 #define P_EMMC_C_GPONG_116                         (volatile uint32_t *)((0x40df4  << 2) + 0xffd00000)
3624 #define   EMMC_C_GPONG_117                         (0x40df5)
3625 #define P_EMMC_C_GPONG_117                         (volatile uint32_t *)((0x40df5  << 2) + 0xffd00000)
3626 #define   EMMC_C_GPONG_118                         (0x40df6)
3627 #define P_EMMC_C_GPONG_118                         (volatile uint32_t *)((0x40df6  << 2) + 0xffd00000)
3628 #define   EMMC_C_GPONG_119                         (0x40df7)
3629 #define P_EMMC_C_GPONG_119                         (volatile uint32_t *)((0x40df7  << 2) + 0xffd00000)
3630 #define   EMMC_C_GPONG_120                         (0x40df8)
3631 #define P_EMMC_C_GPONG_120                         (volatile uint32_t *)((0x40df8  << 2) + 0xffd00000)
3632 #define   EMMC_C_GPONG_121                         (0x40df9)
3633 #define P_EMMC_C_GPONG_121                         (volatile uint32_t *)((0x40df9  << 2) + 0xffd00000)
3634 #define   EMMC_C_GPONG_122                         (0x40dfa)
3635 #define P_EMMC_C_GPONG_122                         (volatile uint32_t *)((0x40dfa  << 2) + 0xffd00000)
3636 #define   EMMC_C_GPONG_123                         (0x40dfb)
3637 #define P_EMMC_C_GPONG_123                         (volatile uint32_t *)((0x40dfb  << 2) + 0xffd00000)
3638 #define   EMMC_C_GPONG_124                         (0x40dfc)
3639 #define P_EMMC_C_GPONG_124                         (volatile uint32_t *)((0x40dfc  << 2) + 0xffd00000)
3640 #define   EMMC_C_GPONG_125                         (0x40dfd)
3641 #define P_EMMC_C_GPONG_125                         (volatile uint32_t *)((0x40dfd  << 2) + 0xffd00000)
3642 #define   EMMC_C_GPONG_126                         (0x40dfe)
3643 #define P_EMMC_C_GPONG_126                         (volatile uint32_t *)((0x40dfe  << 2) + 0xffd00000)
3644 #define   EMMC_C_GPONG_127                         (0x40dff)
3645 #define P_EMMC_C_GPONG_127                         (volatile uint32_t *)((0x40dff  << 2) + 0xffd00000)
3646 //
3647 // Closing file:  emmc_reg.h
3648 //
3649 //
3650 // Reading file:  usb_reg.h
3651 //
3652 // $periphs/rtl/periphs_core register defines for the
3653 // APB bus
3654 // ------------------------------------------------------------------------------------
3655 // -----------------------------------------------
3656 // CBUS_BASE:  USB_CBUS_BASE = 0x424
3657 // -----------------------------------------------
3658 #define   USB21_REG0                               (0x42408)
3659 #define P_USB21_REG0                               (volatile uint32_t *)((0x42408  << 2) + 0xffd00000)
3660 #define   USB21_REG1                               (0x42409)
3661 #define P_USB21_REG1                               (volatile uint32_t *)((0x42409  << 2) + 0xffd00000)
3662 #define   USB21_REG2                               (0x4240a)
3663 #define P_USB21_REG2                               (volatile uint32_t *)((0x4240a  << 2) + 0xffd00000)
3664 //
3665 // Closing file:  usb_reg.h
3666 //
3667 //`include "bt656_reg.h"
3668 //`include "pdm_reg.h"
3669 //========================================================================
3670 //  Global Control Registers                (12'h000 - 12'h0ff)
3671 //
3672 //========================================================================
3673 // -----------------------------------------------
3674 // CBUS_BASE:  RESET_CBUS_BASE = 0x04
3675 // -----------------------------------------------
3676 #define   VERSION_CTRL                             (0x0400)
3677 #define P_VERSION_CTRL                             (volatile uint32_t *)((0x0400  << 2) + 0xffd00000)
3678 #define   RESET0_REGISTER                          (0x0401)
3679 #define P_RESET0_REGISTER                          (volatile uint32_t *)((0x0401  << 2) + 0xffd00000)
3680 #define   RESET1_REGISTER                          (0x0402)
3681 #define P_RESET1_REGISTER                          (volatile uint32_t *)((0x0402  << 2) + 0xffd00000)
3682 #define   RESET2_REGISTER                          (0x0403)
3683 #define P_RESET2_REGISTER                          (volatile uint32_t *)((0x0403  << 2) + 0xffd00000)
3684 #define   RESET3_REGISTER                          (0x0404)
3685 #define P_RESET3_REGISTER                          (volatile uint32_t *)((0x0404  << 2) + 0xffd00000)
3686 #define   RESET4_REGISTER                          (0x0405)
3687 #define P_RESET4_REGISTER                          (volatile uint32_t *)((0x0405  << 2) + 0xffd00000)
3688 #define   RESET5_REGISTER                          (0x0406)
3689 #define P_RESET5_REGISTER                          (volatile uint32_t *)((0x0406  << 2) + 0xffd00000)
3690 #define   RESET6_REGISTER                          (0x0407)
3691 #define P_RESET6_REGISTER                          (volatile uint32_t *)((0x0407  << 2) + 0xffd00000)
3692 #define   RESET7_REGISTER                          (0x0408)
3693 #define P_RESET7_REGISTER                          (volatile uint32_t *)((0x0408  << 2) + 0xffd00000)
3694 #define   RESET0_MASK                              (0x0410)
3695 #define P_RESET0_MASK                              (volatile uint32_t *)((0x0410  << 2) + 0xffd00000)
3696 #define   RESET1_MASK                              (0x0411)
3697 #define P_RESET1_MASK                              (volatile uint32_t *)((0x0411  << 2) + 0xffd00000)
3698 #define   RESET2_MASK                              (0x0412)
3699 #define P_RESET2_MASK                              (volatile uint32_t *)((0x0412  << 2) + 0xffd00000)
3700 #define   RESET3_MASK                              (0x0413)
3701 #define P_RESET3_MASK                              (volatile uint32_t *)((0x0413  << 2) + 0xffd00000)
3702 #define   RESET4_MASK                              (0x0414)
3703 #define P_RESET4_MASK                              (volatile uint32_t *)((0x0414  << 2) + 0xffd00000)
3704 #define   RESET5_MASK                              (0x0415)
3705 #define P_RESET5_MASK                              (volatile uint32_t *)((0x0415  << 2) + 0xffd00000)
3706 #define   RESET6_MASK                              (0x0416)
3707 #define P_RESET6_MASK                              (volatile uint32_t *)((0x0416  << 2) + 0xffd00000)
3708 #define   CRT_MASK                                 (0x0417)
3709 #define P_CRT_MASK                                 (volatile uint32_t *)((0x0417  << 2) + 0xffd00000)
3710 #define   RESET7_MASK                              (0x0418)
3711 #define P_RESET7_MASK                              (volatile uint32_t *)((0x0418  << 2) + 0xffd00000)
3712 #define   RESET0_LEVEL                             (0x0420)
3713 #define P_RESET0_LEVEL                             (volatile uint32_t *)((0x0420  << 2) + 0xffd00000)
3714 #define   RESET1_LEVEL                             (0x0421)
3715 #define P_RESET1_LEVEL                             (volatile uint32_t *)((0x0421  << 2) + 0xffd00000)
3716 #define   RESET2_LEVEL                             (0x0422)
3717 #define P_RESET2_LEVEL                             (volatile uint32_t *)((0x0422  << 2) + 0xffd00000)
3718 #define   RESET3_LEVEL                             (0x0423)
3719 #define P_RESET3_LEVEL                             (volatile uint32_t *)((0x0423  << 2) + 0xffd00000)
3720 #define   RESET4_LEVEL                             (0x0424)
3721 #define P_RESET4_LEVEL                             (volatile uint32_t *)((0x0424  << 2) + 0xffd00000)
3722 #define   RESET5_LEVEL                             (0x0425)
3723 #define P_RESET5_LEVEL                             (volatile uint32_t *)((0x0425  << 2) + 0xffd00000)
3724 #define   RESET6_LEVEL                             (0x0426)
3725 #define P_RESET6_LEVEL                             (volatile uint32_t *)((0x0426  << 2) + 0xffd00000)
3726 #define   RESET7_LEVEL                             (0x0427)
3727 #define P_RESET7_LEVEL                             (volatile uint32_t *)((0x0427  << 2) + 0xffd00000)
3728 //======================================
3729 //  Reset Register Bits
3730 //
3731 //======================================
3732     #define HIU_RESET       0x0001
3733     #define VLD_RESET       0x0002
3734     #define IQIDCT_RESET    0x0004
3735     #define MC_RESET        0x0008
3736     #define DCU_RESET       0x0010
3737     #define VIU_RESET       0x0020
3738     #define AIU_RESET       0x0040
3739     #define CPU_RESET       0x0080
3740     #define AC3_RESET       0x0100
3741     #define MPEG_RESET      0x0200
3742 //=======================================================================
3743 // XIF module
3744 // `include "xregs.h"
3745     #define X_INT_ADR           0x400
3746     #define GPIO_ADR            0x401
3747     #define GPIO_ADR_H8         0x402
3748     #define WFIFO_DEPTH         8
3749     #define WFIFO_PointerWidth  3
3750     #define WFIFO_WORDSIZE      32
3751 //========================================================================
3752 //  registers for mipi_dsi (12'h8a0 - 12'h8ff)
3753 //========================================================================
3754 //
3755 // Reading file:  dsi_regs.h
3756 //
3757 // synopsys translate_off
3758 // synopsys translate_on
3759 //===========================================================================
3760 // MIPI DSI HOST CONTROLLER Registers 0x1800 - 0x18ff
3761 //===========================================================================
3762 // -----------------------------------------------
3763 // CBUS_BASE:  DSI_CBUS_BASE = 0x18
3764 // -----------------------------------------------
3765 #define MIPI_DSI_REGISTER
3766 //------------------------------------------------------------------------------
3767 // DWC IP registers: Synopsys IP, please refer to MIPI DSI HOST Databook
3768 //------------------------------------------------------------------------------
3769 #define   MIPI_DSI_DWC_VERSION_OS                  (0x1800)
3770 #define P_MIPI_DSI_DWC_VERSION_OS                  (volatile uint32_t *)((0x1800  << 2) + 0xffd00000)
3771 #define   MIPI_DSI_DWC_PWR_UP_OS                   (0x1801)
3772 #define P_MIPI_DSI_DWC_PWR_UP_OS                   (volatile uint32_t *)((0x1801  << 2) + 0xffd00000)
3773 #define   MIPI_DSI_DWC_CLKMGR_CFG_OS               (0x1802)
3774 #define P_MIPI_DSI_DWC_CLKMGR_CFG_OS               (volatile uint32_t *)((0x1802  << 2) + 0xffd00000)
3775 #define   MIPI_DSI_DWC_DPI_VCID_OS                 (0x1803)
3776 #define P_MIPI_DSI_DWC_DPI_VCID_OS                 (volatile uint32_t *)((0x1803  << 2) + 0xffd00000)
3777 #define   MIPI_DSI_DWC_DPI_COLOR_CODING_OS         (0x1804)
3778 #define P_MIPI_DSI_DWC_DPI_COLOR_CODING_OS         (volatile uint32_t *)((0x1804  << 2) + 0xffd00000)
3779 #define   MIPI_DSI_DWC_DPI_CFG_POL_OS              (0x1805)
3780 #define P_MIPI_DSI_DWC_DPI_CFG_POL_OS              (volatile uint32_t *)((0x1805  << 2) + 0xffd00000)
3781 #define   MIPI_DSI_DWC_DPI_LP_CMD_TIM_OS           (0x1806)
3782 #define P_MIPI_DSI_DWC_DPI_LP_CMD_TIM_OS           (volatile uint32_t *)((0x1806  << 2) + 0xffd00000)
3783 #define   MIPI_DSI_DWC_PCKHDL_CFG_OS               (0x180b)
3784 #define P_MIPI_DSI_DWC_PCKHDL_CFG_OS               (volatile uint32_t *)((0x180b  << 2) + 0xffd00000)
3785 #define   MIPI_DSI_DWC_GEN_VCID_OS                 (0x180c)
3786 #define P_MIPI_DSI_DWC_GEN_VCID_OS                 (volatile uint32_t *)((0x180c  << 2) + 0xffd00000)
3787 #define   MIPI_DSI_DWC_MODE_CFG_OS                 (0x180d)
3788 #define P_MIPI_DSI_DWC_MODE_CFG_OS                 (volatile uint32_t *)((0x180d  << 2) + 0xffd00000)
3789 #define   MIPI_DSI_DWC_VID_MODE_CFG_OS             (0x180e)
3790 #define P_MIPI_DSI_DWC_VID_MODE_CFG_OS             (volatile uint32_t *)((0x180e  << 2) + 0xffd00000)
3791 #define   MIPI_DSI_DWC_VID_PKT_SIZE_OS             (0x180f)
3792 #define P_MIPI_DSI_DWC_VID_PKT_SIZE_OS             (volatile uint32_t *)((0x180f  << 2) + 0xffd00000)
3793 #define   MIPI_DSI_DWC_VID_NUM_CHUNKS_OS           (0x1810)
3794 #define P_MIPI_DSI_DWC_VID_NUM_CHUNKS_OS           (volatile uint32_t *)((0x1810  << 2) + 0xffd00000)
3795 #define   MIPI_DSI_DWC_VID_NULL_SIZE_OS            (0x1811)
3796 #define P_MIPI_DSI_DWC_VID_NULL_SIZE_OS            (volatile uint32_t *)((0x1811  << 2) + 0xffd00000)
3797 #define   MIPI_DSI_DWC_VID_HSA_TIME_OS             (0x1812)
3798 #define P_MIPI_DSI_DWC_VID_HSA_TIME_OS             (volatile uint32_t *)((0x1812  << 2) + 0xffd00000)
3799 #define   MIPI_DSI_DWC_VID_HBP_TIME_OS             (0x1813)
3800 #define P_MIPI_DSI_DWC_VID_HBP_TIME_OS             (volatile uint32_t *)((0x1813  << 2) + 0xffd00000)
3801 #define   MIPI_DSI_DWC_VID_HLINE_TIME_OS           (0x1814)
3802 #define P_MIPI_DSI_DWC_VID_HLINE_TIME_OS           (volatile uint32_t *)((0x1814  << 2) + 0xffd00000)
3803 #define   MIPI_DSI_DWC_VID_VSA_LINES_OS            (0x1815)
3804 #define P_MIPI_DSI_DWC_VID_VSA_LINES_OS            (volatile uint32_t *)((0x1815  << 2) + 0xffd00000)
3805 #define   MIPI_DSI_DWC_VID_VBP_LINES_OS            (0x1816)
3806 #define P_MIPI_DSI_DWC_VID_VBP_LINES_OS            (volatile uint32_t *)((0x1816  << 2) + 0xffd00000)
3807 #define   MIPI_DSI_DWC_VID_VFP_LINES_OS            (0x1817)
3808 #define P_MIPI_DSI_DWC_VID_VFP_LINES_OS            (volatile uint32_t *)((0x1817  << 2) + 0xffd00000)
3809 #define   MIPI_DSI_DWC_VID_VACTIVE_LINES_OS        (0x1818)
3810 #define P_MIPI_DSI_DWC_VID_VACTIVE_LINES_OS        (volatile uint32_t *)((0x1818  << 2) + 0xffd00000)
3811 #define   MIPI_DSI_DWC_EDPI_CMD_SIZE_OS            (0x1819)
3812 #define P_MIPI_DSI_DWC_EDPI_CMD_SIZE_OS            (volatile uint32_t *)((0x1819  << 2) + 0xffd00000)
3813 #define   MIPI_DSI_DWC_CMD_MODE_CFG_OS             (0x181a)
3814 #define P_MIPI_DSI_DWC_CMD_MODE_CFG_OS             (volatile uint32_t *)((0x181a  << 2) + 0xffd00000)
3815 #define   MIPI_DSI_DWC_GEN_HDR_OS                  (0x181b)
3816 #define P_MIPI_DSI_DWC_GEN_HDR_OS                  (volatile uint32_t *)((0x181b  << 2) + 0xffd00000)
3817 #define   MIPI_DSI_DWC_GEN_PLD_DATA_OS             (0x181c)
3818 #define P_MIPI_DSI_DWC_GEN_PLD_DATA_OS             (volatile uint32_t *)((0x181c  << 2) + 0xffd00000)
3819 #define   MIPI_DSI_DWC_CMD_PKT_STATUS_OS           (0x181d)
3820 #define P_MIPI_DSI_DWC_CMD_PKT_STATUS_OS           (volatile uint32_t *)((0x181d  << 2) + 0xffd00000)
3821 #define   MIPI_DSI_DWC_TO_CNT_CFG_OS               (0x181e)
3822 #define P_MIPI_DSI_DWC_TO_CNT_CFG_OS               (volatile uint32_t *)((0x181e  << 2) + 0xffd00000)
3823 #define   MIPI_DSI_DWC_HS_RD_TO_CNT_OS             (0x181f)
3824 #define P_MIPI_DSI_DWC_HS_RD_TO_CNT_OS             (volatile uint32_t *)((0x181f  << 2) + 0xffd00000)
3825 #define   MIPI_DSI_DWC_LP_RD_TO_CNT_OS             (0x1820)
3826 #define P_MIPI_DSI_DWC_LP_RD_TO_CNT_OS             (volatile uint32_t *)((0x1820  << 2) + 0xffd00000)
3827 #define   MIPI_DSI_DWC_HS_WR_TO_CNT_OS             (0x1821)
3828 #define P_MIPI_DSI_DWC_HS_WR_TO_CNT_OS             (volatile uint32_t *)((0x1821  << 2) + 0xffd00000)
3829 #define   MIPI_DSI_DWC_LP_WR_TO_CNT_OS             (0x1822)
3830 #define P_MIPI_DSI_DWC_LP_WR_TO_CNT_OS             (volatile uint32_t *)((0x1822  << 2) + 0xffd00000)
3831 #define   MIPI_DSI_DWC_BTA_TO_CNT_OS               (0x1823)
3832 #define P_MIPI_DSI_DWC_BTA_TO_CNT_OS               (volatile uint32_t *)((0x1823  << 2) + 0xffd00000)
3833 #define   MIPI_DSI_DWC_SDF_3D_OS                   (0x1824)
3834 #define P_MIPI_DSI_DWC_SDF_3D_OS                   (volatile uint32_t *)((0x1824  << 2) + 0xffd00000)
3835 #define   MIPI_DSI_DWC_LPCLK_CTRL_OS               (0x1825)
3836 #define P_MIPI_DSI_DWC_LPCLK_CTRL_OS               (volatile uint32_t *)((0x1825  << 2) + 0xffd00000)
3837 #define   MIPI_DSI_DWC_PHY_TMR_LPCLK_CFG_OS        (0x1826)
3838 #define P_MIPI_DSI_DWC_PHY_TMR_LPCLK_CFG_OS        (volatile uint32_t *)((0x1826  << 2) + 0xffd00000)
3839 #define   MIPI_DSI_DWC_PHY_TMR_CFG_OS              (0x1827)
3840 #define P_MIPI_DSI_DWC_PHY_TMR_CFG_OS              (volatile uint32_t *)((0x1827  << 2) + 0xffd00000)
3841 #define   MIPI_DSI_DWC_PHY_RSTZ_OS                 (0x1828)
3842 #define P_MIPI_DSI_DWC_PHY_RSTZ_OS                 (volatile uint32_t *)((0x1828  << 2) + 0xffd00000)
3843 #define   MIPI_DSI_DWC_PHY_IF_CFG_OS               (0x1829)
3844 #define P_MIPI_DSI_DWC_PHY_IF_CFG_OS               (volatile uint32_t *)((0x1829  << 2) + 0xffd00000)
3845 #define   MIPI_DSI_DWC_PHY_ULPS_CTRL_OS            (0x182a)
3846 #define P_MIPI_DSI_DWC_PHY_ULPS_CTRL_OS            (volatile uint32_t *)((0x182a  << 2) + 0xffd00000)
3847 #define   MIPI_DSI_DWC_PHY_TX_TRIGGERS_OS          (0x182b)
3848 #define P_MIPI_DSI_DWC_PHY_TX_TRIGGERS_OS          (volatile uint32_t *)((0x182b  << 2) + 0xffd00000)
3849 #define   MIPI_DSI_DWC_PHY_STATUS_OS               (0x182c)
3850 #define P_MIPI_DSI_DWC_PHY_STATUS_OS               (volatile uint32_t *)((0x182c  << 2) + 0xffd00000)
3851 #define   MIPI_DSI_DWC_PHY_TST_CTRL0_OS            (0x182d)
3852 #define P_MIPI_DSI_DWC_PHY_TST_CTRL0_OS            (volatile uint32_t *)((0x182d  << 2) + 0xffd00000)
3853 #define   MIPI_DSI_DWC_PHY_TST_CTRL1_OS            (0x182e)
3854 #define P_MIPI_DSI_DWC_PHY_TST_CTRL1_OS            (volatile uint32_t *)((0x182e  << 2) + 0xffd00000)
3855 #define   MIPI_DSI_DWC_INT_ST0_OS                  (0x182f)
3856 #define P_MIPI_DSI_DWC_INT_ST0_OS                  (volatile uint32_t *)((0x182f  << 2) + 0xffd00000)
3857 #define   MIPI_DSI_DWC_INT_ST1_OS                  (0x1830)
3858 #define P_MIPI_DSI_DWC_INT_ST1_OS                  (volatile uint32_t *)((0x1830  << 2) + 0xffd00000)
3859 #define   MIPI_DSI_DWC_INT_MSK0_OS                 (0x1831)
3860 #define P_MIPI_DSI_DWC_INT_MSK0_OS                 (volatile uint32_t *)((0x1831  << 2) + 0xffd00000)
3861 #define   MIPI_DSI_DWC_INT_MSK1_OS                 (0x1832)
3862 #define P_MIPI_DSI_DWC_INT_MSK1_OS                 (volatile uint32_t *)((0x1832  << 2) + 0xffd00000)
3863 //------------------------------------------------------------------------------
3864 // Top-level registers: AmLogic proprietary
3865 //------------------------------------------------------------------------------
3866 // 31: 4    Reserved.                                                                           Default 0.
3867 //     3 RW ~tim_rst_n:  1=Assert SW reset on mipi_dsi_host_timing block.   0=Release reset.    Default 1.
3868 //     2 RW ~dpi_rst_n:  1=Assert SW reset on mipi_dsi_host_dpi block.      0=Release reset.    Default 1.
3869 //     1 RW ~intr_rst_n: 1=Assert SW reset on mipi_dsi_host_intr block.     0=Release reset.    Default 1.
3870 //     0 RW ~dwc_rst_n:  1=Assert SW reset on IP core.                      0=Release reset.    Default 1.
3871 #define   MIPI_DSI_TOP_SW_RESET                    (0x18f0)
3872 #define P_MIPI_DSI_TOP_SW_RESET                    (volatile uint32_t *)((0x18f0  << 2) + 0xffd00000)
3873 // 31: 3    Reserved.                                                                                                       Default 0.
3874 //     2 RW clock_freerun: Apply to auto-clock gate only.                                                                   Default 0.
3875 //                          0=Default, use auto-clock gating to save power;
3876 //                          1=use free-run clock, disable auto-clock gating, for debug mode.
3877 //     1 RW enable_pixclk: A manual clock gate option, due to DWC IP does not have auto-clock gating. 1=Enable pixclk.      Default 0.
3878 //     0 RW enable_sysclk: A manual clock gate option, due to DWC IP does not have auto-clock gating. 1=Enable sysclk.      Default 0.
3879 #define   MIPI_DSI_TOP_CLK_CNTL                    (0x18f1)
3880 #define P_MIPI_DSI_TOP_CLK_CNTL                    (volatile uint32_t *)((0x18f1  << 2) + 0xffd00000)
3881 // 31:27    Reserved.                                                                       Default 0.
3882 //    26 RW de_dpi_pol:     1= Invert DE polarity from mipi_dsi_host_dpi.                   Default 0.
3883 //    25 RW hsync_dpi_pol:  1= Invert HS polarity from mipi_dsi_host_dpi.                   Default 0.
3884 //    24 RW vsync_dpi_pol:  1= Invert VS polarity from mipi_dsi_host_dpi.                   Default 0.
3885 // 23:20 RW dpi_color_mode: Define DPI pixel format.                                        Default 0.
3886 //                           0=16-bit RGB565 config 1;
3887 //                           1=16-bit RGB565 config 2;
3888 //                           2=16-bit RGB565 config 3;
3889 //                           3=18-bit RGB666 config 1;
3890 //                           4=18-bit RGB666 config 2;
3891 //                           5=24-bit RGB888;
3892 //                           6=20-bit YCbCr 4:2:2;
3893 //                           7=24-bit YCbCr 4:2:2;
3894 //                           8=16-bit YCbCr 4:2:2;
3895 //                           9=30-bit RGB;
3896 //                          10=36-bit RGB;
3897 //                          11=12-bit YCbCr 4:2:0.
3898 //    19    Reserved.                                                                       Default 0.
3899 // 18:16 RW in_color_mode:  Define VENC data width.                                         Default 0.
3900 //                          0=30-bit pixel;
3901 //                          1=24-bit pixel;
3902 //                          2=18-bit pixel, RGB666;
3903 //                          3=16-bit pixel, RGB565.
3904 // 15:14 RW chroma_subsample: Define method of chroma subsampling.                          Default 0.
3905 //                            Applicable to YUV422 or YUV420 only.
3906 //                            0=Use even pixel's chroma;
3907 //                            1=Use odd pixel's chroma;
3908 //                            2=Use averaged value between even and odd pair.
3909 // 13:12 RW comp2_sel:  Select which component to be Cr or B: 0=comp0; 1=comp1; 2=comp2.    Default 2.
3910 // 11:10 RW comp1_sel:  Select which component to be Cb or G: 0=comp0; 1=comp1; 2=comp2.    Default 1.
3911 //  9: 8 RW comp0_sel:  Select which component to be Y  or R: 0=comp0; 1=comp1; 2=comp2.    Default 0.
3912 //     7    Reserved.                                                                       Default 0.
3913 //     6 RW de_venc_pol:    1= Invert DE polarity from VENC.                                Default 0.
3914 //     5 RW hsync_venc_pol: 1= Invert HS polarity from VENC.                                Default 0.
3915 //     4 RW vsync_venc_pol: 1= Invert VS polarity from VENC.                                Default 0.
3916 //     3 RW dpicolorm:      Signal to IP.                                                   Default 0.
3917 //     2 RW dpishutdn:      Signal to IP.                                                   Default 0.
3918 //     1    Reserved.                                                                       Default 0.
3919 //     0    Reserved.                                                                       Default 0.
3920 #define   MIPI_DSI_TOP_CNTL                        (0x18f2)
3921 #define P_MIPI_DSI_TOP_CNTL                        (volatile uint32_t *)((0x18f2  << 2) + 0xffd00000)
3922 // 31:16    Reserved.                                                                                                           Default 0.
3923 // 15: 8 RW suspend_frame_rate: Define rate of timed-suspend.                                                                   Default 0.
3924 //                              0=Execute suspend every frame; 1=Every other frame; ...; 255=Every 256 frame.
3925 //  7: 3    Reserved.                                                                                                           Default 0.
3926 //     2 RW timed_suspend_en:   1=Enable timed suspend VencL. 0=Disable timed suspend.                                          Default 0.
3927 //     1 RW manual_suspend_en:  1=Enable manual suspend VencL. 1=Cancel manual suspend VencL.                                   Default 0.
3928 //     0 RW suspend_on_edpihalt:1=Enable IP's edpihalt signal to suspend VencL; 0=IP's edpihalt signal does not affect VencL.   Default 1.
3929 #define   MIPI_DSI_TOP_SUSPEND_CNTL                (0x18f3)
3930 #define P_MIPI_DSI_TOP_SUSPEND_CNTL                (volatile uint32_t *)((0x18f3  << 2) + 0xffd00000)
3931 // 31:29    Reserved.                                                                                                           Default 0.
3932 // 28:16 RW suspend_line_end:   Define timed-suspend region. Suspend from [pix_start,line_start] to [pix_end,line_end].         Default 0.
3933 // 15:13    Reserved.                                                                                                           Default 0.
3934 // 12: 0 RW suspend_line_start: Define timed-suspend region. Suspend from [pix_start,line_start] to [pix_end,line_end].         Default 0.
3935 #define   MIPI_DSI_TOP_SUSPEND_LINE                (0x18f4)
3936 #define P_MIPI_DSI_TOP_SUSPEND_LINE                (volatile uint32_t *)((0x18f4  << 2) + 0xffd00000)
3937 // 31:29    Reserved.                                                                                                           Default 0.
3938 // 28:16 RW suspend_pix_end:    Define timed-suspend region. Suspend from [pix_start,line_start] to [pix_end,line_end].         Default 0.
3939 // 15:13    Reserved.                                                                                                           Default 0.
3940 // 12: 0 RW suspend_pix_start:  Define timed-suspend region. Suspend from [pix_start,line_start] to [pix_end,line_end].         Default 0.
3941 #define   MIPI_DSI_TOP_SUSPEND_PIX                 (0x18f5)
3942 #define P_MIPI_DSI_TOP_SUSPEND_PIX                 (volatile uint32_t *)((0x18f5  << 2) + 0xffd00000)
3943 // 31:20    Reserved.                                                                                                           Default 0.
3944 // 19:10 RW meas_vsync:     Control on measuring Host Controller's vsync.                                                       Default 0.
3945 //                          [   19] meas_en:        1=Enable measurement
3946 //                          [   18] accum_meas_en:  0=meas_count is cleared at the end of each measure;
3947 //                                                  1=meas_count is accumulated at the end of each measure.
3948 //                          [17:10] vsync_span:     Define the duration of a measure is to last for how many Vsyncs.
3949 //  9: 0 RW meas_edpite:    Control on measuring Display Slave's edpite.                                                        Default 0.
3950 //                          [    9] meas_en:        1=Enable measurement
3951 //                          [    8] accum_meas_en:  0=meas_count is cleared at the end of each measure;
3952 //                                                  1=meas_count is accumulated at the end of each measure.
3953 //                          [ 7: 0] edpite_span:    Define the duration of a measure is to last for how many edpite.
3954 #define   MIPI_DSI_TOP_MEAS_CNTL                   (0x18f6)
3955 #define P_MIPI_DSI_TOP_MEAS_CNTL                   (volatile uint32_t *)((0x18f6  << 2) + 0xffd00000)
3956 //    31 R  stat_edpihalt:  status of edpihalt signal from IP.              Default 0.
3957 // 30:29    Reserved.                                                       Default 0.
3958 // 28:16 R  stat_te_line:   Snapshot of Host's line position at edpite.     Default 0.
3959 // 15:13    Reserved.                                                       Default 0.
3960 // 12: 0 R  stat_te_pix:    Snapshot of Host's pixel position at edpite.    Default 0.
3961 #define   MIPI_DSI_TOP_STAT                        (0x18f7)
3962 #define P_MIPI_DSI_TOP_STAT                        (volatile uint32_t *)((0x18f7  << 2) + 0xffd00000)
3963 // To measure display slave's frame rate, we can use a reference clock to measure the duration of one of more edpite pulse(s).
3964 // Measurement control is by register MIPI_DSI_TOP_MEAS_CNTL bit[9:0].
3965 // Reference clock comes from clk_rst_tst.cts_dsi_meas_clk, and is defined by HIU register HHI_VDIN_MEAS_CLK_CNTL bit[23:12].
3966 // Mesurement result is in MIPI_DSI_TOP_MEAS_STAT_TE0 and MIPI_DSI_TOP_MEAS_STAT_TE1, as below:
3967 // edpite_meas_count[47:0]: Number of reference clock cycles counted during one measure period (non-incremental measure), or
3968 //                          during all measure periods so far (incremental measure).
3969 // edpite_meas_count_n[3:0]:Number of measure periods has been done. Number can wrap over.
3970 //
3971 // 31: 0 R  edpite_meas_count[31:0].    Default 0.
3972 #define   MIPI_DSI_TOP_MEAS_STAT_TE0               (0x18f8)
3973 #define P_MIPI_DSI_TOP_MEAS_STAT_TE0               (volatile uint32_t *)((0x18f8  << 2) + 0xffd00000)
3974 // 19:16 R  edpite_meas_count_n.        Default 0.
3975 // 15: 0 R  edpite_meas_count[47:32].   Default 0.
3976 #define   MIPI_DSI_TOP_MEAS_STAT_TE1               (0x18f9)
3977 #define P_MIPI_DSI_TOP_MEAS_STAT_TE1               (volatile uint32_t *)((0x18f9  << 2) + 0xffd00000)
3978 // To measure Host's frame rate, we can use a reference clock to measure the duration of one of more Vsync pulse(s).
3979 // Measurement control is by register MIPI_DSI_TOP_MEAS_CNTL bit[19:10].
3980 // Reference clock comes from clk_rst_tst.cts_dsi_meas_clk, and is defined by HIU register HHI_VDIN_MEAS_CLK_CNTL bit[23:12].
3981 // Mesurement result is in MIPI_DSI_TOP_MEAS_STAT_VS0 and MIPI_DSI_TOP_MEAS_STAT_VS1, as below:
3982 // vsync_meas_count[47:0]:  Number of reference clock cycles counted during one measure period (non-incremental measure), or
3983 //                          during all measure periods so far (incremental measure).
3984 // vsync_meas_count_n[3:0]: Number of measure periods has been done. Number can wrap over.
3985 //
3986 // 31: 0 R  vsync_meas_count[31:0].     Default 0.
3987 #define   MIPI_DSI_TOP_MEAS_STAT_VS0               (0x18fa)
3988 #define P_MIPI_DSI_TOP_MEAS_STAT_VS0               (volatile uint32_t *)((0x18fa  << 2) + 0xffd00000)
3989 // 19:16 R  vsync_meas_count_n.         Default 0.
3990 // 15: 0 R  vsync_meas_count[47:32].    Default 0.
3991 #define   MIPI_DSI_TOP_MEAS_STAT_VS1               (0x18fb)
3992 #define P_MIPI_DSI_TOP_MEAS_STAT_VS1               (volatile uint32_t *)((0x18fb  << 2) + 0xffd00000)
3993 // 31:16 RW intr_stat/clr. For each bit, read as this interrupt level status, write 1 to clear. Default 0.
3994 //                         Note: To clear the interrupt level, simply write 1 to the specific bit, no need to write 0 afterwards.
3995 //          [31:22] Reserved
3996 //          [   21] stat/clr of EOF interrupt
3997 //          [   20] stat/clr of de_fall interrupt
3998 //          [   19] stat/clr of de_rise interrupt
3999 //          [   18] stat/clr of vs_fall interrupt
4000 //          [   17] stat/clr of vs_rise interrupt
4001 //          [   16] stat/clr of dwc_edpite interrupt
4002 // 15: 0 RW intr_enable. For each bit, 1=enable this interrupt, 0=disable.                      Default 0.
4003 //          [15: 6] Reserved
4004 //          [    5] EOF (End_Of_Field) interrupt
4005 //          [    4] de_fall interrupt
4006 //          [    3] de_rise interrupt
4007 //          [    2] vs_fall interrupt
4008 //          [    1] vs_rise interrupt
4009 //          [    0] dwc_edpite interrupt
4010 #define   MIPI_DSI_TOP_INTR_CNTL_STAT              (0x18fc)
4011 #define P_MIPI_DSI_TOP_INTR_CNTL_STAT              (volatile uint32_t *)((0x18fc  << 2) + 0xffd00000)
4012 // 31: 2    Reserved.   Default 0.
4013 //  1: 0 RW mem_pd.     Default 3.
4014 #define   MIPI_DSI_TOP_MEM_PD                      (0x18fd)
4015 #define P_MIPI_DSI_TOP_MEM_PD                      (volatile uint32_t *)((0x18fd  << 2) + 0xffd00000)
4016 // synopsys translate_off
4017 // synopsys translate_on
4018 //
4019 // Closing file:  dsi_regs.h
4020 //
4021 //======================================
4022 //  CPU Assist module
4023 //
4024 //======================================
4025 // -----------------------------------------------
4026 // CBUS_BASE:  ASSIST_CBUS_BASE = 0x20
4027 // -----------------------------------------------
4028 //`define ASSIST_AMR_MBOX1_INT          8'h4d
4029 //`define ASSIST_AMR_MBOX2_INT          8'h4e
4030 #define   ASSIST_AMR_SCRATCH0                      (0x204f)
4031 #define P_ASSIST_AMR_SCRATCH0                      (volatile uint32_t *)((0x204f  << 2) + 0xffd00000)
4032 #define   ASSIST_AMR_SCRATCH1                      (0x2050)
4033 #define P_ASSIST_AMR_SCRATCH1                      (volatile uint32_t *)((0x2050  << 2) + 0xffd00000)
4034 #define   ASSIST_AMR_SCRATCH2                      (0x2051)
4035 #define P_ASSIST_AMR_SCRATCH2                      (volatile uint32_t *)((0x2051  << 2) + 0xffd00000)
4036 #define   ASSIST_AMR_SCRATCH3                      (0x2052)
4037 #define P_ASSIST_AMR_SCRATCH3                      (volatile uint32_t *)((0x2052  << 2) + 0xffd00000)
4038 #define   ASSIST_HW_REV                            (0x2053)
4039 #define P_ASSIST_HW_REV                            (volatile uint32_t *)((0x2053  << 2) + 0xffd00000)
4040 //`define ASSIST_CBUS_ARB               8'h54
4041 #define   ASSIST_POR_CONFIG                        (0x2055)
4042 #define P_ASSIST_POR_CONFIG                        (volatile uint32_t *)((0x2055  << 2) + 0xffd00000)
4043 #define   ASSIST_SPARE16_REG1                      (0x2056)
4044 #define P_ASSIST_SPARE16_REG1                      (volatile uint32_t *)((0x2056  << 2) + 0xffd00000)
4045 #define   ASSIST_SPARE16_REG2                      (0x2057)
4046 #define P_ASSIST_SPARE16_REG2                      (volatile uint32_t *)((0x2057  << 2) + 0xffd00000)
4047 #define   ASSIST_SPARE8_REG1                       (0x2058)
4048 #define P_ASSIST_SPARE8_REG1                       (volatile uint32_t *)((0x2058  << 2) + 0xffd00000)
4049 #define   ASSIST_SPARE8_REG2                       (0x2059)
4050 #define P_ASSIST_SPARE8_REG2                       (volatile uint32_t *)((0x2059  << 2) + 0xffd00000)
4051 // Duplicate Address...when used please move to a new address
4052 // `define TO_AMRISC_REG                 8'h59 // for amrisc
4053 #define   ASSIST_SPARE8_REG3                       (0x205a)
4054 #define P_ASSIST_SPARE8_REG3                       (volatile uint32_t *)((0x205a  << 2) + 0xffd00000)
4055 // Duplicate Address...when used please move to a new address
4056 // `define FROM_AMRISC_REG               8'h5a // for amrisc
4057 // Duplicate Address...when used please move to a new address
4058 // `define MPEG2_DECODER_CONTROL         8'h5b // for amrisc
4059 #define   AC3_CTRL_REG1                            (0x205b)
4060 #define P_AC3_CTRL_REG1                            (volatile uint32_t *)((0x205b  << 2) + 0xffd00000)
4061 #define   AC3_CTRL_REG2                            (0x205c)
4062 #define P_AC3_CTRL_REG2                            (volatile uint32_t *)((0x205c  << 2) + 0xffd00000)
4063 #define   AC3_CTRL_REG3                            (0x205d)
4064 #define P_AC3_CTRL_REG3                            (volatile uint32_t *)((0x205d  << 2) + 0xffd00000)
4065 #define   AC3_CTRL_REG4                            (0x205e)
4066 #define P_AC3_CTRL_REG4                            (volatile uint32_t *)((0x205e  << 2) + 0xffd00000)
4067 //`define ASSIST_PMEM_SPLIT             8'h5f
4068 #define   ASSIST_GEN_CNTL                          (0x2068)
4069 #define P_ASSIST_GEN_CNTL                          (volatile uint32_t *)((0x2068  << 2) + 0xffd00000)
4070 #define   EE_ASSIST_MBOX0_IRQ_REG                  (0x2070)
4071 #define P_EE_ASSIST_MBOX0_IRQ_REG                  (volatile uint32_t *)((0x2070  << 2) + 0xffd00000)
4072 #define   EE_ASSIST_MBOX0_CLR_REG                  (0x2071)
4073 #define P_EE_ASSIST_MBOX0_CLR_REG                  (volatile uint32_t *)((0x2071  << 2) + 0xffd00000)
4074 #define   EE_ASSIST_MBOX0_MASK                     (0x2072)
4075 #define P_EE_ASSIST_MBOX0_MASK                     (volatile uint32_t *)((0x2072  << 2) + 0xffd00000)
4076 #define   EE_ASSIST_MBOX0_FIQ_SEL                  (0x2073)
4077 #define P_EE_ASSIST_MBOX0_FIQ_SEL                  (volatile uint32_t *)((0x2073  << 2) + 0xffd00000)
4078 #define   EE_ASSIST_MBOX1_IRQ_REG                  (0x2074)
4079 #define P_EE_ASSIST_MBOX1_IRQ_REG                  (volatile uint32_t *)((0x2074  << 2) + 0xffd00000)
4080 #define   EE_ASSIST_MBOX1_CLR_REG                  (0x2075)
4081 #define P_EE_ASSIST_MBOX1_CLR_REG                  (volatile uint32_t *)((0x2075  << 2) + 0xffd00000)
4082 #define   EE_ASSIST_MBOX1_MASK                     (0x2076)
4083 #define P_EE_ASSIST_MBOX1_MASK                     (volatile uint32_t *)((0x2076  << 2) + 0xffd00000)
4084 #define   EE_ASSIST_MBOX1_FIQ_SEL                  (0x2077)
4085 #define P_EE_ASSIST_MBOX1_FIQ_SEL                  (volatile uint32_t *)((0x2077  << 2) + 0xffd00000)
4086 #define   EE_ASSIST_MBOX2_IRQ_REG                  (0x2078)
4087 #define P_EE_ASSIST_MBOX2_IRQ_REG                  (volatile uint32_t *)((0x2078  << 2) + 0xffd00000)
4088 #define   EE_ASSIST_MBOX2_CLR_REG                  (0x2079)
4089 #define P_EE_ASSIST_MBOX2_CLR_REG                  (volatile uint32_t *)((0x2079  << 2) + 0xffd00000)
4090 #define   EE_ASSIST_MBOX2_MASK                     (0x207a)
4091 #define P_EE_ASSIST_MBOX2_MASK                     (volatile uint32_t *)((0x207a  << 2) + 0xffd00000)
4092 #define   EE_ASSIST_MBOX2_FIQ_SEL                  (0x207b)
4093 #define P_EE_ASSIST_MBOX2_FIQ_SEL                  (volatile uint32_t *)((0x207b  << 2) + 0xffd00000)
4094 #define   EE_ASSIST_MBOX3_IRQ_REG                  (0x207c)
4095 #define P_EE_ASSIST_MBOX3_IRQ_REG                  (volatile uint32_t *)((0x207c  << 2) + 0xffd00000)
4096 #define   EE_ASSIST_MBOX3_CLR_REG                  (0x207d)
4097 #define P_EE_ASSIST_MBOX3_CLR_REG                  (volatile uint32_t *)((0x207d  << 2) + 0xffd00000)
4098 #define   EE_ASSIST_MBOX3_MASK                     (0x207e)
4099 #define P_EE_ASSIST_MBOX3_MASK                     (volatile uint32_t *)((0x207e  << 2) + 0xffd00000)
4100 #define   EE_ASSIST_MBOX3_FIQ_SEL                  (0x207f)
4101 #define P_EE_ASSIST_MBOX3_FIQ_SEL                  (volatile uint32_t *)((0x207f  << 2) + 0xffd00000)
4102 // synopsys translate_off
4103 // synopsys translate_on
4104 //
4105 // Closing file:  ./register_map.h
4106 //
4107 //
4108 // Reading file:  ./vcbus_regs.h
4109 //
4110 // synopsys translate_off
4111 // synopsys translate_on
4112 //===========================================================================
4113 //`define RDMA_VCBUS_BASE       8'h11
4114 //===========================================================================
4115 //
4116 // Reading file:  rdma_regs.h
4117 //
4118 //===========================================================================
4119 // RDMA registers 0x00 - 0xff
4120 //===========================================================================
4121 // -----------------------------------------------
4122 // CBUS_BASE:  RDMA_VCBUS_BASE = 0x11
4123 // -----------------------------------------------
4124 // Bit 31: 0 RW AHB start address for manual start DMA
4125 #define   RDMA_AHB_START_ADDR_MAN                  (0x1100)
4126 #define P_RDMA_AHB_START_ADDR_MAN                  (volatile uint32_t *)((0x1100  << 2) + 0xff900000)
4127 // Bit 31: 0 RW AHB end address for manual start DMA
4128 #define   RDMA_AHB_END_ADDR_MAN                    (0x1101)
4129 #define P_RDMA_AHB_END_ADDR_MAN                    (volatile uint32_t *)((0x1101  << 2) + 0xff900000)
4130 // Bit 31: 0 RW AHB start address for auto start source 1
4131 #define   RDMA_AHB_START_ADDR_1                    (0x1102)
4132 #define P_RDMA_AHB_START_ADDR_1                    (volatile uint32_t *)((0x1102  << 2) + 0xff900000)
4133 // Bit 31: 0 RW AHB end address for auto start source 1
4134 #define   RDMA_AHB_END_ADDR_1                      (0x1103)
4135 #define P_RDMA_AHB_END_ADDR_1                      (volatile uint32_t *)((0x1103  << 2) + 0xff900000)
4136 // Bit 31: 0 RW AHB start address for auto start source 2
4137 #define   RDMA_AHB_START_ADDR_2                    (0x1104)
4138 #define P_RDMA_AHB_START_ADDR_2                    (volatile uint32_t *)((0x1104  << 2) + 0xff900000)
4139 // Bit 31: 0 RW AHB end address for auto start source 2
4140 #define   RDMA_AHB_END_ADDR_2                      (0x1105)
4141 #define P_RDMA_AHB_END_ADDR_2                      (volatile uint32_t *)((0x1105  << 2) + 0xff900000)
4142 // Bit 31: 0 RW AHB start address for auto start source 3
4143 #define   RDMA_AHB_START_ADDR_3                    (0x1106)
4144 #define P_RDMA_AHB_START_ADDR_3                    (volatile uint32_t *)((0x1106  << 2) + 0xff900000)
4145 // Bit 31: 0 RW AHB end address for auto start source 3
4146 #define   RDMA_AHB_END_ADDR_3                      (0x1107)
4147 #define P_RDMA_AHB_END_ADDR_3                      (volatile uint32_t *)((0x1107  << 2) + 0xff900000)
4148 // Bit 31: 0 RW AHB start address for auto start source 4
4149 #define   RDMA_AHB_START_ADDR_4                    (0x1108)
4150 #define P_RDMA_AHB_START_ADDR_4                    (volatile uint32_t *)((0x1108  << 2) + 0xff900000)
4151 // Bit 31: 0 RW AHB end address for auto start source 4
4152 #define   RDMA_AHB_END_ADDR_4                      (0x1109)
4153 #define P_RDMA_AHB_END_ADDR_4                      (volatile uint32_t *)((0x1109  << 2) + 0xff900000)
4154 // Bit 31: 0 RW AHB start address for auto start source 5
4155 #define   RDMA_AHB_START_ADDR_5                    (0x110a)
4156 #define P_RDMA_AHB_START_ADDR_5                    (volatile uint32_t *)((0x110a  << 2) + 0xff900000)
4157 // Bit 31: 0 RW AHB end address for auto start source 5
4158 #define   RDMA_AHB_END_ADDR_5                      (0x110b)
4159 #define P_RDMA_AHB_END_ADDR_5                      (volatile uint32_t *)((0x110b  << 2) + 0xff900000)
4160 // Bit 31: 0 RW AHB start address for auto start source 6
4161 #define   RDMA_AHB_START_ADDR_6                    (0x110c)
4162 #define P_RDMA_AHB_START_ADDR_6                    (volatile uint32_t *)((0x110c  << 2) + 0xff900000)
4163 // Bit 31: 0 RW AHB end address for auto start source 6
4164 #define   RDMA_AHB_END_ADDR_6                      (0x110d)
4165 #define P_RDMA_AHB_END_ADDR_6                      (volatile uint32_t *)((0x110d  << 2) + 0xff900000)
4166 // Bit 31: 0 RW AHB start address for auto start source 7
4167 #define   RDMA_AHB_START_ADDR_7                    (0x110e)
4168 #define P_RDMA_AHB_START_ADDR_7                    (volatile uint32_t *)((0x110e  << 2) + 0xff900000)
4169 // Bit 31: 0 RW AHB end address for auto start source 7
4170 #define   RDMA_AHB_END_ADDR_7                      (0x110f)
4171 #define P_RDMA_AHB_END_ADDR_7                      (volatile uint32_t *)((0x110f  << 2) + 0xff900000)
4172 // Auto start DMA control:
4173 // Bit 31:24 RW ctrl_enable_int_3. Interrupt inputs enable mask for source 3.
4174 // Bit 23:16 RW ctrl_enable_int_2. Interrupt inputs enable mask for source 2.
4175 // Bit 15: 8 RW ctrl_enable_int_1. Interrupt inputs enable mask for source 1.
4176 // Bit     7 RW ctrl_cbus_write_3. Register read/write mode for auto-start 3. 1=Register write; 0=Register read.
4177 // Bit     6 RW ctrl_cbus_write_3. Register read/write mode for auto-start 2. 1=Register write; 0=Register read.
4178 // Bit     5 RW ctrl_cbus_write_3. Register read/write mode for auto-start 1. 1=Register write; 0=Register read.
4179 // Bit     4 R  Rsrv.
4180 // Bit     3 RW ctrl_cbus_addr_incr_3. 1=Incremental register access for auto-start 3; 0=Non-incremental (individual) register access.
4181 // Bit     2 RW ctrl_cbus_addr_incr_2. 1=Incremental register access for auto-start 2; 0=Non-incremental (individual) register access.
4182 // Bit     1 RW ctrl_cbus_addr_incr_1. 1=Incremental register access for auto-start 1; 0=Non-incremental (individual) register access.
4183 // Bit     0 R  Rsrv.
4184 #define   RDMA_ACCESS_AUTO                         (0x1110)
4185 #define P_RDMA_ACCESS_AUTO                         (volatile uint32_t *)((0x1110  << 2) + 0xff900000)
4186 #define   RDMA_ACCESS_AUTO2                        (0x1111)
4187 #define P_RDMA_ACCESS_AUTO2                        (volatile uint32_t *)((0x1111  << 2) + 0xff900000)
4188 #define   RDMA_ACCESS_AUTO3                        (0x1112)
4189 #define P_RDMA_ACCESS_AUTO3                        (volatile uint32_t *)((0x1112  << 2) + 0xff900000)
4190 // Manual start DMA control:
4191 // Bit 31: 3 R  Rsrv.
4192 // Bit     2 RW ctrl_cbus_write_man. Register read/write mode for manual-start. 1=Register write; 0=Register read.
4193 // Bit     1 RW ctrl_cbus_addr_incr_man. 1=Incremental register access for manual-start; 0=Non-incremental (individual) register access.
4194 // Bit     0 W  ctrl_start_man. Write 1 to this bit to manual-start DMA. This bit always read back 0.
4195 #define   RDMA_ACCESS_MAN                          (0x1113)
4196 #define P_RDMA_ACCESS_MAN                          (volatile uint32_t *)((0x1113  << 2) + 0xff900000)
4197 // RDMA general control:
4198 // Bit 31:25 R  Rsrv.
4199 // Bit    24 W  ctrl_clr_rdma_done_int. Write 1 to reset rdma_int level to 0. No need to clear this bit.
4200 // Bit 23:19 R  Rsrv.
4201 // Bit 18:13 R  Rsrv.
4202 // Bit 12: 7 R  Rsrv.
4203 // Bit     6 RW ctrl_ddr_urgent.
4204 // Bit  5: 4 RW ctrl_ahb_wr_burst_size. 0=ABH write request burst size 16;
4205 //                                      1=ABH write request burst size 24;
4206 //                                      2=ABH write request burst size 32;
4207 //                                      3=ABH write request burst size 48.
4208 // Bit  3: 2 RW ctrl_ahb_rd_burst_size. 0=ABH read request burst size 16;
4209 //                                      1=ABH read request burst size 24;
4210 //                                      2=ABH read request burst size 32;
4211 //                                      3=ABH read request burst size 48.
4212 // Bit     1 RW ctrl_sw_reset. 1=Reset RDMA logics except register.
4213 // Bit     0 RW ctrl_free_clk_enable. 0=Default, Enable clock gating. 1=No clock gating, enable free clock.
4214 #define   RDMA_CTRL                                (0x1114)
4215 #define P_RDMA_CTRL                                (volatile uint32_t *)((0x1114  << 2) + 0xff900000)
4216 // Read only.
4217 // Bit 31:29 R  Rsrv.
4218 // Bit    28 R  rdma_done_int.
4219 // Bit 27:25 R  Rsrv.
4220 // Bit 24:18 R  ahb_wrfifo_cnt. FIFO for buffering CBus read data to be sent to AHB
4221 // Bit 17:11 R  ahb_rdfifo_cnt. FIFO for buffering data read from AHB.
4222 // Bit 10: 8 R  ddr_req_st. =0 -- Idle; !=0 -- AHB interfacing ongoing.
4223 // Bit  7: 4 R  curr_req. Latest requests that is being/been serviced. E.g. 0000=Idle; 0010=Latest serviced request is Req 1.
4224 // Bit  3: 0 R  req_latch. Requests that are yet to be serviced. E.g. 0000=No request; 0001=Req 0 waiting; 1100=Req 2 and 3 waiting.
4225 #define   RDMA_STATUS                              (0x1115)
4226 #define P_RDMA_STATUS                              (volatile uint32_t *)((0x1115  << 2) + 0xff900000)
4227 #define   RDMA_STATUS2                             (0x1116)
4228 #define P_RDMA_STATUS2                             (volatile uint32_t *)((0x1116  << 2) + 0xff900000)
4229 #define   RDMA_STATUS3                             (0x1117)
4230 #define P_RDMA_STATUS3                             (volatile uint32_t *)((0x1117  << 2) + 0xff900000)
4231 #define   RDMA_ACCESS_AUTO4                        (0x1118)
4232 #define P_RDMA_ACCESS_AUTO4                        (volatile uint32_t *)((0x1118  << 2) + 0xff900000)
4233 #define   RDMA_SRAM_CNTL                           (0x1120)
4234 #define P_RDMA_SRAM_CNTL                           (volatile uint32_t *)((0x1120  << 2) + 0xff900000)
4235 #define   RDMA_SRAM_REGADDR                        (0x1121)
4236 #define P_RDMA_SRAM_REGADDR                        (volatile uint32_t *)((0x1121  << 2) + 0xff900000)
4237 #define   RDMA_SRAM_REGDATA                        (0x1122)
4238 #define P_RDMA_SRAM_REGDATA                        (volatile uint32_t *)((0x1122  << 2) + 0xff900000)
4239 //
4240 // Closing file:  rdma_regs.h
4241 //
4242 //===========================================================================
4243 // VDIN
4244 //===========================================================================
4245 // -----------------------------------------------
4246 // CBUS_BASE:  VDIN_VCBUS_BASE = 0x12
4247 // -----------------------------------------------
4248 //VDIN0        8'h00 - 8'h7f
4249 //VDIN1        8'h80 - 8'hef
4250 #define VDIN0_OFFSET            0x00
4251 #define VDIN1_OFFSET            0x80
4252 
4253 #define   VDIN_SCALE_COEF_IDX                      (0x1200)
4254 #define P_VDIN_SCALE_COEF_IDX                      (volatile uint32_t *)((0x1200  << 2) + 0xff900000)
4255 #define   VDIN_SCALE_COEF                          (0x1201)
4256 #define P_VDIN_SCALE_COEF                          (volatile uint32_t *)((0x1201  << 2) + 0xff900000)
4257 //bit 31,   mpeg_to_vdin_sel, 0: mpeg source to NR directly, 1: mpeg source pass through here
4258 //bit 30,   mpeg_field info which can be written by software
4259 //Bit 29,   force go_field, pulse signal
4260 //Bit 28,   force go_line, pulse signal
4261 //Bit 27,   enable mpeg_go_field input signal
4262 //Bit 26:20, hold lines
4263 //Bit 19,   delay go_field function enable
4264 //Bit 18:12, delay go_field line number
4265 //Bit 11:10, component2 output switch, 00: select component0 in, 01: select component1 in, 10: select component2 in
4266 //Bit 9:8, component1 output switch, 00: select component0 in, 01: select component1 in, 10: select component2 in
4267 //Bit 7:6, component0 output switch, 00: select component0 in, 01: select component1 in, 10: select component2 in
4268 //Bit 5,   input window selection function enable
4269 //Bit 4, enable VDIN common data input, otherwise there will be no video data input
4270 //Bit 3:0 vdin selection, 1: mpeg_in from dram, 2: bt656 input, 3: component input, 4: tvdecoder input, 5: hdmi rx input, 6: digtial video input, 7: loopback from Viu1, 8: MIPI.
4271 #define   VDIN_COM_CTRL0                           (0x1202)
4272 #define P_VDIN_COM_CTRL0                           (volatile uint32_t *)((0x1202  << 2) + 0xff900000)
4273 //Bit 28:16 active_max_pix_cnt, readonly
4274 //Bit 12:0  active_max_pix_cnt_shadow, readonly
4275 #define   VDIN_ACTIVE_MAX_PIX_CNT_STATUS           (0x1203)
4276 #define P_VDIN_ACTIVE_MAX_PIX_CNT_STATUS           (volatile uint32_t *)((0x1203  << 2) + 0xff900000)
4277 //Bit 28:16 go_line_cnt, readonly
4278 //Bit 12:0  active_line_cnt, readonly
4279 #define   VDIN_LCNT_STATUS                         (0x1204)
4280 #define P_VDIN_LCNT_STATUS                         (volatile uint32_t *)((0x1204  << 2) + 0xff900000)
4281 //Readonly
4282 //Bit [14:3] lfifo_buf_cnt
4283 //Bit 2, vdin_direct_done status
4284 //Bit 1, vdin_nr_done status
4285 //Bit 0, field
4286 #define   VDIN_COM_STATUS0                         (0x1205)
4287 #define P_VDIN_COM_STATUS0                         (volatile uint32_t *)((0x1205  << 2) + 0xff900000)
4288 //Readonly
4289 //Bit 31, vdi4 fifo overflow
4290 //Bit 29:24, vdi3_asfifo_cnt
4291 //Bit 23, vdi3 fifo overflow
4292 //Bit 21:16, vdi3_asfifo_cnt
4293 //Bit 15, vdi2 fifo overflow
4294 //Bit 13:8, vdi2_asfifo_cnt
4295 //Bit 7, vdi1 fifo overflow
4296 //Bit 5:0, vdi1_asfifo_cnt
4297 #define   VDIN_COM_STATUS1                         (0x1206)
4298 #define P_VDIN_COM_STATUS1                         (volatile uint32_t *)((0x1206  << 2) + 0xff900000)
4299 //Bit 28:16 go_line_cnt_shadow, readonly
4300 //Bit 12:0  active_line_cnt_shadow, readonly
4301 #define   VDIN_LCNT_SHADOW_STATUS                  (0x1207)
4302 #define P_VDIN_LCNT_SHADOW_STATUS                  (volatile uint32_t *)((0x1207  << 2) + 0xff900000)
4303 //each 8bit asfifo_ctrl is following:
4304 //Bit 7, DE  enable
4305 //Bit 6, go field enable
4306 //Bit 5, go line enable
4307 //Bit 4, if true, negative active input vsync
4308 //Bit 3, if true, negative active input hsync
4309 //Bit 2, vsync soft reset fifo enable
4310 //Bit 1, overflow status clear
4311 //Bit 0 asfifo soft reset, level signal
4312 //Bit 7:0 vdi1 asfifo_ctrl
4313 //Bit 23:16 vdi2 asfifo_ctrl
4314 #define   VDIN_ASFIFO_CTRL0                        (0x1208)
4315 #define P_VDIN_ASFIFO_CTRL0                        (volatile uint32_t *)((0x1208  << 2) + 0xff900000)
4316 //Bit 7:0 vdi3 asfifo_ctrl
4317 //Bit 23:16 vdi4 asfifo_ctrl
4318 #define   VDIN_ASFIFO_CTRL1                        (0x1209)
4319 #define P_VDIN_ASFIFO_CTRL1                        (volatile uint32_t *)((0x1209  << 2) + 0xff900000)
4320 //Bit 28:16 input width minus 1, after the window function
4321 //Bit 12:0  output width minus 1
4322 #define   VDIN_WIDTHM1I_WIDTHM1O                   (0x120a)
4323 #define P_VDIN_WIDTHM1I_WIDTHM1O                   (volatile uint32_t *)((0x120a  << 2) + 0xff900000)
4324 //Bit 20:17 prehsc_mode, bit 3:2, prehsc odd line interp mode, bit 1:0, prehsc even line interp mode,
4325 //           each 2bit, 00: pix0+pix1/2, average, 01: pix1, 10: pix0
4326 //Bit 16:15 sp422_mode, special mode for the component1 and component2, 00: normal case, 01: 32 64 32, 10: 0 64 64 0, 11: 16 96 16
4327 //Bit 14:8, hsc_ini_pixi_ptr, signed data, only useful when short_lineo_en is true
4328 //Bit 7, prehsc_en
4329 //Bit 6, hsc_en,
4330 //Bit 5, hsc_short_lineo_en, short line output enable
4331 //Bit 4, hsc_nearest_en
4332 //Bit 3, hsc_phase0_always_en
4333 //Bit 2:0, hsc_bank_length
4334 #define   VDIN_SC_MISC_CTRL                        (0x120b)
4335 #define P_VDIN_SC_MISC_CTRL                        (volatile uint32_t *)((0x120b  << 2) + 0xff900000)
4336 //Bit 28:24, integer portion
4337 //Bit 23:0, fraction portion
4338 #define   VDIN_HSC_PHASE_STEP                      (0x120c)
4339 #define P_VDIN_HSC_PHASE_STEP                      (volatile uint32_t *)((0x120c  << 2) + 0xff900000)
4340 //Bit 30:29    hscale rpt_p0_num
4341 //Bit 28:24    hscale ini_rcv_num
4342 //Bit 23:0     hscale ini_phase
4343 #define   VDIN_HSC_INI_CTRL                        (0x120d)
4344 #define P_VDIN_HSC_INI_CTRL                        (volatile uint32_t *)((0x120d  << 2) + 0xff900000)
4345 //Read only
4346 //Bit 23, vdi7 fifo overflow
4347 //Bit 21:16, vdi7_asfifo_cnt
4348 //Bit 15, vdi6 fifo overflow
4349 //Bit 13:8, vdi6_asfifo_cnt
4350 //Bit 7, vdi5 fifo overflow
4351 //Bit 5:0, vdi5_asfifo_cnt
4352 #define   VDIN_COM_STATUS2                         (0x120e)
4353 #define P_VDIN_COM_STATUS2                         (volatile uint32_t *)((0x120e  << 2) + 0xff900000)
4354 //Bit 25:16 asfifo decimate control
4355 //Bit 25, if true, decimation counter sync with first valid DE in the field,
4356 //otherwise the decimation counter is not sync with external signal
4357 //Bit 24, decimation de enable
4358 //Bit 23:20, decimation phase, which counter value use to decimate,
4359 //Bit 19:16, decimation number, 0: not decimation, 1: decimation 2, 2: decimation 3 ....
4360 //Bit 7:0 vdi5 asfifo_ctrl
4361 #define   VDIN_ASFIFO_CTRL2                        (0x120f)
4362 #define P_VDIN_ASFIFO_CTRL2                        (volatile uint32_t *)((0x120f  << 2) + 0xff900000)
4363 //Bit 7,  highlight_en
4364 //Bit 6   probe_post, if true, probe pixel data after matrix, otherwise probe pixel data before matrix
4365 //Bit 5:4  probe_sel, 00: select matrix 0, 01: select matrix 1,  otherwise select nothing
4366 //Bit 3:2, matrix coef idx selection, 00: select mat0, 01: select mat1, otherwise slect nothing
4367 //Bit 1   mat1 conversion matrix enable
4368 //Bit 0   mat0 conversion matrix enable
4369 #define   VDIN_MATRIX_CTRL                         (0x1210)
4370 #define P_VDIN_MATRIX_CTRL                         (volatile uint32_t *)((0x1210  << 2) + 0xff900000)
4371 //Bit 28:16 coef00
4372 //Bit 12:0  coef01
4373 #define   VDIN_MATRIX_COEF00_01                    (0x1211)
4374 #define P_VDIN_MATRIX_COEF00_01                    (volatile uint32_t *)((0x1211  << 2) + 0xff900000)
4375 //Bit 28:16 coef02
4376 //Bit 12:0  coef10
4377 #define   VDIN_MATRIX_COEF02_10                    (0x1212)
4378 #define P_VDIN_MATRIX_COEF02_10                    (volatile uint32_t *)((0x1212  << 2) + 0xff900000)
4379 //Bit 28:16 coef11
4380 //Bit 12:0  coef12
4381 #define   VDIN_MATRIX_COEF11_12                    (0x1213)
4382 #define P_VDIN_MATRIX_COEF11_12                    (volatile uint32_t *)((0x1213  << 2) + 0xff900000)
4383 //Bit 28:16 coef20
4384 //Bit 12:0  coef21
4385 #define   VDIN_MATRIX_COEF20_21                    (0x1214)
4386 #define P_VDIN_MATRIX_COEF20_21                    (volatile uint32_t *)((0x1214  << 2) + 0xff900000)
4387 //BIt 18:16 conv_rs
4388 //Bit 12:0  coef22
4389 #define   VDIN_MATRIX_COEF22                       (0x1215)
4390 #define P_VDIN_MATRIX_COEF22                       (volatile uint32_t *)((0x1215  << 2) + 0xff900000)
4391 //Bit 26:16 offset0
4392 //Bit 10:0  offset1
4393 #define   VDIN_MATRIX_OFFSET0_1                    (0x1216)
4394 #define P_VDIN_MATRIX_OFFSET0_1                    (volatile uint32_t *)((0x1216  << 2) + 0xff900000)
4395 //Bit 10:0  offset2
4396 #define   VDIN_MATRIX_OFFSET2                      (0x1217)
4397 #define P_VDIN_MATRIX_OFFSET2                      (volatile uint32_t *)((0x1217  << 2) + 0xff900000)
4398 //Bit 26:16 pre_offset0
4399 //Bit 10:0  pre_offset1
4400 #define   VDIN_MATRIX_PRE_OFFSET0_1                (0x1218)
4401 #define P_VDIN_MATRIX_PRE_OFFSET0_1                (volatile uint32_t *)((0x1218  << 2) + 0xff900000)
4402 //Bit 10:0  pre_offset2
4403 #define   VDIN_MATRIX_PRE_OFFSET2                  (0x1219)
4404 #define P_VDIN_MATRIX_PRE_OFFSET2                  (volatile uint32_t *)((0x1219  << 2) + 0xff900000)
4405 //12:0 lfifo_buf_size
4406 #define   VDIN_LFIFO_CTRL                          (0x121a)
4407 #define P_VDIN_LFIFO_CTRL                          (volatile uint32_t *)((0x121a  << 2) + 0xff900000)
4408 #define   VDIN_COM_GCLK_CTRL                       (0x121b)
4409 #define P_VDIN_COM_GCLK_CTRL                       (volatile uint32_t *)((0x121b  << 2) + 0xff900000)
4410 //12:0 VDIN input interface width minus 1, before the window function, after the de decimation
4411 #define   VDIN_INTF_WIDTHM1                        (0x121c)
4412 #define P_VDIN_INTF_WIDTHM1                        (volatile uint32_t *)((0x121c  << 2) + 0xff900000)
4413 //Bit 15          //default== 0, urgent_ctrl_en
4414 //Bit 14          //default== 0, urgent_wr, if true for write buffer
4415 //Bit 13          //default== 0, out_inv_en
4416 //Bit 12          //default == 0, urgent_ini_value
4417 //Bit 11:6        //default == 0, up_th  up threshold
4418 //Bit 5:0         //default == 0, dn_th  dn threshold
4419 #define   VDIN_LFIFO_URG_CTRL                      (0x121e)
4420 #define P_VDIN_LFIFO_URG_CTRL                      (volatile uint32_t *)((0x121e  << 2) + 0xff900000)
4421 //Bit 8, 1: discard data before line fifo, 0: normal mode
4422 //Bit 7:0 Write chroma canvas address
4423 #define   VDIN_WR_CTRL2                            (0x121f)
4424 #define P_VDIN_WR_CTRL2                            (volatile uint32_t *)((0x121f  << 2) + 0xff900000)
4425 //Bit 31:30 hconv_mode, Applicable only to bit[13:12]=0 or 2. 0: Output every even pixels' CbCr;
4426 //                                                            1: Output every odd pixels' CbCr;
4427 //                                                            2: Output an average value per even&odd pair of pixels;
4428 //                                                            3: Output all CbCr. (This does NOT apply to bit[13:12]=0 -- 4:2:2 mode.)
4429 //Bit 29 no_clk_gate: disable vid_wr_mif clock gating function.
4430 //Bit 28 clear write response counter in the vdin write memory interface
4431 //Bit 27 eol_sel, 1: use eol as the line end indication, 0: use width as line end indication in the vdin write memory interface
4432 //Bit 26 vcp_nr_en. Only used in VDIN0. NOT used in VDIN1.
4433 //Bit 25 vcp_wr_en. Only used in VDIN0. NOT used in VDIN1.
4434 //Bit 24 vcp_in_en. Only used in VDIN0. NOT used in VDIN1.
4435 //Bit 23 vdin frame reset enble, if true, it will provide frame reset during go_field(vsync) to the modules after that
4436 //Bit 22 vdin line fifo soft reset enable, meaning, if true line fifo will reset during go_field (vsync)
4437 //Bit 21 vdin direct write done status clear bit
4438 //Bit 20 vdin NR write done status clear bit
4439 //Bit 18 swap_cbcr. Applicable only to bit[13:12]=2. 0: Output CbCr (NV12); 1: Output CrCb (NV21).
4440 //Bit 17:16 vconv_mode, Applicable only to bit[13:12]=2. 0: Output every even lines' CbCr;
4441 //                                                       1: Output every odd lines' CbCr;
4442 //                                                       2: Reserved;
4443 //                                                       3: Output all CbCr.
4444 //Bit 13:12 vdin write format, 0: 4:2:2 to luma canvas, 1: 4:4:4 to luma canvas,
4445 //                             2: Y to luma canvas, CbCr to chroma canvas. For NV12/21, also define Bit 31:30, 17:16, and bit 18.
4446 //Bit 11 vdin write canvas double buffer enable, means the canvas address will be latched by vsync before using
4447 //Bit 10 1: disable ctrl_reg write pulse which will reset internal counter. when bit 11 is 1, this bit should be 1.
4448 //Bit 9 vdin write request urgent
4449 //Bit 8 vdin write request enable
4450 //Bit 7:0 Write luma canvas address
4451 #define   VDIN_WR_CTRL                             (0x1220)
4452 #define P_VDIN_WR_CTRL                             (volatile uint32_t *)((0x1220  << 2) + 0xff900000)
4453 //Bit 29, if true, horizontal reverse
4454 //Bit 28:16 start
4455 //Bit 12:0  end
4456 #define   VDIN_WR_H_START_END                      (0x1221)
4457 #define P_VDIN_WR_H_START_END                      (volatile uint32_t *)((0x1221  << 2) + 0xff900000)
4458 //Bit 29, if true, vertical reverse
4459 //Bit 28:16 start
4460 //Bit 12:0  end
4461 #define   VDIN_WR_V_START_END                      (0x1222)
4462 #define P_VDIN_WR_V_START_END                      (volatile uint32_t *)((0x1222  << 2) + 0xff900000)
4463 //Bit 24:20, integer portion
4464 //Bit 19:0, fraction portion
4465 #define   VDIN_VSC_PHASE_STEP                      (0x1223)
4466 #define P_VDIN_VSC_PHASE_STEP                      (volatile uint32_t *)((0x1223  << 2) + 0xff900000)
4467 //Bit 23, vsc_en, vertical scaler enable
4468 //Bit 21 vsc_phase0_always_en, when scale up, you have to set it to 1
4469 //Bit 20:16 ini skip_line_num
4470 //Bit 15:0 vscaler ini_phase
4471 #define   VDIN_VSC_INI_CTRL                        (0x1224)
4472 #define P_VDIN_VSC_INI_CTRL                        (volatile uint32_t *)((0x1224  << 2) + 0xff900000)
4473 //Bit 28:16, vshrink input height minus 1
4474 //Bit 12:0, scaler input height minus 1
4475 #define   VDIN_SCIN_HEIGHTM1                       (0x1225)
4476 #define P_VDIN_SCIN_HEIGHTM1                       (volatile uint32_t *)((0x1225  << 2) + 0xff900000)
4477 //Bit 23:16, dummy component 0
4478 //Bit 15:8, dummy component 1
4479 //Bit 7:0, dummy component 2
4480 #define   VDIN_DUMMY_DATA                          (0x1226)
4481 #define P_VDIN_DUMMY_DATA                          (volatile uint32_t *)((0x1226  << 2) + 0xff900000)
4482 //Read only
4483 //Bit 29:20 component 0
4484 //Bit 19:10 component 1
4485 //Bit 9:0 component 2
4486 #define   VDIN_MATRIX_PROBE_COLOR                  (0x1228)
4487 #define P_VDIN_MATRIX_PROBE_COLOR                  (volatile uint32_t *)((0x1228  << 2) + 0xff900000)
4488 //Bit 23:16 component 0
4489 //Bit 15:8  component 1
4490 //Bit 7:0 component 2
4491 #define   VDIN_MATRIX_HL_COLOR                     (0x1229)
4492 #define P_VDIN_MATRIX_HL_COLOR                     (volatile uint32_t *)((0x1229  << 2) + 0xff900000)
4493 //28:16 probe x, postion
4494 //12:0  probe y, position
4495 #define   VDIN_MATRIX_PROBE_POS                    (0x122a)
4496 #define P_VDIN_MATRIX_PROBE_POS                    (volatile uint32_t *)((0x122a  << 2) + 0xff900000)
4497 #define   VDIN_CHROMA_ADDR_PORT                    (0x122b)
4498 #define P_VDIN_CHROMA_ADDR_PORT                    (volatile uint32_t *)((0x122b  << 2) + 0xff900000)
4499 #define   VDIN_CHROMA_DATA_PORT                    (0x122c)
4500 #define P_VDIN_CHROMA_DATA_PORT                    (volatile uint32_t *)((0x122c  << 2) + 0xff900000)
4501 //
4502 #define   VDIN_CM_BRI_CON_CTRL                     (0x122d)
4503 #define P_VDIN_CM_BRI_CON_CTRL                     (volatile uint32_t *)((0x122d  << 2) + 0xff900000)
4504 //Bit 17  clk_cyc_cnt_clr, if true, clear this register
4505 //Bit 16 if true, use vpu clock to count one line, otherwise use actually hsync to count line_cnt
4506 //Bit 15:0   line width using vpu clk
4507 #define   VDIN_GO_LINE_CTRL                        (0x122f)
4508 #define P_VDIN_GO_LINE_CTRL                        (volatile uint32_t *)((0x122f  << 2) + 0xff900000)
4509 //Bit 31:24 hist_pix_white_th, larger than this th is counted as white pixel
4510 //Bit 23:16 hist_pix_black_th, less than this th is counted as black pixel
4511 //Bit 11    hist_34bin_only,   34 bin only mode, including white/black
4512 //Bit 10:9  ldim_stts_din_sel, 00: from matrix0 dout,  01: from vsc_dout, 10: from matrix1 dout, 11: form matrix1 din
4513 //Bit 8     ldim_stts_en
4514 //Bit 6:5   hist_dnlp_low   the real pixels in each bins got by VDIN_DNLP_HISTXX should multiple with 2^(dnlp_low+3)
4515 //Bit 3:2   hist_din_sel    the source used for hist statistics.  00: from matrix0 dout,  01: from vsc_dout, 10: from matrix1 dout, 11: form matrix1 din
4516 //Bit 1     hist_win_en     1'b0: hist used for full picture; 1'b1: hist used for pixels within hist window
4517 //Bit 0     hist_spl_en     1'b0: disable hist readback; 1'b1: enable hist readback
4518 #define   VDIN_HIST_CTRL                           (0x1230)
4519 #define P_VDIN_HIST_CTRL                           (volatile uint32_t *)((0x1230  << 2) + 0xff900000)
4520 //Bit 28:16 hist_hstart  horizontal start value to define hist window
4521 //Bit 12:0  hist_hend    horizontal end value to define hist window
4522 #define   VDIN_HIST_H_START_END                    (0x1231)
4523 #define P_VDIN_HIST_H_START_END                    (volatile uint32_t *)((0x1231  << 2) + 0xff900000)
4524 //Bit 28:16 hist_vstart  vertical start value to define hist window
4525 //Bit 12:0  hist_vend    vertical end value to define hist window
4526 #define   VDIN_HIST_V_START_END                    (0x1232)
4527 #define P_VDIN_HIST_V_START_END                    (volatile uint32_t *)((0x1232  << 2) + 0xff900000)
4528 //Bit 15:8  hist_max    maximum value
4529 //Bit 7:0   hist_min    minimum value
4530 //read only
4531 #define   VDIN_HIST_MAX_MIN                        (0x1233)
4532 #define P_VDIN_HIST_MAX_MIN                        (volatile uint32_t *)((0x1233  << 2) + 0xff900000)
4533 //Bit 31:0  hist_spl_rd
4534 //counts for the total luma value
4535 //read only
4536 #define   VDIN_HIST_SPL_VAL                        (0x1234)
4537 #define P_VDIN_HIST_SPL_VAL                        (volatile uint32_t *)((0x1234  << 2) + 0xff900000)
4538 //Bit 21:0  hist_spl_pixel_count
4539 //counts for the total calculated pixels
4540 //read only
4541 #define   VDIN_HIST_SPL_PIX_CNT                    (0x1235)
4542 #define P_VDIN_HIST_SPL_PIX_CNT                    (volatile uint32_t *)((0x1235  << 2) + 0xff900000)
4543 //Bit 31:0  hist_chroma_sum
4544 //counts for the total chroma value
4545 //read only
4546 #define   VDIN_HIST_CHROMA_SUM                     (0x1236)
4547 #define P_VDIN_HIST_CHROMA_SUM                     (volatile uint32_t *)((0x1236  << 2) + 0xff900000)
4548 //Bit 31:16 higher hist bin
4549 //Bit 15:0  lower hist bin
4550 //0-255 are splited to 64 bins evenly, and VDIN_DNLP_HISTXX
4551 //are the statistic number of pixels that within each bin.
4552 //VDIN_DNLP_HIST00[15:0]  counts for the first  bin
4553 //VDIN_DNLP_HIST00[31:16] counts for the second bin
4554 //VDIN_DNLP_HIST01[15:0]  counts for the third  bin
4555 //VDIN_DNLP_HIST01[31:16] counts for the fourth bin
4556 //etc...
4557 //read only
4558 #define   VDIN_DNLP_HIST00                         (0x1237)
4559 #define P_VDIN_DNLP_HIST00                         (volatile uint32_t *)((0x1237  << 2) + 0xff900000)
4560 #define   VDIN_DNLP_HIST01                         (0x1238)
4561 #define P_VDIN_DNLP_HIST01                         (volatile uint32_t *)((0x1238  << 2) + 0xff900000)
4562 #define   VDIN_DNLP_HIST02                         (0x1239)
4563 #define P_VDIN_DNLP_HIST02                         (volatile uint32_t *)((0x1239  << 2) + 0xff900000)
4564 #define   VDIN_DNLP_HIST03                         (0x123a)
4565 #define P_VDIN_DNLP_HIST03                         (volatile uint32_t *)((0x123a  << 2) + 0xff900000)
4566 #define   VDIN_DNLP_HIST04                         (0x123b)
4567 #define P_VDIN_DNLP_HIST04                         (volatile uint32_t *)((0x123b  << 2) + 0xff900000)
4568 #define   VDIN_DNLP_HIST05                         (0x123c)
4569 #define P_VDIN_DNLP_HIST05                         (volatile uint32_t *)((0x123c  << 2) + 0xff900000)
4570 #define   VDIN_DNLP_HIST06                         (0x123d)
4571 #define P_VDIN_DNLP_HIST06                         (volatile uint32_t *)((0x123d  << 2) + 0xff900000)
4572 #define   VDIN_DNLP_HIST07                         (0x123e)
4573 #define P_VDIN_DNLP_HIST07                         (volatile uint32_t *)((0x123e  << 2) + 0xff900000)
4574 #define   VDIN_DNLP_HIST08                         (0x123f)
4575 #define P_VDIN_DNLP_HIST08                         (volatile uint32_t *)((0x123f  << 2) + 0xff900000)
4576 #define   VDIN_DNLP_HIST09                         (0x1240)
4577 #define P_VDIN_DNLP_HIST09                         (volatile uint32_t *)((0x1240  << 2) + 0xff900000)
4578 #define   VDIN_DNLP_HIST10                         (0x1241)
4579 #define P_VDIN_DNLP_HIST10                         (volatile uint32_t *)((0x1241  << 2) + 0xff900000)
4580 #define   VDIN_DNLP_HIST11                         (0x1242)
4581 #define P_VDIN_DNLP_HIST11                         (volatile uint32_t *)((0x1242  << 2) + 0xff900000)
4582 #define   VDIN_DNLP_HIST12                         (0x1243)
4583 #define P_VDIN_DNLP_HIST12                         (volatile uint32_t *)((0x1243  << 2) + 0xff900000)
4584 #define   VDIN_DNLP_HIST13                         (0x1244)
4585 #define P_VDIN_DNLP_HIST13                         (volatile uint32_t *)((0x1244  << 2) + 0xff900000)
4586 #define   VDIN_DNLP_HIST14                         (0x1245)
4587 #define P_VDIN_DNLP_HIST14                         (volatile uint32_t *)((0x1245  << 2) + 0xff900000)
4588 #define   VDIN_DNLP_HIST15                         (0x1246)
4589 #define P_VDIN_DNLP_HIST15                         (volatile uint32_t *)((0x1246  << 2) + 0xff900000)
4590 #define   VDIN_DNLP_HIST16                         (0x1247)
4591 #define P_VDIN_DNLP_HIST16                         (volatile uint32_t *)((0x1247  << 2) + 0xff900000)
4592 #define   VDIN_DNLP_HIST17                         (0x1248)
4593 #define P_VDIN_DNLP_HIST17                         (volatile uint32_t *)((0x1248  << 2) + 0xff900000)
4594 #define   VDIN_DNLP_HIST18                         (0x1249)
4595 #define P_VDIN_DNLP_HIST18                         (volatile uint32_t *)((0x1249  << 2) + 0xff900000)
4596 #define   VDIN_DNLP_HIST19                         (0x124a)
4597 #define P_VDIN_DNLP_HIST19                         (volatile uint32_t *)((0x124a  << 2) + 0xff900000)
4598 #define   VDIN_DNLP_HIST20                         (0x124b)
4599 #define P_VDIN_DNLP_HIST20                         (volatile uint32_t *)((0x124b  << 2) + 0xff900000)
4600 #define   VDIN_DNLP_HIST21                         (0x124c)
4601 #define P_VDIN_DNLP_HIST21                         (volatile uint32_t *)((0x124c  << 2) + 0xff900000)
4602 #define   VDIN_DNLP_HIST22                         (0x124d)
4603 #define P_VDIN_DNLP_HIST22                         (volatile uint32_t *)((0x124d  << 2) + 0xff900000)
4604 #define   VDIN_DNLP_HIST23                         (0x124e)
4605 #define P_VDIN_DNLP_HIST23                         (volatile uint32_t *)((0x124e  << 2) + 0xff900000)
4606 #define   VDIN_DNLP_HIST24                         (0x124f)
4607 #define P_VDIN_DNLP_HIST24                         (volatile uint32_t *)((0x124f  << 2) + 0xff900000)
4608 #define   VDIN_DNLP_HIST25                         (0x1250)
4609 #define P_VDIN_DNLP_HIST25                         (volatile uint32_t *)((0x1250  << 2) + 0xff900000)
4610 #define   VDIN_DNLP_HIST26                         (0x1251)
4611 #define P_VDIN_DNLP_HIST26                         (volatile uint32_t *)((0x1251  << 2) + 0xff900000)
4612 #define   VDIN_DNLP_HIST27                         (0x1252)
4613 #define P_VDIN_DNLP_HIST27                         (volatile uint32_t *)((0x1252  << 2) + 0xff900000)
4614 #define   VDIN_DNLP_HIST28                         (0x1253)
4615 #define P_VDIN_DNLP_HIST28                         (volatile uint32_t *)((0x1253  << 2) + 0xff900000)
4616 #define   VDIN_DNLP_HIST29                         (0x1254)
4617 #define P_VDIN_DNLP_HIST29                         (volatile uint32_t *)((0x1254  << 2) + 0xff900000)
4618 #define   VDIN_DNLP_HIST30                         (0x1255)
4619 #define P_VDIN_DNLP_HIST30                         (volatile uint32_t *)((0x1255  << 2) + 0xff900000)
4620 #define   VDIN_DNLP_HIST31                         (0x1256)
4621 #define P_VDIN_DNLP_HIST31                         (volatile uint32_t *)((0x1256  << 2) + 0xff900000)
4622 //Bit 31, local dimming statistic enable
4623 //Bit 28, eol enable
4624 //Bit 27:25, vertical line overlap number for max finding
4625 //Bit 24:22, horizontal pixel overlap number, 0: 17 pix, 1: 9 pix, 2: 5 pix, 3: 3 pix, 4: 0 pix
4626 //Bit 20, 1,2,1 low pass filter enable before max/hist statistic
4627 //Bit 19:16, region H/V position index, refer to VDIN_LDIM_STTS_HIST_SET_REGION
4628 //Bit 15, 1: region read index auto increase per read to VDIN_LDIM_STTS_HIST_READ_REGION
4629 //Bit 6:0, region read index
4630 #define   VDIN_LDIM_STTS_HIST_REGION_IDX           (0x1257)
4631 #define P_VDIN_LDIM_STTS_HIST_REGION_IDX           (volatile uint32_t *)((0x1257  << 2) + 0xff900000)
4632 //Bit 28:0, if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h0: read/write hvstart0
4633 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h1: read/write hend01
4634 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h2: read/write vend01
4635 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h3: read/write hend23
4636 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h4: read/write vend23
4637 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h5: read/write hend45
4638 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h6: read/write vend45
4639 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'd7: read/write hend67
4640 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h8: read/write vend67
4641 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h9: read/write hend89
4642 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'ha: read/write vend89
4643 //hvstart0, Bit 28:16 row0 vstart, Bit 12:0 col0 hstart
4644 //hend01, Bit 28:16 col1 hend, Bit 12:0 col0 hend
4645 //vend01, Bit 28:16 row1 vend, Bit 12:0 row0 vend
4646 //hend23, Bit 28:16 col3 hend, Bit 12:0 col2 hend
4647 //vend23, Bit 28:16 row3 vend, Bit 12:0 row2 vend
4648 //hend45, Bit 28:16 col5 hend, Bit 12:0 col4 hend
4649 //vend45, Bit 28:16 row5 vend, Bit 12:0 row4 vend
4650 //hend67, Bit 28:16 col7 hend, Bit 12:0 col6 hend
4651 //vend67, Bit 28:16 row7 vend, Bit 12:0 row6 vend
4652 //hend89, Bit 28:16 col9 hend, Bit 12:0 col8 hend
4653 //vend89, Bit 28:16 row9 vend, Bit 12:0 row8 vend
4654 #define   VDIN_LDIM_STTS_HIST_SET_REGION           (0x1258)
4655 #define P_VDIN_LDIM_STTS_HIST_SET_REGION           (volatile uint32_t *)((0x1258  << 2) + 0xff900000)
4656 //REGION STATISTIC DATA READ OUT PORT, bit 29:20 max_comp2, bit 19:10 max_comp1, bit 9:0 max_comp0
4657 #define   VDIN_LDIM_STTS_HIST_READ_REGION          (0x1259)
4658 #define P_VDIN_LDIM_STTS_HIST_READ_REGION          (volatile uint32_t *)((0x1259  << 2) + 0xff900000)
4659 //Bit 18, reset bit, high active
4660 //Bit 17, if true, widen hs/vs pulse
4661 //Bit 16  vsync total counter always accumulating enable
4662 //Bit 14:12, select hs/vs of video input channel to measure, 0: no selection, 1: vdi1, 2: vid2, 3: vid3, 4:vid4, 5:vdi5, 6:vid6, 7:vdi7, 8: vdi8
4663 //Bit 11:4, vsync_span, define how many vsync span need to measure
4664 //Bit 2:0  meas_hs_index, index to select which HS counter/range
4665 #define   VDIN_MEAS_CTRL0                          (0x125a)
4666 #define P_VDIN_MEAS_CTRL0                          (volatile uint32_t *)((0x125a  << 2) + 0xff900000)
4667 //Read only
4668 //19:16     meas_ind_total_count_n, every number of sync_span vsyncs, this count add 1
4669 //15:0      high bit portion of vsync total counter
4670 #define   VDIN_MEAS_VS_COUNT_HI                    (0x125b)
4671 #define P_VDIN_MEAS_VS_COUNT_HI                    (volatile uint32_t *)((0x125b  << 2) + 0xff900000)
4672 //Read only
4673 //31:0, low bit portion of vsync total counter
4674 #define   VDIN_MEAS_VS_COUNT_LO                    (0x125c)
4675 #define P_VDIN_MEAS_VS_COUNT_LO                    (volatile uint32_t *)((0x125c  << 2) + 0xff900000)
4676 //according to the meas_hs_index in register VDIN_MEAS_CTRL0
4677 //meas_hs_index == 0, first hs range
4678 //meas_hs_index == 1, second hs range
4679 //meas_hs_index == 2, third hs range
4680 //meas_hs_index == 3, fourth hs range
4681 //bit 28:16 count_start
4682 //bit 12:0 count_end
4683 #define   VDIN_MEAS_HS_RANGE                       (0x125d)
4684 #define P_VDIN_MEAS_HS_RANGE                       (volatile uint32_t *)((0x125d  << 2) + 0xff900000)
4685 //Read only
4686 //according to the meas_hs_index in register VDIN_MEAS_CTRL0,
4687 //meas_hs_index == 0, first range hs counter,
4688 //meas_hs_index == 1, second range hs coutner
4689 //meas_hs_index == 2, third range hs coutner
4690 //meas_hs_index == 3, fourth range hs coutner
4691 //23:0
4692 #define   VDIN_MEAS_HS_COUNT                       (0x125e)
4693 #define P_VDIN_MEAS_HS_COUNT                       (volatile uint32_t *)((0x125e  << 2) + 0xff900000)
4694 //Bit 8      white_enable
4695 //Bit 7:0    blkbar_white_level
4696 #define   VDIN_BLKBAR_CTRL1                        (0x125f)
4697 #define P_VDIN_BLKBAR_CTRL1                        (volatile uint32_t *)((0x125f  << 2) + 0xff900000)
4698 // Bit 31:24 blkbar_black_level    threshold to judge a black point
4699 // Bit 23:21 Reserved
4700 // Bit 20:8  blkbar_hwidth         left and right region width
4701 // Bit 7:5   blkbar_comp_sel       select yin or uin or vin to be the valid input
4702 // Bit 4     blkbar_sw_statistic_en enable software statistic of each block black points number
4703 // Bit 3     blkbar_det_en
4704 // Bit 2:1   blkbar_din_sel
4705 // bit blkbar_det_top_en
4706 #define   VDIN_BLKBAR_CTRL0                        (0x1260)
4707 #define P_VDIN_BLKBAR_CTRL0                        (volatile uint32_t *)((0x1260  << 2) + 0xff900000)
4708 // Bit 31:29 Reserved
4709 // Bit 28:16 blkbar_hstart.        Left region start
4710 // Bit 15:13 Reserved
4711 // Bit 12:0  blkbar_hend.          Right region end
4712 #define   VDIN_BLKBAR_H_START_END                  (0x1261)
4713 #define P_VDIN_BLKBAR_H_START_END                  (volatile uint32_t *)((0x1261  << 2) + 0xff900000)
4714 // Bit 31:29 Reserved
4715 // Bit 28:16 blkbar_vstart
4716 // Bit 15:13 Reserved
4717 // Bit 12:0  blkbar_vend
4718 #define   VDIN_BLKBAR_V_START_END                  (0x1262)
4719 #define P_VDIN_BLKBAR_V_START_END                  (volatile uint32_t *)((0x1262  << 2) + 0xff900000)
4720 // Bit 31:20 Reserved
4721 // Bit 19:0  blkbar_cnt_threshold. threshold to judge whether a block is totally black
4722 #define   VDIN_BLKBAR_CNT_THRESHOLD                (0x1263)
4723 #define P_VDIN_BLKBAR_CNT_THRESHOLD                (volatile uint32_t *)((0x1263  << 2) + 0xff900000)
4724 // Bit 31:29 Reserved
4725 // Bit 28:16 blkbar_row_th1.       //threshold of the top blackbar
4726 // Bit 15:13 Reserved
4727 // bit 12:0  blkbar_row_th2        //threshold of the bottom blackbar
4728 #define   VDIN_BLKBAR_ROW_TH1_TH2                  (0x1264)
4729 #define P_VDIN_BLKBAR_ROW_TH1_TH2                  (volatile uint32_t *)((0x1264  << 2) + 0xff900000)
4730 //Readonly
4731 // Bit 31:29 Reserved
4732 // Bit 28:16 blkbar_ind_left_start. horizontal start of the left region in the current searching
4733 // Bit 15:13 Reserved
4734 // Bit 12:0  blkbar_ind_left_end.   horizontal end of the left region in the current searching
4735 #define   VDIN_BLKBAR_IND_LEFT_START_END           (0x1265)
4736 #define P_VDIN_BLKBAR_IND_LEFT_START_END           (volatile uint32_t *)((0x1265  << 2) + 0xff900000)
4737 //Readonly
4738 // Bit 31:29 Reserved
4739 // Bit 28:16 blkbar_ind_right_start.horizontal start of the right region in the current searching
4740 // Bit 15:13 Reserved
4741 // Bit 12:0  blkbar_ind_right_end.  horizontal end of the right region in the current searching
4742 #define   VDIN_BLKBAR_IND_RIGHT_START_END          (0x1266)
4743 #define P_VDIN_BLKBAR_IND_RIGHT_START_END          (volatile uint32_t *)((0x1266  << 2) + 0xff900000)
4744 //Readonly
4745 // Bit 31:20 Reserved
4746 // Bit 19:0  blkbar_ind_left1_cnt.  Black pixel counter. left part of the left region
4747 #define   VDIN_BLKBAR_IND_LEFT1_CNT                (0x1267)
4748 #define P_VDIN_BLKBAR_IND_LEFT1_CNT                (volatile uint32_t *)((0x1267  << 2) + 0xff900000)
4749 //Readonly
4750 // Bit 31:20 Reserved
4751 // Bit 19:0  blkbar_ind_left2_cnt.  Black pixel counter. right part of the left region
4752 #define   VDIN_BLKBAR_IND_LEFT2_CNT                (0x1268)
4753 #define P_VDIN_BLKBAR_IND_LEFT2_CNT                (volatile uint32_t *)((0x1268  << 2) + 0xff900000)
4754 //Readonly
4755 // Bit 31:20 Reserved
4756 // Bit 19:0  blkbar_ind_right1_cnt. Black pixel counter. left part of the right region
4757 #define   VDIN_BLKBAR_IND_RIGHT1_CNT               (0x1269)
4758 #define P_VDIN_BLKBAR_IND_RIGHT1_CNT               (volatile uint32_t *)((0x1269  << 2) + 0xff900000)
4759 //Readonly
4760 // Bit 31:20 Reserved
4761 // Bit 19:0  blkbar_ind_right2_cnt. Black pixel counter. right part of the right region
4762 #define   VDIN_BLKBAR_IND_RIGHT2_CNT               (0x126a)
4763 #define P_VDIN_BLKBAR_IND_RIGHT2_CNT               (volatile uint32_t *)((0x126a  << 2) + 0xff900000)
4764 //Readonly
4765 // Bit 31:30 Resersed
4766 // Bit 29    blkbar_ind_black_det_done. LEFT/RIGHT Black detection done
4767 // Bit 28:16 blkbar_top_pos.            Top black bar position
4768 // Bit 15:13 Reserved.
4769 // Bit 12:0  blkbar_bot_pos.            Bottom black bar position
4770 #define   VDIN_BLKBAR_STATUS0                      (0x126b)
4771 #define P_VDIN_BLKBAR_STATUS0                      (volatile uint32_t *)((0x126b  << 2) + 0xff900000)
4772 //Readonly
4773 // Bit 31:29 Reserved
4774 // Bit 28:16 blkbar_left_pos.       Left black bar posiont
4775 // Bit 15:13 Reserved
4776 // Bit 12:0  blkbar_right_pos.      Right black bar position
4777 #define   VDIN_BLKBAR_STATUS1                      (0x126c)
4778 #define P_VDIN_BLKBAR_STATUS1                      (volatile uint32_t *)((0x126c  << 2) + 0xff900000)
4779 //Bit 28:16 input window H start
4780 //Bit 12:0  input window H end
4781 #define   VDIN_WIN_H_START_END                     (0x126d)
4782 #define P_VDIN_WIN_H_START_END                     (volatile uint32_t *)((0x126d  << 2) + 0xff900000)
4783 //Bit 28:16 input window H start
4784 //Bit 12:0  input window V start
4785 #define   VDIN_WIN_V_START_END                     (0x126e)
4786 #define P_VDIN_WIN_V_START_END                     (volatile uint32_t *)((0x126e  << 2) + 0xff900000)
4787 //Bit 23:16 vdi8 asfifo_ctrl
4788 //Bit 15:8 vdi7 asfifo_ctrl
4789 //Bit 7:0 vdi6 asfifo_ctrl
4790 #define   VDIN_ASFIFO_CTRL3                        (0x126f)
4791 #define P_VDIN_ASFIFO_CTRL3                        (volatile uint32_t *)((0x126f  << 2) + 0xff900000)
4792 //Bit 3:2 vshrk_clk2_ctrl
4793 //Bit 1:0 vshrk_clk1_ctrl
4794 #define   VDIN_COM_GCLK_CTRL2                      (0x1270)
4795 #define P_VDIN_COM_GCLK_CTRL2                      (volatile uint32_t *)((0x1270  << 2) + 0xff900000)
4796 //Bit 27 vshrk_en
4797 //Bit 26:25 vshrk_mode
4798 //Bit 24 vshrk_lpf_mode
4799 //Bit 23:0 vshrk_dummy
4800 #define   VDIN_VSHRK_CTRL                          (0x1271)
4801 #define P_VDIN_VSHRK_CTRL                          (volatile uint32_t *)((0x1271  << 2) + 0xff900000)
4802 #define   VDIN_DNLP_HIST32                         (0x1272)
4803 #define P_VDIN_DNLP_HIST32                         (volatile uint32_t *)((0x1272  << 2) + 0xff900000)
4804 //Read only
4805 //Bit 7, vdi9 fifo overflow
4806 //Bit 5:0, vdi9_asfifo_cnt
4807 #define   VDIN_COM_STATUS3                         (0x1273)
4808 #define P_VDIN_COM_STATUS3                         (volatile uint32_t *)((0x1273  << 2) + 0xff900000)
4809 #define   VDIN_SYNC_MASK                           (0x1274)
4810 #define P_VDIN_SYNC_MASK                           (volatile uint32_t *)((0x1274  << 2) + 0xff900000)
4811 //Bit 7:0,  hsync_mask_num
4812 //Bit 15:8, vsync_mask_num
4813 //Bit 16,   hsync_mask_enable
4814 //Bit 17,   vsync_mask_num
4815 //dolby vdin
4816 #define   VDIN_DOLBY_DSC_CTRL0                     (0x1275)
4817 #define P_VDIN_DOLBY_DSC_CTRL0                     (volatile uint32_t *)((0x1275  << 2) + 0xff900000)
4818 #define   VDIN_DOLBY_DSC_CTRL1                     (0x1276)
4819 #define P_VDIN_DOLBY_DSC_CTRL1                     (volatile uint32_t *)((0x1276  << 2) + 0xff900000)
4820 #define   VDIN_DOLBY_DSC_CTRL2                     (0x1277)
4821 #define P_VDIN_DOLBY_DSC_CTRL2                     (volatile uint32_t *)((0x1277  << 2) + 0xff900000)
4822 #define   VDIN_DOLBY_DSC_CTRL3                     (0x1278)
4823 #define P_VDIN_DOLBY_DSC_CTRL3                     (volatile uint32_t *)((0x1278  << 2) + 0xff900000)
4824 #define   VDIN_DOLBY_AXI_CTRL0                     (0x1279)
4825 #define P_VDIN_DOLBY_AXI_CTRL0                     (volatile uint32_t *)((0x1279  << 2) + 0xff900000)
4826 #define   VDIN_DOLBY_AXI_CTRL1                     (0x127a)
4827 #define P_VDIN_DOLBY_AXI_CTRL1                     (volatile uint32_t *)((0x127a  << 2) + 0xff900000)
4828 #define   VDIN_DOLBY_AXI_CTRL2                     (0x127b)
4829 #define P_VDIN_DOLBY_AXI_CTRL2                     (volatile uint32_t *)((0x127b  << 2) + 0xff900000)
4830 #define   VDIN_DOLBY_AXI_CTRL3                     (0x127c)
4831 #define P_VDIN_DOLBY_AXI_CTRL3                     (volatile uint32_t *)((0x127c  << 2) + 0xff900000)
4832 #define   VDIN_DOLBY_DSC_STATUS0                   (0x127d)
4833 #define P_VDIN_DOLBY_DSC_STATUS0                   (volatile uint32_t *)((0x127d  << 2) + 0xff900000)
4834 #define   VDIN_DOLBY_DSC_STATUS1                   (0x127e)
4835 #define P_VDIN_DOLBY_DSC_STATUS1                   (volatile uint32_t *)((0x127e  << 2) + 0xff900000)
4836 #define   VDIN_DOLBY_DSC_STATUS2                   (0x127f)
4837 #define P_VDIN_DOLBY_DSC_STATUS2                   (volatile uint32_t *)((0x127f  << 2) + 0xff900000)
4838 #define   VDIN_DOLBY_DSC_STATUS3                   (0x121d)
4839 #define P_VDIN_DOLBY_DSC_STATUS3                   (volatile uint32_t *)((0x121d  << 2) + 0xff900000)
4840 
4841 //8'h72 occupied by histogram 32
4842 //VDIN0        8'h00 - 8'h7f
4843 #define P_VDIN0_SCALE_COEF_IDX                    ((VDIN0_OFFSET << 2) + P_VDIN_SCALE_COEF_IDX               )
4844 #define P_VDIN0_SCALE_COEF                        ((VDIN0_OFFSET << 2) + P_VDIN_SCALE_COEF                   )
4845 #define P_VDIN0_COM_CTRL0                         ((VDIN0_OFFSET << 2) + P_VDIN_COM_CTRL0                    )
4846 #define P_VDIN0_ACTIVE_MAX_PIX_CNT_STATUS         ((VDIN0_OFFSET << 2) + P_VDIN_ACTIVE_MAX_PIX_CNT_STATUS    )
4847 #define P_VDIN0_LCNT_STATUS                       ((VDIN0_OFFSET << 2) + P_VDIN_LCNT_STATUS                  )
4848 #define P_VDIN0_COM_STATUS0                       ((VDIN0_OFFSET << 2) + P_VDIN_COM_STATUS0                  )
4849 #define P_VDIN0_COM_STATUS1                       ((VDIN0_OFFSET << 2) + P_VDIN_COM_STATUS1                  )
4850 #define P_VDIN0_LCNT_SHADOW_STATUS                ((VDIN0_OFFSET << 2) + P_VDIN_LCNT_SHADOW_STATUS           )
4851 #define P_VDIN0_ASFIFO_CTRL0                      ((VDIN0_OFFSET << 2) + P_VDIN_ASFIFO_CTRL0                 )
4852 #define P_VDIN0_ASFIFO_CTRL1                      ((VDIN0_OFFSET << 2) + P_VDIN_ASFIFO_CTRL1                 )
4853 #define P_VDIN0_WIDTHM1I_WIDTHM1O                 ((VDIN0_OFFSET << 2) + P_VDIN_WIDTHM1I_WIDTHM1O            )
4854 #define P_VDIN0_SC_MISC_CTRL                      ((VDIN0_OFFSET << 2) + P_VDIN_SC_MISC_CTRL                 )
4855 #define P_VDIN0_HSC_PHASE_STEP                    ((VDIN0_OFFSET << 2) + P_VDIN_HSC_PHASE_STEP               )
4856 #define P_VDIN0_HSC_INI_CTRL                      ((VDIN0_OFFSET << 2) + P_VDIN_HSC_INI_CTRL                 )
4857 #define P_VDIN0_COM_STATUS2                       ((VDIN0_OFFSET << 2) + P_VDIN_COM_STATUS2                  )
4858 #define P_VDIN0_COM_STATUS3                       ((VDIN0_OFFSET << 2) + P_VDIN_COM_STATUS3                  )
4859 #define P_VDIN0_ASFIFO_CTRL2                      ((VDIN0_OFFSET << 2) + P_VDIN_ASFIFO_CTRL2                 )
4860 #define P_VDIN0_MATRIX_CTRL                       ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_CTRL                  )
4861 #define P_VDIN0_MATRIX_COEF00_01                  ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_COEF00_01             )
4862 #define P_VDIN0_MATRIX_COEF02_10                  ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_COEF02_10             )
4863 #define P_VDIN0_MATRIX_COEF11_12                  ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_COEF11_12             )
4864 #define P_VDIN0_MATRIX_COEF20_21                  ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_COEF20_21             )
4865 #define P_VDIN0_MATRIX_COEF22                     ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_COEF22                )
4866 #define P_VDIN0_MATRIX_OFFSET0_1                  ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_OFFSET0_1             )
4867 #define P_VDIN0_MATRIX_OFFSET2                    ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_OFFSET2               )
4868 #define P_VDIN0_MATRIX_PRE_OFFSET0_1              ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_PRE_OFFSET0_1         )
4869 #define P_VDIN0_MATRIX_PRE_OFFSET2                ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_PRE_OFFSET2           )
4870 #define P_VDIN0_LFIFO_CTRL                        ((VDIN0_OFFSET << 2) + P_VDIN_LFIFO_CTRL                   )
4871 #define P_VDIN0_COM_GCLK_CTRL                     ((VDIN0_OFFSET << 2) + P_VDIN_COM_GCLK_CTRL                )
4872 #define P_VDIN0_INTF_WIDTHM1                      ((VDIN0_OFFSET << 2) + P_VDIN_INTF_WIDTHM1                 )
4873 #define P_VDIN0_WR_CTRL2                          ((VDIN0_OFFSET << 2) + P_VDIN_WR_CTRL2                     )
4874 #define P_VDIN0_WR_CTRL                           ((VDIN0_OFFSET << 2) + P_VDIN_WR_CTRL                      )
4875 #define P_VDIN0_WR_H_START_END                    ((VDIN0_OFFSET << 2) + P_VDIN_WR_H_START_END               )
4876 #define P_VDIN0_WR_V_START_END                    ((VDIN0_OFFSET << 2) + P_VDIN_WR_V_START_END               )
4877 #define P_VDIN0_VSC_PHASE_STEP                    ((VDIN0_OFFSET << 2) + P_VDIN_VSC_PHASE_STEP               )
4878 #define P_VDIN0_VSC_INI_CTRL                      ((VDIN0_OFFSET << 2) + P_VDIN_VSC_INI_CTRL                 )
4879 #define P_VDIN0_SCIN_HEIGHTM1                     ((VDIN0_OFFSET << 2) + P_VDIN_SCIN_HEIGHTM1                )
4880 #define P_VDIN0_DUMMY_DATA                        ((VDIN0_OFFSET << 2) + P_VDIN_DUMMY_DATA                   )
4881 #define P_VDIN0_MATRIX_PROBE_COLOR                ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_PROBE_COLOR           )
4882 #define P_VDIN0_MATRIX_HL_COLOR                   ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_HL_COLOR              )
4883 #define P_VDIN0_MATRIX_PROBE_POS                  ((VDIN0_OFFSET << 2) + P_VDIN_MATRIX_PROBE_POS             )
4884 #define P_VDIN0_CHROMA_ADDR_PORT                  ((VDIN0_OFFSET << 2) + P_VDIN_CHROMA_ADDR_PORT             )
4885 #define P_VDIN0_CHROMA_DATA_PORT                  ((VDIN0_OFFSET << 2) + P_VDIN_CHROMA_DATA_PORT             )
4886 #define P_VDIN0_CM_BRI_CON_CTRL                   ((VDIN0_OFFSET << 2) + P_VDIN_CM_BRI_CON_CTRL              )
4887 #define P_VDIN0_HIST_CTRL                         ((VDIN0_OFFSET << 2) + P_VDIN_HIST_CTRL                    )
4888 #define P_VDIN0_HIST_H_START_END                  ((VDIN0_OFFSET << 2) + P_VDIN_HIST_H_START_END             )
4889 #define P_VDIN0_HIST_V_START_END                  ((VDIN0_OFFSET << 2) + P_VDIN_HIST_V_START_END             )
4890 #define P_VDIN0_HIST_MAX_MIN                      ((VDIN0_OFFSET << 2) + P_VDIN_HIST_MAX_MIN                 )
4891 #define P_VDIN0_HIST_SPL_VAL                      ((VDIN0_OFFSET << 2) + P_VDIN_HIST_SPL_VAL                 )
4892 #define P_VDIN0_HIST_SPL_PIX_CNT                  ((VDIN0_OFFSET << 2) + P_VDIN_HIST_SPL_PIX_CNT             )
4893 #define P_VDIN0_HIST_CHROMA_SUM                   ((VDIN0_OFFSET << 2) + P_VDIN_HIST_CHROMA_SUM              )
4894 #define P_VDIN0_DNLP_HIST00                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST00                  )
4895 #define P_VDIN0_DNLP_HIST01                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST01                  )
4896 #define P_VDIN0_DNLP_HIST02                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST02                  )
4897 #define P_VDIN0_DNLP_HIST03                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST03                  )
4898 #define P_VDIN0_DNLP_HIST04                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST04                  )
4899 #define P_VDIN0_DNLP_HIST05                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST05                  )
4900 #define P_VDIN0_DNLP_HIST06                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST06                  )
4901 #define P_VDIN0_DNLP_HIST07                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST07                  )
4902 #define P_VDIN0_DNLP_HIST08                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST08                  )
4903 #define P_VDIN0_DNLP_HIST09                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST09                  )
4904 #define P_VDIN0_DNLP_HIST10                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST10                  )
4905 #define P_VDIN0_DNLP_HIST11                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST11                  )
4906 #define P_VDIN0_DNLP_HIST12                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST12                  )
4907 #define P_VDIN0_DNLP_HIST13                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST13                  )
4908 #define P_VDIN0_DNLP_HIST14                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST14                  )
4909 #define P_VDIN0_DNLP_HIST15                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST15                  )
4910 #define P_VDIN0_DNLP_HIST16                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST16                  )
4911 #define P_VDIN0_DNLP_HIST17                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST17                  )
4912 #define P_VDIN0_DNLP_HIST18                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST18                  )
4913 #define P_VDIN0_DNLP_HIST19                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST19                  )
4914 #define P_VDIN0_DNLP_HIST20                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST20                  )
4915 #define P_VDIN0_DNLP_HIST21                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST21                  )
4916 #define P_VDIN0_DNLP_HIST22                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST22                  )
4917 #define P_VDIN0_DNLP_HIST23                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST23                  )
4918 #define P_VDIN0_DNLP_HIST24                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST24                  )
4919 #define P_VDIN0_DNLP_HIST25                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST25                  )
4920 #define P_VDIN0_DNLP_HIST26                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST26                  )
4921 #define P_VDIN0_DNLP_HIST27                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST27                  )
4922 #define P_VDIN0_DNLP_HIST28                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST28                  )
4923 #define P_VDIN0_DNLP_HIST29                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST29                  )
4924 #define P_VDIN0_DNLP_HIST30                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST30                  )
4925 #define P_VDIN0_DNLP_HIST31                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST31                  )
4926 #define P_VDIN0_DNLP_HIST32                       ((VDIN0_OFFSET << 2) + P_VDIN_DNLP_HIST32                  )
4927 #define P_VDIN0_LDIM_STTS_HIST_REGION_IDX         ((VDIN0_OFFSET << 2) + P_VDIN_LDIM_STTS_HIST_REGION_IDX    )
4928 #define P_VDIN0_LDIM_STTS_HIST_SET_REGION         ((VDIN0_OFFSET << 2) + P_VDIN_LDIM_STTS_HIST_SET_REGION    )
4929 #define P_VDIN0_LDIM_STTS_HIST_READ_REGION        ((VDIN0_OFFSET << 2) + P_VDIN_LDIM_STTS_HIST_READ_REGION   )
4930 #define P_VDIN0_MEAS_CTRL0                        ((VDIN0_OFFSET << 2) + P_VDIN_MEAS_CTRL0                   )
4931 #define P_VDIN0_MEAS_VS_COUNT_HI                  ((VDIN0_OFFSET << 2) + P_VDIN_MEAS_VS_COUNT_HI             )
4932 #define P_VDIN0_MEAS_VS_COUNT_LO                  ((VDIN0_OFFSET << 2) + P_VDIN_MEAS_VS_COUNT_LO             )
4933 #define P_VDIN0_MEAS_HS_RANGE                     ((VDIN0_OFFSET << 2) + P_VDIN_MEAS_HS_RANGE                )
4934 #define P_VDIN0_MEAS_HS_COUNT                     ((VDIN0_OFFSET << 2) + P_VDIN_MEAS_HS_COUNT                )
4935 #define P_VDIN0_BLKBAR_CTRL1                      ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_CTRL1                 )
4936 #define P_VDIN0_BLKBAR_CTRL0                      ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_CTRL0                 )
4937 #define P_VDIN0_BLKBAR_H_START_END                ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_H_START_END           )
4938 #define P_VDIN0_BLKBAR_V_START_END                ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_V_START_END           )
4939 #define P_VDIN0_BLKBAR_CNT_THRESHOLD              ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_CNT_THRESHOLD         )
4940 #define P_VDIN0_BLKBAR_ROW_TH1_TH2                ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_ROW_TH1_TH2           )
4941 #define P_VDIN0_BLKBAR_IND_LEFT_START_END         ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_IND_LEFT_START_END    )
4942 #define P_VDIN0_BLKBAR_IND_RIGHT_START_END        ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_IND_RIGHT_START_END   )
4943 #define P_VDIN0_BLKBAR_IND_LEFT1_CNT              ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_IND_LEFT1_CNT         )
4944 #define P_VDIN0_BLKBAR_IND_LEFT2_CNT              ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_IND_LEFT2_CNT         )
4945 #define P_VDIN0_BLKBAR_IND_RIGHT1_CNT             ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_IND_RIGHT1_CNT        )
4946 #define P_VDIN0_BLKBAR_IND_RIGHT2_CNT             ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_IND_RIGHT2_CNT        )
4947 #define P_VDIN0_BLKBAR_STATUS0                    ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_STATUS0               )
4948 #define P_VDIN0_BLKBAR_STATUS1                    ((VDIN0_OFFSET << 2) + P_VDIN_BLKBAR_STATUS1               )
4949 #define P_VDIN0_WIN_H_START_END                   ((VDIN0_OFFSET << 2) + P_VDIN_WIN_H_START_END              )
4950 #define P_VDIN0_WIN_V_START_END                   ((VDIN0_OFFSET << 2) + P_VDIN_WIN_V_START_END              )
4951 #define P_VDIN0_ASFIFO_CTRL3                      ((VDIN0_OFFSET << 2) + P_VDIN_ASFIFO_CTRL3                 )
4952 #define P_VDIN0_COM_GCLK_CTRL2                    ((VDIN0_OFFSET << 2) + P_VDIN_COM_GCLK_CTRL2               )
4953 #define P_VDIN0_VSHRK_CTRL                        ((VDIN0_OFFSET << 2) + P_VDIN_VSHRK_CTRL                   )
4954 #define P_VDIN0_SYNC_MASK                         ((VDIN0_OFFSET << 2) + P_VDIN_SYNC_MASK                    )
4955 #define P_VDIN0_DOLBY_DSC_CTRL0                    ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_DSC_CTRL0  )
4956 #define P_VDIN0_DOLBY_DSC_CTRL1                    ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_DSC_CTRL1  )
4957 #define P_VDIN0_DOLBY_DSC_CTRL2                    ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_DSC_CTRL2  )
4958 #define P_VDIN0_DOLBY_DSC_CTRL3                    ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_DSC_CTRL3  )
4959 #define P_VDIN0_DOLBY_AXI_CTRL0                    ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_AXI_CTRL0  )
4960 #define P_VDIN0_DOLBY_AXI_CTRL1                    ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_AXI_CTRL1  )
4961 #define P_VDIN0_DOLBY_AXI_CTRL2                    ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_AXI_CTRL2  )
4962 #define P_VDIN0_DOLBY_AXI_CTRL3                    ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_AXI_CTRL3  )
4963 #define P_VDIN0_DOLBY_DSC_STATUS0                  ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_DSC_STATUS0)
4964 #define P_VDIN0_DOLBY_DSC_STATUS1                  ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_DSC_STATUS1)
4965 #define P_VDIN0_DOLBY_DSC_STATUS2                  ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_DSC_STATUS2)
4966 #define P_VDIN0_DOLBY_DSC_STATUS3                  ((VDIN0_OFFSET << 2) + P_VDIN_DOLBY_DSC_STATUS3)
4967 
4968 
4969 //VDIN1        8'h80 - 8'hef
4970 #define P_VDIN1_SCALE_COEF_IDX                    ((VDIN1_OFFSET << 2) + P_VDIN_SCALE_COEF_IDX               )
4971 #define P_VDIN1_SCALE_COEF                        ((VDIN1_OFFSET << 2) + P_VDIN_SCALE_COEF                   )
4972 #define P_VDIN1_COM_CTRL0                         ((VDIN1_OFFSET << 2) + P_VDIN_COM_CTRL0                    )
4973 #define P_VDIN1_ACTIVE_MAX_PIX_CNT_STATUS         ((VDIN1_OFFSET << 2) + P_VDIN_ACTIVE_MAX_PIX_CNT_STATUS    )
4974 #define P_VDIN1_LCNT_STATUS                       ((VDIN1_OFFSET << 2) + P_VDIN_LCNT_STATUS                  )
4975 #define P_VDIN1_COM_STATUS0                       ((VDIN1_OFFSET << 2) + P_VDIN_COM_STATUS0                  )
4976 #define P_VDIN1_COM_STATUS1                       ((VDIN1_OFFSET << 2) + P_VDIN_COM_STATUS1                  )
4977 #define P_VDIN1_LCNT_SHADOW_STATUS                ((VDIN1_OFFSET << 2) + P_VDIN_LCNT_SHADOW_STATUS           )
4978 #define P_VDIN1_ASFIFO_CTRL0                      ((VDIN1_OFFSET << 2) + P_VDIN_ASFIFO_CTRL0                 )
4979 #define P_VDIN1_ASFIFO_CTRL1                      ((VDIN1_OFFSET << 2) + P_VDIN_ASFIFO_CTRL1                 )
4980 #define P_VDIN1_WIDTHM1I_WIDTHM1O                 ((VDIN1_OFFSET << 2) + P_VDIN_WIDTHM1I_WIDTHM1O            )
4981 #define P_VDIN1_SC_MISC_CTRL                      ((VDIN1_OFFSET << 2) + P_VDIN_SC_MISC_CTRL                 )
4982 #define P_VDIN1_HSC_PHASE_STEP                    ((VDIN1_OFFSET << 2) + P_VDIN_HSC_PHASE_STEP               )
4983 #define P_VDIN1_HSC_INI_CTRL                      ((VDIN1_OFFSET << 2) + P_VDIN_HSC_INI_CTRL                 )
4984 #define P_VDIN1_COM_STATUS2                       ((VDIN1_OFFSET << 2) + P_VDIN_COM_STATUS2                  )
4985 #define P_VDIN1_COM_STATUS3                       ((VDIN1_OFFSET << 2) + P_VDIN_COM_STATUS3                  )
4986 #define P_VDIN1_ASFIFO_CTRL2                      ((VDIN1_OFFSET << 2) + P_VDIN_ASFIFO_CTRL2                 )
4987 #define P_VDIN1_MATRIX_CTRL                       ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_CTRL                  )
4988 #define P_VDIN1_MATRIX_COEF00_01                  ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_COEF00_01             )
4989 #define P_VDIN1_MATRIX_COEF02_10                  ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_COEF02_10             )
4990 #define P_VDIN1_MATRIX_COEF11_12                  ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_COEF11_12             )
4991 #define P_VDIN1_MATRIX_COEF20_21                  ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_COEF20_21             )
4992 #define P_VDIN1_MATRIX_COEF22                     ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_COEF22                )
4993 #define P_VDIN1_MATRIX_OFFSET0_1                  ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_OFFSET0_1             )
4994 #define P_VDIN1_MATRIX_OFFSET2                    ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_OFFSET2               )
4995 #define P_VDIN1_MATRIX_PRE_OFFSET0_1              ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_PRE_OFFSET0_1         )
4996 #define P_VDIN1_MATRIX_PRE_OFFSET2                ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_PRE_OFFSET2           )
4997 #define P_VDIN1_LFIFO_CTRL                        ((VDIN1_OFFSET << 2) + P_VDIN_LFIFO_CTRL                   )
4998 #define P_VDIN1_COM_GCLK_CTRL                     ((VDIN1_OFFSET << 2) + P_VDIN_COM_GCLK_CTRL                )
4999 #define P_VDIN1_INTF_WIDTHM1                      ((VDIN1_OFFSET << 2) + P_VDIN_INTF_WIDTHM1                 )
5000 #define P_VDIN1_WR_CTRL2                          ((VDIN1_OFFSET << 2) + P_VDIN_WR_CTRL2                     )
5001 #define P_VDIN1_WR_CTRL                           ((VDIN1_OFFSET << 2) + P_VDIN_WR_CTRL                      )
5002 #define P_VDIN1_WR_H_START_END                    ((VDIN1_OFFSET << 2) + P_VDIN_WR_H_START_END               )
5003 #define P_VDIN1_WR_V_START_END                    ((VDIN1_OFFSET << 2) + P_VDIN_WR_V_START_END               )
5004 #define P_VDIN1_VSC_PHASE_STEP                    ((VDIN1_OFFSET << 2) + P_VDIN_VSC_PHASE_STEP               )
5005 #define P_VDIN1_VSC_INI_CTRL                      ((VDIN1_OFFSET << 2) + P_VDIN_VSC_INI_CTRL                 )
5006 #define P_VDIN1_SCIN_HEIGHTM1                     ((VDIN1_OFFSET << 2) + P_VDIN_SCIN_HEIGHTM1                )
5007 #define P_VDIN1_DUMMY_DATA                        ((VDIN1_OFFSET << 2) + P_VDIN_DUMMY_DATA                   )
5008 #define P_VDIN1_MATRIX_PROBE_COLOR                ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_PROBE_COLOR           )
5009 #define P_VDIN1_MATRIX_HL_COLOR                   ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_HL_COLOR              )
5010 #define P_VDIN1_MATRIX_PROBE_POS                  ((VDIN1_OFFSET << 2) + P_VDIN_MATRIX_PROBE_POS             )
5011 #define P_VDIN1_CHROMA_ADDR_PORT                  ((VDIN1_OFFSET << 2) + P_VDIN_CHROMA_ADDR_PORT             )
5012 #define P_VDIN1_CHROMA_DATA_PORT                  ((VDIN1_OFFSET << 2) + P_VDIN_CHROMA_DATA_PORT             )
5013 #define P_VDIN1_CM_BRI_CON_CTRL                   ((VDIN1_OFFSET << 2) + P_VDIN_CM_BRI_CON_CTRL              )
5014 #define P_VDIN1_HIST_CTRL                         ((VDIN1_OFFSET << 2) + P_VDIN_HIST_CTRL                    )
5015 #define P_VDIN1_HIST_H_START_END                  ((VDIN1_OFFSET << 2) + P_VDIN_HIST_H_START_END             )
5016 #define P_VDIN1_HIST_V_START_END                  ((VDIN1_OFFSET << 2) + P_VDIN_HIST_V_START_END             )
5017 #define P_VDIN1_HIST_MAX_MIN                      ((VDIN1_OFFSET << 2) + P_VDIN_HIST_MAX_MIN                 )
5018 #define P_VDIN1_HIST_SPL_VAL                      ((VDIN1_OFFSET << 2) + P_VDIN_HIST_SPL_VAL                 )
5019 #define P_VDIN1_HIST_SPL_PIX_CNT                  ((VDIN1_OFFSET << 2) + P_VDIN_HIST_SPL_PIX_CNT             )
5020 #define P_VDIN1_HIST_CHROMA_SUM                   ((VDIN1_OFFSET << 2) + P_VDIN_HIST_CHROMA_SUM              )
5021 #define P_VDIN1_DNLP_HIST00                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST00                  )
5022 #define P_VDIN1_DNLP_HIST01                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST01                  )
5023 #define P_VDIN1_DNLP_HIST02                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST02                  )
5024 #define P_VDIN1_DNLP_HIST03                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST03                  )
5025 #define P_VDIN1_DNLP_HIST04                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST04                  )
5026 #define P_VDIN1_DNLP_HIST05                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST05                  )
5027 #define P_VDIN1_DNLP_HIST06                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST06                  )
5028 #define P_VDIN1_DNLP_HIST07                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST07                  )
5029 #define P_VDIN1_DNLP_HIST08                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST08                  )
5030 #define P_VDIN1_DNLP_HIST09                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST09                  )
5031 #define P_VDIN1_DNLP_HIST10                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST10                  )
5032 #define P_VDIN1_DNLP_HIST11                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST11                  )
5033 #define P_VDIN1_DNLP_HIST12                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST12                  )
5034 #define P_VDIN1_DNLP_HIST13                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST13                  )
5035 #define P_VDIN1_DNLP_HIST14                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST14                  )
5036 #define P_VDIN1_DNLP_HIST15                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST15                  )
5037 #define P_VDIN1_DNLP_HIST16                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST16                  )
5038 #define P_VDIN1_DNLP_HIST17                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST17                  )
5039 #define P_VDIN1_DNLP_HIST18                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST18                  )
5040 #define P_VDIN1_DNLP_HIST19                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST19                  )
5041 #define P_VDIN1_DNLP_HIST20                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST20                  )
5042 #define P_VDIN1_DNLP_HIST21                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST21                  )
5043 #define P_VDIN1_DNLP_HIST22                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST22                  )
5044 #define P_VDIN1_DNLP_HIST23                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST23                  )
5045 #define P_VDIN1_DNLP_HIST24                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST24                  )
5046 #define P_VDIN1_DNLP_HIST25                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST25                  )
5047 #define P_VDIN1_DNLP_HIST26                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST26                  )
5048 #define P_VDIN1_DNLP_HIST27                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST27                  )
5049 #define P_VDIN1_DNLP_HIST28                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST28                  )
5050 #define P_VDIN1_DNLP_HIST29                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST29                  )
5051 #define P_VDIN1_DNLP_HIST30                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST30                  )
5052 #define P_VDIN1_DNLP_HIST31                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST31                  )
5053 #define P_VDIN1_DNLP_HIST32                       ((VDIN1_OFFSET << 2) + P_VDIN_DNLP_HIST32                  )
5054 #define P_VDIN1_LDIM_STTS_HIST_REGION_IDX         ((VDIN1_OFFSET << 2) + P_VDIN_LDIM_STTS_HIST_REGION_IDX    )
5055 #define P_VDIN1_LDIM_STTS_HIST_SET_REGION         ((VDIN1_OFFSET << 2) + P_VDIN_LDIM_STTS_HIST_SET_REGION    )
5056 #define P_VDIN1_LDIM_STTS_HIST_READ_REGION        ((VDIN1_OFFSET << 2) + P_VDIN_LDIM_STTS_HIST_READ_REGION   )
5057 #define P_VDIN1_MEAS_CTRL0                        ((VDIN1_OFFSET << 2) + P_VDIN_MEAS_CTRL0                   )
5058 #define P_VDIN1_MEAS_VS_COUNT_HI                  ((VDIN1_OFFSET << 2) + P_VDIN_MEAS_VS_COUNT_HI             )
5059 #define P_VDIN1_MEAS_VS_COUNT_LO                  ((VDIN1_OFFSET << 2) + P_VDIN_MEAS_VS_COUNT_LO             )
5060 #define P_VDIN1_MEAS_HS_RANGE                     ((VDIN1_OFFSET << 2) + P_VDIN_MEAS_HS_RANGE                )
5061 #define P_VDIN1_MEAS_HS_COUNT                     ((VDIN1_OFFSET << 2) + P_VDIN_MEAS_HS_COUNT                )
5062 #define P_VDIN1_BLKBAR_CTRL1                      ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_CTRL1                 )
5063 #define P_VDIN1_BLKBAR_CTRL0                      ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_CTRL0                 )
5064 #define P_VDIN1_BLKBAR_H_START_END                ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_H_START_END           )
5065 #define P_VDIN1_BLKBAR_V_START_END                ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_V_START_END           )
5066 #define P_VDIN1_BLKBAR_CNT_THRESHOLD              ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_CNT_THRESHOLD         )
5067 #define P_VDIN1_BLKBAR_ROW_TH1_TH2                ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_ROW_TH1_TH2           )
5068 #define P_VDIN1_BLKBAR_IND_LEFT_START_END         ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_IND_LEFT_START_END    )
5069 #define P_VDIN1_BLKBAR_IND_RIGHT_START_END        ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_IND_RIGHT_START_END   )
5070 #define P_VDIN1_BLKBAR_IND_LEFT1_CNT              ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_IND_LEFT1_CNT         )
5071 #define P_VDIN1_BLKBAR_IND_LEFT2_CNT              ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_IND_LEFT2_CNT         )
5072 #define P_VDIN1_BLKBAR_IND_RIGHT1_CNT             ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_IND_RIGHT1_CNT        )
5073 #define P_VDIN1_BLKBAR_IND_RIGHT2_CNT             ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_IND_RIGHT2_CNT        )
5074 #define P_VDIN1_BLKBAR_STATUS0                    ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_STATUS0               )
5075 #define P_VDIN1_BLKBAR_STATUS1                    ((VDIN1_OFFSET << 2) + P_VDIN_BLKBAR_STATUS1               )
5076 #define P_VDIN1_WIN_H_START_END                   ((VDIN1_OFFSET << 2) + P_VDIN_WIN_H_START_END              )
5077 #define P_VDIN1_WIN_V_START_END                   ((VDIN1_OFFSET << 2) + P_VDIN_WIN_V_START_END              )
5078 #define P_VDIN1_ASFIFO_CTRL3                      ((VDIN1_OFFSET << 2) + P_VDIN_ASFIFO_CTRL3                 )
5079 #define P_VDIN1_COM_GCLK_CTRL2                    ((VDIN1_OFFSET << 2) + P_VDIN_COM_GCLK_CTRL2               )
5080 #define P_VDIN1_VSHRK_CTRL                        ((VDIN1_OFFSET << 2) + P_VDIN_VSHRK_CTRL                   )
5081 #define P_VDIN1_SYNC_MASK                         ((VDIN1_OFFSET << 2) + P_VDIN_SYNC_MASK                    )
5082 #define P_VDIN1_DOLBY_DSC_CTRL0                    ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_DSC_CTRL0  )
5083 #define P_VDIN1_DOLBY_DSC_CTRL1                    ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_DSC_CTRL1  )
5084 #define P_VDIN1_DOLBY_DSC_CTRL2                    ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_DSC_CTRL2  )
5085 #define P_VDIN1_DOLBY_DSC_CTRL3                    ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_DSC_CTRL3  )
5086 #define P_VDIN1_DOLBY_AXI_CTRL0                    ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_AXI_CTRL0  )
5087 #define P_VDIN1_DOLBY_AXI_CTRL1                    ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_AXI_CTRL1  )
5088 #define P_VDIN1_DOLBY_AXI_CTRL2                    ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_AXI_CTRL2  )
5089 #define P_VDIN1_DOLBY_AXI_CTRL3                    ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_AXI_CTRL3  )
5090 #define P_VDIN1_DOLBY_DSC_STATUS0                  ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_DSC_STATUS0)
5091 #define P_VDIN1_DOLBY_DSC_STATUS1                  ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_DSC_STATUS1)
5092 #define P_VDIN1_DOLBY_DSC_STATUS2                  ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_DSC_STATUS2)
5093 #define P_VDIN1_DOLBY_DSC_STATUS3                  ((VDIN1_OFFSET << 2) + P_VDIN_DOLBY_DSC_STATUS3)
5094 
5095 //`define LCD_VCBUS_BASE               8'h14
5096 //
5097 // Reading file:  lcd_regs.h
5098 //
5099 // -----------------------------------------------
5100 // CBUS_BASE:  LCD_VCBUS_BASE = 0x14
5101 // -----------------------------------------------
5102 //========================================================================
5103 //LCD DRV     12'h480~12'h4ef
5104 //=======================================================================
5105 #define   L_GAMMA_CNTL_PORT                        (0x1400)
5106 #define P_L_GAMMA_CNTL_PORT                        (volatile uint32_t *)((0x1400  << 2) + 0xff900000)
5107 #define   L_GAMMA_DATA_PORT                        (0x1401)
5108 #define P_L_GAMMA_DATA_PORT                        (volatile uint32_t *)((0x1401  << 2) + 0xff900000)
5109 #define   L_GAMMA_ADDR_PORT                        (0x1402)
5110 #define P_L_GAMMA_ADDR_PORT                        (volatile uint32_t *)((0x1402  << 2) + 0xff900000)
5111 #define   L_GAMMA_VCOM_HSWITCH_ADDR                (0x1403)
5112 #define P_L_GAMMA_VCOM_HSWITCH_ADDR                (volatile uint32_t *)((0x1403  << 2) + 0xff900000)
5113 #define   L_RGB_BASE_ADDR                          (0x1405)
5114 #define P_L_RGB_BASE_ADDR                          (volatile uint32_t *)((0x1405  << 2) + 0xff900000)
5115 #define   L_RGB_COEFF_ADDR                         (0x1406)
5116 #define P_L_RGB_COEFF_ADDR                         (volatile uint32_t *)((0x1406  << 2) + 0xff900000)
5117 #define   L_POL_CNTL_ADDR                          (0x1407)
5118 #define P_L_POL_CNTL_ADDR                          (volatile uint32_t *)((0x1407  << 2) + 0xff900000)
5119 #define   L_DITH_CNTL_ADDR                         (0x1408)
5120 #define P_L_DITH_CNTL_ADDR                         (volatile uint32_t *)((0x1408  << 2) + 0xff900000)
5121 #define   L_GAMMA_PROBE_CTRL                       (0x1409)
5122 #define P_L_GAMMA_PROBE_CTRL                       (volatile uint32_t *)((0x1409  << 2) + 0xff900000)
5123 //read only
5124 #define   L_GAMMA_PROBE_COLOR_L                    (0x140a)
5125 #define P_L_GAMMA_PROBE_COLOR_L                    (volatile uint32_t *)((0x140a  << 2) + 0xff900000)
5126 #define   L_GAMMA_PROBE_COLOR_H                    (0x140b)
5127 #define P_L_GAMMA_PROBE_COLOR_H                    (volatile uint32_t *)((0x140b  << 2) + 0xff900000)
5128 #define   L_GAMMA_PROBE_HL_COLOR                   (0x140c)
5129 #define P_L_GAMMA_PROBE_HL_COLOR                   (volatile uint32_t *)((0x140c  << 2) + 0xff900000)
5130 #define   L_GAMMA_PROBE_POS_X                      (0x140d)
5131 #define P_L_GAMMA_PROBE_POS_X                      (volatile uint32_t *)((0x140d  << 2) + 0xff900000)
5132 #define   L_GAMMA_PROBE_POS_Y                      (0x140e)
5133 #define P_L_GAMMA_PROBE_POS_Y                      (volatile uint32_t *)((0x140e  << 2) + 0xff900000)
5134 #define   L_STH1_HS_ADDR                           (0x1410)
5135 #define P_L_STH1_HS_ADDR                           (volatile uint32_t *)((0x1410  << 2) + 0xff900000)
5136 #define   L_STH1_HE_ADDR                           (0x1411)
5137 #define P_L_STH1_HE_ADDR                           (volatile uint32_t *)((0x1411  << 2) + 0xff900000)
5138 #define   L_STH1_VS_ADDR                           (0x1412)
5139 #define P_L_STH1_VS_ADDR                           (volatile uint32_t *)((0x1412  << 2) + 0xff900000)
5140 #define   L_STH1_VE_ADDR                           (0x1413)
5141 #define P_L_STH1_VE_ADDR                           (volatile uint32_t *)((0x1413  << 2) + 0xff900000)
5142 #define   L_STH2_HS_ADDR                           (0x1414)
5143 #define P_L_STH2_HS_ADDR                           (volatile uint32_t *)((0x1414  << 2) + 0xff900000)
5144 #define   L_STH2_HE_ADDR                           (0x1415)
5145 #define P_L_STH2_HE_ADDR                           (volatile uint32_t *)((0x1415  << 2) + 0xff900000)
5146 #define   L_STH2_VS_ADDR                           (0x1416)
5147 #define P_L_STH2_VS_ADDR                           (volatile uint32_t *)((0x1416  << 2) + 0xff900000)
5148 #define   L_STH2_VE_ADDR                           (0x1417)
5149 #define P_L_STH2_VE_ADDR                           (volatile uint32_t *)((0x1417  << 2) + 0xff900000)
5150 #define   L_OEH_HS_ADDR                            (0x1418)
5151 #define P_L_OEH_HS_ADDR                            (volatile uint32_t *)((0x1418  << 2) + 0xff900000)
5152 #define   L_OEH_HE_ADDR                            (0x1419)
5153 #define P_L_OEH_HE_ADDR                            (volatile uint32_t *)((0x1419  << 2) + 0xff900000)
5154 #define   L_OEH_VS_ADDR                            (0x141a)
5155 #define P_L_OEH_VS_ADDR                            (volatile uint32_t *)((0x141a  << 2) + 0xff900000)
5156 #define   L_OEH_VE_ADDR                            (0x141b)
5157 #define P_L_OEH_VE_ADDR                            (volatile uint32_t *)((0x141b  << 2) + 0xff900000)
5158 #define   L_VCOM_HSWITCH_ADDR                      (0x141c)
5159 #define P_L_VCOM_HSWITCH_ADDR                      (volatile uint32_t *)((0x141c  << 2) + 0xff900000)
5160 #define   L_VCOM_VS_ADDR                           (0x141d)
5161 #define P_L_VCOM_VS_ADDR                           (volatile uint32_t *)((0x141d  << 2) + 0xff900000)
5162 #define   L_VCOM_VE_ADDR                           (0x141e)
5163 #define P_L_VCOM_VE_ADDR                           (volatile uint32_t *)((0x141e  << 2) + 0xff900000)
5164 #define   L_CPV1_HS_ADDR                           (0x141f)
5165 #define P_L_CPV1_HS_ADDR                           (volatile uint32_t *)((0x141f  << 2) + 0xff900000)
5166 #define   L_CPV1_HE_ADDR                           (0x1420)
5167 #define P_L_CPV1_HE_ADDR                           (volatile uint32_t *)((0x1420  << 2) + 0xff900000)
5168 #define   L_CPV1_VS_ADDR                           (0x1421)
5169 #define P_L_CPV1_VS_ADDR                           (volatile uint32_t *)((0x1421  << 2) + 0xff900000)
5170 #define   L_CPV1_VE_ADDR                           (0x1422)
5171 #define P_L_CPV1_VE_ADDR                           (volatile uint32_t *)((0x1422  << 2) + 0xff900000)
5172 #define   L_CPV2_HS_ADDR                           (0x1423)
5173 #define P_L_CPV2_HS_ADDR                           (volatile uint32_t *)((0x1423  << 2) + 0xff900000)
5174 #define   L_CPV2_HE_ADDR                           (0x1424)
5175 #define P_L_CPV2_HE_ADDR                           (volatile uint32_t *)((0x1424  << 2) + 0xff900000)
5176 #define   L_CPV2_VS_ADDR                           (0x1425)
5177 #define P_L_CPV2_VS_ADDR                           (volatile uint32_t *)((0x1425  << 2) + 0xff900000)
5178 #define   L_CPV2_VE_ADDR                           (0x1426)
5179 #define P_L_CPV2_VE_ADDR                           (volatile uint32_t *)((0x1426  << 2) + 0xff900000)
5180 #define   L_STV1_HS_ADDR                           (0x1427)
5181 #define P_L_STV1_HS_ADDR                           (volatile uint32_t *)((0x1427  << 2) + 0xff900000)
5182 #define   L_STV1_HE_ADDR                           (0x1428)
5183 #define P_L_STV1_HE_ADDR                           (volatile uint32_t *)((0x1428  << 2) + 0xff900000)
5184 #define   L_STV1_VS_ADDR                           (0x1429)
5185 #define P_L_STV1_VS_ADDR                           (volatile uint32_t *)((0x1429  << 2) + 0xff900000)
5186 #define   L_STV1_VE_ADDR                           (0x142a)
5187 #define P_L_STV1_VE_ADDR                           (volatile uint32_t *)((0x142a  << 2) + 0xff900000)
5188 #define   L_STV2_HS_ADDR                           (0x142b)
5189 #define P_L_STV2_HS_ADDR                           (volatile uint32_t *)((0x142b  << 2) + 0xff900000)
5190 #define   L_STV2_HE_ADDR                           (0x142c)
5191 #define P_L_STV2_HE_ADDR                           (volatile uint32_t *)((0x142c  << 2) + 0xff900000)
5192 #define   L_STV2_VS_ADDR                           (0x142d)
5193 #define P_L_STV2_VS_ADDR                           (volatile uint32_t *)((0x142d  << 2) + 0xff900000)
5194 #define   L_STV2_VE_ADDR                           (0x142e)
5195 #define P_L_STV2_VE_ADDR                           (volatile uint32_t *)((0x142e  << 2) + 0xff900000)
5196 #define   L_OEV1_HS_ADDR                           (0x142f)
5197 #define P_L_OEV1_HS_ADDR                           (volatile uint32_t *)((0x142f  << 2) + 0xff900000)
5198 #define   L_OEV1_HE_ADDR                           (0x1430)
5199 #define P_L_OEV1_HE_ADDR                           (volatile uint32_t *)((0x1430  << 2) + 0xff900000)
5200 #define   L_OEV1_VS_ADDR                           (0x1431)
5201 #define P_L_OEV1_VS_ADDR                           (volatile uint32_t *)((0x1431  << 2) + 0xff900000)
5202 #define   L_OEV1_VE_ADDR                           (0x1432)
5203 #define P_L_OEV1_VE_ADDR                           (volatile uint32_t *)((0x1432  << 2) + 0xff900000)
5204 #define   L_OEV2_HS_ADDR                           (0x1433)
5205 #define P_L_OEV2_HS_ADDR                           (volatile uint32_t *)((0x1433  << 2) + 0xff900000)
5206 #define   L_OEV2_HE_ADDR                           (0x1434)
5207 #define P_L_OEV2_HE_ADDR                           (volatile uint32_t *)((0x1434  << 2) + 0xff900000)
5208 #define   L_OEV2_VS_ADDR                           (0x1435)
5209 #define P_L_OEV2_VS_ADDR                           (volatile uint32_t *)((0x1435  << 2) + 0xff900000)
5210 #define   L_OEV2_VE_ADDR                           (0x1436)
5211 #define P_L_OEV2_VE_ADDR                           (volatile uint32_t *)((0x1436  << 2) + 0xff900000)
5212 #define   L_OEV3_HS_ADDR                           (0x1437)
5213 #define P_L_OEV3_HS_ADDR                           (volatile uint32_t *)((0x1437  << 2) + 0xff900000)
5214 #define   L_OEV3_HE_ADDR                           (0x1438)
5215 #define P_L_OEV3_HE_ADDR                           (volatile uint32_t *)((0x1438  << 2) + 0xff900000)
5216 #define   L_OEV3_VS_ADDR                           (0x1439)
5217 #define P_L_OEV3_VS_ADDR                           (volatile uint32_t *)((0x1439  << 2) + 0xff900000)
5218 #define   L_OEV3_VE_ADDR                           (0x143a)
5219 #define P_L_OEV3_VE_ADDR                           (volatile uint32_t *)((0x143a  << 2) + 0xff900000)
5220 #define   L_LCD_PWR_ADDR                           (0x143b)
5221 #define P_L_LCD_PWR_ADDR                           (volatile uint32_t *)((0x143b  << 2) + 0xff900000)
5222 #define   L_LCD_PWM0_LO_ADDR                       (0x143c)
5223 #define P_L_LCD_PWM0_LO_ADDR                       (volatile uint32_t *)((0x143c  << 2) + 0xff900000)
5224 #define   L_LCD_PWM0_HI_ADDR                       (0x143d)
5225 #define P_L_LCD_PWM0_HI_ADDR                       (volatile uint32_t *)((0x143d  << 2) + 0xff900000)
5226 #define   L_LCD_PWM1_LO_ADDR                       (0x143e)
5227 #define P_L_LCD_PWM1_LO_ADDR                       (volatile uint32_t *)((0x143e  << 2) + 0xff900000)
5228 #define   L_LCD_PWM1_HI_ADDR                       (0x143f)
5229 #define P_L_LCD_PWM1_HI_ADDR                       (volatile uint32_t *)((0x143f  << 2) + 0xff900000)
5230 #define   L_INV_CNT_ADDR                           (0x1440)
5231 #define P_L_INV_CNT_ADDR                           (volatile uint32_t *)((0x1440  << 2) + 0xff900000)
5232 #define   L_TCON_MISC_SEL_ADDR                     (0x1441)
5233 #define P_L_TCON_MISC_SEL_ADDR                     (volatile uint32_t *)((0x1441  << 2) + 0xff900000)
5234 #define   L_DUAL_PORT_CNTL_ADDR                    (0x1442)
5235 #define P_L_DUAL_PORT_CNTL_ADDR                    (volatile uint32_t *)((0x1442  << 2) + 0xff900000)
5236 #define   MLVDS_CLK_CTL1_HI                        (0x1443)
5237 #define P_MLVDS_CLK_CTL1_HI                        (volatile uint32_t *)((0x1443  << 2) + 0xff900000)
5238 #define   MLVDS_CLK_CTL1_LO                        (0x1444)
5239 #define P_MLVDS_CLK_CTL1_LO                        (volatile uint32_t *)((0x1444  << 2) + 0xff900000)
5240 //  [31:30] enable mlvds clocks
5241 //  [24]    mlvds_clk_half_delay       24 // Bit 0
5242 //  [23:0]  mlvds_clk_pattern           0 // Bit 23:0
5243 #define   L_TCON_DOUBLE_CTL                        (0x1449)
5244 #define P_L_TCON_DOUBLE_CTL                        (volatile uint32_t *)((0x1449  << 2) + 0xff900000)
5245 #define   L_TCON_PATTERN_HI                        (0x144a)
5246 #define P_L_TCON_PATTERN_HI                        (volatile uint32_t *)((0x144a  << 2) + 0xff900000)
5247 #define   L_TCON_PATTERN_LO                        (0x144b)
5248 #define P_L_TCON_PATTERN_LO                        (volatile uint32_t *)((0x144b  << 2) + 0xff900000)
5249 #define   LDIM_BL_ADDR_PORT                        (0x144e)
5250 #define P_LDIM_BL_ADDR_PORT                        (volatile uint32_t *)((0x144e  << 2) + 0xff900000)
5251 #define   LDIM_BL_DATA_PORT                        (0x144f)
5252 #define P_LDIM_BL_DATA_PORT                        (volatile uint32_t *)((0x144f  << 2) + 0xff900000)
5253 #define   L_DE_HS_ADDR                             (0x1451)
5254 #define P_L_DE_HS_ADDR                             (volatile uint32_t *)((0x1451  << 2) + 0xff900000)
5255 #define   L_DE_HE_ADDR                             (0x1452)
5256 #define P_L_DE_HE_ADDR                             (volatile uint32_t *)((0x1452  << 2) + 0xff900000)
5257 #define   L_DE_VS_ADDR                             (0x1453)
5258 #define P_L_DE_VS_ADDR                             (volatile uint32_t *)((0x1453  << 2) + 0xff900000)
5259 #define   L_DE_VE_ADDR                             (0x1454)
5260 #define P_L_DE_VE_ADDR                             (volatile uint32_t *)((0x1454  << 2) + 0xff900000)
5261 #define   L_HSYNC_HS_ADDR                          (0x1455)
5262 #define P_L_HSYNC_HS_ADDR                          (volatile uint32_t *)((0x1455  << 2) + 0xff900000)
5263 #define   L_HSYNC_HE_ADDR                          (0x1456)
5264 #define P_L_HSYNC_HE_ADDR                          (volatile uint32_t *)((0x1456  << 2) + 0xff900000)
5265 #define   L_HSYNC_VS_ADDR                          (0x1457)
5266 #define P_L_HSYNC_VS_ADDR                          (volatile uint32_t *)((0x1457  << 2) + 0xff900000)
5267 #define   L_HSYNC_VE_ADDR                          (0x1458)
5268 #define P_L_HSYNC_VE_ADDR                          (volatile uint32_t *)((0x1458  << 2) + 0xff900000)
5269 #define   L_VSYNC_HS_ADDR                          (0x1459)
5270 #define P_L_VSYNC_HS_ADDR                          (volatile uint32_t *)((0x1459  << 2) + 0xff900000)
5271 #define   L_VSYNC_HE_ADDR                          (0x145a)
5272 #define P_L_VSYNC_HE_ADDR                          (volatile uint32_t *)((0x145a  << 2) + 0xff900000)
5273 #define   L_VSYNC_VS_ADDR                          (0x145b)
5274 #define P_L_VSYNC_VS_ADDR                          (volatile uint32_t *)((0x145b  << 2) + 0xff900000)
5275 #define   L_VSYNC_VE_ADDR                          (0x145c)
5276 #define P_L_VSYNC_VE_ADDR                          (volatile uint32_t *)((0x145c  << 2) + 0xff900000)
5277 // bit 8 -- vfifo_mcu_enable
5278 // bit 7 -- halt_vs_de
5279 // bit 6 -- R8G8B8_format
5280 // bit 5 -- R6G6B6_format (round to 6 bits)
5281 // bit 4 -- R5G6B5_format
5282 // bit 3 -- dac_dith_sel
5283 // bit 2 -- lcd_mcu_enable_de     -- ReadOnly
5284 // bit 1 -- lcd_mcu_enable_vsync  -- ReadOnly
5285 // bit 0 -- lcd_mcu_enable
5286 #define   L_LCD_MCU_CTL                            (0x145d)
5287 #define P_L_LCD_MCU_CTL                            (volatile uint32_t *)((0x145d  << 2) + 0xff900000)
5288 //**************************************************************************
5289 //*  Dual port mLVDS registers
5290 //**************************************************************************
5291 // bit 3 - enable_u_dual_mlvds_dp_clk
5292 // bit 2 - enable_u_map_mlvds_r_clk
5293 // bit 1 - enable_u_map_mlvds_l_clk
5294 // bit 0 - dual_mlvds_en
5295 //`define DUAL_MLVDS_CTL                8'h60
5296 // bit[12:0] - dual_mlvds_line_start
5297 //`define DUAL_MLVDS_LINE_START         8'h61
5298 // bit[12:0] - dual_mlvds_line_end
5299 //`define DUAL_MLVDS_LINE_END           8'h62
5300 // bit[12:0] - dual_mlvds_w_pixel_start_l
5301 //`define DUAL_MLVDS_PIXEL_W_START_L    8'h63
5302 // bit[12:0] - dual_mlvds_w_pixel_end_l
5303 //`define DUAL_MLVDS_PIXEL_W_END_L      8'h64
5304 // bit[12:0] - dual_mlvds_w_pixel_start_r
5305 //`define DUAL_MLVDS_PIXEL_W_START_R    8'h65
5306 // bit[12:0] - dual_mlvds_w_pixel_end_r
5307 //`define DUAL_MLVDS_PIXEL_W_END_R      8'h66
5308 // bit[12:0] - dual_mlvds_r_pixel_start_l
5309 //`define DUAL_MLVDS_PIXEL_R_START_L    8'h67
5310 // bit[12:0] - dual_mlvds_r_pixel_cnt_l
5311 //`define DUAL_MLVDS_PIXEL_R_CNT_L      8'h68
5312 // bit[12:0] - dual_mlvds_r_pixel_start_r
5313 //`define DUAL_MLVDS_PIXEL_R_START_R    8'h69
5314 // bit[12:0] - dual_mlvds_r_pixel_cnt_r
5315 //`define DUAL_MLVDS_PIXEL_R_CNT_R      8'h6a
5316 // bit[15]   - v_inversion_en
5317 // bit[12:0] - v_inversion_pixel
5318 //`define V_INVERSION_PIXEL             8'h70
5319 // bit[15]   - v_inversion_sync_en
5320 // bit[12:0] - v_inversion_line
5321 //`define V_INVERSION_LINE              8'h71
5322 // bit[15:12]  - v_loop_r
5323 // bit[11:10]  - v_pattern_1_r
5324 // bit[9:8]    - v_pattern_0_r
5325 // bit[7:4]    - v_loop_l
5326 // bit[3:2]    - v_pattern_1_l
5327 // bit[1:0]    - v_pattern_0_l
5328 //`define V_INVERSION_CONTROL           8'h72
5329 //`define MLVDS2_CONTROL           8'h74
5330    #define     mLVDS2_RESERVED  15    // 15
5331    #define     mLVDS2_double_pattern  14    // 14
5332    #define     mLVDS2_ins_reset  8    // 13:8  // each channel has one bit
5333    #define     mLVDS2_dual_gate  7
5334    #define     mLVDS2_bit_num    6    // 0-6Bits, 1-8Bits
5335    #define     mLVDS2_pair_num   5    // 0-3Pairs, 1-6Pairs
5336    #define     mLVDS2_msb_first  4
5337    #define     mLVDS2_PORT_SWAP  3
5338    #define     mLVDS2_MLSB_SWAP  2
5339    #define     mLVDS2_PN_SWAP    1
5340    #define     mLVDS2_en         0
5341 //`define MLVDS2_CONFIG_HI         8'h75
5342 //`define MLVDS2_CONFIG_LO         8'h76
5343    #define     mLVDS2_reset_offset         29 // Bit 31:29
5344    #define     mLVDS2_reset_length         23 // Bit 28:23
5345    #define     mLVDS2_config_reserved      20 // Bit 22:20
5346    #define     mLVDS2_reset_start_bit12    19 // Bit 19
5347    #define     mLVDS2_data_write_toggle    18
5348    #define     mLVDS2_data_write_ini       17
5349    #define     mLVDS2_data_latch_1_toggle  16
5350    #define     mLVDS2_data_latch_1_ini     15
5351    #define     mLVDS2_data_latch_0_toggle  14
5352    #define     mLVDS2_data_latch_0_ini     13
5353    #define     mLVDS2_reset_1_select       12 // 0 - same as reset_0, 1 - 1 clock delay of reset_0
5354    #define     mLVDS2_reset_start           0 // Bit 11:0
5355 //`define MLVDS2_DUAL_GATE_WR_START        8'h77
5356 //   `define     mlvds2_dual_gate_wr_start    0 // Bit 12:0
5357 //`define MLVDS2_DUAL_GATE_WR_END          8'h78
5358 //   `define     mlvds2_dual_gate_wr_end      0 // Bit 12:0
5359 //
5360 //`define MLVDS2_DUAL_GATE_RD_START        8'h79
5361 //   `define     mlvds2_dual_gate_rd_start    0 // Bit 12:0
5362 //`define MLVDS2_DUAL_GATE_RD_END          8'h7a
5363 //   `define     mlvds2_dual_gate_rd_end      0 // Bit 12:0
5364 //`define MLVDS2_SECOND_RESET_CTL          8'h7b
5365 //   `define     mLVDS2_2nd_reset_start       0 // Bit 12:0
5366 //
5367 //`define MLVDS2_DUAL_GATE_CTL_HI        8'h7c
5368 //`define MLVDS2_DUAL_GATE_CTL_LO        8'h7d
5369 //   `define     mlvds2_tcon_field_en        24 // Bit 7:0
5370 //   `define     mlvds2_dual_gate_reserved   21 // Bit 2:0
5371 //   `define     mlvds2_scan_mode_start_line_bit12 20 // Bit 0
5372 //   `define     mlvds2_scan_mode_odd        16 // Bit 3:0
5373 //   `define     mlvds2_scan_mode_even       12 // Bit 3:0
5374 //   `define     mlvds2_scan_mode_start_line  0 // Bit 11:0
5375 //
5376 //`define MLVDS2_RESET_CONFIG_HI         8'h7e
5377 //`define MLVDS2_RESET_CONFIG_LO         8'h7f
5378 //   `define     mLVDS2_reset_range_enable   31 // Bit 0
5379 //   `define     mLVDS2_reset_range_inv      30 // Bit 0
5380 //   `define     mLVDS2_reset_config_res1    29 // Bit 0
5381 //   `define     mLVDS2_reset_range_line_0   16 // Bit 11:0
5382 //   `define     mLVDS2_reset_config_res3    13 // Bit 2:0
5383 //   `define     mLVDS2_reset_range_line_1    0 // Bit 11:0
5384 //
5385 //**************************************************************************
5386 //*  Vbyone registers  (Note: no MinLVDS in G9tv, share the register)
5387 //**************************************************************************
5388 #define   VBO_CTRL_L                               (0x1460)
5389 #define P_VBO_CTRL_L                               (volatile uint32_t *)((0x1460  << 2) + 0xff900000)
5390 #define   VBO_CTRL_H                               (0x1461)
5391 #define P_VBO_CTRL_H                               (volatile uint32_t *)((0x1461  << 2) + 0xff900000)
5392 #define   VBO_SOFT_RST                             (0x1462)
5393 #define P_VBO_SOFT_RST                             (volatile uint32_t *)((0x1462  << 2) + 0xff900000)
5394 #define   VBO_LANES                                (0x1463)
5395 #define P_VBO_LANES                                (volatile uint32_t *)((0x1463  << 2) + 0xff900000)
5396 #define   VBO_VIN_CTRL                             (0x1464)
5397 #define P_VBO_VIN_CTRL                             (volatile uint32_t *)((0x1464  << 2) + 0xff900000)
5398 #define   VBO_ACT_VSIZE                            (0x1465)
5399 #define P_VBO_ACT_VSIZE                            (volatile uint32_t *)((0x1465  << 2) + 0xff900000)
5400 #define   VBO_REGION_00                            (0x1466)
5401 #define P_VBO_REGION_00                            (volatile uint32_t *)((0x1466  << 2) + 0xff900000)
5402 #define   VBO_REGION_01                            (0x1467)
5403 #define P_VBO_REGION_01                            (volatile uint32_t *)((0x1467  << 2) + 0xff900000)
5404 #define   VBO_REGION_02                            (0x1468)
5405 #define P_VBO_REGION_02                            (volatile uint32_t *)((0x1468  << 2) + 0xff900000)
5406 #define   VBO_REGION_03                            (0x1469)
5407 #define P_VBO_REGION_03                            (volatile uint32_t *)((0x1469  << 2) + 0xff900000)
5408 #define   VBO_VBK_CTRL_0                           (0x146a)
5409 #define P_VBO_VBK_CTRL_0                           (volatile uint32_t *)((0x146a  << 2) + 0xff900000)
5410 #define   VBO_VBK_CTRL_1                           (0x146b)
5411 #define P_VBO_VBK_CTRL_1                           (volatile uint32_t *)((0x146b  << 2) + 0xff900000)
5412 #define   VBO_HBK_CTRL                             (0x146c)
5413 #define P_VBO_HBK_CTRL                             (volatile uint32_t *)((0x146c  << 2) + 0xff900000)
5414 #define   VBO_PXL_CTRL                             (0x146d)
5415 #define P_VBO_PXL_CTRL                             (volatile uint32_t *)((0x146d  << 2) + 0xff900000)
5416 #define   VBO_LANE_SKEW_L                          (0x146e)
5417 #define P_VBO_LANE_SKEW_L                          (volatile uint32_t *)((0x146e  << 2) + 0xff900000)
5418 #define   VBO_LANE_SKEW_H                          (0x146f)
5419 #define P_VBO_LANE_SKEW_H                          (volatile uint32_t *)((0x146f  << 2) + 0xff900000)
5420 #define   VBO_GCLK_LANE_L                          (0x1470)
5421 #define P_VBO_GCLK_LANE_L                          (volatile uint32_t *)((0x1470  << 2) + 0xff900000)
5422 #define   VBO_GCLK_LANE_H                          (0x1471)
5423 #define P_VBO_GCLK_LANE_H                          (volatile uint32_t *)((0x1471  << 2) + 0xff900000)
5424 #define   VBO_GCLK_MAIN                            (0x1472)
5425 #define P_VBO_GCLK_MAIN                            (volatile uint32_t *)((0x1472  << 2) + 0xff900000)
5426 #define   VBO_STATUS_L                             (0x1473)
5427 #define P_VBO_STATUS_L                             (volatile uint32_t *)((0x1473  << 2) + 0xff900000)
5428 #define   VBO_STATUS_H                             (0x1474)
5429 #define P_VBO_STATUS_H                             (volatile uint32_t *)((0x1474  << 2) + 0xff900000)
5430 #define   VBO_LANE_OUTPUT                          (0x1475)
5431 #define P_VBO_LANE_OUTPUT                          (volatile uint32_t *)((0x1475  << 2) + 0xff900000)
5432 #define   LCD_PORT_SWAP                            (0x1476)
5433 #define P_LCD_PORT_SWAP                            (volatile uint32_t *)((0x1476  << 2) + 0xff900000)
5434 #define   VBO_TMCHK_THRD_L                         (0x1478)
5435 #define P_VBO_TMCHK_THRD_L                         (volatile uint32_t *)((0x1478  << 2) + 0xff900000)
5436 #define   VBO_TMCHK_THRD_H                         (0x1479)
5437 #define P_VBO_TMCHK_THRD_H                         (volatile uint32_t *)((0x1479  << 2) + 0xff900000)
5438 #define   VBO_FSM_HOLDER_L                         (0x147a)
5439 #define P_VBO_FSM_HOLDER_L                         (volatile uint32_t *)((0x147a  << 2) + 0xff900000)
5440 #define   VBO_FSM_HOLDER_H                         (0x147b)
5441 #define P_VBO_FSM_HOLDER_H                         (volatile uint32_t *)((0x147b  << 2) + 0xff900000)
5442 #define   VBO_INTR_STATE_CTRL                      (0x147c)
5443 #define P_VBO_INTR_STATE_CTRL                      (volatile uint32_t *)((0x147c  << 2) + 0xff900000)
5444 #define   VBO_INTR_UNMASK                          (0x147d)
5445 #define P_VBO_INTR_UNMASK                          (volatile uint32_t *)((0x147d  << 2) + 0xff900000)
5446 #define   VBO_TMCHK_HSYNC_STATE_L                  (0x147e)
5447 #define P_VBO_TMCHK_HSYNC_STATE_L                  (volatile uint32_t *)((0x147e  << 2) + 0xff900000)
5448 #define   VBO_TMCHK_HSYNC_STATE_H                  (0x147f)
5449 #define P_VBO_TMCHK_HSYNC_STATE_H                  (volatile uint32_t *)((0x147f  << 2) + 0xff900000)
5450 #define   VBO_TMCHK_VSYNC_STATE_L                  (0x14f4)
5451 #define P_VBO_TMCHK_VSYNC_STATE_L                  (volatile uint32_t *)((0x14f4  << 2) + 0xff900000)
5452 #define   VBO_TMCHK_VSYNC_STATE_H                  (0x14f5)
5453 #define P_VBO_TMCHK_VSYNC_STATE_H                  (volatile uint32_t *)((0x14f5  << 2) + 0xff900000)
5454 #define   VBO_TMCHK_VDE_STATE_L                    (0x14f6)
5455 #define P_VBO_TMCHK_VDE_STATE_L                    (volatile uint32_t *)((0x14f6  << 2) + 0xff900000)
5456 #define   VBO_TMCHK_VDE_STATE_H                    (0x14f7)
5457 #define P_VBO_TMCHK_VDE_STATE_H                    (volatile uint32_t *)((0x14f7  << 2) + 0xff900000)
5458 #define   VBO_INTR_STATE                           (0x14f8)
5459 #define P_VBO_INTR_STATE                           (volatile uint32_t *)((0x14f8  << 2) + 0xff900000)
5460 #define   VBO_INFILTER_CTRL                        (0x14f9)
5461 #define P_VBO_INFILTER_CTRL                        (volatile uint32_t *)((0x14f9  << 2) + 0xff900000)
5462 #define   VBO_INSGN_CTRL                           (0x14fa)
5463 #define P_VBO_INSGN_CTRL                           (volatile uint32_t *)((0x14fa  << 2) + 0xff900000)
5464 //**************************************************************************
5465 //*  NOTE::    When Programming the Gamma, please turn off the IRQ service *
5466 //**************************************************************************
5467 #define   GAMMA_CNTL_PORT                          (0x1480)
5468 #define P_GAMMA_CNTL_PORT                          (volatile uint32_t *)((0x1480  << 2) + 0xff900000)
5469    #define  GAMMA_VCOM_POL    7     //RW
5470    #define  GAMMA_RVS_OUT     6     //RW
5471    #define  ADR_RDY           5     //Read Only
5472    #define  WR_RDY            4     //Read Only
5473    #define  RD_RDY            3     //Read Only
5474    #define  GAMMA_TR          2     //RW
5475    #define  GAMMA_SET         1     //RW
5476    #define  GAMMA_EN          0     //RW
5477 #define   GAMMA_DATA_PORT                          (0x1481)
5478 #define P_GAMMA_DATA_PORT                          (volatile uint32_t *)((0x1481  << 2) + 0xff900000)
5479 #define   GAMMA_ADDR_PORT                          (0x1482)
5480 #define P_GAMMA_ADDR_PORT                          (volatile uint32_t *)((0x1482  << 2) + 0xff900000)
5481    #define  H_RD              12
5482    #define  H_AUTO_INC        11
5483    #define  H_SEL_R           10
5484    #define  H_SEL_G           9
5485    #define  H_SEL_B           8
5486    #define  HADR_MSB          7            //7:0
5487    #define  HADR              0            //7:0
5488 #define   GAMMA_VCOM_HSWITCH_ADDR                  (0x1483)
5489 #define P_GAMMA_VCOM_HSWITCH_ADDR                  (volatile uint32_t *)((0x1483  << 2) + 0xff900000)
5490 #define   RGB_BASE_ADDR                            (0x1485)
5491 #define P_RGB_BASE_ADDR                            (volatile uint32_t *)((0x1485  << 2) + 0xff900000)
5492 #define   RGB_COEFF_ADDR                           (0x1486)
5493 #define P_RGB_COEFF_ADDR                           (volatile uint32_t *)((0x1486  << 2) + 0xff900000)
5494 #define   POL_CNTL_ADDR                            (0x1487)
5495 #define P_POL_CNTL_ADDR                            (volatile uint32_t *)((0x1487  << 2) + 0xff900000)
5496    #define   DCLK_SEL             14    //FOR DCLK OUTPUT
5497    #define   TCON_VSYNC_SEL_DVI   11    //FOR RGB format DVI output
5498    #define   TCON_HSYNC_SEL_DVI   10    //FOR RGB format DVI output
5499    #define   TCON_DE_SEL_DVI      9     //FOR RGB format DVI output
5500    #define   CPH3_POL         8
5501    #define   CPH2_POL         7
5502    #define   CPH1_POL         6
5503    #define   TCON_DE_SEL      5
5504    #define   TCON_VS_SEL      4
5505    #define   TCON_HS_SEL      3
5506    #define   DE_POL           2
5507    #define   VS_POL           1
5508    #define   HS_POL           0
5509 #define   DITH_CNTL_ADDR                           (0x1488)
5510 #define P_DITH_CNTL_ADDR                           (volatile uint32_t *)((0x1488  << 2) + 0xff900000)
5511    #define  DITH10_EN         10
5512    #define  DITH8_EN          9
5513    #define  DITH_MD           8
5514    #define  DITH10_CNTL_MSB   7          //7:4
5515    #define  DITH10_CNTL       4          //7:4
5516    #define  DITH8_CNTL_MSB    3          //3:0
5517    #define  DITH8_CNTL        0          //3:0
5518 //Bit 1 highlight_en
5519 //Bit 0 probe_en
5520 #define   GAMMA_PROBE_CTRL                         (0x1489)
5521 #define P_GAMMA_PROBE_CTRL                         (volatile uint32_t *)((0x1489  << 2) + 0xff900000)
5522 //read only
5523 //Bit [15:0]  probe_color[15:0]
5524 #define   GAMMA_PROBE_COLOR_L                      (0x148a)
5525 #define P_GAMMA_PROBE_COLOR_L                      (volatile uint32_t *)((0x148a  << 2) + 0xff900000)
5526 //Read only
5527 //Bit 15: if true valid probed color
5528 //Bit [13:0]  probe_color[29:16]
5529 #define   GAMMA_PROBE_COLOR_H                      (0x148b)
5530 #define P_GAMMA_PROBE_COLOR_H                      (volatile uint32_t *)((0x148b  << 2) + 0xff900000)
5531 //bit 15:0, 5:6:5 color
5532 #define   GAMMA_PROBE_HL_COLOR                     (0x148c)
5533 #define P_GAMMA_PROBE_HL_COLOR                     (volatile uint32_t *)((0x148c  << 2) + 0xff900000)
5534 //12:0 pos_x
5535 #define   GAMMA_PROBE_POS_X                        (0x148d)
5536 #define P_GAMMA_PROBE_POS_X                        (volatile uint32_t *)((0x148d  << 2) + 0xff900000)
5537 //12:0 pos_y
5538 #define   GAMMA_PROBE_POS_Y                        (0x148e)
5539 #define P_GAMMA_PROBE_POS_Y                        (volatile uint32_t *)((0x148e  << 2) + 0xff900000)
5540 #define   STH1_HS_ADDR                             (0x1490)
5541 #define P_STH1_HS_ADDR                             (volatile uint32_t *)((0x1490  << 2) + 0xff900000)
5542 #define   STH1_HE_ADDR                             (0x1491)
5543 #define P_STH1_HE_ADDR                             (volatile uint32_t *)((0x1491  << 2) + 0xff900000)
5544 #define   STH1_VS_ADDR                             (0x1492)
5545 #define P_STH1_VS_ADDR                             (volatile uint32_t *)((0x1492  << 2) + 0xff900000)
5546 #define   STH1_VE_ADDR                             (0x1493)
5547 #define P_STH1_VE_ADDR                             (volatile uint32_t *)((0x1493  << 2) + 0xff900000)
5548 #define   STH2_HS_ADDR                             (0x1494)
5549 #define P_STH2_HS_ADDR                             (volatile uint32_t *)((0x1494  << 2) + 0xff900000)
5550 #define   STH2_HE_ADDR                             (0x1495)
5551 #define P_STH2_HE_ADDR                             (volatile uint32_t *)((0x1495  << 2) + 0xff900000)
5552 #define   STH2_VS_ADDR                             (0x1496)
5553 #define P_STH2_VS_ADDR                             (volatile uint32_t *)((0x1496  << 2) + 0xff900000)
5554 #define   STH2_VE_ADDR                             (0x1497)
5555 #define P_STH2_VE_ADDR                             (volatile uint32_t *)((0x1497  << 2) + 0xff900000)
5556 #define   OEH_HS_ADDR                              (0x1498)
5557 #define P_OEH_HS_ADDR                              (volatile uint32_t *)((0x1498  << 2) + 0xff900000)
5558 #define   OEH_HE_ADDR                              (0x1499)
5559 #define P_OEH_HE_ADDR                              (volatile uint32_t *)((0x1499  << 2) + 0xff900000)
5560 #define   OEH_VS_ADDR                              (0x149a)
5561 #define P_OEH_VS_ADDR                              (volatile uint32_t *)((0x149a  << 2) + 0xff900000)
5562 #define   OEH_VE_ADDR                              (0x149b)
5563 #define P_OEH_VE_ADDR                              (volatile uint32_t *)((0x149b  << 2) + 0xff900000)
5564 #define   VCOM_HSWITCH_ADDR                        (0x149c)
5565 #define P_VCOM_HSWITCH_ADDR                        (volatile uint32_t *)((0x149c  << 2) + 0xff900000)
5566 #define   VCOM_VS_ADDR                             (0x149d)
5567 #define P_VCOM_VS_ADDR                             (volatile uint32_t *)((0x149d  << 2) + 0xff900000)
5568 #define   VCOM_VE_ADDR                             (0x149e)
5569 #define P_VCOM_VE_ADDR                             (volatile uint32_t *)((0x149e  << 2) + 0xff900000)
5570 #define   CPV1_HS_ADDR                             (0x149f)
5571 #define P_CPV1_HS_ADDR                             (volatile uint32_t *)((0x149f  << 2) + 0xff900000)
5572 #define   CPV1_HE_ADDR                             (0x14a0)
5573 #define P_CPV1_HE_ADDR                             (volatile uint32_t *)((0x14a0  << 2) + 0xff900000)
5574 #define   CPV1_VS_ADDR                             (0x14a1)
5575 #define P_CPV1_VS_ADDR                             (volatile uint32_t *)((0x14a1  << 2) + 0xff900000)
5576 #define   CPV1_VE_ADDR                             (0x14a2)
5577 #define P_CPV1_VE_ADDR                             (volatile uint32_t *)((0x14a2  << 2) + 0xff900000)
5578 #define   CPV2_HS_ADDR                             (0x14a3)
5579 #define P_CPV2_HS_ADDR                             (volatile uint32_t *)((0x14a3  << 2) + 0xff900000)
5580 #define   CPV2_HE_ADDR                             (0x14a4)
5581 #define P_CPV2_HE_ADDR                             (volatile uint32_t *)((0x14a4  << 2) + 0xff900000)
5582 #define   CPV2_VS_ADDR                             (0x14a5)
5583 #define P_CPV2_VS_ADDR                             (volatile uint32_t *)((0x14a5  << 2) + 0xff900000)
5584 #define   CPV2_VE_ADDR                             (0x14a6)
5585 #define P_CPV2_VE_ADDR                             (volatile uint32_t *)((0x14a6  << 2) + 0xff900000)
5586 #define   STV1_HS_ADDR                             (0x14a7)
5587 #define P_STV1_HS_ADDR                             (volatile uint32_t *)((0x14a7  << 2) + 0xff900000)
5588 #define   STV1_HE_ADDR                             (0x14a8)
5589 #define P_STV1_HE_ADDR                             (volatile uint32_t *)((0x14a8  << 2) + 0xff900000)
5590 #define   STV1_VS_ADDR                             (0x14a9)
5591 #define P_STV1_VS_ADDR                             (volatile uint32_t *)((0x14a9  << 2) + 0xff900000)
5592 #define   STV1_VE_ADDR                             (0x14aa)
5593 #define P_STV1_VE_ADDR                             (volatile uint32_t *)((0x14aa  << 2) + 0xff900000)
5594 #define   STV2_HS_ADDR                             (0x14ab)
5595 #define P_STV2_HS_ADDR                             (volatile uint32_t *)((0x14ab  << 2) + 0xff900000)
5596 #define   STV2_HE_ADDR                             (0x14ac)
5597 #define P_STV2_HE_ADDR                             (volatile uint32_t *)((0x14ac  << 2) + 0xff900000)
5598 #define   STV2_VS_ADDR                             (0x14ad)
5599 #define P_STV2_VS_ADDR                             (volatile uint32_t *)((0x14ad  << 2) + 0xff900000)
5600 #define   STV2_VE_ADDR                             (0x14ae)
5601 #define P_STV2_VE_ADDR                             (volatile uint32_t *)((0x14ae  << 2) + 0xff900000)
5602 #define   OEV1_HS_ADDR                             (0x14af)
5603 #define P_OEV1_HS_ADDR                             (volatile uint32_t *)((0x14af  << 2) + 0xff900000)
5604 #define   OEV1_HE_ADDR                             (0x14b0)
5605 #define P_OEV1_HE_ADDR                             (volatile uint32_t *)((0x14b0  << 2) + 0xff900000)
5606 #define   OEV1_VS_ADDR                             (0x14b1)
5607 #define P_OEV1_VS_ADDR                             (volatile uint32_t *)((0x14b1  << 2) + 0xff900000)
5608 #define   OEV1_VE_ADDR                             (0x14b2)
5609 #define P_OEV1_VE_ADDR                             (volatile uint32_t *)((0x14b2  << 2) + 0xff900000)
5610 #define   OEV2_HS_ADDR                             (0x14b3)
5611 #define P_OEV2_HS_ADDR                             (volatile uint32_t *)((0x14b3  << 2) + 0xff900000)
5612 #define   OEV2_HE_ADDR                             (0x14b4)
5613 #define P_OEV2_HE_ADDR                             (volatile uint32_t *)((0x14b4  << 2) + 0xff900000)
5614 #define   OEV2_VS_ADDR                             (0x14b5)
5615 #define P_OEV2_VS_ADDR                             (volatile uint32_t *)((0x14b5  << 2) + 0xff900000)
5616 #define   OEV2_VE_ADDR                             (0x14b6)
5617 #define P_OEV2_VE_ADDR                             (volatile uint32_t *)((0x14b6  << 2) + 0xff900000)
5618 #define   OEV3_HS_ADDR                             (0x14b7)
5619 #define P_OEV3_HS_ADDR                             (volatile uint32_t *)((0x14b7  << 2) + 0xff900000)
5620 #define   OEV3_HE_ADDR                             (0x14b8)
5621 #define P_OEV3_HE_ADDR                             (volatile uint32_t *)((0x14b8  << 2) + 0xff900000)
5622 #define   OEV3_VS_ADDR                             (0x14b9)
5623 #define P_OEV3_VS_ADDR                             (volatile uint32_t *)((0x14b9  << 2) + 0xff900000)
5624 #define   OEV3_VE_ADDR                             (0x14ba)
5625 #define P_OEV3_VE_ADDR                             (volatile uint32_t *)((0x14ba  << 2) + 0xff900000)
5626 #define   LCD_PWR_ADDR                             (0x14bb)
5627 #define P_LCD_PWR_ADDR                             (volatile uint32_t *)((0x14bb  << 2) + 0xff900000)
5628    #define      LCD_VDD        5
5629    #define      LCD_VBL        4
5630    #define      LCD_GPI_MSB    3
5631    #define      LCD_GPIO       0
5632 #define   LCD_PWM0_LO_ADDR                         (0x14bc)
5633 #define P_LCD_PWM0_LO_ADDR                         (volatile uint32_t *)((0x14bc  << 2) + 0xff900000)
5634 #define   LCD_PWM0_HI_ADDR                         (0x14bd)
5635 #define P_LCD_PWM0_HI_ADDR                         (volatile uint32_t *)((0x14bd  << 2) + 0xff900000)
5636 #define   LCD_PWM1_LO_ADDR                         (0x14be)
5637 #define P_LCD_PWM1_LO_ADDR                         (volatile uint32_t *)((0x14be  << 2) + 0xff900000)
5638 #define   LCD_PWM1_HI_ADDR                         (0x14bf)
5639 #define P_LCD_PWM1_HI_ADDR                         (volatile uint32_t *)((0x14bf  << 2) + 0xff900000)
5640 #define   INV_CNT_ADDR                             (0x14c0)
5641 #define P_INV_CNT_ADDR                             (volatile uint32_t *)((0x14c0  << 2) + 0xff900000)
5642    #define     INV_EN          4
5643    #define     INV_CNT_MSB     3
5644    #define     INV_CNT         0
5645 #define   TCON_MISC_SEL_ADDR                       (0x14c1)
5646 #define P_TCON_MISC_SEL_ADDR                       (volatile uint32_t *)((0x14c1  << 2) + 0xff900000)
5647    #define     STH2_SEL        12
5648    #define     STH1_SEL        11
5649    #define     OEH_SEL         10
5650    #define     VCOM_SEL         9
5651    #define     DB_LINE_SW       8
5652    #define     CPV2_SEL         7
5653    #define     CPV1_SEL         6
5654    #define     STV2_SEL         5
5655    #define     STV1_SEL         4
5656    #define     OEV_UNITE        3
5657    #define     OEV3_SEL         2
5658    #define     OEV2_SEL         1
5659    #define     OEV1_SEL         0
5660 #define   DUAL_PORT_CNTL_ADDR                      (0x14c2)
5661 #define P_DUAL_PORT_CNTL_ADDR                      (volatile uint32_t *)((0x14c2  << 2) + 0xff900000)
5662    #define     OUTPUT_YUV       15
5663    #define     DUAL_IDF         12   // 14:12
5664    #define     DUAL_ISF         9    // 11:9
5665    #define     LCD_ANALOG_SEL_CPH3   8
5666    #define     LCD_ANALOG_3PHI_CLK_SEL   7
5667    #define     LCD_LVDS_SEL54   6
5668    #define     LCD_LVDS_SEL27   5
5669    #define     LCD_TTL_SEL      4
5670    #define     DUAL_LVDC_EN     3
5671    #define     PORT_SWP         2
5672    #define     RGB_SWP          1
5673    #define     BIT_SWP          0
5674 #define   MLVDS_CONTROL                            (0x14c3)
5675 #define P_MLVDS_CONTROL                            (volatile uint32_t *)((0x14c3  << 2) + 0xff900000)
5676    #define     mLVDS_RESERVED  15    // 15
5677    #define     mLVDS_double_pattern  14    // 14
5678    #define     mLVDS_ins_reset  8    // 13:8  // each channel has one bit
5679    #define     mLVDS_dual_gate  7
5680    #define     mLVDS_bit_num    6    // 0-6Bits, 1-8Bits
5681    #define     mLVDS_pair_num   5    // 0-3Pairs, 1-6Pairs
5682    #define     mLVDS_msb_first  4
5683    #define     mLVDS_PORT_SWAP  3
5684    #define     mLVDS_MLSB_SWAP  2
5685    #define     mLVDS_PN_SWAP    1
5686    #define     mLVDS_en         0
5687 #define   MLVDS_RESET_PATTERN_HI                   (0x14c4)
5688 #define P_MLVDS_RESET_PATTERN_HI                   (volatile uint32_t *)((0x14c4  << 2) + 0xff900000)
5689 #define   MLVDS_RESET_PATTERN_LO                   (0x14c5)
5690 #define P_MLVDS_RESET_PATTERN_LO                   (volatile uint32_t *)((0x14c5  << 2) + 0xff900000)
5691    #define     mLVDS_reset_pattern  0 // Bit 47:16
5692 #define   MLVDS_RESET_PATTERN_EXT                  (0x14c6)
5693 #define P_MLVDS_RESET_PATTERN_EXT                  (volatile uint32_t *)((0x14c6  << 2) + 0xff900000)
5694    #define     mLVDS_reset_pattern_ext  0 // Bit 15:0
5695 #define   MLVDS_CONFIG_HI                          (0x14c7)
5696 #define P_MLVDS_CONFIG_HI                          (volatile uint32_t *)((0x14c7  << 2) + 0xff900000)
5697 #define   MLVDS_CONFIG_LO                          (0x14c8)
5698 #define P_MLVDS_CONFIG_LO                          (volatile uint32_t *)((0x14c8  << 2) + 0xff900000)
5699    #define     mLVDS_reset_offset         29 // Bit 31:29
5700    #define     mLVDS_reset_length         23 // Bit 28:23
5701    #define     mLVDS_config_reserved      20 // Bit 22:20
5702    #define     mLVDS_reset_start_bit12    19 // Bit 19
5703    #define     mLVDS_data_write_toggle    18
5704    #define     mLVDS_data_write_ini       17
5705    #define     mLVDS_data_latch_1_toggle  16
5706    #define     mLVDS_data_latch_1_ini     15
5707    #define     mLVDS_data_latch_0_toggle  14
5708    #define     mLVDS_data_latch_0_ini     13
5709    #define     mLVDS_reset_1_select       12 // 0 - same as reset_0, 1 - 1 clock delay of reset_0
5710    #define     mLVDS_reset_start           0 // Bit 11:0
5711 #define   TCON_DOUBLE_CTL                          (0x14c9)
5712 #define P_TCON_DOUBLE_CTL                          (volatile uint32_t *)((0x14c9  << 2) + 0xff900000)
5713    #define     tcon_double_ini          8 // Bit 7:0
5714    #define     tcon_double_inv          0 // Bit 7:0
5715 #define   TCON_PATTERN_HI                          (0x14ca)
5716 #define P_TCON_PATTERN_HI                          (volatile uint32_t *)((0x14ca  << 2) + 0xff900000)
5717 #define   TCON_PATTERN_LO                          (0x14cb)
5718 #define P_TCON_PATTERN_LO                          (volatile uint32_t *)((0x14cb  << 2) + 0xff900000)
5719    #define     tcon_pattern_loop_data     16 // Bit 15:0
5720    #define     tcon_pattern_loop_start    12 // Bit 3:0
5721    #define     tcon_pattern_loop_end       8 // Bit 3:0
5722    #define     tcon_pattern_enable         0 // Bit 7:0
5723 #define   TCON_CONTROL_HI                          (0x14cc)
5724 #define P_TCON_CONTROL_HI                          (volatile uint32_t *)((0x14cc  << 2) + 0xff900000)
5725 #define   TCON_CONTROL_LO                          (0x14cd)
5726 #define P_TCON_CONTROL_LO                          (volatile uint32_t *)((0x14cd  << 2) + 0xff900000)
5727    #define     tcon_pclk_enable           26 // Bit 5:0 (enable pclk on TCON channel 7 to 2)
5728    #define     tcon_pclk_div              24 // Bit 1:0 (control phy clok divide 2,4,6,8)
5729    #define     tcon_delay                  0 // Bit 23:0 (3 bit for each channel)
5730 #define   LVDS_BLANK_DATA_HI                       (0x14ce)
5731 #define P_LVDS_BLANK_DATA_HI                       (volatile uint32_t *)((0x14ce  << 2) + 0xff900000)
5732 #define   LVDS_BLANK_DATA_LO                       (0x14cf)
5733 #define P_LVDS_BLANK_DATA_LO                       (volatile uint32_t *)((0x14cf  << 2) + 0xff900000)
5734    #define     LVDS_blank_data_reserved 30  // 31:30
5735    #define     LVDS_blank_data_r        20  // 29:20
5736    #define     LVDS_blank_data_g        10  // 19:10
5737    #define     LVDS_blank_data_b         0  //  9:0
5738 #define   LVDS_PACK_CNTL_ADDR                      (0x14d0)
5739 #define P_LVDS_PACK_CNTL_ADDR                      (volatile uint32_t *)((0x14d0  << 2) + 0xff900000)
5740    #define     LVDS_USE_TCON    7
5741    #define     LVDS_DUAL        6
5742    #define     PN_SWP           5
5743    #define     LSB_FIRST        4
5744    #define     LVDS_RESV        3
5745    #define     ODD_EVEN_SWP     2
5746    #define     LVDS_REPACK      0
5747 // New from M3 :
5748 // Bit 15:12 -- Enable OFFSET Double Generate(TOCN7-TCON4)
5749 // Bit 11:0 -- de_hs(old tcon) second offset_hs (new tcon)
5750 #define   DE_HS_ADDR                               (0x14d1)
5751 #define P_DE_HS_ADDR                               (volatile uint32_t *)((0x14d1  << 2) + 0xff900000)
5752 // New from M3 :
5753 // Bit 15:12 -- Enable OFFSET Double Generate(TOCN3-TCON0)
5754 #define   DE_HE_ADDR                               (0x14d2)
5755 #define P_DE_HE_ADDR                               (volatile uint32_t *)((0x14d2  << 2) + 0xff900000)
5756 #define   DE_VS_ADDR                               (0x14d3)
5757 #define P_DE_VS_ADDR                               (volatile uint32_t *)((0x14d3  << 2) + 0xff900000)
5758 #define   DE_VE_ADDR                               (0x14d4)
5759 #define P_DE_VE_ADDR                               (volatile uint32_t *)((0x14d4  << 2) + 0xff900000)
5760 #define   HSYNC_HS_ADDR                            (0x14d5)
5761 #define P_HSYNC_HS_ADDR                            (volatile uint32_t *)((0x14d5  << 2) + 0xff900000)
5762 #define   HSYNC_HE_ADDR                            (0x14d6)
5763 #define P_HSYNC_HE_ADDR                            (volatile uint32_t *)((0x14d6  << 2) + 0xff900000)
5764 #define   HSYNC_VS_ADDR                            (0x14d7)
5765 #define P_HSYNC_VS_ADDR                            (volatile uint32_t *)((0x14d7  << 2) + 0xff900000)
5766 #define   HSYNC_VE_ADDR                            (0x14d8)
5767 #define P_HSYNC_VE_ADDR                            (volatile uint32_t *)((0x14d8  << 2) + 0xff900000)
5768 #define   VSYNC_HS_ADDR                            (0x14d9)
5769 #define P_VSYNC_HS_ADDR                            (volatile uint32_t *)((0x14d9  << 2) + 0xff900000)
5770 #define   VSYNC_HE_ADDR                            (0x14da)
5771 #define P_VSYNC_HE_ADDR                            (volatile uint32_t *)((0x14da  << 2) + 0xff900000)
5772 #define   VSYNC_VS_ADDR                            (0x14db)
5773 #define P_VSYNC_VS_ADDR                            (volatile uint32_t *)((0x14db  << 2) + 0xff900000)
5774 #define   VSYNC_VE_ADDR                            (0x14dc)
5775 #define P_VSYNC_VE_ADDR                            (volatile uint32_t *)((0x14dc  << 2) + 0xff900000)
5776 // bit 8 -- vfifo_mcu_enable
5777 // bit 7 -- halt_vs_de
5778 // bit 6 -- R8G8B8_format
5779 // bit 5 -- R6G6B6_format (round to 6 bits)
5780 // bit 4 -- R5G6B5_format
5781 // bit 3 -- dac_dith_sel
5782 // bit 2 -- lcd_mcu_enable_de     -- ReadOnly
5783 // bit 1 -- lcd_mcu_enable_vsync  -- ReadOnly
5784 // bit 0 -- lcd_mcu_enable
5785 #define   LCD_MCU_CTL                              (0x14dd)
5786 #define P_LCD_MCU_CTL                              (volatile uint32_t *)((0x14dd  << 2) + 0xff900000)
5787 // ReadOnly
5788 //   R5G6B5 when R5G6B5_format
5789 //   G8R8   when R8G8B8_format
5790 //   G5R10  Other
5791 #define   LCD_MCU_DATA_0                           (0x14de)
5792 #define P_LCD_MCU_DATA_0                           (volatile uint32_t *)((0x14de  << 2) + 0xff900000)
5793 // ReadOnly
5794 //   G8B8   when R8G8B8_format
5795 //   G5B10  Other
5796 #define   LCD_MCU_DATA_1                           (0x14df)
5797 #define P_LCD_MCU_DATA_1                           (volatile uint32_t *)((0x14df  << 2) + 0xff900000)
5798 // LVDS
5799 #define   LVDS_GEN_CNTL                            (0x14e0)
5800 #define P_LVDS_GEN_CNTL                            (volatile uint32_t *)((0x14e0  << 2) + 0xff900000)
5801 #define   LVDS_PHY_CNTL0                           (0x14e1)
5802 #define P_LVDS_PHY_CNTL0                           (volatile uint32_t *)((0x14e1  << 2) + 0xff900000)
5803 #define   LVDS_PHY_CNTL1                           (0x14e2)
5804 #define P_LVDS_PHY_CNTL1                           (volatile uint32_t *)((0x14e2  << 2) + 0xff900000)
5805 #define   LVDS_PHY_CNTL2                           (0x14e3)
5806 #define P_LVDS_PHY_CNTL2                           (volatile uint32_t *)((0x14e3  << 2) + 0xff900000)
5807 #define   LVDS_PHY_CNTL3                           (0x14e4)
5808 #define P_LVDS_PHY_CNTL3                           (volatile uint32_t *)((0x14e4  << 2) + 0xff900000)
5809 #define   LVDS_PHY_CNTL4                           (0x14e5)
5810 #define P_LVDS_PHY_CNTL4                           (volatile uint32_t *)((0x14e5  << 2) + 0xff900000)
5811 #define   LVDS_PHY_CNTL5                           (0x14e6)
5812 #define P_LVDS_PHY_CNTL5                           (volatile uint32_t *)((0x14e6  << 2) + 0xff900000)
5813 #define   LVDS_SRG_TEST                            (0x14e8)
5814 #define P_LVDS_SRG_TEST                            (volatile uint32_t *)((0x14e8  << 2) + 0xff900000)
5815 #define   LVDS_BIST_MUX0                           (0x14e9)
5816 #define P_LVDS_BIST_MUX0                           (volatile uint32_t *)((0x14e9  << 2) + 0xff900000)
5817 #define   LVDS_BIST_MUX1                           (0x14ea)
5818 #define P_LVDS_BIST_MUX1                           (volatile uint32_t *)((0x14ea  << 2) + 0xff900000)
5819 #define   LVDS_BIST_FIXED0                         (0x14eb)
5820 #define P_LVDS_BIST_FIXED0                         (volatile uint32_t *)((0x14eb  << 2) + 0xff900000)
5821 #define   LVDS_BIST_FIXED1                         (0x14ec)
5822 #define P_LVDS_BIST_FIXED1                         (volatile uint32_t *)((0x14ec  << 2) + 0xff900000)
5823 #define   LVDS_BIST_CNTL0                          (0x14ed)
5824 #define P_LVDS_BIST_CNTL0                          (volatile uint32_t *)((0x14ed  << 2) + 0xff900000)
5825 #define   LVDS_CLKB_CLKA                           (0x14ee)
5826 #define P_LVDS_CLKB_CLKA                           (volatile uint32_t *)((0x14ee  << 2) + 0xff900000)
5827 #define   LVDS_PHY_CLK_CNTL                        (0x14ef)
5828 #define P_LVDS_PHY_CLK_CNTL                        (volatile uint32_t *)((0x14ef  << 2) + 0xff900000)
5829 #define   LVDS_SER_EN                              (0x14f0)
5830 #define P_LVDS_SER_EN                              (volatile uint32_t *)((0x14f0  << 2) + 0xff900000)
5831 #define   LVDS_PHY_CNTL6                           (0x14f1)
5832 #define P_LVDS_PHY_CNTL6                           (volatile uint32_t *)((0x14f1  << 2) + 0xff900000)
5833 #define   LVDS_PHY_CNTL7                           (0x14f2)
5834 #define P_LVDS_PHY_CNTL7                           (volatile uint32_t *)((0x14f2  << 2) + 0xff900000)
5835 #define   LVDS_PHY_CNTL8                           (0x14f3)
5836 #define P_LVDS_PHY_CNTL8                           (volatile uint32_t *)((0x14f3  << 2) + 0xff900000)
5837 //`define MLVDS_CLK_CTL0_HI        8'hf4
5838 //`define MLVDS_CLK_CTL0_LO        8'hf5
5839 //   `define     mlvds_clk_pattern_reserved 31 // Bit 31
5840 //   `define     mpclk_dly                  28 // Bit 2:0
5841 //   `define     mpclk_div                  26 // Bit 1:0 (control phy clok divide 2,4,6,8)
5842 //   `define     use_mpclk                  25 // Bit 0
5843 //   `define     mlvds_clk_half_delay       24 // Bit 0
5844 //   `define     mlvds_clk_pattern           0 // Bit 23:0
5845 //`define MLVDS_DUAL_GATE_WR_START        8'hf6
5846 //   `define     mlvds_dual_gate_wr_start    0 // Bit 12:0
5847 //`define MLVDS_DUAL_GATE_WR_END          8'hf7
5848 //   `define     mlvds_dual_gate_wr_end      0 // Bit 12:0
5849 //
5850 //`define MLVDS_DUAL_GATE_RD_START        8'hf8
5851 //   `define     mlvds_dual_gate_rd_start    0 // Bit 12:0
5852 //`define MLVDS_DUAL_GATE_RD_END          8'hf9
5853 //   `define     mlvds_dual_gate_rd_end      0 // Bit 12:0
5854 //`define MLVDS_SECOND_RESET_CTL          8'hfa
5855 //   `define     mLVDS_2nd_reset_start       0 // Bit 12:0
5856 //
5857 #define   MLVDS_DUAL_GATE_CTL_HI                   (0x14fb)
5858 #define P_MLVDS_DUAL_GATE_CTL_HI                   (volatile uint32_t *)((0x14fb  << 2) + 0xff900000)
5859 #define   MLVDS_DUAL_GATE_CTL_LO                   (0x14fc)
5860 #define P_MLVDS_DUAL_GATE_CTL_LO                   (volatile uint32_t *)((0x14fc  << 2) + 0xff900000)
5861 //   `define     mlvds_tcon_field_en        24 // Bit 7:0
5862 //   `define     mlvds_dual_gate_reserved   21 // Bit 2:0
5863 //   `define     mlvds_scan_mode_start_line_bit12 20 // Bit 0
5864 //   `define     mlvds_scan_mode_odd        16 // Bit 3:0
5865 //   `define     mlvds_scan_mode_even       12 // Bit 3:0
5866 //   `define     mlvds_scan_mode_start_line  0 // Bit 11:0
5867 //
5868 //`define MLVDS_RESET_CONFIG_HI         8'hfd
5869 //`define MLVDS_RESET_CONFIG_LO         8'hfe
5870 //   `define     mLVDS_reset_range_enable   31 // Bit 0
5871 //   `define     mLVDS_reset_range_inv      30 // Bit 0
5872 //   `define     mLVDS_reset_config_res1    29 // Bit 0
5873 //   `define     mLVDS_reset_range_line_0   16 // Bit 11:0
5874 //   `define     mLVDS_reset_config_res3    13 // Bit 2:0
5875 //   `define     mLVDS_reset_range_line_1    0 // Bit 11:0
5876 //===============================================================
5877 //LCD DRIVER BASE   END
5878 //===============================================================
5879 //
5880 // Closing file:  lcd_regs.h
5881 //
5882 //`define MAD_VCBUS_BASE               8'h17
5883 //
5884 // Reading file:  mad_regs.h
5885 //
5886 //DEINTERLACE module start from 8'h90 end to 8'hff
5887 // -----------------------------------------------
5888 // CBUS_BASE:  MAD_VCBUS_BASE = 0x17
5889 // -----------------------------------------------
5890 #define   DI_PRE_CTRL                              (0x1700)
5891 #define P_DI_PRE_CTRL                              (volatile uint32_t *)((0x1700  << 2) + 0xff900000)
5892 // bit 31,      cbus_pre_frame_rst
5893 // bit 30,      cbus_pre_soft_rst
5894 // bit 29,      pre_field_num
5895 // bit 27:26,   mode_444c422
5896 // bit 25,      di_cont_read_en
5897 // bit 24:23,   mode_422c444
5898 // bit 22,      mtn_after_nr
5899 // bit 21:16,   pre_hold_fifo_lines
5900 // bit 15,      nr_wr_by
5901 // bit 14,      use_vdin_go_line
5902 // bit 13,      di_prevdin_en
5903 // bit 12,      di_pre_viu_link
5904 // bit 11,      di_pre_repeat
5905 // bit 10,      di_pre_drop_1st
5906 // bit  9,      di_buf2_en
5907 // bit  8,      di_chan2_en
5908 // bit  7,      prenr_hist_en
5909 // bit  6,      chan2_hist_en
5910 // bit  5,      hist_check_en
5911 // bit  4,      check_after_nr
5912 // bit  3,      check222p_en
5913 // bit  2,      check322p_en
5914 // bit  1,      mtn_en
5915 // bit  0,      nr_en
5916 #define   DI_POST_CTRL                             (0x1701)
5917 #define P_DI_POST_CTRL                             (volatile uint32_t *)((0x1701  << 2) + 0xff900000)
5918 // bit 31,      cbus_post_frame_rst
5919 // bit 30,      cbus_post_soft_rst
5920 // bit 29,      post_field_num
5921 // bit 21:16,   post_hold_fifo_lines
5922 // bit 13,      prepost_link
5923 // bit 12,      di_post_viu_link
5924 // bit 11,      di_post_repeat
5925 // bit 10,      di_post_drop_1st
5926 // bit  9,      mif0_to_vpp_en
5927 // bit  8,      di_vpp_out_en
5928 // bit  7,      di_wr_bk_en
5929 // bit  6,      di_mux_en
5930 // bit  5,      di_blend_en
5931 // bit  4,      di_mtnp_read_en
5932 // bit  3,      di_mtn_buf_en
5933 // bit  2,      di_ei_en
5934 // bit  1,      di_buf1_en
5935 // bit  0,      di_buf0_en
5936 #define   DI_POST_SIZE                             (0x1702)
5937 #define P_DI_POST_SIZE                             (volatile uint32_t *)((0x1702  << 2) + 0xff900000)
5938 //bit 28:16,    vsize1post
5939 //bit 12:0,     hsize1post
5940 #define   DI_PRE_SIZE                              (0x1703)
5941 #define P_DI_PRE_SIZE                              (volatile uint32_t *)((0x1703  << 2) + 0xff900000)
5942 //bit 28:16,    vsize1pre
5943 //bit 12:0,     hsize1pre
5944 #define   DI_EI_CTRL0                              (0x1704)
5945 #define P_DI_EI_CTRL0                              (volatile uint32_t *)((0x1704  << 2) + 0xff900000)
5946 //bit 23:16,    ei0_filter[2:+]  abs_diff_left>filter && ...right>filter && ...top>filter && ...bot>filter -> filter
5947 //bit 15:8,     ei0_threshold[2:+]
5948 //bit 3,        ei0_vertical
5949 //bit 2,        ei0_bpscf2
5950 //bit 1,        ei0_bpsfar1
5951 #define   DI_EI_CTRL1                              (0x1705)
5952 #define P_DI_EI_CTRL1                              (volatile uint32_t *)((0x1705  << 2) + 0xff900000)
5953 //bit 31:24,    ei0_diff
5954 //bit 23:16,    ei0_angle45
5955 //bit 15:8,     ei0_peak
5956 //bit 7:0,      ei0_cross
5957 #define   DI_EI_CTRL2                              (0x1706)
5958 #define P_DI_EI_CTRL2                              (volatile uint32_t *)((0x1706  << 2) + 0xff900000)
5959 //bit 31:24,    ei0_close2
5960 //bit 23:16,    ei0_close1
5961 //bit 15:8,     ei0_far2
5962 //bit 7:0,      ei0_far1
5963 #define   DI_NR_CTRL0                              (0x1707)
5964 #define P_DI_NR_CTRL0                              (volatile uint32_t *)((0x1707  << 2) + 0xff900000)
5965 //bit 26,       nr_cue_en
5966 //bit 25,       nr2_en
5967 #define   DI_NR_CTRL1                              (0x1708)
5968 #define P_DI_NR_CTRL1                              (volatile uint32_t *)((0x1708  << 2) + 0xff900000)
5969 //bit 31:30,    mot_p1txtcore_mode
5970 //bit 29:24,    mot_p1txtcore_clmt
5971 //bit 21:16,    mot_p1txtcore_ylmt
5972 //bit 15:8,     mot_p1txtcore_crate
5973 //bit 7:0,      mot_p1txtcore_yrate
5974 #define   DI_NR_CTRL2                              (0x1709)
5975 #define P_DI_NR_CTRL2                              (volatile uint32_t *)((0x1709  << 2) + 0xff900000)
5976 //bit 29:24,    mot_curtxtcore_clmt
5977 //bit 21:16,    mot_curtxtcore_ylmt
5978 //bit 15:8,     mot_curtxtcore_crate
5979 //bit 7:0,      mot_curtxtcore_yrate
5980 //`define DI_NR_CTRL3               8'h0a
5981 //no use
5982 //`define DI_MTN_CTRL               8'h0b
5983 //no use
5984 #define   DI_CANVAS_URGENT0                        (0x170a)
5985 #define P_DI_CANVAS_URGENT0                        (volatile uint32_t *)((0x170a  << 2) + 0xff900000)
5986 #define   DI_CANVAS_URGENT1                        (0x170b)
5987 #define P_DI_CANVAS_URGENT1                        (volatile uint32_t *)((0x170b  << 2) + 0xff900000)
5988 #define   DI_MTN_CTRL1                             (0x170c)
5989 #define P_DI_MTN_CTRL1                             (volatile uint32_t *)((0x170c  << 2) + 0xff900000)
5990 //bit 13 ,      me enable
5991 //bit 12 ,      me autoenable
5992 //bit 11:8,     mtn_paramtnthd
5993 //bit 7:0,      mtn_parafltthd
5994 #define   DI_BLEND_CTRL                            (0x170d)
5995 #define P_DI_BLEND_CTRL                            (volatile uint32_t *)((0x170d  << 2) + 0xff900000)
5996 //bit 31,      blend_1_en
5997 //bit 30,      blend_mtn_lpf
5998 //bit 28,      post_mb_en
5999 //bit 27,      blend_mtn3p_max
6000 //bit 26,      blend_mtn3p_min
6001 //bit 25,      blend_mtn3p_ave
6002 //bit 24,      blend_mtn3p_maxtb
6003 //bit 23,      blend_mtn_flt_en
6004 //bit 22,      blend_data_flt_en
6005 //bit 21:20,   blend_top_mode
6006 //bit 19,      blend_reg3_enable
6007 //bit 18,      blend_reg2_enable
6008 //bit 17,      blend_reg1_enable
6009 //bit 16,      blend_reg0_enable
6010 //bit 15:14,   blend_reg3_mode
6011 //bit 13:12,   blend_reg2_mode
6012 //bit 11:10,   blend_reg1_mode
6013 //bit 9:8,     blend_reg0_mode
6014 //bit 7:0,     kdeint
6015 //`define DI_BLEND_CTRL1            8'h0e
6016 //no use
6017 #define   DI_CANVAS_URGENT2                        (0x170e)
6018 #define P_DI_CANVAS_URGENT2                        (volatile uint32_t *)((0x170e  << 2) + 0xff900000)
6019 //`define DI_BLEND_CTRL2            8'h0f
6020 //no use
6021 #define   DI_ARB_CTRL                              (0x170f)
6022 #define P_DI_ARB_CTRL                              (volatile uint32_t *)((0x170f  << 2) + 0xff900000)
6023 //bit 31:26,            di_arb_thd1
6024 //bit 25:20,            di_arb_thd0
6025 //bit 19,           di_arb_tid_mode
6026 //bit 18,           di_arb_arb_mode
6027 //bit 17,           di_arb_acq_en
6028 //bit 16,           di_arb_disable_clk
6029 //bit 15:0,         di_arb_req_en
6030 #define   DI_BLEND_REG0_X                          (0x1710)
6031 #define P_DI_BLEND_REG0_X                          (volatile uint32_t *)((0x1710  << 2) + 0xff900000)
6032 //bit 27:16,   blend_reg0_startx
6033 //bit 11:0,    blend_reg0_endx
6034 #define   DI_BLEND_REG0_Y                          (0x1711)
6035 #define P_DI_BLEND_REG0_Y                          (volatile uint32_t *)((0x1711  << 2) + 0xff900000)
6036 #define   DI_BLEND_REG1_X                          (0x1712)
6037 #define P_DI_BLEND_REG1_X                          (volatile uint32_t *)((0x1712  << 2) + 0xff900000)
6038 #define   DI_BLEND_REG1_Y                          (0x1713)
6039 #define P_DI_BLEND_REG1_Y                          (volatile uint32_t *)((0x1713  << 2) + 0xff900000)
6040 #define   DI_BLEND_REG2_X                          (0x1714)
6041 #define P_DI_BLEND_REG2_X                          (volatile uint32_t *)((0x1714  << 2) + 0xff900000)
6042 #define   DI_BLEND_REG2_Y                          (0x1715)
6043 #define P_DI_BLEND_REG2_Y                          (volatile uint32_t *)((0x1715  << 2) + 0xff900000)
6044 #define   DI_BLEND_REG3_X                          (0x1716)
6045 #define P_DI_BLEND_REG3_X                          (volatile uint32_t *)((0x1716  << 2) + 0xff900000)
6046 #define   DI_BLEND_REG3_Y                          (0x1717)
6047 #define P_DI_BLEND_REG3_Y                          (volatile uint32_t *)((0x1717  << 2) + 0xff900000)
6048 #define   DI_CLKG_CTRL                             (0x1718)
6049 #define P_DI_CLKG_CTRL                             (volatile uint32_t *)((0x1718  << 2) + 0xff900000)
6050 //bit 31:24,   pre_gclk_ctrl     no clk gate control. if ==1, module clk is not gated (always on). [3] for pulldown,[2] for mtn_1,[1] for mtn_0,[0] for nr
6051 //bit 23:16,   post_gclk_ctrl    no clk gate control. [4] for ei_1, [3] for ei_0,[2] for ei_top, [1] for blend_1, [0] for blend_0
6052 //bit 1,       di_gate_all       clk shut down. if ==1 , all di clock shut down
6053 //bit 0,       di_no_clk_gate    no clk gate control.     if di_gated_all==0 and di_no_clk_gate ==1, all di clock is always working.
6054 #define   DI_EI_CTRL3                              (0x1719)
6055 #define P_DI_EI_CTRL3                              (volatile uint32_t *)((0x1719  << 2) + 0xff900000)
6056 //bit 31,      reg_ei_1
6057 //bit 30,      reg_demon_en
6058 //bit 26:24,   reg_demon_mux
6059 //bit 23:20,   reg_right_win
6060 //bit 19:16,   reg_left_win
6061 //bit 7:4,     reg_ei_sadm_quatize_margin
6062 //bit 1:0,     reg_ei_sad_relative_mode
6063 #define   DI_EI_CTRL4                              (0x171a)
6064 #define P_DI_EI_CTRL4                              (volatile uint32_t *)((0x171a  << 2) + 0xff900000)
6065 //bit 29,      reg_ei_caldrt_ambliike2_biasvertical
6066 //bit 28:24,   reg_ei_caldrt_addxla2list_drtmax
6067 //bit 22:20,   reg_ei_caldrt_addxla2list_signm0th
6068 //bit 19,      reg_ei_caldrt_addxla2list_mode
6069 //bit 18:16,   reg_ei_signm_sad_cor_rate
6070 //bit 15:12,   reg_ei_signm_sadi_cor_rate
6071 //bit 11:6,    reg_ei_signm_sadi_cor_ofst
6072 //bit 5:0,     reg_ei_signm_sad_ofst
6073 #define   DI_EI_CTRL5                              (0x171b)
6074 #define P_DI_EI_CTRL5                              (volatile uint32_t *)((0x171b  << 2) + 0xff900000)
6075 //bit 30:28,   reg_ei_caldrt_cnflcctchk_frcverthrd
6076 //bit 26:24,   reg_ei_caldrt_cnflctchk_mg
6077 //bit 23:22,   reg_ei_caldrt_cnflctchk_ws
6078 //bit 21,      reg_ei_caldrt_cnflctchk_en
6079 //bit 20,      reg_ei_caldrt_verfrc_final_en
6080 //bit 19,      reg_ei_caldrt_verfrc_retimflt_en
6081 //bit 18:16,   reg_ei_caldrt_verftc_eithratemth
6082 //bit 15,      reg_ei_caldrt_verfrc_retiming_en
6083 //bit 14:12,   reg_ei_caldrt_verfrc_bothratemth
6084 //bit 11:9,    reg_ei_caldrt_ver_thrd
6085 //bit 8:4,     reg_ei_caldrt_addxla2list_drtmin
6086 //bit 3:0,     reg_ei_caldrt_addxla2list_drtlimit
6087 #define   DI_EI_CTRL6                              (0x171c)
6088 #define P_DI_EI_CTRL6                              (volatile uint32_t *)((0x171c  << 2) + 0xff900000)
6089 //bit 31:24,   reg_ei_caldrt_abext_sad12thhig
6090 //bit 23:16,   reg_ei_caldrt_abext_sad00thlow
6091 //bit 15:8,    reg_ei_caldrt_abext_sad12thlow
6092 //bit 6:4,     reg_ei_caldrt_abext_ratemth
6093 //bit 2:0,     reg_ei_caldrt_abext_drtthrd
6094 #define   DI_EI_CTRL7                              (0x171d)
6095 #define P_DI_EI_CTRL7                              (volatile uint32_t *)((0x171d  << 2) + 0xff900000)
6096 //bit 29,      reg_ei_caldrt_xlanopeak_codien
6097 //bit 28:24,   reg_ei_caldrt_xlanopeak_drtmax
6098 //bit 23,      reg_ei_caldrt_xlanopeak_en
6099 //bit 28:24,   reg_ei_caldrt_abext_monotrnd_alpha
6100 //bit 28:24,   reg_ei_caldrt_abext_mononum12_thrd
6101 //bit 28:24,   reg_ei_caldrt_abext_mononum00_thrd
6102 //bit 28:24,   reg_ei_caldrt_abext_sad00rate
6103 //bit 28:24,   reg_ei_caldrt_abext_sad12rate
6104 //bit 28:24,   reg_ei_caldrt_abext_sad00thhig
6105 #define   DI_EI_CTRL8                              (0x171e)
6106 #define P_DI_EI_CTRL8                              (volatile uint32_t *)((0x171e  << 2) + 0xff900000)
6107 //bit 30:28,   reg_ei_assign_headtail_magin
6108 //bit 26:24,   reg_ei_retime_lastcurpncnfltchk_mode
6109 //bit 22:21,   reg_ei_retime_lastcurpncnfltchk_drtth
6110 //bit 20,      reg_ei_caldrt_histchk_cnfid
6111 //bit 19:16,   reg_ei_caldrt_histchk_thrd
6112 //bit 15,      reg_ei_caldrt_histchk_abext
6113 //bit 14,      reg_ei_caldrt_histchk_npen
6114 //bit 13:11,   reg_ei_caldrt_amblike2_drtmg
6115 //bit 10:8,    reg_ei_caldrt_amblike2_valmg
6116 //bit 7:4,     reg_ei_caldrt_amblike2_alpha
6117 //bit 3:0,     reg_ei_caldrt_amblike2_drtth
6118 #define   DI_EI_CTRL9                              (0x171f)
6119 #define P_DI_EI_CTRL9                              (volatile uint32_t *)((0x171f  << 2) + 0xff900000)
6120 //bit 31:28,   reg_ei_caldrt_hcnfcheck_frcvert_xla_th3
6121 //bit 27,      reg_ei_caldrt_hcnfcheck_frcvert_xla_en
6122 //bit 26:24,   reg_ei_caldrt_conf_drtth
6123 //bit 23:20,   reg_ei_caldrt_conf_absdrtth
6124 //bit 19:18,   reg_ei_caldrt_abcheck_mode1
6125 //bit 17:16,   reg_ei_caldrt_abcheck_mode0
6126 //bit 15:12,   reg_ei_caldrt_abcheck_drth1
6127 //bit 11:8,    reg_ei_caldrt_abcheck_drth0
6128 //bit 6:4,     reg_ei_caldrt_abpnchk1_th
6129 //bit 1,       reg_ei_caldrt_abpnchk1_en
6130 //bit 0,       reg_ei_caldrt_abpnchk0_en
6131 // DEINTERLACE mode check.
6132 #define   DI_MC_REG0_X                             (0x1720)
6133 #define P_DI_MC_REG0_X                             (volatile uint32_t *)((0x1720  << 2) + 0xff900000)
6134 //bit 27:16,   mc_reg0_start_x
6135 //bit 11:0,    mc_reg0_end_x
6136 #define   DI_MC_REG0_Y                             (0x1721)
6137 #define P_DI_MC_REG0_Y                             (volatile uint32_t *)((0x1721  << 2) + 0xff900000)
6138 #define   DI_MC_REG1_X                             (0x1722)
6139 #define P_DI_MC_REG1_X                             (volatile uint32_t *)((0x1722  << 2) + 0xff900000)
6140 #define   DI_MC_REG1_Y                             (0x1723)
6141 #define P_DI_MC_REG1_Y                             (volatile uint32_t *)((0x1723  << 2) + 0xff900000)
6142 #define   DI_MC_REG2_X                             (0x1724)
6143 #define P_DI_MC_REG2_X                             (volatile uint32_t *)((0x1724  << 2) + 0xff900000)
6144 #define   DI_MC_REG2_Y                             (0x1725)
6145 #define P_DI_MC_REG2_Y                             (volatile uint32_t *)((0x1725  << 2) + 0xff900000)
6146 #define   DI_MC_REG3_X                             (0x1726)
6147 #define P_DI_MC_REG3_X                             (volatile uint32_t *)((0x1726  << 2) + 0xff900000)
6148 #define   DI_MC_REG3_Y                             (0x1727)
6149 #define P_DI_MC_REG3_Y                             (volatile uint32_t *)((0x1727  << 2) + 0xff900000)
6150 #define   DI_MC_REG4_X                             (0x1728)
6151 #define P_DI_MC_REG4_X                             (volatile uint32_t *)((0x1728  << 2) + 0xff900000)
6152 #define   DI_MC_REG4_Y                             (0x1729)
6153 #define P_DI_MC_REG4_Y                             (volatile uint32_t *)((0x1729  << 2) + 0xff900000)
6154 #define   DI_MC_32LVL0                             (0x172a)
6155 #define P_DI_MC_32LVL0                             (volatile uint32_t *)((0x172a  << 2) + 0xff900000)
6156 //bit 31:24,   mc_reg2_32lvl
6157 //bit 23:16,   mc_reg1_32lvl
6158 //bit 15:8,    mc_reg0_32lvl
6159 //bit 7:0,     field_32lvl
6160 #define   DI_MC_32LVL1                             (0x172b)
6161 #define P_DI_MC_32LVL1                             (volatile uint32_t *)((0x172b  << 2) + 0xff900000)
6162 //bit 15:8,    mc_reg3_32lvl
6163 //bit 7:0,     mc_reg4_32lvl
6164 #define   DI_MC_22LVL0                             (0x172c)
6165 #define P_DI_MC_22LVL0                             (volatile uint32_t *)((0x172c  << 2) + 0xff900000)
6166 //bit 31:16,   mc_reg0_22lvl
6167 //bit 15:0,    field_22lvl
6168 #define   DI_MC_22LVL1                             (0x172d)
6169 #define P_DI_MC_22LVL1                             (volatile uint32_t *)((0x172d  << 2) + 0xff900000)
6170 //bit 31:16,   mc_reg2_22lvl
6171 //bit 15:0,    mc_reg1_22lvl
6172 #define   DI_MC_22LVL2                             (0x172e)
6173 #define P_DI_MC_22LVL2                             (volatile uint32_t *)((0x172e  << 2) + 0xff900000)
6174 //bit 31:16,   mc_reg4_22lvl
6175 //bit 15:0,    mc_reg3_22lvl
6176 #define   DI_MC_CTRL                               (0x172f)
6177 #define P_DI_MC_CTRL                               (volatile uint32_t *)((0x172f  << 2) + 0xff900000)
6178 //bit 4,       mc_reg4_en
6179 //bit 3,       mc_reg3_en
6180 //bit 2,       mc_reg2_en
6181 //bit 1,       mc_reg1_en
6182 //bit 0,       mc_reg0_en
6183 #define   DI_INTR_CTRL                             (0x1730)
6184 #define P_DI_INTR_CTRL                             (volatile uint32_t *)((0x1730  << 2) + 0xff900000)
6185 #define   DI_INFO_ADDR                             (0x1731)
6186 #define P_DI_INFO_ADDR                             (volatile uint32_t *)((0x1731  << 2) + 0xff900000)
6187 #define   DI_INFO_DATA                             (0x1732)
6188 #define P_DI_INFO_DATA                             (volatile uint32_t *)((0x1732  << 2) + 0xff900000)
6189 #define   DI_PRE_HOLD                              (0x1733)
6190 #define P_DI_PRE_HOLD                              (volatile uint32_t *)((0x1733  << 2) + 0xff900000)
6191 //// DET 3D REG DEFINE BEGIN ////
6192 //// 8'h34~8'h3f
6193 //     `define DET3D_MOTN_CFG                8'h34
6194 //     //Bit 16,    reg_det3d_intr_en           Det3d interrupt enable
6195 //     //Bit 9:8,   reg_Det3D_Motion_Mode       U2  Different mode for Motion Calculation of Luma and Chroma:
6196 //     //                                      0: MotY, 1: (2*MotY + (MotU + MotV))/4; 2: Max(MotY, MotU,MotV); 3:Max(MotY, (MotU+MotV)/2)
6197 //     //Bit 7:4,   reg_Det3D_Motion_Core_Rate  U4  K Rate to Edge (HV) details for coring of Motion Calculations, normalized to 32
6198 //     //Bit 3:0,   reg_Det3D_Motion_Core_Thrd  U4  2X: static coring value for Motion Detection.
6199 //
6200 //     `define DET3D_CB_CFG                  8'h35
6201 //     //Bit 7:4,   reg_Det3D_ChessBd_NHV_ofst  U4,  Noise immune offset for NON-Horizotnal or vertical combing detection.
6202 //     //Bit 3:0,   reg_Det3D_ChessBd_HV_ofst   U4,  Noise immune offset for Horizotnal or vertical combing detection.
6203 //
6204 //     `define DET3D_SPLT_CFG                8'h36
6205 //     //Bit 7:4,   reg_Det3D_SplitValid_ratio  U4,  Ratio between max_value and the avg_value of the edge mapping for split line valid detection.
6206 //     //                                      The smaller of this value, the easier of the split line detected.
6207 //     //Bit 3:0,   reg_Det3D_AvgIdx_ratio      U4,  Ratio to the avg_value of the edge mapping for split line position estimation.
6208 //     //                                      The smaller of this value, the more samples will be added to the estimation.
6209 //
6210 //     `define DET3D_HV_MUTE                 8'h37
6211 //     //Bit 23:20, reg_Det3D_Edge_Ver_Mute U4  X2: Horizontal pixels to be mute from H/V Edge calculation Top and Bottom border part.
6212 //     //Bit 19:16, reg_Det3D_Edge_Hor_Mute U4  X2: Horizontal pixels to be mute from H/V Edge calculation Left and right border part.
6213 //     //Bit 15:12, reg_Det3D_ChessBd_Ver_Mute  U4  X2: Horizontal pixels to be mute from ChessBoard statistics calculation in middle part
6214 //     //Bit 11:8,   reg_Det3D_ChessBd_Hor_Mute U4  X2: Horizontal pixels to be mute from ChessBoard statistics calculation in middle part
6215 //     //Bit 7:4,    reg_Det3D_STA8X8_Ver_Mute  U4  1X: Vertical pixels to be mute from 8x8 statistics calculation in each block.
6216 //     //Bit 3:0,    reg_Det3D_STA8X8_Hor_Mute  U4  1X: Horizontal pixels to be mute from 8x8 statistics calculation in each block.
6217 //
6218 //     `define DET3D_MAT_STA_P1M1            8'h38
6219 //     //Bit 31:24, reg_Det3D_STA8X8_P1_K0_R8   U8  SAD to SAI ratio to decide P1, normalized to 256 (0.8)
6220 //     //Bit 23:16, reg_Det3D_STA8X8_P1_K1_R7   U8  SAD to ENG ratio to decide P1, normalized to 128 (0.5)
6221 //     //Bit 15:8,   reg_Det3D_STA8X8_M1_K0_R6  U8  SAD to SAI ratio to decide M1, normalized to 64  (1.1)
6222 //     //Bit 7:0,    reg_Det3D_STA8X8_M1_K1_R6  U8  SAD to ENG ratio to decide M1, normalized to 64  (0.8)
6223 //
6224 //     `define DET3D_MAT_STA_P1TH            8'h39
6225 //     //Bit 23:16, reg_Det3D_STAYUV_P1_TH_L4   U8  SAD to ENG Thrd offset to decide P1, X16         (100)
6226 //     //Bit 15:8,   reg_Det3D_STAEDG_P1_TH_L4  U8  SAD to ENG Thrd offset to decide P1, X16         (80)
6227 //     //Bit 7:0,    reg_Det3D_STAMOT_P1_TH_L4  U8  SAD to ENG Thrd offset to decide P1, X16         (48)
6228 //
6229 //     `define DET3D_MAT_STA_M1TH            8'h3a
6230 //     //Bit 23:16, reg_Det3D_STAYUV_M1_TH_L4   U8  SAD to ENG Thrd offset to decide M1, X16         (100)
6231 //     //Bit 15:8,   reg_Det3D_STAEDG_M1_TH_L4  U8  SAD to ENG Thrd offset to decide M1, X16         (80)
6232 //     //Bit 7:0,    reg_Det3D_STAMOT_M1_TH_L4  U8  SAD to ENG Thrd offset to decide M1, X16         (64)
6233 //
6234 //     `define DET3D_MAT_STA_RSFT            8'h3b
6235 //     //Bit 5:4,    reg_Det3D_STAYUV_RSHFT     U2  YUV statistics SAD and SAI calculation result right shift bits to accommodate the 12bits clipping:
6236 //     //                                      0: mainly for images <=720x480: 1: mainly for images <=1366x768: 2: mainly for images <=1920X1080: 2; 3: other higher resolutions
6237 //     //Bit 3:2,    reg_Det3D_STAEDG_RSHFT     U2  Horizontal and Vertical Edge Statistics SAD and SAI calculation result right shift bits to accommodate the 12bits clipping:
6238 //     //                                      0: mainly for images <=720x480: 1: mainly for images <=1366x768: 2: mainly for images <=1920X1080: 2; 3: other higher resolutions
6239 //     //Bit 1:0,    reg_Det3D_STAMOT_RSHFT     U2  Motion SAD and SAI calculation result right shift bits to accommodate the 12bits clipping:
6240 //     //                                      0: mainly for images <=720x480: 1: mainly for images <=1366x768: 2: mainly for images <=1920X1080: 2; 3: other higher resolutions
6241 //
6242 //     `define DET3D_MAT_SYMTC_TH            8'h3c
6243 //     //Bit 31:24, reg_Det3D_STALUM_symtc_Th     U8  threshold to decide if the Luma statistics is TB or LR symmetric.
6244 //     //Bit 23:16, reg_Det3D_STACHR_symtc_Th     U8  threshold to decide if the Chroma (UV) statistics is TB or LR symmetric.
6245 //     //Bit 15:8,   reg_Det3D_STAEDG_symtc_Th    U8  threshold to decide if the Horizontal and Vertical Edge statistics is TB or LR symmetric.
6246 //     //Bit 7:0,    reg_Det3D_STAMOT_symtc_Th    U8  threshold to decide if the Motion statistics is TB or LR symmetric.
6247 //
6248 //     `define DET3D_RO_DET_CB_HOR           8'h3d
6249 //     //Bit 31:16, RO_Det3D_ChessBd_NHor_value    U16  X64: number of Pixels of Horizontally Surely NOT matching Chessboard pattern.
6250 //     //Bit 15:0,   RO_Det3D_ChessBd_Hor_value     U16  X64: number of Pixels of Horizontally Surely matching Chessboard pattern.
6251 //
6252 //     `define DET3D_RO_DET_CB_VER           8'h3e
6253 //     //Bit 31:16, RO_Det3D_ChessBd_NVer_value U16  X64: number of Pixels of Vertically Surely NOT matching Chessboard pattern.
6254 //     //Bit 15:0,   RO_Det3D_ChessBd_Ver_value     U16  X64: number of Pixels of Vertically Surely matching Chessboard pattern.
6255 //
6256 //     `define DET3D_RO_SPLT_HT              8'h3f
6257 //     //Bit 24,     RO_Det3D_Split_HT_valid    U1  horizontal LR split border detected valid signal for top half picture
6258 //     //Bit 20:16, RO_Det3D_Split_HT_pxnum U5  number of pixels included for the LR split position estimation for top half picture
6259 //     //Bit 9:0,    RO_Det3D_Split_HT_idxX4    S10  X4: horizontal pixel shifts of LR split position to the (ColMax/2) for top half picture
6260 //
6261 //     //// DET 3D REG DEFINE END ////
6262 #define   DI_MTN_1_CTRL1                           (0x1740)
6263 #define P_DI_MTN_1_CTRL1                           (volatile uint32_t *)((0x1740  << 2) + 0xff900000)
6264 //bit 31,      mtn_1_en
6265 //bit 30,      mtn_init
6266 //bit 29,      di2nr_txt_en
6267 //bit 28,      reserved
6268 //bit 27:24,   mtn_def
6269 //bit 23:16,   mtn_adp_yc
6270 //bit 15:8,    mtn_adp_2c
6271 //bit 7:0,     mtn_adp_2y
6272 #define   DI_MTN_1_CTRL2                           (0x1741)
6273 #define P_DI_MTN_1_CTRL2                           (volatile uint32_t *)((0x1741  << 2) + 0xff900000)
6274 //bit 31:24,   mtn_ykinter
6275 //bit 23:16,   mtn_ckinter
6276 //bit 15:8,    mtn_ykintra
6277 //bit  7:0,    mtn_ckintra
6278 #define   DI_MTN_1_CTRL3                           (0x1742)
6279 #define P_DI_MTN_1_CTRL3                           (volatile uint32_t *)((0x1742  << 2) + 0xff900000)
6280 //bit 31:24,   mtn_tyrate
6281 //bit 23:16,   mtn_tcrate
6282 //bit 15: 8,   mtn_mxcmby
6283 //bit  7: 0,   mtn_mxcmbc
6284 #define   DI_MTN_1_CTRL4                           (0x1743)
6285 #define P_DI_MTN_1_CTRL4                           (volatile uint32_t *)((0x1743  << 2) + 0xff900000)
6286 //bit 31:24,   mtn_tcorey
6287 //bit 23:16,   mtn_tcorec
6288 //bit 15: 8,   mtn_minth
6289 //bit  7: 0,   mtn_maxth
6290 #define   DI_MTN_1_CTRL5                           (0x1744)
6291 #define P_DI_MTN_1_CTRL5                           (volatile uint32_t *)((0x1744  << 2) + 0xff900000)
6292 //bit 31:28,   mtn_m1b_extnd
6293 //bit 27:24,   mtn_m1b_errod
6294 //bit 21:20,   mtn_mot_txt_mode
6295 //bit 19:18,   mtn_replace_cbyy
6296 //bit 17:16,   mtn_replace_ybyc
6297 //bit 15: 8,   mtn_core_ykinter
6298 //bit  7: 0,   mtn_core_ckinter
6299 //// NR2 REG DEFINE BEGIN////
6300 #define   NR2_MET_NM_CTRL                          (0x1745)
6301 #define P_NR2_MET_NM_CTRL                          (volatile uint32_t *)((0x1745  << 2) + 0xff900000)
6302 //Bit 28,      reg_NM_reset           Reset to the status of the Loop filter.
6303 //Bit 27:24,   reg_NM_calc_length     Length mode of the Noise measurement sample number for statistics.
6304 //                                    0:  256 samples;    1: 512 samples;    2: 1024 samples;   隆颅X: 2^(8+x) samples
6305 //Bit 23:20,   reg_NM_inc_step        Loop filter input gain increase step.
6306 //Bit 19:16,   reg_NM_dec_step        Loop filter input gain decrease step.
6307 //Bit 15:8,    reg_NM_YHPmot_thrd     Luma channel HP portion motion for condition of pixels included in Luma Noise measurement.
6308 //Bit 7:0,     reg_NM_CHPmot_thrd     Chroma channel HP portion motion for condition of pixels included in Chroma Noise measurement.
6309 #define   NR2_MET_NM_YCTRL                         (0x1746)
6310 #define P_NR2_MET_NM_YCTRL                         (volatile uint32_t *)((0x1746  << 2) + 0xff900000)
6311 //Bit 31:28,   reg_NM_YPLL_target         Target rate of NM_Ynoise_thrd to mean of the Luma Noise
6312 //Bit 27:24,   reg_NM_YLPmot_thrd         Luma channel LP portion motion for condition of pixels included in Luma Noise measurement.
6313 //Bit 23:16,   reg_NM_YHPmot_thrd_min     Minimum threshold for Luma channel HP portion motion to decide whether the pixel will be included in Luma noise measurement.
6314 //Bit 15:8,    reg_NM_YHPmot_thrd_max     Maximum threshold for Luma channel HP portion motion to decide whether the pixel will be included in Luma noise measurement.
6315 //Bit 7:0,     reg_NM_Ylock_rate          Rate to decide whether the Luma noise measurement is lock or not.
6316 #define   NR2_MET_NM_CCTRL                         (0x1747)
6317 #define P_NR2_MET_NM_CCTRL                         (volatile uint32_t *)((0x1747  << 2) + 0xff900000)
6318 //Bit 31:28,    reg_NM_CPLL_target       Target rate of NM_Cnoise_thrd to mean of the Chroma Noise
6319 //Bit 27:24,    reg_NM_CLPmot_thrd       Chroma channel LP portion motion for condition of pixels included in Chroma Noise measurement.
6320 //Bit 23:16,    reg_NM_CHPmot_thrd_min   Minimum threshold for Chroma channel HP portion motion to decide whether the pixel will be included in Chroma noise measurement.
6321 //Bit 15:8,     reg_NM_CHPmot_thrd_max   Maximum threshold for Chroma channel HP portion motion to decide whether the pixel will be included in Chroma noise measurement.
6322 //Bit 7:0,      reg_NM_Clock_rate        Rate to decide whether the Chroma noise measurement is lock or not;
6323 #define   NR2_MET_NM_TNR                           (0x1748)
6324 #define P_NR2_MET_NM_TNR                           (volatile uint32_t *)((0x1748  << 2) + 0xff900000)
6325 //Bit 25,       ro_NM_TNR_Ylock          Read-only register to tell ifLuma channel noise measurement is locked or not.
6326 //Bit 24,       ro_NM_TNR_Clock          Read-only register to tell if Chroma channel noise measurement is locked or not.
6327 //Bit 23:12,    ro_NM_TNR_Ylevel         Read-only register to give Luma channel noise level. It was 16x of pixel difference in 8 bits of YHPmot.
6328 //Bit 11:0, ro_NM_TNR_Clevel             Read-only register to give Chroma channel noise level. It was 16x of pixel difference in 8 bits of CHPmot.
6329 #define   NR2_MET_NMFRM_TNR_YLEV                   (0x1749)
6330 #define P_NR2_MET_NMFRM_TNR_YLEV                   (volatile uint32_t *)((0x1749  << 2) + 0xff900000)
6331 //Bit 28:0, ro_NMFrm_TNR_Ylevel          Frame based Read-only register to give Luma channel noise level within one frame/field.
6332 #define   NR2_MET_NMFRM_TNR_YCNT                   (0x174a)
6333 #define P_NR2_MET_NMFRM_TNR_YCNT                   (volatile uint32_t *)((0x174a  << 2) + 0xff900000)
6334 //Bit 23:0, ro_NMFrm_TNR_Ycount          Number ofLuma channel pixels included in Frame/Field based noise level measurement.
6335 #define   NR2_MET_NMFRM_TNR_CLEV                   (0x174b)
6336 #define P_NR2_MET_NMFRM_TNR_CLEV                   (volatile uint32_t *)((0x174b  << 2) + 0xff900000)
6337 //Bit 28:0, ro_NMFrm_TNR_Clevel          Frame based Read-only register to give Chroma channel noise level within one frame/field.
6338 #define   NR2_MET_NMFRM_TNR_CCNT                   (0x174c)
6339 #define P_NR2_MET_NMFRM_TNR_CCNT                   (volatile uint32_t *)((0x174c  << 2) + 0xff900000)
6340 //Bit 23:0, ro_NMFrm_TNR_Ccount          Number of Chroma channel pixels included in Frame/Field based noise level measurement.
6341 #define   NR2_3DEN_MODE                            (0x174d)
6342 #define P_NR2_3DEN_MODE                            (volatile uint32_t *)((0x174d  << 2) + 0xff900000)
6343 //Bit 6:4,  Blend_3dnr_en_r
6344 //Bit 2:0,  Blend_3dnr_en_l
6345 //   `define NR2_IIR_CTRL                8'h4e
6346 //   //Bit 15:14, reg_LP_IIR_8bit_mode  LP IIR membitwidth mode:0: 10bits will be store in memory;1: 9bits will be store in memory;
6347 //   //                                  2: 8bits will be store in memory;3: 7bits will be store in memory;
6348 //   //Bit 13:12, reg_LP_IIR_mute_mode  Mode for the LP IIR mute,
6349 //   //Bit 11:8,     reg_LP_IIR_mute_thrd   Threshold of LP IIR mute to avoid ghost:
6350 //   //Bit 7:6,  reg_HP_IIR_8bit_mode   IIR membitwidth mode:0: 10bits will be store in memory;1: 9bits will be store in memory;
6351 //   //                                  2: 8bits will be store in memory;3: 7bits will be store in memory;
6352 //   //Bit 5:4, reg_HP_IIR_mute_mode    Mode for theLP IIR mute
6353 //   //Bit 3:0, reg_HP_IIR_mute_thrd    Threshold of HP IIR mute to avoid ghost
6354 //   //
6355 #define   NR2_SW_EN                                (0x174f)
6356 #define P_NR2_SW_EN                                (volatile uint32_t *)((0x174f  << 2) + 0xff900000)
6357 //Bit 17:8, Clk_gate_ctrl
6358 //Bit 7,    Cfr_enable
6359 //Bit 5,    Det3d_en
6360 //Bit 4,    Nr2_proc_en
6361 //Bit 0,    Nr2_sw_en
6362 #define   NR2_FRM_SIZE                             (0x1750)
6363 #define P_NR2_FRM_SIZE                             (volatile uint32_t *)((0x1750  << 2) + 0xff900000)
6364 //Bit 27:16,  Frm_heigh Frame/field height
6365 //Bit 11: 0,  Frm_width Frame/field width
6366 //   `define NR2_SNR_SAD_CFG             8'h51
6367 //   //Bit 12,  reg_MATNR_SNR_SAD_CenRPL    U1, Enable signal for Current pixel position SAD to be replaced by SAD_min.0: do not replace Current pixel position SAD by SAD_min;1: do replacements
6368 //   //Bit 11:8,    reg_MATNR_SNR_SAD_coring    Coring value of the intra-frame SAD. sum = (sum - reg_MATNR_SNR_SAD_coring);sum = (sum<0) ? 0: (sum>255)? 255: sum;
6369 //   //Bit 6:5, reg_MATNR_SNR_SAD_WinMod    Unsigned, Intra-frame SAD matching window mode:0: 1x1; 1: [1 1 1] 2: [1 2 1]; 3: [1 2 2 2 1];
6370 //   //Bit 4:0, Sad_coef_num                Sad coeffient
6371 //
6372 //   `define NR2_MATNR_SNR_OS            8'h52
6373 //   //Bit 7:4, reg_MATNR_SNR_COS       SNR Filter overshoot control margin for UV channel (X2 to u10 scale)
6374 //   //Bit 3:0, reg_MATNR_SNR_YOS       SNR Filter overshoot control margin for luma channel (X2 to u10 scale)
6375 //
6376 //   `define NR2_MATNR_SNR_NRM_CFG       8'h53
6377 //   //Bit 23:16,   reg_MATNR_SNR_NRM_ofst  Edge based SNR boosting normalization offset to SAD_max ;
6378 //   //Bit 15:8,        reg_MATNR_SNR_NRM_max   Edge based SNR boosting normalization Max value
6379 //   //Bit 7:0,     reg_MATNR_SNR_NRM_min   Edge based SNR boosting normalization Min value
6380 //
6381 //   `define NR2_MATNR_SNR_NRM_GAIN      8'h54
6382 //   //Bit 15:8,    reg_MATNR_SNR_NRM_Cgain Edge based SNR boosting normalization Gain for Chrm channel (norm 32 as 1)
6383 //   //Bit 7:0, reg_MATNR_SNR_NRM_Ygain Edge based SNR boosting normalization Gain for Luma channel (norm 32 as 1)
6384 //
6385 //   `define NR2_MATNR_SNR_LPF_CFG       8'h55
6386 //   //Bit 23:16,reg_MATNR_SNRLPF_SADmaxTH  U8,  Threshold to SADmax to use TNRLPF to replace SNRLPF. i.e.if (SAD_max<reg_MATNR_SNRLPF_SADmaxTH) SNRLPF_yuv[k] = TNRLPF_yuv[k];
6387 //   //Bit 13:11,reg_MATNR_SNRLPF_Cmode     LPF based SNR filtering mode on CHRM channel:
6388 //   //                                      0: gradient LPF [1 1]/2, 1: gradient LPF [2 1 1]/4; 2: gradient LPF [3 3 2]/8; 3: gradient LPF [5 4 4 3]/16;
6389 //   //                                      4: TNRLPF;  5 : CurLPF3x3_yuv[];  6: CurLPF3o3_yuv[]  7: CurLPF3x5_yuv[]
6390 //   //Bit 10:8,    reg_MATNR_SNRLPF_Ymode      LPF based SNR filtering mode on LUMA channel:
6391 //   //                                      0: gradient LPF //Bit [1 1]/2, 1: gradient LPF [2 1 1]/4; 2: gradient LPF [3 3 2]/8;3: gradient LPF [5 4 4 3]/16;
6392 //   //                                      4: TNRLPF;               5 : CurLPF3x3_yuv[];       6: CurLPF3o3_yuv[]         7: CurLPF3x5_yuv[]
6393 //   //Bit 7:4, reg_MATNR_SNRLPF_SADmin3TH  Offset threshold to SAD_min to Discard SAD_min3 corresponding pixel in LPF SNR filtering. (X8 to u8 scale)
6394 //   //Bit 3:0, reg_MATNR_SNRLPF_SADmin2TH  Offset threshold to SAD_min to Discard SAD_min2 corresponding pixel in LPF SNR filtering. (X8 to u8 scale)
6395 //
6396 //   `define NR2_MATNR_SNR_USF_GAIN      8'h56
6397 //   //Bit 15:8,    reg_MATNR_SNR_USF_Cgain     Un-sharp (HP) compensate back Chrm portion gain, (norm 64 as 1)
6398 //   //Bit 7:0, reg_MATNR_SNR_USF_Ygain     Un-sharp (HP) compensate back Luma portion gain, (norm 64 as 1)
6399 //
6400 //   `define NR2_MATNR_SNR_EDGE2B        8'h57
6401 //   //Bit 15:8,    reg_MATNR_SNR_Edge2Beta_ofst    U8,  Offset for Beta based on Edge.
6402 //   //Bit 7:0, reg_MATNR_SNR_Edge2Beta_gain    U8.  Gain to SAD_min for Beta based on Edge. (norm 16 as 1)
6403 //
6404 //   `define NR2_MATNR_BETA_EGAIN        8'h58
6405 //   //Bit 15:8,    reg_MATNR_CBeta_Egain   U8,  Gain to Edge based Beta for Chrm channel. (normalized to 32 as 1)
6406 //   //Bit 7:0, reg_MATNR_YBeta_Egain   U8,  Gain to Edge based Beta for Luma channel. (normalized to 32 as 1)
6407 //
6408 //   `define NR2_MATNR_BETA_BRT          8'h59
6409 //   //Bit 31:28,   reg_MATNR_beta_BRT_limt_hi  U4,  Beta adjustment based on Brightness high side Limit. (X16 to u8 scale)
6410 //   //Bit 27:24,   reg_MATNR_beta_BRT_slop_hi  U4,  Beta adjustment based on Brightness high side slope. Normalized to 16 as 1
6411 //   //Bit 23:16,   reg_MATNR_beta_BRT_thrd_hi  U8,  Beta adjustment based on Brightness high threshold.(u8 scale)
6412 //   //Bit 15:12,   reg_MATNR_beta_BRT_limt_lo  U4,  Beta adjustment based on Brightness low side Limit. (X16 to u8 scale)
6413 //   //Bit 11:8,        reg_MATNR_beta_BRT_slop_lo  U4,  Beta adjustment based on Brightness low side slope. Normalized to 16 as 1
6414 //   //Bit 7:0,     reg_MATNR_beta_BRT_thrd_lo  U8,  Beta adjustment based on Brightness low threshold.(u8 scale)
6415 //   `define NR2_MATNR_XBETA_CFG         8'h5a
6416 //   //Bit 19:18,   reg_MATNR_CBeta_use_mode    U2,  Beta options (mux) from beta_motion and beta_edge for Chrm channel;
6417 //   //Bit 17:16,   reg_MATNR_YBeta_use_mode    U2,  Beta options (mux) from beta_motion and beta_edge for Luma channel;
6418 //   //Bit 15: 8,   reg_MATNR_CBeta_Ofst        U8,  Offset to Beta for Chrm channel.(after beta_edge and beta_motion mux)
6419 //   //Bit  7: 0,   reg_MATNR_YBeta_Ofst        U8,  Offset to Beta for Luma channel.(after beta_edge and beta_motion mux)
6420 //   `define NR2_MATNR_YBETA_SCL         8'h5b
6421 //   //Bit 31:24,   reg_MATNR_YBeta_scale_min   U8,  Final step Beta scale low limit for Luma channel;
6422 //   //Bit 23:16,   reg_MATNR_YBeta_scale_max   U8,  Final step Beta scale high limit for Luma channe;
6423 //   //Bit 15: 8,   reg_MATNR_YBeta_scale_gain  U8,  Final step Beta scale Gain for Luma channel (normalized 32 to 1);
6424 //   //Bit 7 : 0,   reg_MATNR_YBeta_scale_ofst  S8,  Final step Beta scale offset for Luma channel ;
6425 //   `define NR2_MATNR_CBETA_SCL         8'h5c
6426 //   //Bit 31:24,   reg_MATNR_CBeta_scale_min   Final step Beta scale low limit for Chrm channel.Similar to Y
6427 //   //Bit 23:16,   reg_MATNR_CBeta_scale_max   U8,  Final step Beta scale high limit for Chrm channel.Similar to Y
6428 //   //Bit 15: 8,   reg_MATNR_CBeta_scale_gain  U8,  Final step Beta scale Gain for Chrm channel Similar to Y
6429 //   //Bit  7: 0,   reg_MATNR_CBeta_scale_ofst  S8,  Final step Beta scale offset for Chrm channel Similar to Y
6430 //   `define NR2_SNR_MASK                8'h5d
6431 //   //Bit 20:0,    SAD_MSK                     Valid signal in the 3x7 SAD surface
6432 //   `define NR2_SAD2NORM_LUT0           8'h5e
6433 //   //Bit 31:24,   reg_MATNR_SAD2Norm_LUT_3    SAD convert normal LUT node 3
6434 //   //Bit 23:16,   reg_MATNR_SAD2Norm_LUT_2    SAD convert normal LUT node 2
6435 //   //Bit 15: 8,   reg_MATNR_SAD2Norm_LUT_1    SAD convert normal LUT node 1
6436 //   //Bit  7: 0,   reg_MATNR_SAD2Norm_LUT_0    SAD convert normal LUT node 0
6437 //   `define NR2_SAD2NORM_LUT1           8'h5f
6438 //   //Bit 31:24,   reg_MATNR_SAD2Norm_LUT_7    SAD convert normal LUT node 7
6439 //   //Bit 23:16,   reg_MATNR_SAD2Norm_LUT_6    SAD convert normal LUT node 6
6440 //   //Bit 15: 8,   reg_MATNR_SAD2Norm_LUT_5    SAD convert normal LUT node 5
6441 //   //Bit  7: 0,   reg_MATNR_SAD2Norm_LUT_4    SAD convert normal LUT node 4
6442 //   `define NR2_SAD2NORM_LUT2           8'h60
6443 //   //Bit 31:24,   reg_MATNR_SAD2Norm_LUT_11   SAD convert normal LUT node 11
6444 //   //Bit 23:16,   reg_MATNR_SAD2Norm_LUT_10   SAD convert normal LUT node 10
6445 //   //Bit 15: 8,   reg_MATNR_SAD2Norm_LUT_9    SAD convert normal LUT node 9
6446 //   //Bit  7: 0,   reg_MATNR_SAD2Norm_LUT_8    SAD convert normal LUT node 8
6447 //   `define NR2_SAD2NORM_LUT3           8'h61
6448 //   //Bit 31:24,   reg_MATNR_SAD2Norm_LUT_15   SAD convert normal LUT node 15
6449 //   //Bit 23:16,   reg_MATNR_SAD2Norm_LUT_14   SAD convert normal LUT node 14
6450 //   //Bit 15:8,    reg_MATNR_SAD2Norm_LUT_13   SAD convert normal LUT node 13
6451 //   //Bit 7:0, reg_MATNR_SAD2Norm_LUT_12   SAD convert normal LUT node 12
6452 //   `define NR2_EDGE2BETA_LUT0          8'h62
6453 //   //Bit 31:24,   reg_MATNR_Edge2Beta_LUT_3   Edge convert beta LUT node 3
6454 //   //Bit 23:16,   reg_MATNR_Edge2Beta_LUT_2   Edge convert beta LUT node 2
6455 //   //Bit 15: 8,   reg_MATNR_Edge2Beta_LUT_1   Edge convert beta LUT node 1
6456 //   //Bit  7: 0,   reg_MATNR_Edge2Beta_LUT_0   Edge convert beta LUT node 0
6457 //   `define NR2_EDGE2BETA_LUT1          8'h63
6458 //   //Bit 31:24,   reg_MATNR_Edge2Beta_LUT_7   Edge convert beta LUT node 7
6459 //   //Bit 23:16,   reg_MATNR_Edge2Beta_LUT_6   Edge convert beta LUT node 6
6460 //   //Bit 15: 8,   reg_MATNR_Edge2Beta_LUT_5   Edge convert beta LUT node 5
6461 //   //Bit  7: 0,   reg_MATNR_Edge2Beta_LUT_4   Edge convert beta LUT node 4
6462 //   `define NR2_EDGE2BETA_LUT2          8'h64
6463 //   //Bit 31:24,   reg_MATNR_Edge2Beta_LUT_11  Edge convert beta LUT node 11
6464 //   //Bit 23:16,   reg_MATNR_Edge2Beta_LUT_10  Edge convert beta LUT node 10
6465 //   //Bit 15: 8,   reg_MATNR_Edge2Beta_LUT_9   Edge convert beta LUT node 9
6466 //   //Bit  7: 0,   reg_MATNR_Edge2Beta_LUT_8   Edge convert beta LUT node 8
6467 //   `define NR2_EDGE2BETA_LUT3          8'h65
6468 //   //Bit 31:24,   reg_MATNR_Edge2Beta_LUT_15  Edge convert beta LUT node 15
6469 //   //Bit 23:16,   reg_MATNR_Edge2Beta_LUT_14  Edge convert beta LUT node 14
6470 //   //Bit 15: 8,   reg_MATNR_Edge2Beta_LUT_13  Edge convert beta LUT node 13
6471 //   //Bit  7: 0,   reg_MATNR_Edge2Beta_LUT_12  Edge convert beta LUT node 12
6472 //   `define NR2_MOTION2BETA_LUT0        8'h66
6473 //   //Bit 31:24,   reg_MATNR_Mot2Beta_LUT_3    Motion convert beta LUT node 3
6474 //   //Bit 23:16,   reg_MATNR_Mot2Beta_LUT_2    Motion convert beta LUT node 2
6475 //   //Bit 15: 8,   reg_MATNR_Mot2Beta_LUT_1    Motion convert beta LUT node 1
6476 //   //Bit  7: 0,   reg_MATNR_Mot2Beta_LUT_0    Motion convert beta LUT node 0
6477 //   `define NR2_MOTION2BETA_LUT1        8'h67
6478 //   //Bit 31:24,   reg_MATNR_Mot2Beta_LUT_7    Motion convert beta LUT node 7
6479 //   //Bit 23:16,   reg_MATNR_Mot2Beta_LUT_6    Motion convert beta LUT node 6
6480 //   //Bit 15: 8,   reg_MATNR_Mot2Beta_LUT_5    Motion convert beta LUT node 5
6481 //   //Bit  7: 0,   reg_MATNR_Mot2Beta_LUT_4    Motion convert beta LUT node 4
6482 //   `define NR2_MOTION2BETA_LUT2        8'h68
6483 //   //Bit 31:24,   reg_MATNR_Mot2Beta_LUT_11   Motion convert beta LUT node 11
6484 //   //Bit 23:16,   reg_MATNR_Mot2Beta_LUT_10   Motion convert beta LUT node 10
6485 //   //Bit 15: 8,   reg_MATNR_Mot2Beta_LUT_9    Motion convert beta LUT node 9
6486 //   //Bit  7: 0,   reg_MATNR_Mot2Beta_LUT_8    Motion convert beta LUT node 8
6487 //   `define NR2_MOTION2BETA_LUT3        8'h69
6488 //   //Bit 31:24,   reg_MATNR_Mot2Beta_LUT_15   Motion convert beta LUT node 15
6489 //   //Bit 23:16,   reg_MATNR_Mot2Beta_LUT_14   Motion convert beta LUT node 14
6490 //   //Bit 15: 8,   reg_MATNR_Mot2Beta_LUT_13   Motion convert beta LUT node 13
6491 //   //Bit  7: 0,   reg_MATNR_Mot2Beta_LUT_12   Motion convert beta LUT node 12
6492 //    `define NR2_MATNR_MTN_CRTL          8'h6a
6493 //    //Bit 25:24,  reg_MATNR_Vmtn_use_mode     Motion_yuvV channel motion selection mode:0: Vmot;1:Ymot/2 + (Umot+Vmot)/4; 2:Ymot/2 + max(Umot,Vmot)/2; 3: max(Ymot,Umot, Vmot)
6494 //    //Bit 21:20,  reg_MATNR_Umtn_use_mode     Motion_yuvU channel motion selection mode:0:Umot;1:Ymot/2 + (Umot+Vmot)/4; 2:Ymot/2 + max(Umot,Vmot)/2; 3: max(Ymot,Umot, Vmot)
6495 //    //Bit 17:16,  reg_MATNR_Ymtn_use_mode     Motion_yuvLuma channel motion selection mode:0:  Ymot, 1: Ymot/2 + (Umot+Vmot)/4; 2: Ymot/2 + max(Umot,Vmot)/2; 3:  max(Ymot,Umot, Vmot)
6496 //    //Bit 13:12,  reg_MATNR_mtn_txt_mode      Texture detection mode for adaptive coring of HP motion
6497 //    //Bit  9: 8,  reg_MATNR_mtn_cor_mode      Coring selection mode based on texture detection;
6498 //    //Bit  6: 4,  reg_MATNR_mtn_hpf_mode      video mode of current and previous frame/field for MotHPF_yuv[k] calculation:
6499 //    //Bit  2: 0,  reg_MATNR_mtn_lpf_mode      LPF video mode of current and previous frame/field for MotLPF_yuv[k] calculation:
6500 //    `define NR2_MATNR_MTN_CRTL2         8'h6b
6501 //    //Bit 18:16,  reg_MATNR_iir_BS_Ymode      IIR TNR filter Band split filter mode for Luma LPF result generation (Cur and Prev);
6502 //    //Bit 15: 8,  reg_MATNR_mtnb_alpLP_Cgain  Scale of motion_brthp_uv to motion_brtlp_uv, normalized to 32 as 1
6503 //    //Bit  7: 0,  reg_MATNR_mtnb_alpLP_Ygain  Scale of motion_brthp_y to motion_brtlp_y, normalized to 32 as 1
6504 //    `define NR2_MATNR_MTN_COR           8'h6c
6505 //    //Bit 15:12,  reg_MATNR_mtn_cor_Cofst     Coring Offset for Chroma Motion.
6506 //    //Bit 11: 8,  reg_MATNR_mtn_cor_Cgain     Gain to texture based coring for Chroma Motion. Normalized to 16 as 1
6507 //    //Bit  7: 4,  reg_MATNR_mtn_cor_Yofst     Coring Offset for Luma Motion.
6508 //    //Bit  3: 0,  reg_MATNR_mtn_cor_Ygain     Gain to texture based coring for Luma Motion. Normalized to 16 as 1
6509 //    `define NR2_MATNR_MTN_GAIN          8'h6d
6510 //    //Bit 31:24,  reg_MATNR_mtn_hp_Cgain  Gain to MotHPF_yuv[k] Chrm channel for motion calculation, normalized to 64 as 1
6511 //    //Bit 23:16,  reg_MATNR_mtn_hp_Ygain  Gain to MotHPF_yuv[k] Luma channel for motion calculation, normalized to 64 as 1
6512 //    //Bit 15: 8,  reg_MATNR_mtn_lp_Cgain  Gain to MotLPF_yuv[k] Chrm channel for motion calculation, normalized to 32 as 1
6513 //    //Bit  7: 0,  reg_MATNR_mtn_lp_Ygain  Gain to MotLPF_yuv[k] Luma channel for motion calculation, normalized to 32 as 1
6514 //    `define NR2_MATNR_DEGHOST           8'h6e
6515 //    //Bit 8,  reg_MATNR_DeGhost_En    Enable signal for DeGhost function:0: disable; 1: enable
6516 //    //Bit 7:4,    reg_MATNR_DeGhost_COS   DeGhost Overshoot margin for UV channel, (X2 to u10 scale)
6517 //    //Bit 3:0,    reg_MATNR_DeGhost_YOS   DeGhost Overshoot margin for Luma channel, (X2 to u10 scale)
6518 //
6519 //    `define NR2_MATNR_ALPHALP_LUT0      8'h6f
6520 //    //Bit 31:24,  reg_MATNR_AlphaLP_LUT_3     Matnr low-pass filter alpha LUT node 3
6521 //    //Bit 23:16,  reg_MATNR_AlphaLP_LUT_2     Matnr low-pass filter alpha LUT node 2
6522 //    //Bit 15: 8,  reg_MATNR_AlphaLP_LUT_1     Matnr low-pass filter alpha LUT node 1
6523 //    //Bit  7: 0,  reg_MATNR_AlphaLP_LUT_0     Matnr low-pass filter alpha LUT node 0
6524 //    `define NR2_MATNR_ALPHALP_LUT1      8'h70
6525 //    //Bit 31:24,  reg_MATNR_AlphaLP_LUT_7     Matnr low-pass filter alpha LUT node 7
6526 //    //Bit 23:16,  reg_MATNR_AlphaLP_LUT_6     Matnr low-pass filter alpha LUT node 6
6527 //    //Bit 15: 8,  reg_MATNR_AlphaLP_LUT_5     Matnr low-pass filter alpha LUT node 5
6528 //    //Bit  7: 0,  reg_MATNR_AlphaLP_LUT_4     Matnr low-pass filter alpha LUT node 4
6529 //    `define NR2_MATNR_ALPHALP_LUT2      8'h71
6530 //    //Bit 31:24,  reg_MATNR_AlphaLP_LUT_11    Matnr low-pass filter alpha LUT node 11
6531 //    //Bit 23:16,  reg_MATNR_AlphaLP_LUT_10    Matnr low-pass filter alpha LUT node 10
6532 //    //Bit 15: 8,  reg_MATNR_AlphaLP_LUT_9     Matnr low-pass filter alpha LUT node 9
6533 //    //Bit  7: 0,  reg_MATNR_AlphaLP_LUT_8     Matnr low-pass filter alpha LUT node 8
6534 //    `define NR2_MATNR_ALPHALP_LUT3      8'h72
6535 //    //Bit 31:24,  reg_MATNR_AlphaLP_LUT_15    Matnr low-pass filter alpha LUT node 15
6536 //    //Bit 23:16,  reg_MATNR_AlphaLP_LUT_14    Matnr low-pass filter alpha LUT node 14
6537 //    //Bit 15: 8,  reg_MATNR_AlphaLP_LUT_13    Matnr low-pass filter alpha LUT node 13
6538 //    //Bit  7: 0,  reg_MATNR_AlphaLP_LUT_12    Matnr low-pass filter alpha LUT node 12
6539 //    `define NR2_MATNR_ALPHAHP_LUT0      8'h73
6540 //    //Bit 31:24,  reg_MATNR_AlphaHP_LUT_3     Matnr high-pass filter alpha LUT node 3
6541 //    //Bit 23:16,  reg_MATNR_AlphaHP_LUT_2     Matnr high-pass filter alpha LUT node 2
6542 //    //Bit 15: 8,  reg_MATNR_AlphaHP_LUT_1     Matnr high-pass filter alpha LUT node 1
6543 //    //Bit  7: 0,  reg_MATNR_AlphaHP_LUT_0     Matnr high-pass filter alpha LUT node 0
6544 //    `define NR2_MATNR_ALPHAHP_LUT1      8'h74
6545 //    //Bit 31:24,  reg_MATNR_AlphaHP_LUT_7     Matnr high-pass filter alpha LUT node 7
6546 //    //Bit 23:16,  reg_MATNR_AlphaHP_LUT_6     Matnr high-pass filter alpha LUT node 6
6547 //    //Bit 15: 8,  reg_MATNR_AlphaHP_LUT_5     Matnr high-pass filter alpha LUT node 5
6548 //    //Bit  7: 0,  reg_MATNR_AlphaHP_LUT_4     Matnr high-pass filter alpha LUT node 4
6549 //    `define NR2_MATNR_ALPHAHP_LUT2      8'h75
6550 //    //Bit 31:24,  reg_MATNR_AlphaHP_LUT_11    Matnr high-pass filter alpha LUT node 11
6551 //    //Bit 23:16,  reg_MATNR_AlphaHP_LUT_10    Matnr high-pass filter alpha LUT node 10
6552 //    //Bit 15: 8,  reg_MATNR_AlphaHP_LUT_9     Matnr high-pass filter alpha LUT node 9
6553 //    //Bit  7: 0,  reg_MATNR_AlphaHP_LUT_8     Matnr high-pass filter alpha LUT node 8
6554 //    `define NR2_MATNR_ALPHAHP_LUT3      8'h76
6555 //    //Bit 31:24,  reg_MATNR_AlphaHP_LUT_15    Matnr high-pass filter alpha LUT node 15
6556 //    //Bit 23:16,  reg_MATNR_AlphaHP_LUT_14    Matnr high-pass filter alpha LUT node 14
6557 //    //Bit 15: 8,  reg_MATNR_AlphaHP_LUT_13    Matnr high-pass filter alpha LUT node 13
6558 //    //Bit  7: 0,  reg_MATNR_AlphaHP_LUT_12    Matnr high-pass filter alpha LUT node 12
6559 //
6560 //    `define NR2_MATNR_MTNB_BRT          8'h77
6561 //    //Bit 31:28,  reg_MATNR_mtnb_BRT_limt_hi  Motion adjustment based on Brightness high side Limit. (X16 to u8 scale)
6562 //    //Bit 27:24,  reg_MATNR_mtnb_BRT_slop_hi  Motion adjustment based on Brightness high side slope. Normalized to 16 as 1
6563 //    //Bit 23:16,  reg_MATNR_mtnb_BRT_thrd_hi  Motion adjustment based on Brightness high threshold.(u8 scale)
6564 //    //Bit 15:12,  reg_MATNR_mtnb_BRT_limt_lo  Motion adjustment based on Brightness low side Limit. (X16 to u8 scale)
6565 //    //Bit 11: 8,  reg_MATNR_mtnb_BRT_slop_lo  Motion adjustment based on Brightness low side slope. Normalized to 16 as 1
6566 //    //Bit  7: 0,  reg_MATNR_mtnb_BRT_thrd_lo  Motion adjustment based on Brightness low threshold.(u8 scale)
6567 // 0x51 - 0x69 | 0x4e | 0x6a - 0x77
6568 //
6569 // Reading file:  nr2_regs.h
6570 //
6571 // synopsys translate_off
6572 // synopsys translate_on
6573 //========== nr2_snr_regs register begin ==========//
6574 #define   NR2_SNR_SAD_CFG                          (0x1751)
6575 #define P_NR2_SNR_SAD_CFG                          (volatile uint32_t *)((0x1751  << 2) + 0xff900000)
6576 //Bit 31:13        reserved
6577 //Bit 12           reg_matnr_snr_sad_cenrpl       // unsigned , default = 1
6578 //Bit 11: 8        reg_matnr_snr_sad_coring       // unsigned , default = 3
6579 //Bit  7            reserved
6580 //Bit  6: 5        reg_matnr_snr_sad_winmod       // unsigned , default = 1     0: 1x1; 1: [1 1 1] 2: [1 2 1]; 3: [1 2 2 2 1];
6581 //Bit  4: 0        sad_coef_num                      // unsigned , default = 1     0: 1x1; 1: [1 1 1] 2: [1 2 1]; 3: [1 2 2 2 1];
6582 #define   NR2_MATNR_SNR_OS                         (0x1752)
6583 #define P_NR2_MATNR_SNR_OS                         (volatile uint32_t *)((0x1752  << 2) + 0xff900000)
6584 //Bit 31: 8        reserved
6585 //Bit  7: 4        reg_matnr_snr_cos              // unsigned , default = 8
6586 //Bit  3: 0        reg_matnr_snr_yos              // unsigned , default = 13
6587 #define   NR2_MATNR_SNR_NRM_CFG                    (0x1753)
6588 #define P_NR2_MATNR_SNR_NRM_CFG                    (volatile uint32_t *)((0x1753  << 2) + 0xff900000)
6589 //Bit 31:24        reserved
6590 //Bit 23:16        reg_matnr_snr_nrm_ofst         // signed , default = 64
6591 //Bit 15: 8        reg_matnr_snr_nrm_max          // unsigned , default = 255
6592 //Bit  7: 0        reg_matnr_snr_nrm_min          // unsigned , default = 0
6593 #define   NR2_MATNR_SNR_NRM_GAIN                   (0x1754)
6594 #define P_NR2_MATNR_SNR_NRM_GAIN                   (volatile uint32_t *)((0x1754  << 2) + 0xff900000)
6595 //Bit 31:16        reserved
6596 //Bit 15: 8        reg_matnr_snr_nrm_cgain        // unsigned , default = 0     norm 32
6597 //Bit  7: 0        reg_matnr_snr_nrm_ygain        // unsigned , default = 32    norm 32
6598 #define   NR2_MATNR_SNR_LPF_CFG                    (0x1755)
6599 #define P_NR2_MATNR_SNR_LPF_CFG                    (volatile uint32_t *)((0x1755  << 2) + 0xff900000)
6600 //Bit 31:24        reserved
6601 //Bit 23:16        reg_matnr_snrlpf_sadmaxth      // unsigned , default = 12
6602 //Bit 15:14        reserved
6603 //Bit 13:11        reg_matnr_snrlpf_cmode         // unsigned , default = 2     0: gradient LPF [1 1]/2, 1: gradient LPF [2 1 1]/4; 2: gradient LPF [3 3 2]/8; 3: gradient LPF [5 5 4 3]/16;
6604 //Bit 10: 8        reg_matnr_snrlpf_ymode         // unsigned , default = 2     0: gradient LPF [1 1]/2, 1: gradient LPF [2 1 1]/4; 2: gradient LPF [3 3 2]/8; 3: gradient LPF [5 5 4 3]/16;
6605 //Bit  7: 4        reg_matnr_snrlpf_sadmin3th     // unsigned , default = 6     X8
6606 //Bit  3: 0        reg_matnr_snrlpf_sadmin2th     // unsigned , default = 4     X8
6607 #define   NR2_MATNR_SNR_USF_GAIN                   (0x1756)
6608 #define P_NR2_MATNR_SNR_USF_GAIN                   (volatile uint32_t *)((0x1756  << 2) + 0xff900000)
6609 //Bit 31:16        reserved
6610 //Bit 15: 8        reg_matnr_snr_usf_cgain        // unsigned , default = 0     norm 64
6611 //Bit  7: 0        reg_matnr_snr_usf_ygain        // unsigned , default = 0     norm 64
6612 #define   NR2_MATNR_SNR_EDGE2B                     (0x1757)
6613 #define P_NR2_MATNR_SNR_EDGE2B                     (volatile uint32_t *)((0x1757  << 2) + 0xff900000)
6614 //Bit 31:16        reserved
6615 //Bit 15: 8        reg_matnr_snr_edge2beta_ofst   // unsigned , default = 128
6616 //Bit  7: 0        reg_matnr_snr_edge2beta_gain   // unsigned , default = 16
6617 #define   NR2_MATNR_BETA_EGAIN                     (0x1758)
6618 #define P_NR2_MATNR_BETA_EGAIN                     (volatile uint32_t *)((0x1758  << 2) + 0xff900000)
6619 //Bit 31:16        reserved
6620 //Bit 15: 8        reg_matnr_cbeta_egain          // unsigned , default = 32    normalized to 32
6621 //Bit  7: 0        reg_matnr_ybeta_egain          // unsigned , default = 32    normalized to 32
6622 #define   NR2_MATNR_BETA_BRT                       (0x1759)
6623 #define P_NR2_MATNR_BETA_BRT                       (volatile uint32_t *)((0x1759  << 2) + 0xff900000)
6624 //Bit 31:28        reg_matnr_beta_brt_limt_hi     // unsigned , default = 0
6625 //Bit 27:24        reg_matnr_beta_brt_slop_hi     // unsigned , default = 0
6626 //Bit 23:16        reg_matnr_beta_brt_thrd_hi     // unsigned , default = 160
6627 //Bit 15:12        reg_matnr_beta_brt_limt_lo     // unsigned , default = 6
6628 //Bit 11: 8        reg_matnr_beta_brt_slop_lo     // unsigned , default = 6
6629 //Bit  7: 0        reg_matnr_beta_brt_thrd_lo     // unsigned , default = 100
6630 #define   NR2_MATNR_XBETA_CFG                      (0x175a)
6631 #define P_NR2_MATNR_XBETA_CFG                      (volatile uint32_t *)((0x175a  << 2) + 0xff900000)
6632 //Bit 31:20        reserved
6633 //Bit 19:18        reg_matnr_cbeta_use_mode       // unsigned , default = 0     0: beta_motion; 1: beta_edge; 2: min(beta_mot,beta_edge); 3: (beta_mot + beta_edge)/2
6634 //Bit 17:16        reg_matnr_ybeta_use_mode       // unsigned , default = 0     0: beta_motion; 1: beta_edge; 2: min(beta_mot,beta_edge); 3: (beta_mot + beta_edge)/2;
6635 //Bit 15: 8        reg_matnr_cbeta_ofst           // unsigned , default = 0
6636 //Bit  7: 0        reg_matnr_ybeta_ofst           // unsigned , default = 0
6637 #define   NR2_MATNR_YBETA_SCL                      (0x175b)
6638 #define P_NR2_MATNR_YBETA_SCL                      (volatile uint32_t *)((0x175b  << 2) + 0xff900000)
6639 //Bit 31:24        reg_matnr_ybeta_scale_min      // unsigned , default = 60
6640 //Bit 23:16        reg_matnr_ybeta_scale_max      // unsigned , default = 255
6641 //Bit 15: 8        reg_matnr_ybeta_scale_gain     // unsigned , default = 32    normalized 32 to 1.0
6642 //Bit  7: 0        reg_matnr_ybeta_scale_ofst     // signed , default = 0
6643 #define   NR2_MATNR_CBETA_SCL                      (0x175c)
6644 #define P_NR2_MATNR_CBETA_SCL                      (volatile uint32_t *)((0x175c  << 2) + 0xff900000)
6645 //Bit 31:24        reg_matnr_cbeta_scale_min      // unsigned , default = 0
6646 //Bit 23:16        reg_matnr_cbeta_scale_max      // unsigned , default = 255
6647 //Bit 15: 8        reg_matnr_cbeta_scale_gain     // unsigned , default = 32    normalized 32 to 1.0
6648 //Bit  7: 0        reg_matnr_cbeta_scale_ofst     // signed , default = 0
6649 #define   NR2_SNR_MASK                             (0x175d)
6650 #define P_NR2_SNR_MASK                             (volatile uint32_t *)((0x175d  << 2) + 0xff900000)
6651 //Bit 31:21        reserved
6652 //Bit 20: 0        sad_msk                        // unsigned , default = 0x0f9f3e
6653 #define   NR2_SAD2NORM_LUT0                        (0x175e)
6654 #define P_NR2_SAD2NORM_LUT0                        (volatile uint32_t *)((0x175e  << 2) + 0xff900000)
6655 //Bit 31:24        reg_matnr_sad2norm_lut3      // unsigned , default = 114
6656 //Bit 23:16        reg_matnr_sad2norm_lut2      // unsigned , default = 146
6657 //Bit 15: 8        reg_matnr_sad2norm_lut1      // unsigned , default = 171
6658 //Bit  7: 0        reg_matnr_sad2norm_lut0      // unsigned , default = 205
6659 #define   NR2_SAD2NORM_LUT1                        (0x175f)
6660 #define P_NR2_SAD2NORM_LUT1                        (volatile uint32_t *)((0x175f  << 2) + 0xff900000)
6661 //Bit 31:24        reg_matnr_sad2norm_lut7      // unsigned , default = 28
6662 //Bit 23:16        reg_matnr_sad2norm_lut6      // unsigned , default = 35
6663 //Bit 15: 8        reg_matnr_sad2norm_lut5      // unsigned , default = 49
6664 //Bit  7: 0        reg_matnr_sad2norm_lut4      // unsigned , default = 79
6665 #define   NR2_SAD2NORM_LUT2                        (0x1760)
6666 #define P_NR2_SAD2NORM_LUT2                        (volatile uint32_t *)((0x1760  << 2) + 0xff900000)
6667 //Bit 31:24        reg_matnr_sad2norm_lut11     // unsigned , default = 15
6668 //Bit 23:16        reg_matnr_sad2norm_lut10     // unsigned , default = 17
6669 //Bit 15: 8        reg_matnr_sad2norm_lut9      // unsigned , default = 19
6670 //Bit  7: 0        reg_matnr_sad2norm_lut8      // unsigned , default = 23
6671 #define   NR2_SAD2NORM_LUT3                        (0x1761)
6672 #define P_NR2_SAD2NORM_LUT3                        (volatile uint32_t *)((0x1761  << 2) + 0xff900000)
6673 //Bit 31:24        reg_matnr_sad2norm_lut15     // unsigned , default = 8
6674 //Bit 23:16        reg_matnr_sad2norm_lut14     // unsigned , default = 9
6675 //Bit 15: 8        reg_matnr_sad2norm_lut13     // unsigned , default = 10
6676 //Bit  7: 0        reg_matnr_sad2norm_lut12     // unsigned , default = 12
6677 #define   NR2_EDGE2BETA_LUT0                       (0x1762)
6678 #define P_NR2_EDGE2BETA_LUT0                       (volatile uint32_t *)((0x1762  << 2) + 0xff900000)
6679 //Bit 31:24        reg_matnr_edge2beta_lut3    // unsigned , default = 128
6680 //Bit 23:16        reg_matnr_edge2beta_lut2    // unsigned , default = 160
6681 //Bit 15: 8        reg_matnr_edge2beta_lut1    // unsigned , default = 224
6682 //Bit  7: 0        reg_matnr_edge2beta_lut0    // unsigned , default = 255
6683 #define   NR2_EDGE2BETA_LUT1                       (0x1763)
6684 #define P_NR2_EDGE2BETA_LUT1                       (volatile uint32_t *)((0x1763  << 2) + 0xff900000)
6685 //Bit 31:24        reg_matnr_edge2beta_lut7    // unsigned , default = 4
6686 //Bit 23:16        reg_matnr_edge2beta_lut6    // unsigned , default = 16
6687 //Bit 15: 8        reg_matnr_edge2beta_lut5    // unsigned , default = 32
6688 //Bit  7: 0        reg_matnr_edge2beta_lut4    // unsigned , default = 80
6689 #define   NR2_EDGE2BETA_LUT2                       (0x1764)
6690 #define P_NR2_EDGE2BETA_LUT2                       (volatile uint32_t *)((0x1764  << 2) + 0xff900000)
6691 //Bit 31:24        reg_matnr_edge2beta_lut11    // unsigned , default = 0
6692 //Bit 23:16        reg_matnr_edge2beta_lut10    // unsigned , default = 0
6693 //Bit 15: 8        reg_matnr_edge2beta_lut9    // unsigned , default = 0
6694 //Bit  7: 0        reg_matnr_edge2beta_lut8    // unsigned , default = 2
6695 #define   NR2_EDGE2BETA_LUT3                       (0x1765)
6696 #define P_NR2_EDGE2BETA_LUT3                       (volatile uint32_t *)((0x1765  << 2) + 0xff900000)
6697 //Bit 31:24        reg_matnr_edge2beta_lut15    // unsigned , default = 0
6698 //Bit 23:16        reg_matnr_edge2beta_lut14    // unsigned , default = 0
6699 //Bit 15: 8        reg_matnr_edge2beta_lut13    // unsigned , default = 0
6700 //Bit  7: 0        reg_matnr_edge2beta_lut12    // unsigned , default = 0
6701 #define   NR2_MOTION2BETA_LUT0                     (0x1766)
6702 #define P_NR2_MOTION2BETA_LUT0                     (volatile uint32_t *)((0x1766  << 2) + 0xff900000)
6703 //Bit 31:24        reg_matnr_mot2beta_lut3     // unsigned , default = 32
6704 //Bit 23:16        reg_matnr_mot2beta_lut2     // unsigned , default = 16
6705 //Bit 15: 8        reg_matnr_mot2beta_lut1     // unsigned , default = 4
6706 //Bit  7: 0        reg_matnr_mot2beta_lut0     // unsigned , default = 0
6707 #define   NR2_MOTION2BETA_LUT1                     (0x1767)
6708 #define P_NR2_MOTION2BETA_LUT1                     (volatile uint32_t *)((0x1767  << 2) + 0xff900000)
6709 //Bit 31:24        reg_matnr_mot2beta_lut7     // unsigned , default = 196
6710 //Bit 23:16        reg_matnr_mot2beta_lut6     // unsigned , default = 128
6711 //Bit 15: 8        reg_matnr_mot2beta_lut5     // unsigned , default = 64
6712 //Bit  7: 0        reg_matnr_mot2beta_lut4     // unsigned , default = 48
6713 #define   NR2_MOTION2BETA_LUT2                     (0x1768)
6714 #define P_NR2_MOTION2BETA_LUT2                     (volatile uint32_t *)((0x1768  << 2) + 0xff900000)
6715 //Bit 31:24        reg_matnr_mot2beta_lut11     // unsigned , default = 255
6716 //Bit 23:16        reg_matnr_mot2beta_lut10     // unsigned , default = 255
6717 //Bit 15: 8        reg_matnr_mot2beta_lut9     // unsigned , default = 240
6718 //Bit  7: 0        reg_matnr_mot2beta_lut8     // unsigned , default = 224
6719 #define   NR2_MOTION2BETA_LUT3                     (0x1769)
6720 #define P_NR2_MOTION2BETA_LUT3                     (volatile uint32_t *)((0x1769  << 2) + 0xff900000)
6721 //Bit 31:24        reg_matnr_mot2beta_lut15     // unsigned , default = 255
6722 //Bit 23:16        reg_matnr_mot2beta_lut14     // unsigned , default = 255
6723 //Bit 15: 8        reg_matnr_mot2beta_lut13     // unsigned , default = 255
6724 //Bit  7: 0        reg_matnr_mot2beta_lut12     // unsigned , default = 255
6725 //========== nr2_snr_regs register end ==========//
6726 //========== nr2_tnr_regs register begin ==========//
6727 #define   NR2_IIR_CTRL                             (0x174e)
6728 #define P_NR2_IIR_CTRL                             (volatile uint32_t *)((0x174e  << 2) + 0xff900000)
6729 //Bit 31:16        reserved
6730 //Bit 15:14        reg_lp_iir_8bit_mode      // unsigned , default = 0  10bits; 1: 9bits; 2: 8bits 3: 7bits
6731 //Bit 13:12        reg_hp_iir_mute_mode      // unsigned , default = 0
6732 //Bit 11: 8        reg_hp_iir_mute_thrd      // unsigned , default = 0
6733 //Bit  7: 6        reg_hp_iir_8bit_mode      // unsigned , default = 0
6734 //Bit  5: 4        reg_lp_iir_mute_mode      // unsigned , default = 0
6735 //Bit  3: 0        reg_lp_iir_mute_thrd      // unsigned , default = 0
6736 #define   NR2_MATNR_MTN_CRTL                       (0x176a)
6737 #define P_NR2_MATNR_MTN_CRTL                       (volatile uint32_t *)((0x176a  << 2) + 0xff900000)
6738 //Bit 31:20        reserved
6739 //Bit 19:18        reg_matnr_vmtn_use_mode   // unsigned , default = 0  0- Vmot, 1- Ymot/2 + (Umot+Vmot)/4; 2- Ymot/2 + max(Umot,Vmot)/2; 3- max(Ymot,Umot, Vmot)
6740 //Bit 17:16        reg_matnr_umtn_use_mode   // unsigned , default = 0  0- Umot, 1- Ymot/2 + (Umot+Vmot)/4; 2- Ymot/2 + max(Umot,Vmot)/2; 3- max(Ymot,Umot, Vmot)
6741 //Bit 15:14        reg_matnr_ymtn_use_mode   // unsigned , default = 0  0- Ymot, 1- Ymot/2 + (Umot+Vmot)/4; 2- Ymot/2 + max(Umot,Vmot)/2; 3- max(Ymot,Umot, Vmot)
6742 //Bit 13:12        reg_matnr_mtn_txt_mode    // unsigned , default = 1
6743 //Bit 11            reserved
6744 //Bit 10: 8        reg_matnr_mtn_cor_mode    // unsigned , default = 1  changes)
6745 //Bit  7: 4        reg_matnr_mtn_hpf_mode    // unsigned , default = 8  extend to u4 for nr4, 0- 1x1; 1: 1x3; 2: 1x5; 3: 3x3; 4: 3o3; 5: 3x5, 6:3x3 SAD, 7: 5x3 SAD, 8-15: drt adaptive
6746 //Bit  3            reserved
6747 //Bit  2: 0        reg_matnr_mtn_lpf_mode    // unsigned , default = 6  0- 1x1; 1: 1x3; 2: 1x5; 3: 3x3; 4: 3o3; 5: 3x5, 6,7: drt adaptive
6748 #define   NR2_MATNR_MTN_CRTL2                      (0x176b)
6749 #define P_NR2_MATNR_MTN_CRTL2                      (volatile uint32_t *)((0x176b  << 2) + 0xff900000)
6750 //Bit 31:19        reserved
6751 //Bit 18:16        reg_matnr_iir_bs_ymode      // unsigned , default = 6  LPF~~ 0- 1x1; 1: 1x3; 2: 1x5; 3: 3x3; 4: 3o3; 5: 3x5; 6/7: 0
6752 //Bit 15: 8        reg_matnr_mtnb_alplp_cgain  // unsigned , default = 64  to 32
6753 //Bit  7: 0        reg_matnr_mtnb_alplp_ygain  // unsigned , default = 64  to 32
6754 #define   NR2_MATNR_MTN_COR                        (0x176c)
6755 #define P_NR2_MATNR_MTN_COR                        (volatile uint32_t *)((0x176c  << 2) + 0xff900000)
6756 //Bit 31:16        reserved
6757 //Bit 15:12        reg_matnr_mtn_cor_cofst   // unsigned , default = 3  Offset for Chroma Motion.
6758 //Bit 11: 8        reg_matnr_mtn_cor_cgain   // unsigned , default = 3  to texture based coring for Chroma Motion. Normalized to 16 as 1
6759 //Bit  7: 4        reg_matnr_mtn_cor_yofst   // unsigned , default = 3  Offset for Luma Motion.
6760 //Bit  3: 0        reg_matnr_mtn_cor_ygain   // unsigned , default = 3  to texture based coring for Luma Motion. Normalized to 16 as 1
6761 #define   NR2_MATNR_MTN_GAIN                       (0x176d)
6762 #define P_NR2_MATNR_MTN_GAIN                       (volatile uint32_t *)((0x176d  << 2) + 0xff900000)
6763 //Bit 31:24        reg_matnr_mtn_hp_cgain    // unsigned , default = 64  to MotHPF_yuv[k] Chrm channel for motion calculation, normalized to 64 as 1
6764 //Bit 23:16        reg_matnr_mtn_hp_ygain    // unsigned , default = 64  to MotHPF_yuv[k] Luma channel for motion calculation, normalized to 64 as 1
6765 //Bit 15: 8        reg_matnr_mtn_lp_cgain    // unsigned , default = 64  to MotLPF_yuv[k] Chrm channel for motion calculation, normalized to 32 as 1
6766 //Bit  7: 0        reg_matnr_mtn_lp_ygain    // unsigned , default = 64  to MotLPF_yuv[k] Luma channel for motion calculation, normalized to 32 as 1
6767 #define   NR2_MATNR_DEGHOST                        (0x176e)
6768 #define P_NR2_MATNR_DEGHOST                        (volatile uint32_t *)((0x176e  << 2) + 0xff900000)
6769 //Bit 31            reserved
6770 //Bit 30:28        reg_matnr_deghost_mode    // unsigned , default = 0  0:old_deghost; 1:soft_denoise & strong_deghost; 2:strong_denoise & soft_deghost; 3:strong_denoise & strong_deghost
6771 //Bit 27:25        reserved
6772 //Bit 24:20        reg_matnr_deghost_ygain   // unsigned , default = 4
6773 //Bit 19:17        reserved
6774 //Bit 16:12        reg_matnr_deghost_cgain   // unsigned , default = 4
6775 //Bit 11: 9        reserved
6776 //Bit  8           reg_matnr_deghost_en      // unsigned , default = 1  0: disable; 1: enable Enable signal for DeGhost function:0: disable; 1: enable
6777 //Bit  7: 4        reg_matnr_deghost_cos     // unsigned , default = 3  DeGhost Overshoot margin for UV channel, (X2 to u10 scale)
6778 //Bit  3: 0        reg_matnr_deghost_yos     // unsigned , default = 3  DeGhost Overshoot margin for Luma channel, (X2 to u10 scale)
6779 #define   NR2_MATNR_ALPHALP_LUT0                   (0x176f)
6780 #define P_NR2_MATNR_ALPHALP_LUT0                   (volatile uint32_t *)((0x176f  << 2) + 0xff900000)
6781 //Bit 31:24        reg_matnr_alphalp_lut3    // unsigned , default = 64  low-pass filter alpha LUT
6782 //Bit 23:16        reg_matnr_alphalp_lut2    // unsigned , default = 128  low-pass filter alpha LUT
6783 //Bit 15: 8        reg_matnr_alphalp_lut1    // unsigned , default = 128  low-pass filter alpha LUT
6784 //Bit  7: 0        reg_matnr_alphalp_lut0    // unsigned , default = 128  low-pass filter alpha LUT
6785 #define   NR2_MATNR_ALPHALP_LUT1                   (0x1770)
6786 #define P_NR2_MATNR_ALPHALP_LUT1                   (volatile uint32_t *)((0x1770  << 2) + 0xff900000)
6787 //Bit 31:24        reg_matnr_alphalp_lut7    // unsigned , default = 255  low-pass filter alpha LUT
6788 //Bit 23:16        reg_matnr_alphalp_lut6    // unsigned , default = 128  low-pass filter alpha LUT
6789 //Bit 15: 8        reg_matnr_alphalp_lut5    // unsigned , default = 80  low-pass filter alpha LUT
6790 //Bit  7: 0        reg_matnr_alphalp_lut4    // unsigned , default = 64  low-pass filter alpha LUT
6791 #define   NR2_MATNR_ALPHALP_LUT2                   (0x1771)
6792 #define P_NR2_MATNR_ALPHALP_LUT2                   (volatile uint32_t *)((0x1771  << 2) + 0xff900000)
6793 //Bit 31:24        reg_matnr_alphalp_lut11   // unsigned , default = 255  low-pass filter alpha LUT
6794 //Bit 23:16        reg_matnr_alphalp_lut10   // unsigned , default = 255  low-pass filter alpha LUT
6795 //Bit 15: 8        reg_matnr_alphalp_lut9    // unsigned , default = 255  low-pass filter alpha LUT
6796 //Bit  7: 0        reg_matnr_alphalp_lut8    // unsigned , default = 255  low-pass filter alpha LUT
6797 #define   NR2_MATNR_ALPHALP_LUT3                   (0x1772)
6798 #define P_NR2_MATNR_ALPHALP_LUT3                   (volatile uint32_t *)((0x1772  << 2) + 0xff900000)
6799 //Bit 31:24        reg_matnr_alphalp_lut15   // unsigned , default = 255  low-pass filter alpha LUT
6800 //Bit 23:16        reg_matnr_alphalp_lut14   // unsigned , default = 255  low-pass filter alpha LUT
6801 //Bit 15: 8        reg_matnr_alphalp_lut13   // unsigned , default = 255  low-pass filter alpha LUT
6802 //Bit  7: 0        reg_matnr_alphalp_lut12   // unsigned , default = 255  low-pass filter alpha LUT
6803 #define   NR2_MATNR_ALPHAHP_LUT0                   (0x1773)
6804 #define P_NR2_MATNR_ALPHAHP_LUT0                   (volatile uint32_t *)((0x1773  << 2) + 0xff900000)
6805 //Bit 31:24        reg_matnr_alphahp_lut3    // unsigned , default = 64  high-pass filter alpha LUT
6806 //Bit 23:16        reg_matnr_alphahp_lut2    // unsigned , default = 128  high-pass filter alpha LUT
6807 //Bit 15: 8        reg_matnr_alphahp_lut1    // unsigned , default = 128  high-pass filter alpha LUT
6808 //Bit  7: 0        reg_matnr_alphahp_lut0    // unsigned , default = 128  high-pass filter alpha LUT
6809 #define   NR2_MATNR_ALPHAHP_LUT1                   (0x1774)
6810 #define P_NR2_MATNR_ALPHAHP_LUT1                   (volatile uint32_t *)((0x1774  << 2) + 0xff900000)
6811 //Bit 31:24        reg_matnr_alphahp_lut7    // unsigned , default = 255  high-pass filter alpha LUT
6812 //Bit 23:16        reg_matnr_alphahp_lut6    // unsigned , default = 128  high-pass filter alpha LUT
6813 //Bit 15: 8        reg_matnr_alphahp_lut5    // unsigned , default = 80  high-pass filter alpha LUT
6814 //Bit  7: 0        reg_matnr_alphahp_lut4    // unsigned , default = 64  high-pass filter alpha LUT
6815 #define   NR2_MATNR_ALPHAHP_LUT2                   (0x1775)
6816 #define P_NR2_MATNR_ALPHAHP_LUT2                   (volatile uint32_t *)((0x1775  << 2) + 0xff900000)
6817 //Bit 31:24        reg_matnr_alphahp_lut11   // unsigned , default = 255  high-pass filter alpha LUT
6818 //Bit 23:16        reg_matnr_alphahp_lut10   // unsigned , default = 255  high-pass filter alpha LUT
6819 //Bit 15: 8        reg_matnr_alphahp_lut9    // unsigned , default = 255  high-pass filter alpha LUT
6820 //Bit  7: 0        reg_matnr_alphahp_lut8    // unsigned , default = 255  high-pass filter alpha LUT
6821 #define   NR2_MATNR_ALPHAHP_LUT3                   (0x1776)
6822 #define P_NR2_MATNR_ALPHAHP_LUT3                   (volatile uint32_t *)((0x1776  << 2) + 0xff900000)
6823 //Bit 31:24        reg_matnr_alphahp_lut15   // unsigned , default = 255  high-pass filter alpha LUT
6824 //Bit 23:16        reg_matnr_alphahp_lut14   // unsigned , default = 255  high-pass filter alpha LUT
6825 //Bit 15: 8        reg_matnr_alphahp_lut13   // unsigned , default = 255  high-pass filter alpha LUT
6826 //Bit  7: 0        reg_matnr_alphahp_lut12   // unsigned , default = 255  high-pass filter alpha LUT
6827 #define   NR2_MATNR_MTNB_BRT                       (0x1777)
6828 #define P_NR2_MATNR_MTNB_BRT                       (volatile uint32_t *)((0x1777  << 2) + 0xff900000)
6829 //Bit 31:28        reg_matnr_mtnb_brt_limt_hi  // unsigned , default = 0
6830 //Bit 27:24        reg_matnr_mtnb_brt_slop_hi  // unsigned , default = 0
6831 //Bit 23:16        reg_matnr_mtnb_brt_thrd_hi  // unsigned , default = 160
6832 //Bit 15:12        reg_matnr_mtnb_brt_limt_lo  // unsigned , default = 6
6833 //Bit 11: 8        reg_matnr_mtnb_brt_slop_lo  // unsigned , default = 6
6834 //Bit  7: 0        reg_matnr_mtnb_brt_thrd_lo  // unsigned , default = 100
6835 //========== nr2_tnr_regs register end ==========//
6836 // synopsys translate_off
6837 // synopsys translate_on
6838 //
6839 // Closing file:  nr2_regs.h
6840 //
6841 #define   DI_EI_DRT_CTRL                           (0x1778)
6842 #define P_DI_EI_DRT_CTRL                           (volatile uint32_t *)((0x1778  << 2) + 0xff900000)
6843 //Bit 31,     reg_rectg_en      ;u1
6844 //Bit 30,     reg_recbld_en     ;u1
6845 //Bit 29:28,  reg_rectg_ws      ;u2
6846 //Bit 27,     reserved
6847 //Bit 26:24,  reg_abq_margin    ;u3
6848 //Bit 23,     reserved
6849 //Bit 22:20,  reg_trend_mg      ;u3
6850 //Bit 19:16,  reg_int_d16xc1    ;u4
6851 //Bit 15:14,  reserved
6852 //Bit 13: 8,  reg_int_chlmt1    ;u6
6853 //Bit  7,     reserved
6854 //Bit  6: 4,  reg_nscheck_thrd  ;u3
6855 //Bit  3,     reserved
6856 //Bit  2: 0,  reg_horsl_ws      ;u3
6857 #define   DI_EI_DRT_PIXTH                          (0x1779)
6858 #define P_DI_EI_DRT_PIXTH                          (volatile uint32_t *)((0x1779  << 2) + 0xff900000)
6859 //Bit 31:24,  reg_min_pix        ;u8
6860 //Bit 23:16,  reg_max_pix        ;u8
6861 //Bit 15: 8,  reg_dmaxmin_thrdma ;u8
6862 //Bit  7: 0,  reg_dmaxmin_thrdmi ;u8
6863 #define   DI_EI_DRT_CORRPIXTH                      (0x177a)
6864 #define P_DI_EI_DRT_CORRPIXTH                      (volatile uint32_t *)((0x177a  << 2) + 0xff900000)
6865 //Bit 31:24,  reg_newcorrpix_maxthrd ;u8
6866 //Bit 23:16,  reg_corrpix_diffthrd   ;u8
6867 //Bit 15: 8,  reg_corrpix_minthrd    ;u8
6868 //Bit  7: 0,  reg_corrpix_maxthrd    ;u8
6869 #define   DI_EI_DRT_RECTG_WAVE                     (0x177b)
6870 #define P_DI_EI_DRT_RECTG_WAVE                     (volatile uint32_t *)((0x177b  << 2) + 0xff900000)
6871 //Bit 31:29,  reserved
6872 //Bit 28:24,  reg_max_pixwave  ;u5
6873 //Bit 23:21,  reserved
6874 //Bit 20:16,  reg_pix_wave     ;u5
6875 //Bit 15:14,  reserved
6876 //Bit 13: 8,  reg_maxdrt_thrd  ;u6
6877 //Bit  7: 0,  reg_wave_thrd    ;u8
6878 #define   DI_EI_DRT_PIX_DIFFTH                     (0x177c)
6879 #define P_DI_EI_DRT_PIX_DIFFTH                     (volatile uint32_t *)((0x177c  << 2) + 0xff900000)
6880 //Bit 31:24,  reg_newraw_thrd    ;u8
6881 //Bit 23:16,  reg_tb_max_thrd    ;u8
6882 //Bit 15: 8,  reg_diffpix_thrd   ;u8
6883 //Bit  7: 6,  reserved
6884 //Bit  5: 0,  reg_bilt_trendnumt ;u8
6885 #define   DI_EI_DRT_UNBITREND_TH                   (0x177d)
6886 #define P_DI_EI_DRT_UNBITREND_TH                   (volatile uint32_t *)((0x177d  << 2) + 0xff900000)
6887 //Bit 31:29,  reserved
6888 //Bit 28:24,  reg_trend_numb     ;u5
6889 //Bit 23:21,  reserved
6890 //Bit 20:16,  reg_bilt_trendnum  ;u5
6891 //Bit 15:13,  reserved
6892 //Bit 12: 8,  reg_unil_trendnumt ;u5
6893 //Bit  7: 5,  reserved
6894 //Bit  4: 0,  reg_trend_num      ;u5
6895 #define   NR2_CONV_MODE                            (0x177f)
6896 #define P_NR2_CONV_MODE                            (volatile uint32_t *)((0x177f  << 2) + 0xff900000)
6897 //Bit 3:2,  Conv_c444_mode  The format convert mode about 422 to 444 when data read out line buffer
6898 //Bit 1:0,  Conv_c422_mode  the format convert mode about 444 to 422 when data write to line buffer
6899 //// NR2 REG DEFINE END ////
6900 //// DET 3D REG DEFINE BEGIN ////
6901 //// 8'h34~8'h3f | 8'h80~8'h8f | 0x9a-0x9b
6902 //
6903 // Reading file:  det3d_regs.h
6904 //
6905 //// DET 3D REG DEFINE BEGIN ////
6906 //// 8'h34~8'h3f
6907 //// DET 3D REG DEFINE END ////
6908 #define   DET3D_MOTN_CFG                           (0x1734)
6909 #define P_DET3D_MOTN_CFG                           (volatile uint32_t *)((0x1734  << 2) + 0xff900000)
6910 //Bit 16,   reg_det3d_intr_en           Det3d interrupt enable
6911 //Bit 9:8,  reg_Det3D_Motion_Mode       U2  Different mode for Motion Calculation of Luma and Chroma:
6912 //                                      0: MotY, 1: (2*MotY + (MotU + MotV))/4; 2: Max(MotY, MotU,MotV); 3:Max(MotY, (MotU+MotV)/2)
6913 //Bit 7:4,  reg_Det3D_Motion_Core_Rate  U4  K Rate to Edge (HV) details for coring of Motion Calculations, normalized to 32
6914 //Bit 3:0,  reg_Det3D_Motion_Core_Thrd  U4  2X: static coring value for Motion Detection.
6915 #define   DET3D_CB_CFG                             (0x1735)
6916 #define P_DET3D_CB_CFG                             (volatile uint32_t *)((0x1735  << 2) + 0xff900000)
6917 //Bit 7:4,  reg_Det3D_ChessBd_HV_ofst   U4,  Noise immune offset for Horizotnal or vertical combing detection.
6918 //Bit 3:0,  reg_Det3D_ChessBd_NHV_ofst  U4,  Noise immune offset for NON-Horizotnal or vertical combing detection.
6919 #define   DET3D_SPLT_CFG                           (0x1736)
6920 #define P_DET3D_SPLT_CFG                           (volatile uint32_t *)((0x1736  << 2) + 0xff900000)
6921 //Bit 7:4,  reg_Det3D_SplitValid_ratio  U4,  Ratio between max_value and the avg_value of the edge mapping for split line valid detection.
6922 //                                      The smaller of this value, the easier of the split line detected.
6923 //Bit 3:0,  reg_Det3D_AvgIdx_ratio      U4,  Ratio to the avg_value of the edge mapping for split line position estimation.
6924 //                                      The smaller of this value, the more samples will be added to the estimation.
6925 #define   DET3D_HV_MUTE                            (0x1737)
6926 #define P_DET3D_HV_MUTE                            (volatile uint32_t *)((0x1737  << 2) + 0xff900000)
6927 //Bit 23:20, reg_Det3D_Edge_Ver_Mute    U4  X2: Horizontal pixels to be mute from H/V Edge calculation Top and Bottom border part.
6928 //Bit 19:16, reg_Det3D_Edge_Hor_Mute    U4  X2: Horizontal pixels to be mute from H/V Edge calculation Left and right border part.
6929 //Bit 15:12, reg_Det3D_ChessBd_Ver_Mute U4  X2: Horizontal pixels to be mute from ChessBoard statistics calculation in middle part
6930 //Bit 11:8,  reg_Det3D_ChessBd_Hor_Mute U4  X2: Horizontal pixels to be mute from ChessBoard statistics calculation in middle part
6931 //Bit 7:4,   reg_Det3D_STA8X8_Ver_Mute  U4  1X: Vertical pixels to be mute from 8x8 statistics calculation in each block.
6932 //Bit 3:0,   reg_Det3D_STA8X8_Hor_Mute  U4  1X: Horizontal pixels to be mute from 8x8 statistics calculation in each block.
6933 #define   DET3D_MAT_STA_P1M1                       (0x1738)
6934 #define P_DET3D_MAT_STA_P1M1                       (volatile uint32_t *)((0x1738  << 2) + 0xff900000)
6935 //Bit 31:24, reg_Det3D_STA8X8_P1_K0_R8  U8  SAD to SAI ratio to decide P1, normalized to 256 (0.8)
6936 //Bit 23:16, reg_Det3D_STA8X8_P1_K1_R7  U8  SAD to ENG ratio to decide P1, normalized to 128 (0.5)
6937 //Bit 15:8,  reg_Det3D_STA8X8_M1_K0_R6  U8  SAD to SAI ratio to decide M1, normalized to 64  (1.1)
6938 //Bit 7:0,   reg_Det3D_STA8X8_M1_K1_R6  U8  SAD to ENG ratio to decide M1, normalized to 64  (0.8)
6939 #define   DET3D_MAT_STA_P1TH                       (0x1739)
6940 #define P_DET3D_MAT_STA_P1TH                       (volatile uint32_t *)((0x1739  << 2) + 0xff900000)
6941 //Bit 23:16, reg_Det3D_STAYUV_P1_TH_L4  U8  SAD to ENG Thrd offset to decide P1, X16         (100)
6942 //Bit 15:8,  reg_Det3D_STAEDG_P1_TH_L4  U8  SAD to ENG Thrd offset to decide P1, X16         (80)
6943 //Bit 7:0,   reg_Det3D_STAMOT_P1_TH_L4  U8  SAD to ENG Thrd offset to decide P1, X16         (48)
6944 #define   DET3D_MAT_STA_M1TH                       (0x173a)
6945 #define P_DET3D_MAT_STA_M1TH                       (volatile uint32_t *)((0x173a  << 2) + 0xff900000)
6946 //Bit 23:16, reg_Det3D_STAYUV_M1_TH_L4  U8  SAD to ENG Thrd offset to decide M1, X16         (100)
6947 //Bit 15:8,  reg_Det3D_STAEDG_M1_TH_L4  U8  SAD to ENG Thrd offset to decide M1, X16         (80)
6948 //Bit 7:0,   reg_Det3D_STAMOT_M1_TH_L4  U8  SAD to ENG Thrd offset to decide M1, X16         (64)
6949 #define   DET3D_MAT_STA_RSFT                       (0x173b)
6950 #define P_DET3D_MAT_STA_RSFT                       (volatile uint32_t *)((0x173b  << 2) + 0xff900000)
6951 //Bit 5:4,   reg_Det3D_STAYUV_RSHFT     U2  YUV statistics SAD and SAI calculation result right shift bits to accommodate the 12bits clipping:
6952 //                                      0: mainly for images <=720x480: 1: mainly for images <=1366x768: 2: mainly for images <=1920X1080: 2; 3: other higher resolutions
6953 //Bit 3:2,   reg_Det3D_STAEDG_RSHFT     U2  Horizontal and Vertical Edge Statistics SAD and SAI calculation result right shift bits to accommodate the 12bits clipping:
6954 //                                      0: mainly for images <=720x480: 1: mainly for images <=1366x768: 2: mainly for images <=1920X1080: 2; 3: other higher resolutions
6955 //Bit 1:0,   reg_Det3D_STAMOT_RSHFT     U2  Motion SAD and SAI calculation result right shift bits to accommodate the 12bits clipping:
6956 //                                      0: mainly for images <=720x480: 1: mainly for images <=1366x768: 2: mainly for images <=1920X1080: 2; 3: other higher resolutions
6957 #define   DET3D_MAT_SYMTC_TH                       (0x173c)
6958 #define P_DET3D_MAT_SYMTC_TH                       (volatile uint32_t *)((0x173c  << 2) + 0xff900000)
6959 //Bit 31:24, reg_Det3D_STALUM_symtc_Th    U8  threshold to decide if the Luma statistics is TB or LR symmetric.
6960 //Bit 23:16, reg_Det3D_STACHR_symtc_Th    U8  threshold to decide if the Chroma (UV) statistics is TB or LR symmetric.
6961 //Bit 15:8,  reg_Det3D_STAEDG_symtc_Th    U8  threshold to decide if the Horizontal and Vertical Edge statistics is TB or LR symmetric.
6962 //Bit 7:0,   reg_Det3D_STAMOT_symtc_Th    U8  threshold to decide if the Motion statistics is TB or LR symmetric.
6963 #define   DET3D_RO_DET_CB_HOR                      (0x173d)
6964 #define P_DET3D_RO_DET_CB_HOR                      (volatile uint32_t *)((0x173d  << 2) + 0xff900000)
6965 //Bit 31:16, RO_Det3D_ChessBd_NHor_value    U16  X64: number of Pixels of Horizontally Surely NOT matching Chessboard pattern.
6966 //Bit 15:0,  RO_Det3D_ChessBd_Hor_value     U16  X64: number of Pixels of Horizontally Surely matching Chessboard pattern.
6967 #define   DET3D_RO_DET_CB_VER                      (0x173e)
6968 #define P_DET3D_RO_DET_CB_VER                      (volatile uint32_t *)((0x173e  << 2) + 0xff900000)
6969 //Bit 31:16, RO_Det3D_ChessBd_NVer_value    U16  X64: number of Pixels of Vertically Surely NOT matching Chessboard pattern.
6970 //Bit 15:0,  RO_Det3D_ChessBd_Ver_value     U16  X64: number of Pixels of Vertically Surely matching Chessboard pattern.
6971 #define   DET3D_RO_SPLT_HT                         (0x173f)
6972 #define P_DET3D_RO_SPLT_HT                         (volatile uint32_t *)((0x173f  << 2) + 0xff900000)
6973 //Bit 24,    RO_Det3D_Split_HT_valid    U1  horizontal LR split border detected valid signal for top half picture
6974 //Bit 20:16, RO_Det3D_Split_HT_pxnum    U5  number of pixels included for the LR split position estimation for top half picture
6975 //Bit 9:0,   RO_Det3D_Split_HT_idxX4    S10  X4: horizontal pixel shifts of LR split position to the (ColMax/2) for top half picture
6976 //// DET 3D REG DEFINE BEGIN ////
6977 ////  8'h80~8'h8f
6978 #define   DET3D_RO_SPLT_HB                         (0x1780)
6979 #define P_DET3D_RO_SPLT_HB                         (volatile uint32_t *)((0x1780  << 2) + 0xff900000)
6980 //Bit 24,       RO_Det3D_Split_HB_valid     U1   horizontal LR split border detected valid signal for top half picture
6981 //Bit 20:16,    RO_Det3D_Split_HB_pxnum     U5   number of pixels included for the LR split position estimation for top half picture
6982 //Bit  9: 0,    RO_Det3D_Split_HB_idxX4     S10  X4: horizontal pixel shifts of LR split position to the (ColMax/2) for top half picture
6983 #define   DET3D_RO_SPLT_VL                         (0x1781)
6984 #define P_DET3D_RO_SPLT_VL                         (volatile uint32_t *)((0x1781  << 2) + 0xff900000)
6985 //Bit 24,       RO_Det3D_Split_VL_valid     U1   horizontal LR split border detected valid signal for top half picture
6986 //Bit 20:16,    RO_Det3D_Split_VL_pxnum     U5   number of pixels included for the LR split position estimation for top half picture
6987 //Bit  9: 0,    RO_Det3D_Split_VL_idxX4     S10  X4: horizontal pixel shifts of LR split position to the (ColMax/2) for top half picture
6988 #define   DET3D_RO_SPLT_VR                         (0x1782)
6989 #define P_DET3D_RO_SPLT_VR                         (volatile uint32_t *)((0x1782  << 2) + 0xff900000)
6990 //Bit 24   ,    RO_Det3D_Split_VR_valid     U1   horizontal LR split border detected valid signal for top half picture
6991 //Bit 20:16,    RO_Det3D_Split_VR_pxnum     U5   number of pixels included for the LR split position estimation for top half picture
6992 //Bit  9: 0,    RO_Det3D_Split_VR_idxX4     S10  X4: horizontal pixel shifts of LR split position to the (ColMax/2) for top half picture
6993 #define   DET3D_RO_MAT_LUMA_LR                     (0x1783)
6994 #define P_DET3D_RO_MAT_LUMA_LR                     (volatile uint32_t *)((0x1783  << 2) + 0xff900000)
6995 //Bit 15:0, RO_Luma_LR_score     S2*8  LUMA statistics left right decision score for each band (8bands vertically),
6996 //                               it can be -1/0/1:-1: most likely not LR symmetric 0: not sure 1: most likely LR symmetric
6997 //Bit 7:0,  RO_Luma_LR_symtc     U1*8  Luma statistics left right pure symmetric for each band (8bands vertically),
6998 //                               it can be 0/1: 0: not sure 1: most likely LR is pure symmetric
6999 //Bit 4:0,  RO_Luma_LR_sum       S5  Total score of 8x8 Luma statistics for LR like decision,
7000 //                               the larger this score, the more confidence that this is a LR 3D video. It is sum of  RO_Luma_LR_score[0~7]
7001 #define   DET3D_RO_MAT_LUMA_TB                     (0x1784)
7002 #define P_DET3D_RO_MAT_LUMA_TB                     (volatile uint32_t *)((0x1784  << 2) + 0xff900000)
7003 //Bit 15:0, RO_Luma_TB_score     S2*8  LUMA statistics Top/Bottom decision score for each band (8bands Horizontally),
7004 //Bit 7:0,  RO_Luma_TB_symtc     Luma statistics Top/Bottompure symmetric for each band (8bands Horizontally),
7005 //Bit 4:0,  RO_Luma_TB_sum       Total score of 8x8 Luma statistics for TB like decision,
7006 #define   DET3D_RO_MAT_CHRU_LR                     (0x1785)
7007 #define P_DET3D_RO_MAT_CHRU_LR                     (volatile uint32_t *)((0x1785  << 2) + 0xff900000)
7008 //Bit 15:0, RO_ChrU_LR_score    S2*8  LUMA statistics left right decision score for each band (8bands vertically),
7009 //Bit 7:0,  RO_ChrU_LR_symtc    CHRU statistics left right pure symmetric for each band (8bands vertically),
7010 //Bit 4:0,  RO_ChrU_LR_sum      Total score of 8x8 ChrU statistics for LR like decision,
7011 #define   DET3D_RO_MAT_CHRU_TB                     (0x1786)
7012 #define P_DET3D_RO_MAT_CHRU_TB                     (volatile uint32_t *)((0x1786  << 2) + 0xff900000)
7013 //Bit 15:0, RO_ChrU_TB_score    S2*8  CHRU statistics Top/Bottom decision score for each band (8bands Horizontally)
7014 //Bit 7:0,  RO_ChrU_TB_symtc    CHRU statistics Top/Bottompure symmetric for each band (8bands Horizontally)
7015 //Bit 4:0,  RO_ChrU_TB_sum      Total score of 8x8 ChrU statistics for TB like decision
7016 #define   DET3D_RO_MAT_CHRV_LR                     (0x1787)
7017 #define P_DET3D_RO_MAT_CHRV_LR                     (volatile uint32_t *)((0x1787  << 2) + 0xff900000)
7018 //Bit 15:0, RO_ChrV_LR_score    S2*8  CHRUstatistics left right decision score for each band (8bands vertically)
7019 //Bit 7:0,  RO_ChrV_LR_symtc    CHRV statistics left right pure symmetric for each band (8bands vertically)
7020 //Bit 4:0,  RO_ChrV_LR_sum      Total score of 8x8 ChrV statistics for LR like decision
7021 #define   DET3D_RO_MAT_CHRV_TB                     (0x1788)
7022 #define P_DET3D_RO_MAT_CHRV_TB                     (volatile uint32_t *)((0x1788  << 2) + 0xff900000)
7023 //Bit 15:0, RO_ChrV_TB_score    CHRV statistics Top/Bottom decision score for each band (8bands Horizontally)
7024 //Bit 7:0,  RO_ChrV_TB_symtc    CHRV statistics Top/Bottompure symmetric for each band (8bands Horizontally)
7025 //Bit 4:0,  RO_ChrV_TB_sum      Total score of 8x8 ChrV statistics for TB like decision
7026 #define   DET3D_RO_MAT_HEDG_LR                     (0x1789)
7027 #define P_DET3D_RO_MAT_HEDG_LR                     (volatile uint32_t *)((0x1789  << 2) + 0xff900000)
7028 //Bit 15:0, RO_Hedg_LR_score    Horizontal Edge statistics left right decision score for each band (8bands vertically)
7029 //Bit 7:0,  RO_Hedg_LR_symtc    Horizontal Edge statistics left right pure symmetric for each band (8bands vertically)
7030 //Bit 4:0,  RO_Hedg_LR_sum      Total score of 8x8 Hedg statistics for LR like decision
7031 #define   DET3D_RO_MAT_HEDG_TB                     (0x178a)
7032 #define P_DET3D_RO_MAT_HEDG_TB                     (volatile uint32_t *)((0x178a  << 2) + 0xff900000)
7033 //Bit 15:0, RO_Hedg_TB_score    Horizontal Edge statistics Top/Bottom decision score for each band (8bands Horizontally)
7034 //Bit 7:0,  RO_Hedg_TB_symtc    Horizontal Edge statistics Top/Bottompure symmetric for each band (8bands Horizontally)
7035 //Bit 4:0,  RO_Hedg_TB_sum      Total score of 8x8 Hedg statistics for TB like decision
7036 #define   DET3D_RO_MAT_VEDG_LR                     (0x178b)
7037 #define P_DET3D_RO_MAT_VEDG_LR                     (volatile uint32_t *)((0x178b  << 2) + 0xff900000)
7038 //Bit 15:0, RO_Vedg_LR_score    Vertical Edge statistics left right decision score for each band (8bands vertically)
7039 //Bit 7:0,  RO_Vedg_LR_symtc    Vertical Edge statistics left right pure symmetric for each band (8bands vertically)
7040 //Bit 4:0,  RO_Vedg_LR_sum      Total score of 8x8 Vedg statistics for LR like decision
7041 #define   DET3D_RO_MAT_VEDG_TB                     (0x178c)
7042 #define P_DET3D_RO_MAT_VEDG_TB                     (volatile uint32_t *)((0x178c  << 2) + 0xff900000)
7043 //Bit 15:0, RO_Vedg_TB_score    Vertical Edge statistics Top/Bottom decision score for each band (8bands Horizontally)
7044 //Bit 7:0,  RO_Vedg_TB_symtc    Vertical Edge statistics Top/Bottompure symmetric for each band (8bands Horizontally)
7045 //Bit 4:0,  RO_Vedg_TB_sum      Total score of 8x8 Vedg statistics for TB like decision
7046 #define   DET3D_RO_MAT_MOTN_LR                     (0x178d)
7047 #define P_DET3D_RO_MAT_MOTN_LR                     (volatile uint32_t *)((0x178d  << 2) + 0xff900000)
7048 //Bit 15:0, RO_Motn_LR_score    Motion statistics left right decision score for each band (8bands vertically)
7049 //Bit 7:0,  RO_Motn_LR_symtc    Motion statistics left right pure symmetric for each band (8bands vertically)
7050 //Bit 4:0,  RO_Motn_LR_sum      Total score of 8x8 Motion statistics for LR like decision
7051 #define   DET3D_RO_MAT_MOTN_TB                     (0x178e)
7052 #define P_DET3D_RO_MAT_MOTN_TB                     (volatile uint32_t *)((0x178e  << 2) + 0xff900000)
7053 //Bit 15:0, RO_Motn_TB_score    Motion statistics Top/Bottom decision score for each band (8bands Horizontally)
7054 //Bit 7:0,  RO_Motn_TB_symtc    Motion statistics Top/Bottompure symmetric for each band (8bands Horizontally)
7055 //Bit 4:0,  RO_Motn_TB_sum      Total score of 8x8 Motion statistics for TB like decision
7056 #define   DET3D_RO_FRM_MOTN                        (0x178f)
7057 #define P_DET3D_RO_FRM_MOTN                        (volatile uint32_t *)((0x178f  << 2) + 0xff900000)
7058 //Bit 15:0, RO_Det3D_Frame_Motion   U16  frame based motion value sum for still image decision in FW.
7059 /// mat ram read enter addr
7060 #define   DET3D_RAMRD_ADDR_PORT                    (0x179a)
7061 #define P_DET3D_RAMRD_ADDR_PORT                    (volatile uint32_t *)((0x179a  << 2) + 0xff900000)
7062 #define   DET3D_RAMRD_DATA_PORT                    (0x179b)
7063 #define P_DET3D_RAMRD_DATA_PORT                    (volatile uint32_t *)((0x179b  << 2) + 0xff900000)
7064 //
7065 // Closing file:  det3d_regs.h
7066 //
7067 //   `define DET3D_RO_SPLT_HB            8'h80
7068 //   //Bit 24,      RO_Det3D_Split_HB_valid     U1   horizontal LR split border detected valid signal for top half picture
7069 //   //Bit 20:16,   RO_Det3D_Split_HB_pxnum     U5   number of pixels included for the LR split position estimation for top half picture
7070 //   //Bit  9: 0,   RO_Det3D_Split_HB_idxX4     S10  X4: horizontal pixel shifts of LR split position to the (ColMax/2) for top half picture
7071 //   `define DET3D_RO_SPLT_VL            8'h81
7072 //   //Bit 24,      RO_Det3D_Split_VL_valid     U1   horizontal LR split border detected valid signal for top half picture
7073 //   //Bit 20:16,   RO_Det3D_Split_VL_pxnum     U5   number of pixels included for the LR split position estimation for top half picture
7074 //   //Bit  9: 0,   RO_Det3D_Split_VL_idxX4     S10  X4: horizontal pixel shifts of LR split position to the (ColMax/2) for top half picture
7075 //   `define DET3D_RO_SPLT_VR            8'h82
7076 //   //Bit 24   ,   RO_Det3D_Split_VR_valid     U1   horizontal LR split border detected valid signal for top half picture
7077 //   //Bit 20:16,   RO_Det3D_Split_VR_pxnum     U5   number of pixels included for the LR split position estimation for top half picture
7078 //   //Bit  9: 0,   RO_Det3D_Split_VR_idxX4     S10  X4: horizontal pixel shifts of LR split position to the (ColMax/2) for top half picture
7079 //   `define DET3D_RO_MAT_LUMA_LR        8'h83
7080 //   //Bit 15:0,    RO_Luma_LR_score     S2*8  LUMA statistics left right decision score for each band (8bands vertically),
7081 //   //                               it can be -1/0/1:-1: most likely not LR symmetric 0: not sure 1: most likely LR symmetric
7082 //   //Bit 7:0, RO_Luma_LR_symtc     U1*8  Luma statistics left right pure symmetric for each band (8bands vertically),
7083 //   //                               it can be 0/1: 0: not sure 1: most likely LR is pure symmetric
7084 //   //Bit 4:0, RO_Luma_LR_sum       S5  Total score of 8x8 Luma statistics for LR like decision,
7085 //   //                               the larger this score, the more confidence that this is a LR 3D video. It is sum of  RO_Luma_LR_score[0~7]
7086 //   `define DET3D_RO_MAT_LUMA_TB        8'h84
7087 //   //Bit 15:0,    RO_Luma_TB_score     S2*8  LUMA statistics Top/Bottom decision score for each band (8bands Horizontally),
7088 //   //Bit 7:0, RO_Luma_TB_symtc     Luma statistics Top/Bottompure symmetric for each band (8bands Horizontally),
7089 //   //Bit 4:0, RO_Luma_TB_sum       Total score of 8x8 Luma statistics for TB like decision,
7090 //   `define DET3D_RO_MAT_CHRU_LR        8'h85
7091 //   //Bit 15:0,    RO_ChrU_LR_score    S2*8  LUMA statistics left right decision score for each band (8bands vertically),
7092 //   //Bit 7:0, RO_ChrU_LR_symtc    CHRU statistics left right pure symmetric for each band (8bands vertically),
7093 //   //Bit 4:0, RO_ChrU_LR_sum      Total score of 8x8 ChrU statistics for LR like decision,
7094 //   `define DET3D_RO_MAT_CHRU_TB        8'h86
7095 //   //Bit 15:0,    RO_ChrU_TB_score    S2*8  CHRU statistics Top/Bottom decision score for each band (8bands Horizontally)
7096 //   //Bit 7:0, RO_ChrU_TB_symtc    CHRU statistics Top/Bottompure symmetric for each band (8bands Horizontally)
7097 //   //Bit 4:0, RO_ChrU_TB_sum      Total score of 8x8 ChrU statistics for TB like decision
7098 //   `define DET3D_RO_MAT_CHRV_LR        8'h87
7099 //   //Bit 15:0,    RO_ChrV_LR_score    S2*8  CHRUstatistics left right decision score for each band (8bands vertically)
7100 //   //Bit 7:0, RO_ChrV_LR_symtc    CHRV statistics left right pure symmetric for each band (8bands vertically)
7101 //   //Bit 4:0, RO_ChrV_LR_sum      Total score of 8x8 ChrV statistics for LR like decision
7102 //   `define DET3D_RO_MAT_CHRV_TB        8'h88
7103 //   //Bit 15:0,    RO_ChrV_TB_score    CHRV statistics Top/Bottom decision score for each band (8bands Horizontally)
7104 //   //Bit 7:0, RO_ChrV_TB_symtc    CHRV statistics Top/Bottompure symmetric for each band (8bands Horizontally)
7105 //   //Bit 4:0, RO_ChrV_TB_sum      Total score of 8x8 ChrV statistics for TB like decision
7106 //   `define DET3D_RO_MAT_HEDG_LR        8'h89
7107 //   //Bit 15:0,    RO_Hedg_LR_score    Horizontal Edge statistics left right decision score for each band (8bands vertically)
7108 //   //Bit 7:0, RO_Hedg_LR_symtc    Horizontal Edge statistics left right pure symmetric for each band (8bands vertically)
7109 //   //Bit 4:0, RO_Hedg_LR_sum      Total score of 8x8 Hedg statistics for LR like decision
7110 //   `define DET3D_RO_MAT_HEDG_TB        8'h8a
7111 //   //Bit 15:0,    RO_Hedg_TB_score    Horizontal Edge statistics Top/Bottom decision score for each band (8bands Horizontally)
7112 //   //Bit 7:0, RO_Hedg_TB_symtc    Horizontal Edge statistics Top/Bottompure symmetric for each band (8bands Horizontally)
7113 //   //Bit 4:0, RO_Hedg_TB_sum      Total score of 8x8 Hedg statistics for TB like decision
7114 //   `define DET3D_RO_MAT_VEDG_LR        8'h8b
7115 //   //Bit 15:0,    RO_Vedg_LR_score    Vertical Edge statistics left right decision score for each band (8bands vertically)
7116 //   //Bit 7:0, RO_Vedg_LR_symtc    Vertical Edge statistics left right pure symmetric for each band (8bands vertically)
7117 //   //Bit 4:0, RO_Vedg_LR_sum      Total score of 8x8 Vedg statistics for LR like decision
7118 //   `define DET3D_RO_MAT_VEDG_TB        8'h8c
7119 //   //Bit 15:0,    RO_Vedg_TB_score    Vertical Edge statistics Top/Bottom decision score for each band (8bands Horizontally)
7120 //   //Bit 7:0, RO_Vedg_TB_symtc    Vertical Edge statistics Top/Bottompure symmetric for each band (8bands Horizontally)
7121 //   //Bit 4:0, RO_Vedg_TB_sum      Total score of 8x8 Vedg statistics for TB like decision
7122 //   `define DET3D_RO_MAT_MOTN_LR        8'h8d
7123 //   //Bit 15:0,    RO_Motn_LR_score    Motion statistics left right decision score for each band (8bands vertically)
7124 //   //Bit 7:0, RO_Motn_LR_symtc    Motion statistics left right pure symmetric for each band (8bands vertically)
7125 //   //Bit 4:0, RO_Motn_LR_sum      Total score of 8x8 Motion statistics for LR like decision
7126 //   `define DET3D_RO_MAT_MOTN_TB        8'h8e
7127 //   //Bit 15:0,    RO_Motn_TB_score    Motion statistics Top/Bottom decision score for each band (8bands Horizontally)
7128 //   //Bit 7:0, RO_Motn_TB_symtc    Motion statistics Top/Bottompure symmetric for each band (8bands Horizontally)
7129 //   //Bit 4:0, RO_Motn_TB_sum      Total score of 8x8 Motion statistics for TB like decision
7130 //   `define DET3D_RO_FRM_MOTN           8'h8f
7131 //   //Bit 15:0,    RO_Det3D_Frame_Motion   U16  frame based motion value sum for still image decision in FW.
7132 #define   DI_EI_CTRL10                             (0x1793)
7133 #define P_DI_EI_CTRL10                             (volatile uint32_t *)((0x1793  << 2) + 0xff900000)
7134 //bit 31:28,   reg_ei_caldrt_hstrrgchk_drtth
7135 //bit 27:24,   reg_ei_caldrt_hstrrgchk_frcverthrd
7136 //bit 23:20,   reg_ei_caldrt_hstrrgchk_mg
7137 //bit 19,      reg_ei_caldrt_hstrrgchk_1sidnul
7138 //bit 18,      reg_ei_caldrt_hstrrgchk_excpcnf
7139 //bit 17:16,   reg_ei_caldrt_hstrrgchk_ws
7140 //bit 15,      reg_ei_caldrt_hstrrgchk_en
7141 //bit 14:13,   reg_ei_caldrt_hpncheck_mode
7142 //bit 12,      reg_ei_caldrt_hpncheck_mute
7143 //bit 11:9,    reg_ei_caldrt_hcnfcheck_mg2
7144 //bit 8:6,     reg_ei_caldrt_hcnfcheck_mg1
7145 //bit 5:4,     reg_ei_caldrt_hcnfcheck_mode
7146 //bit 3:0,     reg_ei_caldrt_hcnfcheck_mg2
7147 #define   DI_NR_1_CTRL0                            (0x1794)
7148 #define P_DI_NR_1_CTRL0                            (volatile uint32_t *)((0x1794  << 2) + 0xff900000)
7149 #define   DI_NR_1_CTRL1                            (0x1795)
7150 #define P_DI_NR_1_CTRL1                            (volatile uint32_t *)((0x1795  << 2) + 0xff900000)
7151 #define   DI_NR_1_CTRL2                            (0x1796)
7152 #define P_DI_NR_1_CTRL2                            (volatile uint32_t *)((0x1796  << 2) + 0xff900000)
7153 #define   DI_NR_1_CTRL3                            (0x1797)
7154 #define P_DI_NR_1_CTRL3                            (volatile uint32_t *)((0x1797  << 2) + 0xff900000)
7155 #define   DI_EI_XWIN0                              (0x1798)
7156 #define P_DI_EI_XWIN0                              (volatile uint32_t *)((0x1798  << 2) + 0xff900000)
7157 //bit 27:16,   ei_xend0
7158 //bit 11:0,    ei_xstart0
7159 #define   DI_EI_XWIN1                              (0x1799)
7160 #define P_DI_EI_XWIN1                              (volatile uint32_t *)((0x1799  << 2) + 0xff900000)
7161 /// mat ram read enter addr
7162 //   `define DET3D_RAMRD_ADDR_PORT       8'h9a
7163 //   `define DET3D_RAMRD_DATA_PORT       8'h9b
7164 #define   NR2_CFR_PARA_CFG0                        (0x179c)
7165 #define P_NR2_CFR_PARA_CFG0                        (volatile uint32_t *)((0x179c  << 2) + 0xff900000)
7166 //Bit 8,    reg_CFR_CurDif_luma_mode    Current Field Top/Bot line Luma difference calculation mode
7167 //Bit 7:6,  reg_MACFR_frm_phase         U2  This will be a field based phase register that need to be set by FW phase to phase:
7168 //                                      this will be calculated based on dbdr_phase of the specific line of this frame.
7169 //                                      u1: dbdr_phase=1, center line is DB in current line;  dbdr_phase=2, center line is Dr in current line;
7170 //Bit 5:4,  reg_CFR_CurDif_tran_mode    U2  Current Field Top/Bot line Luma/Chroma transition level calculation mode,
7171 //Bit 3:2,  reg_CFR_alpha_mode          U2  Alpha selection mode for CFR block from curAlp and motAlp i.e. 0: motAlp; 1: (motAlp+curAlp)/2; 2: min(motAlp,curAlp); 3: max(motAlp,curAlp);
7172 //Bit 1:0,  reg_CFR_Motion_Luma_mode    U2  LumaMotion Calculation mode for MA-CFR. 0: top/bot Lumma motion;   1: middle Luma Motion 2: top/bot + middle motion; 3: max(top/tot motion, middle motion)
7173 #define   NR2_CFR_PARA_CFG1                        (0x179d)
7174 #define P_NR2_CFR_PARA_CFG1                        (volatile uint32_t *)((0x179d  << 2) + 0xff900000)
7175 //Bit 23:16,    reg_CFR_alpha_gain      gain to map muxed curAlp and motAlp to alpha that will be used for final blending.
7176 //Bit 15: 8,    reg_CFR_Motion_ofst     Offset to Motion to calculate the motAlp, e,g:motAlp= reg_CFR_Motion_ofst- Motion;This register can be seen as the level of motion that we consider it at moving.
7177 //Bit  7: 0,    reg_CFR_CurDif_gain     gain to CurDif to map to alpha, normalized to 32;
7178 //// DET 3D REG DEFINE END ////
7179 #define   DI_EI_CTRL11                             (0x179e)
7180 #define P_DI_EI_CTRL11                             (volatile uint32_t *)((0x179e  << 2) + 0xff900000)
7181 //bit 30:29,   reg_ei_amb_detect_mode
7182 //bit 28:24,   reg_ei_amb_detect_winth
7183 //bit 23:21,   reg_ei_amb_decide_rppth
7184 //bit 20:19,   reg_ei_retime_lastmappncnfltchk_drtth
7185 //bit 18:16,   reg_ei_retime_lastmappncnfltchk_mode
7186 //bit 15:14,   reg_ei_retime_lastmapvertfrcchk_mode
7187 //bit 13:12,   reg_ei_retime_lastvertfrcchk_mode
7188 //bit 11:8,    reg_ei_retime_lastpnchk_drtth
7189 //bit 6,       reg_ei_retime_lastpnchk_en
7190 //bit 5:4,     reg_ei_retime_mode
7191 //bit 3,       reg_ei_retime_last_en
7192 //bit 2,       reg_ei_retime_ab_en
7193 //bit 1,       reg_ei_caldrt_hstrvertfrcchk_en
7194 //bit 0,       reg_ei_caldrt_hstrrgchk_mode
7195 #define   DI_EI_CTRL12                             (0x179f)
7196 #define P_DI_EI_CTRL12                             (volatile uint32_t *)((0x179f  << 2) + 0xff900000)
7197 //bit 31:28,   reg_ei_drtdelay2_lmt
7198 //bit 27:26,   reg_ei_drtdelay2_notver_lrwin
7199 //bit 25:24,   reg_ei_drtdelay_mode
7200 //bit 23,      reg_ei_drtdelay2_mode
7201 //bit 22:20,   reg_ei_assign_xla_signm0th
7202 //bit 19,      reg_ei_assign_pkbiasvert_en
7203 //bit 18,      reg_ei_assign_xla_en
7204 //bit 17:16,   reg_ei_assign_xla_mode
7205 //bit 15:12,   reg_ei_assign_nlfilter_magin
7206 //bit 11:8,    reg_ei_localsearch_maxrange
7207 //bit 7:4,     reg_ei_xla_drtth
7208 //bit 3:0,     reg_ei_flatmsad_thrd
7209 #define   DI_CONTWR_X                              (0x17a0)
7210 #define P_DI_CONTWR_X                              (volatile uint32_t *)((0x17a0  << 2) + 0xff900000)
7211 #define   DI_CONTWR_Y                              (0x17a1)
7212 #define P_DI_CONTWR_Y                              (volatile uint32_t *)((0x17a1  << 2) + 0xff900000)
7213 #define   DI_CONTWR_CTRL                           (0x17a2)
7214 #define P_DI_CONTWR_CTRL                           (volatile uint32_t *)((0x17a2  << 2) + 0xff900000)
7215 #define   DI_CONTPRD_X                             (0x17a3)
7216 #define P_DI_CONTPRD_X                             (volatile uint32_t *)((0x17a3  << 2) + 0xff900000)
7217 #define   DI_CONTPRD_Y                             (0x17a4)
7218 #define P_DI_CONTPRD_Y                             (volatile uint32_t *)((0x17a4  << 2) + 0xff900000)
7219 #define   DI_CONTP2RD_X                            (0x17a5)
7220 #define P_DI_CONTP2RD_X                            (volatile uint32_t *)((0x17a5  << 2) + 0xff900000)
7221 #define   DI_CONTP2RD_Y                            (0x17a6)
7222 #define P_DI_CONTP2RD_Y                            (volatile uint32_t *)((0x17a6  << 2) + 0xff900000)
7223 #define   DI_CONTRD_CTRL                           (0x17a7)
7224 #define P_DI_CONTRD_CTRL                           (volatile uint32_t *)((0x17a7  << 2) + 0xff900000)
7225 #define   DI_EI_CTRL13                             (0x17a8)
7226 #define P_DI_EI_CTRL13                             (volatile uint32_t *)((0x17a8  << 2) + 0xff900000)
7227 //bit 27:24,   reg_ei_int_drt2x_chrdrt_limit
7228 //bit 23:20,   reg_ei_int_drt16x_core
7229 //bit 19:16,   reg_ei_int_drtdelay2_notver_cancv
7230 //bit 15:8,    reg_ei_int_drtdelay2_notver_sadth
7231 //bit 7:0,     reg_ei_int_drtdelay2_vlddrt_sadth
7232 #define   DI_MTN_1_CTRL6                           (0x17a9)
7233 #define P_DI_MTN_1_CTRL6                           (volatile uint32_t *)((0x17a9  << 2) + 0xff900000)
7234 //bit 31:24,   mtn_m1b_extnd
7235 //bit 23:16,   mtn_m1b_errod
7236 //bit 15: 8,   mtn_core_ykinter
7237 //bit  7: 0,   mtn_core_ckinter
7238 #define   DI_MTN_1_CTRL7                           (0x17aa)
7239 #define P_DI_MTN_1_CTRL7                           (volatile uint32_t *)((0x17aa  << 2) + 0xff900000)
7240 //bit 31:24,   mtn_core_mxcmby
7241 //bit 23:16,   mtn_core_mxcmbc
7242 //bit 15: 8,   mtn_core_y
7243 //bit  7: 0,   mtn_core_c
7244 #define   DI_MTN_1_CTRL8                           (0x17ab)
7245 #define P_DI_MTN_1_CTRL8                           (volatile uint32_t *)((0x17ab  << 2) + 0xff900000)
7246 //bit 31:24,   mtn_fcore_ykinter
7247 //bit 23:16,   mtn_fcore_ckinter
7248 //bit 15: 8,   mtn_fcore_ykintra
7249 //bit  7: 0,   mtn_fcore_ckintra
7250 #define   DI_MTN_1_CTRL9                           (0x17ac)
7251 #define P_DI_MTN_1_CTRL9                           (volatile uint32_t *)((0x17ac  << 2) + 0xff900000)
7252 //bit 31:24,   mtn_fcore_2yrate
7253 //bit 23:16,   mtn_fcore_2crate
7254 //bit 15: 8,   mtn_fcore_y
7255 //bit  7: 0,   mtn_fcore_c
7256 #define   DI_MTN_1_CTRL10                          (0x17ad)
7257 #define P_DI_MTN_1_CTRL10                          (volatile uint32_t *)((0x17ad  << 2) + 0xff900000)
7258 //bit 27:24,   mtn_motfld0
7259 //bit 19:16,   mtn_stlfld0
7260 //bit 11: 8,   mtn_motfld1
7261 //bit  3: 0,   mtn_stlfld1
7262 #define   DI_MTN_1_CTRL11                          (0x17ae)
7263 #define P_DI_MTN_1_CTRL11                          (volatile uint32_t *)((0x17ae  << 2) + 0xff900000)
7264 //bit 27:24,   mtn_smotevn
7265 //bit 20:16,   mtn_smotodd
7266 //bit 11: 8,   mtn_sstlevn
7267 //bit  4: 0,   mtn_sstlodd
7268 #define   DI_MTN_1_CTRL12                          (0x17af)
7269 #define P_DI_MTN_1_CTRL12                          (volatile uint32_t *)((0x17af  << 2) + 0xff900000)
7270 //bit 31:24,   mtn_mgain
7271 //bit 17:16,   mtn_mmode
7272 //bit 15: 8,   mtn_sthrd
7273 //bit  4: 0,   mtn_sgain
7274 #define   DI_NRWR_X                                (0x17c0)
7275 #define P_DI_NRWR_X                                (volatile uint32_t *)((0x17c0  << 2) + 0xff900000)
7276 #define   DI_NRWR_Y                                (0x17c1)
7277 #define P_DI_NRWR_Y                                (volatile uint32_t *)((0x17c1  << 2) + 0xff900000)
7278 //bit 31:30             nrwr_words_lim
7279 //bit 29                nrwr_rev_y
7280 //bit 28:16             nrwr_start_y
7281 //bit 15                nrwr_ext_en
7282 //bit 12:0              nrwr_end_y
7283 #define   DI_NRWR_CTRL                             (0x17c2)
7284 #define P_DI_NRWR_CTRL                             (volatile uint32_t *)((0x17c2  << 2) + 0xff900000)
7285 //bit 31                pending_ddr_wrrsp_diwr
7286 //bit 30                nrwr_reg_swap
7287 //bit 29:26             nrwr_burst_lim
7288 //bit 25                nrwr_canvas_syncen
7289 //bit 24                nrwr_no_clk_gate
7290 //bit 23:22             nrwr_rgb_mode  0:422 to one canvas;1:4:4:4 to one canvas;
7291 //bit 21:20             nrwr_hconv_mode
7292 //bit 19:18             nrwr_vconv_mode
7293 //bit 17                nrwr_swap_cbcr
7294 //bit 16                nrwr_urgent
7295 //bit 15:8              nrwr_canvas_index_chroma
7296 //bit 7:0               nrwr_canvas_index_luma
7297 #define   DI_MTNWR_X                               (0x17c3)
7298 #define P_DI_MTNWR_X                               (volatile uint32_t *)((0x17c3  << 2) + 0xff900000)
7299 #define   DI_MTNWR_Y                               (0x17c4)
7300 #define P_DI_MTNWR_Y                               (volatile uint32_t *)((0x17c4  << 2) + 0xff900000)
7301 #define   DI_MTNWR_CTRL                            (0x17c5)
7302 #define P_DI_MTNWR_CTRL                            (volatile uint32_t *)((0x17c5  << 2) + 0xff900000)
7303 #define   DI_DIWR_X                                (0x17c6)
7304 #define P_DI_DIWR_X                                (volatile uint32_t *)((0x17c6  << 2) + 0xff900000)
7305 #define   DI_DIWR_Y                                (0x17c7)
7306 #define P_DI_DIWR_Y                                (volatile uint32_t *)((0x17c7  << 2) + 0xff900000)
7307 //bit 31:30             diwr_words_lim
7308 //bit 29                diwr_rev_y
7309 //bit 28:16             diwr_start_y
7310 //bit 15                diwr_ext_en
7311 //bit 12:0              diwr_end_y
7312 #define   DI_DIWR_CTRL                             (0x17c8)
7313 #define P_DI_DIWR_CTRL                             (volatile uint32_t *)((0x17c8  << 2) + 0xff900000)
7314 //bit 31                pending_ddr_wrrsp_diwr
7315 //bit 30                diwr_reg_swap
7316 //bit 29:26             diwr_burst_lim
7317 //bit 25                diwr_canvas_syncen
7318 //bit 24                diwr_no_clk_gate
7319 //bit 23:22             diwr_rgb_mode  0:422 to one canvas;1:4:4:4 to one canvas;
7320 //bit 21:20             diwr_hconv_mode
7321 //bit 19:18             diwr_vconv_mode
7322 //bit 17                diwr_swap_cbcr
7323 //bit 16                diwr_urgent
7324 //bit 15:8              diwr_canvas_index_chroma
7325 //bit 7:0               diwr_canvas_index_luma
7326 //`define DI_MTNCRD_X               8'hc9
7327 //`define DI_MTNCRD_Y               8'hca
7328 #define   DI_MTNPRD_X                              (0x17cb)
7329 #define P_DI_MTNPRD_X                              (volatile uint32_t *)((0x17cb  << 2) + 0xff900000)
7330 #define   DI_MTNPRD_Y                              (0x17cc)
7331 #define P_DI_MTNPRD_Y                              (volatile uint32_t *)((0x17cc  << 2) + 0xff900000)
7332 #define   DI_MTNRD_CTRL                            (0x17cd)
7333 #define P_DI_MTNRD_CTRL                            (volatile uint32_t *)((0x17cd  << 2) + 0xff900000)
7334 #define   DI_INP_GEN_REG                           (0x17ce)
7335 #define P_DI_INP_GEN_REG                           (volatile uint32_t *)((0x17ce  << 2) + 0xff900000)
7336 #define   DI_INP_CANVAS0                           (0x17cf)
7337 #define P_DI_INP_CANVAS0                           (volatile uint32_t *)((0x17cf  << 2) + 0xff900000)
7338 #define   DI_INP_LUMA_X0                           (0x17d0)
7339 #define P_DI_INP_LUMA_X0                           (volatile uint32_t *)((0x17d0  << 2) + 0xff900000)
7340 #define   DI_INP_LUMA_Y0                           (0x17d1)
7341 #define P_DI_INP_LUMA_Y0                           (volatile uint32_t *)((0x17d1  << 2) + 0xff900000)
7342 #define   DI_INP_CHROMA_X0                         (0x17d2)
7343 #define P_DI_INP_CHROMA_X0                         (volatile uint32_t *)((0x17d2  << 2) + 0xff900000)
7344 #define   DI_INP_CHROMA_Y0                         (0x17d3)
7345 #define P_DI_INP_CHROMA_Y0                         (volatile uint32_t *)((0x17d3  << 2) + 0xff900000)
7346 #define   DI_INP_RPT_LOOP                          (0x17d4)
7347 #define P_DI_INP_RPT_LOOP                          (volatile uint32_t *)((0x17d4  << 2) + 0xff900000)
7348 #define   DI_INP_LUMA0_RPT_PAT                     (0x17d5)
7349 #define P_DI_INP_LUMA0_RPT_PAT                     (volatile uint32_t *)((0x17d5  << 2) + 0xff900000)
7350 #define   DI_INP_CHROMA0_RPT_PAT                   (0x17d6)
7351 #define P_DI_INP_CHROMA0_RPT_PAT                   (volatile uint32_t *)((0x17d6  << 2) + 0xff900000)
7352 #define   DI_INP_DUMMY_PIXEL                       (0x17d7)
7353 #define P_DI_INP_DUMMY_PIXEL                       (volatile uint32_t *)((0x17d7  << 2) + 0xff900000)
7354 #define   DI_INP_LUMA_FIFO_SIZE                    (0x17d8)
7355 #define P_DI_INP_LUMA_FIFO_SIZE                    (volatile uint32_t *)((0x17d8  << 2) + 0xff900000)
7356 #define   DI_INP_RANGE_MAP_Y                       (0x17ba)
7357 #define P_DI_INP_RANGE_MAP_Y                       (volatile uint32_t *)((0x17ba  << 2) + 0xff900000)
7358 #define   DI_INP_RANGE_MAP_CB                      (0x17bb)
7359 #define P_DI_INP_RANGE_MAP_CB                      (volatile uint32_t *)((0x17bb  << 2) + 0xff900000)
7360 #define   DI_INP_RANGE_MAP_CR                      (0x17bc)
7361 #define P_DI_INP_RANGE_MAP_CR                      (volatile uint32_t *)((0x17bc  << 2) + 0xff900000)
7362 #define   DI_INP_GEN_REG2                          (0x1791)
7363 #define P_DI_INP_GEN_REG2                          (volatile uint32_t *)((0x1791  << 2) + 0xff900000)
7364 #define   DI_INP_FMT_CTRL                          (0x17d9)
7365 #define P_DI_INP_FMT_CTRL                          (volatile uint32_t *)((0x17d9  << 2) + 0xff900000)
7366 #define   DI_INP_FMT_W                             (0x17da)
7367 #define P_DI_INP_FMT_W                             (volatile uint32_t *)((0x17da  << 2) + 0xff900000)
7368 #define   DI_MEM_GEN_REG                           (0x17db)
7369 #define P_DI_MEM_GEN_REG                           (volatile uint32_t *)((0x17db  << 2) + 0xff900000)
7370 #define   DI_MEM_CANVAS0                           (0x17dc)
7371 #define P_DI_MEM_CANVAS0                           (volatile uint32_t *)((0x17dc  << 2) + 0xff900000)
7372 #define   DI_MEM_LUMA_X0                           (0x17dd)
7373 #define P_DI_MEM_LUMA_X0                           (volatile uint32_t *)((0x17dd  << 2) + 0xff900000)
7374 #define   DI_MEM_LUMA_Y0                           (0x17de)
7375 #define P_DI_MEM_LUMA_Y0                           (volatile uint32_t *)((0x17de  << 2) + 0xff900000)
7376 #define   DI_MEM_CHROMA_X0                         (0x17df)
7377 #define P_DI_MEM_CHROMA_X0                         (volatile uint32_t *)((0x17df  << 2) + 0xff900000)
7378 #define   DI_MEM_CHROMA_Y0                         (0x17e0)
7379 #define P_DI_MEM_CHROMA_Y0                         (volatile uint32_t *)((0x17e0  << 2) + 0xff900000)
7380 #define   DI_MEM_RPT_LOOP                          (0x17e1)
7381 #define P_DI_MEM_RPT_LOOP                          (volatile uint32_t *)((0x17e1  << 2) + 0xff900000)
7382 #define   DI_MEM_LUMA0_RPT_PAT                     (0x17e2)
7383 #define P_DI_MEM_LUMA0_RPT_PAT                     (volatile uint32_t *)((0x17e2  << 2) + 0xff900000)
7384 #define   DI_MEM_CHROMA0_RPT_PAT                   (0x17e3)
7385 #define P_DI_MEM_CHROMA0_RPT_PAT                   (volatile uint32_t *)((0x17e3  << 2) + 0xff900000)
7386 #define   DI_MEM_DUMMY_PIXEL                       (0x17e4)
7387 #define P_DI_MEM_DUMMY_PIXEL                       (volatile uint32_t *)((0x17e4  << 2) + 0xff900000)
7388 #define   DI_MEM_LUMA_FIFO_SIZE                    (0x17e5)
7389 #define P_DI_MEM_LUMA_FIFO_SIZE                    (volatile uint32_t *)((0x17e5  << 2) + 0xff900000)
7390 #define   DI_MEM_RANGE_MAP_Y                       (0x17bd)
7391 #define P_DI_MEM_RANGE_MAP_Y                       (volatile uint32_t *)((0x17bd  << 2) + 0xff900000)
7392 #define   DI_MEM_RANGE_MAP_CB                      (0x17be)
7393 #define P_DI_MEM_RANGE_MAP_CB                      (volatile uint32_t *)((0x17be  << 2) + 0xff900000)
7394 #define   DI_MEM_RANGE_MAP_CR                      (0x17bf)
7395 #define P_DI_MEM_RANGE_MAP_CR                      (volatile uint32_t *)((0x17bf  << 2) + 0xff900000)
7396 #define   DI_MEM_GEN_REG2                          (0x1792)
7397 #define P_DI_MEM_GEN_REG2                          (volatile uint32_t *)((0x1792  << 2) + 0xff900000)
7398 #define   DI_MEM_FMT_CTRL                          (0x17e6)
7399 #define P_DI_MEM_FMT_CTRL                          (volatile uint32_t *)((0x17e6  << 2) + 0xff900000)
7400 #define   DI_MEM_FMT_W                             (0x17e7)
7401 #define P_DI_MEM_FMT_W                             (volatile uint32_t *)((0x17e7  << 2) + 0xff900000)
7402 #define   DI_IF1_GEN_REG                           (0x17e8)
7403 #define P_DI_IF1_GEN_REG                           (volatile uint32_t *)((0x17e8  << 2) + 0xff900000)
7404 #define   DI_IF1_CANVAS0                           (0x17e9)
7405 #define P_DI_IF1_CANVAS0                           (volatile uint32_t *)((0x17e9  << 2) + 0xff900000)
7406 #define   DI_IF1_LUMA_X0                           (0x17ea)
7407 #define P_DI_IF1_LUMA_X0                           (volatile uint32_t *)((0x17ea  << 2) + 0xff900000)
7408 #define   DI_IF1_LUMA_Y0                           (0x17eb)
7409 #define P_DI_IF1_LUMA_Y0                           (volatile uint32_t *)((0x17eb  << 2) + 0xff900000)
7410 #define   DI_IF1_CHROMA_X0                         (0x17ec)
7411 #define P_DI_IF1_CHROMA_X0                         (volatile uint32_t *)((0x17ec  << 2) + 0xff900000)
7412 #define   DI_IF1_CHROMA_Y0                         (0x17ed)
7413 #define P_DI_IF1_CHROMA_Y0                         (volatile uint32_t *)((0x17ed  << 2) + 0xff900000)
7414 #define   DI_IF1_RPT_LOOP                          (0x17ee)
7415 #define P_DI_IF1_RPT_LOOP                          (volatile uint32_t *)((0x17ee  << 2) + 0xff900000)
7416 #define   DI_IF1_LUMA0_RPT_PAT                     (0x17ef)
7417 #define P_DI_IF1_LUMA0_RPT_PAT                     (volatile uint32_t *)((0x17ef  << 2) + 0xff900000)
7418 #define   DI_IF1_CHROMA0_RPT_PAT                   (0x17f0)
7419 #define P_DI_IF1_CHROMA0_RPT_PAT                   (volatile uint32_t *)((0x17f0  << 2) + 0xff900000)
7420 #define   DI_IF1_DUMMY_PIXEL                       (0x17f1)
7421 #define P_DI_IF1_DUMMY_PIXEL                       (volatile uint32_t *)((0x17f1  << 2) + 0xff900000)
7422 #define   DI_IF1_LUMA_FIFO_SIZE                    (0x17f2)
7423 #define P_DI_IF1_LUMA_FIFO_SIZE                    (volatile uint32_t *)((0x17f2  << 2) + 0xff900000)
7424 #define   DI_IF1_RANGE_MAP_Y                       (0x17fc)
7425 #define P_DI_IF1_RANGE_MAP_Y                       (volatile uint32_t *)((0x17fc  << 2) + 0xff900000)
7426 #define   DI_IF1_RANGE_MAP_CB                      (0x17fd)
7427 #define P_DI_IF1_RANGE_MAP_CB                      (volatile uint32_t *)((0x17fd  << 2) + 0xff900000)
7428 #define   DI_IF1_RANGE_MAP_CR                      (0x17fe)
7429 #define P_DI_IF1_RANGE_MAP_CR                      (volatile uint32_t *)((0x17fe  << 2) + 0xff900000)
7430 #define   DI_IF1_GEN_REG2                          (0x1790)
7431 #define P_DI_IF1_GEN_REG2                          (volatile uint32_t *)((0x1790  << 2) + 0xff900000)
7432 #define   DI_IF1_FMT_CTRL                          (0x17f3)
7433 #define P_DI_IF1_FMT_CTRL                          (volatile uint32_t *)((0x17f3  << 2) + 0xff900000)
7434 #define   DI_IF1_FMT_W                             (0x17f4)
7435 #define P_DI_IF1_FMT_W                             (volatile uint32_t *)((0x17f4  << 2) + 0xff900000)
7436 #define   DI_CHAN2_GEN_REG                         (0x17f5)
7437 #define P_DI_CHAN2_GEN_REG                         (volatile uint32_t *)((0x17f5  << 2) + 0xff900000)
7438 #define   DI_CHAN2_CANVAS0                         (0x17f6)
7439 #define P_DI_CHAN2_CANVAS0                         (volatile uint32_t *)((0x17f6  << 2) + 0xff900000)
7440 #define   DI_CHAN2_LUMA_X0                         (0x17f7)
7441 #define P_DI_CHAN2_LUMA_X0                         (volatile uint32_t *)((0x17f7  << 2) + 0xff900000)
7442 #define   DI_CHAN2_LUMA_Y0                         (0x17f8)
7443 #define P_DI_CHAN2_LUMA_Y0                         (volatile uint32_t *)((0x17f8  << 2) + 0xff900000)
7444 #define   DI_CHAN2_CHROMA_X0                       (0x17f9)
7445 #define P_DI_CHAN2_CHROMA_X0                       (volatile uint32_t *)((0x17f9  << 2) + 0xff900000)
7446 #define   DI_CHAN2_CHROMA_Y0                       (0x17fa)
7447 #define P_DI_CHAN2_CHROMA_Y0                       (volatile uint32_t *)((0x17fa  << 2) + 0xff900000)
7448 #define   DI_CHAN2_RPT_LOOP                        (0x17fb)
7449 #define P_DI_CHAN2_RPT_LOOP                        (volatile uint32_t *)((0x17fb  << 2) + 0xff900000)
7450 #define   DI_CHAN2_LUMA0_RPT_PAT                   (0x17b0)
7451 #define P_DI_CHAN2_LUMA0_RPT_PAT                   (volatile uint32_t *)((0x17b0  << 2) + 0xff900000)
7452 #define   DI_CHAN2_CHROMA0_RPT_PAT                 (0x17b1)
7453 #define P_DI_CHAN2_CHROMA0_RPT_PAT                 (volatile uint32_t *)((0x17b1  << 2) + 0xff900000)
7454 #define   DI_CHAN2_DUMMY_PIXEL                     (0x17b2)
7455 #define P_DI_CHAN2_DUMMY_PIXEL                     (volatile uint32_t *)((0x17b2  << 2) + 0xff900000)
7456 #define   DI_CHAN2_LUMA_FIFO_SIZE                  (0x17b3)
7457 #define P_DI_CHAN2_LUMA_FIFO_SIZE                  (volatile uint32_t *)((0x17b3  << 2) + 0xff900000)
7458 #define   DI_CHAN2_RANGE_MAP_Y                     (0x17b4)
7459 #define P_DI_CHAN2_RANGE_MAP_Y                     (volatile uint32_t *)((0x17b4  << 2) + 0xff900000)
7460 #define   DI_CHAN2_RANGE_MAP_CB                    (0x17b5)
7461 #define P_DI_CHAN2_RANGE_MAP_CB                    (volatile uint32_t *)((0x17b5  << 2) + 0xff900000)
7462 #define   DI_CHAN2_RANGE_MAP_CR                    (0x17b6)
7463 #define P_DI_CHAN2_RANGE_MAP_CR                    (volatile uint32_t *)((0x17b6  << 2) + 0xff900000)
7464 #define   DI_CHAN2_GEN_REG2                        (0x17b7)
7465 #define P_DI_CHAN2_GEN_REG2                        (volatile uint32_t *)((0x17b7  << 2) + 0xff900000)
7466 #define   DI_CHAN2_FMT_CTRL                        (0x17b8)
7467 #define P_DI_CHAN2_FMT_CTRL                        (volatile uint32_t *)((0x17b8  << 2) + 0xff900000)
7468 #define   DI_CHAN2_FMT_W                           (0x17b9)
7469 #define P_DI_CHAN2_FMT_W                           (volatile uint32_t *)((0x17b9  << 2) + 0xff900000)
7470 //
7471 // Closing file:  mad_regs.h
7472 //
7473 //`define VPP2_VCBUS_BASE              8'h19
7474 //
7475 // Reading file:  vpp2_regs.h
7476 //
7477 // synopsys translate_off
7478 // synopsys translate_on
7479 // -----------------------------------------------
7480 // CBUS_BASE:  VPP2_VCBUS_BASE = 0x19
7481 // -----------------------------------------------
7482 //===========================================================================
7483 // Video postprocesing Registers
7484 //===========================================================================
7485 // dummy data used in the VPP preblend and scaler
7486 // Bit 23:16
7487 // Bit 15:8     CB
7488 // Bit 7:0      CR
7489 #define   VPP2_DUMMY_DATA                          (0x1900)
7490 #define P_VPP2_DUMMY_DATA                          (volatile uint32_t *)((0x1900  << 2) + 0xff900000)
7491 //input line length used in VPP
7492 #define   VPP2_LINE_IN_LENGTH                      (0x1901)
7493 #define P_VPP2_LINE_IN_LENGTH                      (volatile uint32_t *)((0x1901  << 2) + 0xff900000)
7494 //input Picture height used in VPP
7495 #define   VPP2_PIC_IN_HEIGHT                       (0x1902)
7496 #define P_VPP2_PIC_IN_HEIGHT                       (volatile uint32_t *)((0x1902  << 2) + 0xff900000)
7497 //Because there are many coefficients used in the vertical filter and horizontal filters,
7498 //indirect access the coefficients of vertical filter and horizontal filter is used.
7499 //For vertical filter, there are 33x4 coefficients
7500 //For horizontal filter, there are 33x4 coefficients
7501 //Bit 15    index increment, if bit9 == 1  then (0: index increase 1, 1: index increase 2) else (index increase 2)
7502 //Bit 14    1: read coef through cbus enable, just for debug purpose in case when we wanna check the coef in ram in correct or not
7503 //Bit 13    if true, vertical separated coef enable
7504 //Bit 9     if true, use 9bit resolution coef, other use 8bit resolution coef
7505 //Bit 8:7   type of index, 00: vertical coef, 01: vertical chroma coef: 10: horizontal coef, 11: resevered
7506 //Bit 6:0   coef index
7507 #define   VPP2_SCALE_COEF_IDX                      (0x1903)
7508 #define P_VPP2_SCALE_COEF_IDX                      (volatile uint32_t *)((0x1903  << 2) + 0xff900000)
7509 //coefficients for vertical filter and horizontal filter
7510 #define   VPP2_SCALE_COEF                          (0x1904)
7511 #define P_VPP2_SCALE_COEF                          (volatile uint32_t *)((0x1904  << 2) + 0xff900000)
7512 //these following registers are the absolute line address pointer for output divided screen
7513 //The output divided screen is shown in the following:
7514 //
7515 //  --------------------------   <------ line zero
7516 //      .
7517 //      .
7518 //      .           region0        <---------- nonlinear region or nonscaling region
7519 //      .
7520 //  ---------------------------
7521 //  ---------------------------  <------ region1_startp
7522 //      .
7523 //      .           region1         <---------- nonlinear region
7524 //      .
7525 //      .
7526 //  ---------------------------
7527 //  ---------------------------  <------ region2_startp
7528 //      .
7529 //      .           region2         <---------- linear region
7530 //      .
7531 //      .
7532 //  ---------------------------
7533 //  ---------------------------  <------ region3_startp
7534 //      .
7535 //      .           region3         <---------- nonlinear region
7536 //      .
7537 //      .
7538 //  ---------------------------
7539 //  ---------------------------  <------ region4_startp
7540 //      .
7541 //      .           region4         <---------- nonlinear region or nonoscaling region
7542 //      .
7543 //      .
7544 //  ---------------------------  <------ region4_endp
7545 //Bit 28:16 region1 startp
7546 //Bit 12:0 region2 startp
7547 #define   VPP2_VSC_REGION12_STARTP                 (0x1905)
7548 #define P_VPP2_VSC_REGION12_STARTP                 (volatile uint32_t *)((0x1905  << 2) + 0xff900000)
7549 //Bit 28:16 region3 startp
7550 //Bit 12:0 region4 startp
7551 #define   VPP2_VSC_REGION34_STARTP                 (0x1906)
7552 #define P_VPP2_VSC_REGION34_STARTP                 (volatile uint32_t *)((0x1906  << 2) + 0xff900000)
7553 #define   VPP2_VSC_REGION4_ENDP                    (0x1907)
7554 #define P_VPP2_VSC_REGION4_ENDP                    (volatile uint32_t *)((0x1907  << 2) + 0xff900000)
7555 //vertical start phase step, (source/dest)*(2^24)
7556 //Bit 27:24 integer part
7557 //Bit 23:0  fraction part
7558 #define   VPP2_VSC_START_PHASE_STEP                (0x1908)
7559 #define P_VPP2_VSC_START_PHASE_STEP                (volatile uint32_t *)((0x1908  << 2) + 0xff900000)
7560 //vertical scaler region0 phase slope, Bit24 signed bit
7561 #define   VPP2_VSC_REGION0_PHASE_SLOPE             (0x1909)
7562 #define P_VPP2_VSC_REGION0_PHASE_SLOPE             (volatile uint32_t *)((0x1909  << 2) + 0xff900000)
7563 //vertical scaler region1 phase slope, Bit24 signed bit
7564 #define   VPP2_VSC_REGION1_PHASE_SLOPE             (0x190a)
7565 #define P_VPP2_VSC_REGION1_PHASE_SLOPE             (volatile uint32_t *)((0x190a  << 2) + 0xff900000)
7566 //vertical scaler region3 phase slope, Bit24 signed bit
7567 #define   VPP2_VSC_REGION3_PHASE_SLOPE             (0x190b)
7568 #define P_VPP2_VSC_REGION3_PHASE_SLOPE             (volatile uint32_t *)((0x190b  << 2) + 0xff900000)
7569 //vertical scaler region4 phase slope, Bit24 signed bit
7570 #define   VPP2_VSC_REGION4_PHASE_SLOPE             (0x190c)
7571 #define P_VPP2_VSC_REGION4_PHASE_SLOPE             (volatile uint32_t *)((0x190c  << 2) + 0xff900000)
7572 //Bit 18:17     double line mode, input/output line width of vscaler becomes 2X,
7573 //           so only 2 line buffer in this case, use for 3D line by line interleave scaling
7574 //           bit1 true, double the input width and half input height, bit0 true, change line buffer 2 lines instead of 4 lines
7575 //Bit 16     0: progressive output, 1: interlace output
7576 //Bit 15     vertical scaler output line0 in advance or not for bottom field
7577 //Bit 14:13  vertical scaler initial repeat line0 number for bottom field
7578 //Bit 11:8   vertical scaler initial receiving  number for bottom field
7579 //Bit 7      vertical scaler output line0 in advance or not for top field
7580 //Bit 6:5    vertical scaler initial repeat line0 number for top field
7581 //Bit 3:0    vertical scaler initial receiving  number for top field
7582 #define   VPP2_VSC_PHASE_CTRL                      (0x190d)
7583 #define P_VPP2_VSC_PHASE_CTRL                      (volatile uint32_t *)((0x190d  << 2) + 0xff900000)
7584 //Bit 31:16  vertical scaler field initial phase for bottom field
7585 //Bit 15:0  vertical scaler field initial phase for top field
7586 #define   VPP2_VSC_INI_PHASE                       (0x190e)
7587 #define P_VPP2_VSC_INI_PHASE                       (volatile uint32_t *)((0x190e  << 2) + 0xff900000)
7588 //Bit 28:16 region1 startp
7589 //Bit 12:0 region2 startp
7590 #define   VPP2_HSC_REGION12_STARTP                 (0x1910)
7591 #define P_VPP2_HSC_REGION12_STARTP                 (volatile uint32_t *)((0x1910  << 2) + 0xff900000)
7592 //Bit 28:16 region3 startp
7593 //Bit 12:0 region4 startp
7594 #define   VPP2_HSC_REGION34_STARTP                 (0x1911)
7595 #define P_VPP2_HSC_REGION34_STARTP                 (volatile uint32_t *)((0x1911  << 2) + 0xff900000)
7596 #define   VPP2_HSC_REGION4_ENDP                    (0x1912)
7597 #define P_VPP2_HSC_REGION4_ENDP                    (volatile uint32_t *)((0x1912  << 2) + 0xff900000)
7598 //horizontal start phase step, (source/dest)*(2^24)
7599 //Bit 27:24 integer part
7600 //Bit 23:0  fraction part
7601 #define   VPP2_HSC_START_PHASE_STEP                (0x1913)
7602 #define P_VPP2_HSC_START_PHASE_STEP                (volatile uint32_t *)((0x1913  << 2) + 0xff900000)
7603 //horizontal scaler region0 phase slope, Bit24 signed bit
7604 #define   VPP2_HSC_REGION0_PHASE_SLOPE             (0x1914)
7605 #define P_VPP2_HSC_REGION0_PHASE_SLOPE             (volatile uint32_t *)((0x1914  << 2) + 0xff900000)
7606 //horizontal scaler region1 phase slope, Bit24 signed bit
7607 #define   VPP2_HSC_REGION1_PHASE_SLOPE             (0x1915)
7608 #define P_VPP2_HSC_REGION1_PHASE_SLOPE             (volatile uint32_t *)((0x1915  << 2) + 0xff900000)
7609 //horizontal scaler region3 phase slope, Bit24 signed bit
7610 #define   VPP2_HSC_REGION3_PHASE_SLOPE             (0x1916)
7611 #define P_VPP2_HSC_REGION3_PHASE_SLOPE             (volatile uint32_t *)((0x1916  << 2) + 0xff900000)
7612 //horizontal scaler region4 phase slope, Bit24 signed bit
7613 #define   VPP2_HSC_REGION4_PHASE_SLOPE             (0x1917)
7614 #define P_VPP2_HSC_REGION4_PHASE_SLOPE             (volatile uint32_t *)((0x1917  << 2) + 0xff900000)
7615 //Bit 22:21   horizontal scaler initial repeat pixel0 number
7616 //Bit 19:16   horizontal scaler initial receiving number
7617 //Bit 15:0    horizontal scaler top field initial phase
7618 #define   VPP2_HSC_PHASE_CTRL                      (0x1918)
7619 #define P_VPP2_HSC_PHASE_CTRL                      (volatile uint32_t *)((0x1918  << 2) + 0xff900000)
7620 // Bit 22 if true, divide VSC line length 2 as the HSC input length, othwise VSC length length is the same as the VSC line length,
7621 //                 just for special usage, more flexibility
7622 // Bit 21 if true, prevsc uses lin buffer, otherwise prevsc does not use line buffer, it should be same as prevsc_en
7623 // Bit 20 prehsc_en
7624 // Bit 19 prevsc_en
7625 // Bit 18 vsc_en
7626 // Bit 17 hsc_en
7627 // Bit 16 scale_top_en
7628 // Bit 15 video1 scale out enable
7629 // Bit 12 if true, region0,region4 are nonlinear regions, otherwise they are not scaling regions, for horizontal scaler
7630 // Bit 10:8 horizontal scaler bank length
7631 // Bit 5, vertical scaler phase field mode, if true, disable the opposite parity line output, more bandwith needed if output 1080i
7632 // Bit 4 if true, region0,region4 are nonlinear regions, otherwise they are not scaling regions, for vertical scaler
7633 // Bit 2:0 vertical scaler bank length
7634 #define   VPP2_SC_MISC                             (0x1919)
7635 #define P_VPP2_SC_MISC                             (volatile uint32_t *)((0x1919  << 2) + 0xff900000)
7636 // preblend video1 horizontal start and end
7637 //Bit 28:16 start
7638 //Bit 12:0 end
7639 #define   VPP2_PREBLEND_VD1_H_START_END            (0x191a)
7640 #define P_VPP2_PREBLEND_VD1_H_START_END            (volatile uint32_t *)((0x191a  << 2) + 0xff900000)
7641 // preblend video1 vertical start and end
7642 //Bit 28:16 start
7643 //Bit 12:0 end
7644 #define   VPP2_PREBLEND_VD1_V_START_END            (0x191b)
7645 #define P_VPP2_PREBLEND_VD1_V_START_END            (volatile uint32_t *)((0x191b  << 2) + 0xff900000)
7646 // postblend video1 horizontal start and end
7647 //Bit 28:16 start
7648 //Bit 12:0 end
7649 #define   VPP2_POSTBLEND_VD1_H_START_END           (0x191c)
7650 #define P_VPP2_POSTBLEND_VD1_H_START_END           (volatile uint32_t *)((0x191c  << 2) + 0xff900000)
7651 // postblend video1 vertical start and end
7652 //Bit 28:16 start
7653 //Bit 12:0 end
7654 #define   VPP2_POSTBLEND_VD1_V_START_END           (0x191d)
7655 #define P_VPP2_POSTBLEND_VD1_V_START_END           (volatile uint32_t *)((0x191d  << 2) + 0xff900000)
7656 // preblend horizontal size
7657 #define   VPP2_PREBLEND_H_SIZE                     (0x1920)
7658 #define P_VPP2_PREBLEND_H_SIZE                     (volatile uint32_t *)((0x1920  << 2) + 0xff900000)
7659 // postblend horizontal size
7660 #define   VPP2_POSTBLEND_H_SIZE                    (0x1921)
7661 #define P_VPP2_POSTBLEND_H_SIZE                    (volatile uint32_t *)((0x1921  << 2) + 0xff900000)
7662 //VPP hold lines
7663 //Bit 29:24
7664 //Bit 21:16
7665 //Bit 15:8     preblend hold lines
7666 //Bit 7:0      postblend hold lines
7667 #define   VPP2_HOLD_LINES                          (0x1922)
7668 #define P_VPP2_HOLD_LINES                          (volatile uint32_t *)((0x1922  << 2) + 0xff900000)
7669 //Bit 25   if true, change screen to one color value for preblender
7670 //Bit 24   if true, change screen to one color value for postblender
7671 // Bit 23:16 one color Y
7672 // Bit 15:8 one color Cb
7673 // Bit  7:0 one color  Cr
7674 #define   VPP2_BLEND_ONECOLOR_CTRL                 (0x1923)
7675 #define P_VPP2_BLEND_ONECOLOR_CTRL                 (volatile uint32_t *)((0x1923  << 2) + 0xff900000)
7676 //Read Only, VPP preblend current_x, current_y
7677 //Bit 28:16 current_x
7678 //Bit 12:0 current_y
7679 #define   VPP2_PREBLEND_CURRENT_XY                 (0x1924)
7680 #define P_VPP2_PREBLEND_CURRENT_XY                 (volatile uint32_t *)((0x1924  << 2) + 0xff900000)
7681 //Read Only, VPP postblend current_x, current_y
7682 //Bit 28:16 current_x
7683 //Bit 12:0 current_y
7684 #define   VPP2_POSTBLEND_CURRENT_XY                (0x1925)
7685 #define P_VPP2_POSTBLEND_CURRENT_XY                (volatile uint32_t *)((0x1925  << 2) + 0xff900000)
7686 // Bit 31  vd1_bgosd_exchange_en for preblend
7687 // Bit 30  vd1_bgosd_exchange_en for postblend
7688 // bit 28   color management enable
7689 // Bit 27,  reserved
7690 // Bit 26:18, reserved
7691 // Bit 17, osd2 enable for preblend
7692 // Bit 16, osd1 enable for preblend
7693 // Bit 15, reserved
7694 // Bit 14, vd1 enable for preblend
7695 // Bit 13, osd2 enable for postblend
7696 // Bit 12, osd1 enable for postblend
7697 // Bit 11, reserved
7698 // Bit 10, vd1 enable for postblend
7699 // Bit 9,  if true, osd1 is alpha premultipiled
7700 // Bit 8,  if true, osd2 is alpha premultipiled
7701 // Bit 7,  postblend module enable
7702 // Bit 6,  preblend module enable
7703 // Bit 5,  if true, osd2 foreground compared with osd1 in preblend
7704 // Bit 4,  if true, osd2 foreground compared with osd1 in postblend
7705 // Bit 3,
7706 // Bit 2,  if true, disable resetting async fifo every vsync, otherwise every vsync
7707 //           the aync fifo will be reseted.
7708 // Bit 1,
7709 // Bit 0    if true, the output result of VPP is saturated
7710 #define   VPP2_MISC                                (0x1926)
7711 #define P_VPP2_MISC                                (volatile uint32_t *)((0x1926  << 2) + 0xff900000)
7712 //Bit 31:20 ofifo line length minus 1
7713 //Bit 19  if true invert input vs
7714 //Bit 18  if true invert input hs
7715 //Bit 17  force top/bottom field, enable
7716 //Bit 16  force top/bottom field, 0: top, 1: bottom
7717 //Bit 15  force one go_field, one pluse, write only
7718 //Bit 14  force one go_line, one pluse, write only
7719 //Bit 12:0 ofifo size (actually only bit 10:1 is valid), always even number
7720 #define   VPP2_OFIFO_SIZE                          (0x1927)
7721 #define P_VPP2_OFIFO_SIZE                          (volatile uint32_t *)((0x1927  << 2) + 0xff900000)
7722 //Read only
7723 //Bit 28:17 current scale out fifo counter
7724 //Bit 16:12 current afifo counter
7725 //Bit 11:0 current ofifo counter
7726 #define   VPP2_FIFO_STATUS                         (0x1928)
7727 #define P_VPP2_FIFO_STATUS                         (volatile uint32_t *)((0x1928  << 2) + 0xff900000)
7728 // Bit 3 SMOKE2 postblend enable only when postblend osd2 is not enable
7729 // Bit 2 SMOKE2 preblend enable only when preblend osd2 is not enable
7730 // Bit 1 SMOKE1 postblend enable only when postblend osd1 is not enable
7731 // Bit 0 SMOKE1 preblend enable only when preblend osd1 is not enable
7732 #define   VPP2_SMOKE_CTRL                          (0x1929)
7733 #define P_VPP2_SMOKE_CTRL                          (volatile uint32_t *)((0x1929  << 2) + 0xff900000)
7734 //smoke can be used only when that blending is disable and then be used as smoke function
7735 //smoke1 for OSD1 chanel
7736 //smoke2 for OSD2 chanel
7737 //31:24 Y
7738 //23:16 Cb
7739 //15:8 Cr
7740 //7:0 Alpha
7741 #define   VPP2_SMOKE1_VAL                          (0x192a)
7742 #define P_VPP2_SMOKE1_VAL                          (volatile uint32_t *)((0x192a  << 2) + 0xff900000)
7743 #define   VPP2_SMOKE2_VAL                          (0x192b)
7744 #define P_VPP2_SMOKE2_VAL                          (volatile uint32_t *)((0x192b  << 2) + 0xff900000)
7745 //Bit 28:16 start
7746 //Bit 12:0 end
7747 #define   VPP2_SMOKE1_H_START_END                  (0x192d)
7748 #define P_VPP2_SMOKE1_H_START_END                  (volatile uint32_t *)((0x192d  << 2) + 0xff900000)
7749 //Bit 28:16 start
7750 //Bit 12:0 end
7751 #define   VPP2_SMOKE1_V_START_END                  (0x192e)
7752 #define P_VPP2_SMOKE1_V_START_END                  (volatile uint32_t *)((0x192e  << 2) + 0xff900000)
7753 //Bit 28:16 start
7754 //Bit 12:0 end
7755 #define   VPP2_SMOKE2_H_START_END                  (0x192f)
7756 #define P_VPP2_SMOKE2_H_START_END                  (volatile uint32_t *)((0x192f  << 2) + 0xff900000)
7757 //Bit 28:16 start
7758 //Bit 12:0 end
7759 #define   VPP2_SMOKE2_V_START_END                  (0x1930)
7760 #define P_VPP2_SMOKE2_V_START_END                  (volatile uint32_t *)((0x1930  << 2) + 0xff900000)
7761 //Bit 27:16 scale out fifo line length minus 1
7762 //Bit 12:0 scale out fifo size (actually only bit 11:1 is valid, 11:1, max 1024), always even number
7763 #define   VPP2_SCO_FIFO_CTRL                       (0x1933)
7764 #define P_VPP2_SCO_FIFO_CTRL                       (volatile uint32_t *)((0x1933  << 2) + 0xff900000)
7765 //for 3D quincunx sub-sampling and horizontal pixel by pixel 3D interleaving
7766 //Bit 27:24, prehsc_mode, bit 3:2, prehsc odd line interp mode, bit 1:0, prehsc even line interp mode,
7767 //           each 2bit, 00: pix0+pix1/2, average, 01: pix1, 10: pix0
7768 //Bit 23 horizontal scaler double pixel mode
7769 //Bit 22:21   horizontal scaler initial repeat pixel0 number1
7770 //Bit 19:16   horizontal scaler initial receiving number1
7771 //Bit 15:0    horizontal scaler top field initial phase1
7772 #define   VPP2_HSC_PHASE_CTRL1                     (0x1934)
7773 #define P_VPP2_HSC_PHASE_CTRL1                     (volatile uint32_t *)((0x1934  << 2) + 0xff900000)
7774 //for 3D quincunx sub-sampling
7775 //31:24  prehsc pattern, each patten 1 bit, from lsb -> msb
7776 //22:20  prehsc pattern start
7777 //18:16 prehsc pattern end
7778 //15:8 pattern, each patten 1 bit, from lsb -> msb
7779 //6:4  pattern start
7780 //2:0  pattern end
7781 #define   VPP2_HSC_INI_PAT_CTRL                    (0x1935)
7782 #define P_VPP2_HSC_INI_PAT_CTRL                    (volatile uint32_t *)((0x1935  << 2) + 0xff900000)
7783 //Bit 3         minus black level enable for vadj2
7784 //Bit 2         Video adjustment enable for vadj2
7785 //Bit 1         minus black level enable for vadj1
7786 //Bit 0         Video adjustment enable for vadj1
7787 #define   VPP2_VADJ_CTRL                           (0x1940)
7788 #define P_VPP2_VADJ_CTRL                           (volatile uint32_t *)((0x1940  << 2) + 0xff900000)
7789 //Bit 16:8  brightness, signed value
7790 //Bit 7:0   contrast, unsigned value, contrast from  0 <= contrast <2
7791 #define   VPP2_VADJ1_Y                             (0x1941)
7792 #define P_VPP2_VADJ1_Y                             (volatile uint32_t *)((0x1941  << 2) + 0xff900000)
7793 //cb' = cb*ma + cr*mb
7794 //cr' = cb*mc + cr*md
7795 //all are bit 9:0, signed value, -2 < ma/mb/mc/md < 2
7796 #define   VPP2_VADJ1_MA_MB                         (0x1942)
7797 #define P_VPP2_VADJ1_MA_MB                         (volatile uint32_t *)((0x1942  << 2) + 0xff900000)
7798 #define   VPP2_VADJ1_MC_MD                         (0x1943)
7799 #define P_VPP2_VADJ1_MC_MD                         (volatile uint32_t *)((0x1943  << 2) + 0xff900000)
7800 //Bit 16:8  brightness, signed value
7801 //Bit 7:0   contrast, unsigned value, contrast from  0 <= contrast <2
7802 #define   VPP2_VADJ2_Y                             (0x1944)
7803 #define P_VPP2_VADJ2_Y                             (volatile uint32_t *)((0x1944  << 2) + 0xff900000)
7804 //cb' = cb*ma + cr*mb
7805 //cr' = cb*mc + cr*md
7806 //all are bit 9:0, signed value, -2 < ma/mb/mc/md < 2
7807 #define   VPP2_VADJ2_MA_MB                         (0x1945)
7808 #define P_VPP2_VADJ2_MA_MB                         (volatile uint32_t *)((0x1945  << 2) + 0xff900000)
7809 #define   VPP2_VADJ2_MC_MD                         (0x1946)
7810 #define P_VPP2_VADJ2_MC_MD                         (volatile uint32_t *)((0x1946  << 2) + 0xff900000)
7811 //Read only
7812 //Bit 31, if it is true, it means this probe is valid in the last field/frame
7813 //Bit 29:20 component 0
7814 //Bit 19:10 component 1
7815 //Bit 9:0 component 2
7816 #define   VPP2_MATRIX_PROBE_COLOR                  (0x195c)
7817 #define P_VPP2_MATRIX_PROBE_COLOR                  (volatile uint32_t *)((0x195c  << 2) + 0xff900000)
7818 //Bit 23:16 component 0
7819 //Bit 15:8  component 1
7820 //Bit 7:0 component 2
7821 #define   VPP2_MATRIX_HL_COLOR                     (0x195d)
7822 #define P_VPP2_MATRIX_HL_COLOR                     (volatile uint32_t *)((0x195d  << 2) + 0xff900000)
7823 //28:16 probe x, postion
7824 //12:0  probe y, position
7825 #define   VPP2_MATRIX_PROBE_POS                    (0x195e)
7826 #define P_VPP2_MATRIX_PROBE_POS                    (volatile uint32_t *)((0x195e  << 2) + 0xff900000)
7827 //Bit 16,  highlight_en
7828 //Bit 15   probe_post, if true, probe pixel data after matrix, otherwise probe pixel data before matrix
7829 //Bit 14:12 probe_sel, 000: select post matrix, 001: select vd1 matrix,
7830 //Bit 9:8  matrix coef idx selection, 00: select post matrix, 01: select vd1 matrix
7831 //Bit 5    vd1 conversion matrix enable
7832 //Bit 4    reserved
7833 //Bit 2    output y/cb/cr saturation enable, only for post matrix (y saturate to 16-235, cb/cr saturate to 16-240)
7834 //Bit 1    input y/cb/cr saturation enable, only for post matrix (y saturate to 16-235, cb/cr saturate to 16-240)
7835 //Bit 0    post conversion matrix enable
7836 #define   VPP2_MATRIX_CTRL                         (0x195f)
7837 #define P_VPP2_MATRIX_CTRL                         (volatile uint32_t *)((0x195f  << 2) + 0xff900000)
7838 //Bit 28:16 coef00
7839 //Bit 12:0  coef01
7840 #define   VPP2_MATRIX_COEF00_01                    (0x1960)
7841 #define P_VPP2_MATRIX_COEF00_01                    (volatile uint32_t *)((0x1960  << 2) + 0xff900000)
7842 //Bit 28:16 coef02
7843 //Bit 12:0  coef10
7844 #define   VPP2_MATRIX_COEF02_10                    (0x1961)
7845 #define P_VPP2_MATRIX_COEF02_10                    (volatile uint32_t *)((0x1961  << 2) + 0xff900000)
7846 //Bit 28:16 coef11
7847 //Bit 12:0  coef12
7848 #define   VPP2_MATRIX_COEF11_12                    (0x1962)
7849 #define P_VPP2_MATRIX_COEF11_12                    (volatile uint32_t *)((0x1962  << 2) + 0xff900000)
7850 //Bit 28:16 coef20
7851 //Bit 12:0  coef21
7852 #define   VPP2_MATRIX_COEF20_21                    (0x1963)
7853 #define P_VPP2_MATRIX_COEF20_21                    (volatile uint32_t *)((0x1963  << 2) + 0xff900000)
7854 #define   VPP2_MATRIX_COEF22                       (0x1964)
7855 #define P_VPP2_MATRIX_COEF22                       (volatile uint32_t *)((0x1964  << 2) + 0xff900000)
7856 //Bit 26:16 offset0
7857 //Bit 10:0  offset1
7858 #define   VPP2_MATRIX_OFFSET0_1                    (0x1965)
7859 #define P_VPP2_MATRIX_OFFSET0_1                    (volatile uint32_t *)((0x1965  << 2) + 0xff900000)
7860 //Bit 10:0  offset2
7861 #define   VPP2_MATRIX_OFFSET2                      (0x1966)
7862 #define P_VPP2_MATRIX_OFFSET2                      (volatile uint32_t *)((0x1966  << 2) + 0xff900000)
7863 //Bit 26:16 pre_offset0
7864 //Bit 10:0  pre_offset1
7865 #define   VPP2_MATRIX_PRE_OFFSET0_1                (0x1967)
7866 #define P_VPP2_MATRIX_PRE_OFFSET0_1                (volatile uint32_t *)((0x1967  << 2) + 0xff900000)
7867 //Bit 10:0  pre_offset2
7868 #define   VPP2_MATRIX_PRE_OFFSET2                  (0x1968)
7869 #define P_VPP2_MATRIX_PRE_OFFSET2                  (volatile uint32_t *)((0x1968  << 2) + 0xff900000)
7870 // dummy data used in the VPP postblend
7871 // Bit 23:16    Y
7872 // Bit 15:8     CB
7873 // Bit 7:0      CR
7874 #define   VPP2_DUMMY_DATA1                         (0x1969)
7875 #define P_VPP2_DUMMY_DATA1                         (volatile uint32_t *)((0x1969  << 2) + 0xff900000)
7876 //Bit 31 gainoff module enable
7877 //Bit 26:16 gain0, 1.10 unsigned data
7878 //Bit 10:0  gain1, 1.10 unsigned dat
7879 #define   VPP2_GAINOFF_CTRL0                       (0x196a)
7880 #define P_VPP2_GAINOFF_CTRL0                       (volatile uint32_t *)((0x196a  << 2) + 0xff900000)
7881 //Bit 26:16 gain2, 1.10 unsigned data
7882 //Bit 10:0, offset0, signed data
7883 #define   VPP2_GAINOFF_CTRL1                       (0x196b)
7884 #define P_VPP2_GAINOFF_CTRL1                       (volatile uint32_t *)((0x196b  << 2) + 0xff900000)
7885 //Bit 26:16, offset1, signed data
7886 //Bit 10:0, offset2, signed data
7887 #define   VPP2_GAINOFF_CTRL2                       (0x196c)
7888 #define P_VPP2_GAINOFF_CTRL2                       (volatile uint32_t *)((0x196c  << 2) + 0xff900000)
7889 //Bit 26:16, pre_offset0, signed data
7890 //Bit 10:0, pre_offset1, signed data
7891 #define   VPP2_GAINOFF_CTRL3                       (0x196d)
7892 #define P_VPP2_GAINOFF_CTRL3                       (volatile uint32_t *)((0x196d  << 2) + 0xff900000)
7893 //Bit 10:0, pre_offset2, signed data
7894 #define   VPP2_GAINOFF_CTRL4                       (0x196e)
7895 #define P_VPP2_GAINOFF_CTRL4                       (volatile uint32_t *)((0x196e  << 2) + 0xff900000)
7896 //only two registers used in the color management, which are defined in the chroma_reg.h
7897 #define   VPP2_CHROMA_ADDR_PORT                    (0x1970)
7898 #define P_VPP2_CHROMA_ADDR_PORT                    (volatile uint32_t *)((0x1970  << 2) + 0xff900000)
7899 #define   VPP2_CHROMA_DATA_PORT                    (0x1971)
7900 #define P_VPP2_CHROMA_DATA_PORT                    (volatile uint32_t *)((0x1971  << 2) + 0xff900000)
7901 //`include "chroma_reg.h"       //defined inside is the indirect addressed registers
7902 //(hsvsharp), (blue), gainoff, mat_vd1,mat_vd2, mat_post, prebld, postbld,(hsharp),sco_ff, vadj1, vadj2, ofifo, (chroma1), clk0(free_clk) vpp_reg
7903 //each item 2bits, for each 2bits, if bit 2*i+1 == 1, free clk, else if bit 2*i == 1 no clk, else auto gated clock
7904 //bit1 is not used, because I can not turn off vpp_reg clk because I can not turn on again
7905 //because the register itself canot be set again without clk
7906 //Bit 31:0
7907 #define   VPP2_GCLK_CTRL0                          (0x1972)
7908 #define P_VPP2_GCLK_CTRL0                          (volatile uint32_t *)((0x1972  << 2) + 0xff900000)
7909 //Chroma2_filter, Chroma2, (Ccoring), (blackext), dnlp
7910 //Bit 9:0
7911 #define   VPP2_GCLK_CTRL1                          (0x1973)
7912 #define P_VPP2_GCLK_CTRL1                          (volatile uint32_t *)((0x1973  << 2) + 0xff900000)
7913 //prehsc_clk, line_buf, prevsc, vsc, hsc_clk, clk0(free_clk)
7914 //Bit 11:0
7915 #define   VPP2_SC_GCLK_CTRL                        (0x1974)
7916 #define P_VPP2_SC_GCLK_CTRL                        (volatile uint32_t *)((0x1974  << 2) + 0xff900000)
7917 //Bit 17:9 VD1 alpha for preblend
7918 //Bit 8:0 VD1 alpha for postblend
7919 #define   VPP2_MISC1                               (0x1976)
7920 #define P_VPP2_MISC1                               (volatile uint32_t *)((0x1976  << 2) + 0xff900000)
7921 //Bit 31:24     bottom of region03 output value
7922 //Bit 23:16     bottom of region02 output value
7923 //Bit 15:8      bottom of region01 output value
7924 //Bit 7:0       bottom of region00 output value
7925 #define   VPP2_DNLP_CTRL_00                        (0x1981)
7926 #define P_VPP2_DNLP_CTRL_00                        (volatile uint32_t *)((0x1981  << 2) + 0xff900000)
7927 //Bit 31:24     bottom of region07 output value
7928 //Bit 23:16     bottom of region06 output value
7929 //Bit 15:8      bottom of region05 output value
7930 //Bit 7:0       bottom of region04 output value
7931 #define   VPP2_DNLP_CTRL_01                        (0x1982)
7932 #define P_VPP2_DNLP_CTRL_01                        (volatile uint32_t *)((0x1982  << 2) + 0xff900000)
7933 //Bit 31:24     bottom of region11 output value
7934 //Bit 23:16     bottom of region10 output value
7935 //Bit 15:8      bottom of region09 output value
7936 //Bit 7:0       bottom of region08 output value
7937 #define   VPP2_DNLP_CTRL_02                        (0x1983)
7938 #define P_VPP2_DNLP_CTRL_02                        (volatile uint32_t *)((0x1983  << 2) + 0xff900000)
7939 //Bit 31:24     bottom of region15 output value
7940 //Bit 23:16     bottom of region14 output value
7941 //Bit 15:8      bottom of region13 output value
7942 //Bit 7:0       bottom of region12 output value
7943 #define   VPP2_DNLP_CTRL_03                        (0x1984)
7944 #define P_VPP2_DNLP_CTRL_03                        (volatile uint32_t *)((0x1984  << 2) + 0xff900000)
7945 //Bit 31:24     bottom of region19 output value
7946 //Bit 23:16     bottom of region18 output value
7947 //Bit 15:8      bottom of region17 output value
7948 //Bit 7:0       bottom of region16 output value
7949 #define   VPP2_DNLP_CTRL_04                        (0x1985)
7950 #define P_VPP2_DNLP_CTRL_04                        (volatile uint32_t *)((0x1985  << 2) + 0xff900000)
7951 //Bit 31:24     bottom of region23 output value
7952 //Bit 23:16     bottom of region22 output value
7953 //Bit 15:8      bottom of region21 output value
7954 //Bit 7:0       bottom of region20 output value
7955 #define   VPP2_DNLP_CTRL_05                        (0x1986)
7956 #define P_VPP2_DNLP_CTRL_05                        (volatile uint32_t *)((0x1986  << 2) + 0xff900000)
7957 //Bit 31:24     bottom of region27 output value
7958 //Bit 23:16     bottom of region26 output value
7959 //Bit 15:8      bottom of region25 output value
7960 //Bit 7:0       bottom of region24 output value
7961 #define   VPP2_DNLP_CTRL_06                        (0x1987)
7962 #define P_VPP2_DNLP_CTRL_06                        (volatile uint32_t *)((0x1987  << 2) + 0xff900000)
7963 //Bit 31:24     bottom of region31 output value
7964 //Bit 23:16     bottom of region30 output value
7965 //Bit 15:8      bottom of region29 output value
7966 //Bit 7:0       bottom of region28 output value
7967 #define   VPP2_DNLP_CTRL_07                        (0x1988)
7968 #define P_VPP2_DNLP_CTRL_07                        (volatile uint32_t *)((0x1988  << 2) + 0xff900000)
7969 //Bit 31:24     bottom of region35 output value
7970 //Bit 23:16     bottom of region34 output value
7971 //Bit 15:8      bottom of region33 output value
7972 //Bit 7:0       bottom of region32 output value
7973 #define   VPP2_DNLP_CTRL_08                        (0x1989)
7974 #define P_VPP2_DNLP_CTRL_08                        (volatile uint32_t *)((0x1989  << 2) + 0xff900000)
7975 //Bit 31:24     bottom of region39 output value
7976 //Bit 23:16     bottom of region38 output value
7977 //Bit 15:8      bottom of region37 output value
7978 //Bit 7:0       bottom of region36 output value
7979 #define   VPP2_DNLP_CTRL_09                        (0x198a)
7980 #define P_VPP2_DNLP_CTRL_09                        (volatile uint32_t *)((0x198a  << 2) + 0xff900000)
7981 //Bit 31:24     bottom of region43 output value
7982 //Bit 23:16     bottom of region42 output value
7983 //Bit 15:8      bottom of region41 output value
7984 //Bit 7:0       bottom of region40 output value
7985 #define   VPP2_DNLP_CTRL_10                        (0x198b)
7986 #define P_VPP2_DNLP_CTRL_10                        (volatile uint32_t *)((0x198b  << 2) + 0xff900000)
7987 //Bit 31:24     bottom of region47 output value
7988 //Bit 23:16     bottom of region46 output value
7989 //Bit 15:8      bottom of region45 output value
7990 //Bit 7:0       bottom of region44 output value
7991 #define   VPP2_DNLP_CTRL_11                        (0x198c)
7992 #define P_VPP2_DNLP_CTRL_11                        (volatile uint32_t *)((0x198c  << 2) + 0xff900000)
7993 //Bit 31:24     bottom of region51 output value
7994 //Bit 23:16     bottom of region50 output value
7995 //Bit 15:8      bottom of region49 output value
7996 //Bit 7:0       bottom of region48 output value
7997 #define   VPP2_DNLP_CTRL_12                        (0x198d)
7998 #define P_VPP2_DNLP_CTRL_12                        (volatile uint32_t *)((0x198d  << 2) + 0xff900000)
7999 //Bit 31:24     bottom of region55 output value
8000 //Bit 23:16     bottom of region54 output value
8001 //Bit 15:8      bottom of region53 output value
8002 //Bit 7:0       bottom of region52 output value
8003 #define   VPP2_DNLP_CTRL_13                        (0x198e)
8004 #define P_VPP2_DNLP_CTRL_13                        (volatile uint32_t *)((0x198e  << 2) + 0xff900000)
8005 //Bit 31:24     bottom of region59 output value
8006 //Bit 23:16     bottom of region58 output value
8007 //Bit 15:8      bottom of region57 output value
8008 //Bit 7:0       bottom of region56 output value
8009 #define   VPP2_DNLP_CTRL_14                        (0x198f)
8010 #define P_VPP2_DNLP_CTRL_14                        (volatile uint32_t *)((0x198f  << 2) + 0xff900000)
8011 //Bit 31:24     bottom of region63 output value
8012 //Bit 23:16     bottom of region62 output value
8013 //Bit 15:8      bottom of region61 output value
8014 //Bit 7:0       bottom of region60 output value
8015 #define   VPP2_DNLP_CTRL_15                        (0x1990)
8016 #define P_VPP2_DNLP_CTRL_15                        (volatile uint32_t *)((0x1990  << 2) + 0xff900000)
8017 //Bit 20 reserved
8018 //Bit 19 reserved
8019 //Bit 18 demo dynamic nonlinear luma processing enable
8020 //Bit 17 reserved
8021 //Bit 16 reserved
8022 //Bit 15:14, 2'b00: demo adjust on top, 2'b01: demo adjust on bottom, 2'b10: demo adjust on left, 2'b11: demo adjust on right
8023 //Bit 4 reserved
8024 //Bit 3 reserved
8025 //Bit 2 dynamic nonlinear luma processing enable
8026 //Bit 1 reserved
8027 //Bit 0 reserved
8028 #define   VPP2_VE_ENABLE_CTRL                      (0x19a1)
8029 #define P_VPP2_VE_ENABLE_CTRL                      (volatile uint32_t *)((0x19a1  << 2) + 0xff900000)
8030 //Bit 12:0, demo left or top screen width
8031 #define   VPP2_VE_DEMO_LEFT_TOP_SCREEN_WIDTH       (0x19a2)
8032 #define P_VPP2_VE_DEMO_LEFT_TOP_SCREEN_WIDTH       (volatile uint32_t *)((0x19a2  << 2) + 0xff900000)
8033 #define   VPP2_VE_DEMO_CENTER_BAR                  (0x19a3)
8034 #define P_VPP2_VE_DEMO_CENTER_BAR                  (volatile uint32_t *)((0x19a3  << 2) + 0xff900000)
8035 //28:16  ve_line_length
8036 //12:0   ve_pic_height
8037 #define   VPP2_VE_H_V_SIZE                         (0x19a4)
8038 #define P_VPP2_VE_H_V_SIZE                         (volatile uint32_t *)((0x19a4  << 2) + 0xff900000)
8039 //Bit 10   reset bit, high active
8040 //Bit 9    0: measuring rising edge, 1: measuring falling edge
8041 //Bit 8    if true, accumulate the counter number, otherwise not
8042 //Bit 7:0  vsync_span, define how many vsync span need to measure
8043 #define   VPP2_VDO_MEAS_CTRL                       (0x19a8)
8044 #define P_VPP2_VDO_MEAS_CTRL                       (volatile uint32_t *)((0x19a8  << 2) + 0xff900000)
8045 //Read only
8046 //19:16  ind_meas_count_n, every number of sync_span vsyncs, this counter add 1
8047 //15:0, high bit portion of counter
8048 #define   VPP2_VDO_MEAS_VS_COUNT_HI                (0x19a9)
8049 #define P_VPP2_VDO_MEAS_VS_COUNT_HI                (volatile uint32_t *)((0x19a9  << 2) + 0xff900000)
8050 //Read only
8051 //31:0, low bit portion of counter
8052 #define   VPP2_VDO_MEAS_VS_COUNT_LO                (0x19aa)
8053 #define P_VPP2_VDO_MEAS_VS_COUNT_LO                (volatile uint32_t *)((0x19aa  << 2) + 0xff900000)
8054 //vertical scaler phase step
8055 //Bit 27:0,  4.24 format
8056 #define   VPP2_OSD_VSC_PHASE_STEP                  (0x19c0)
8057 #define P_VPP2_OSD_VSC_PHASE_STEP                  (volatile uint32_t *)((0x19c0  << 2) + 0xff900000)
8058 //Bit 31:16, botttom vertical scaler initial phase
8059 //Bit 15:0, top vertical scaler initial phase
8060 #define   VPP2_OSD_VSC_INI_PHASE                   (0x19c1)
8061 #define P_VPP2_OSD_VSC_INI_PHASE                   (volatile uint32_t *)((0x19c1  << 2) + 0xff900000)
8062 //Bit 24    osd vertical Scaler enable
8063 //Bit 23    osd_prog_interlace 0: current field is progressive, 1: current field is interlace
8064 //Bit 22:21 osd_vsc_double_line_mode, bit1, double input width and half input height, bit0, change line buffer becomes 2 lines
8065 //Bit 20    osd_vsc_phase0_always_en
8066 //Bit 19    osd_vsc_nearest_en
8067 //Bit 17:16 osd_vsc_bot_rpt_l0_num
8068 //Bit 14:11 osd_vsc_bot_ini_rcv_num
8069 //Bit 9:8   osd_vsc_top_rpt_l0_num
8070 //Bit 6:3   osd_vsc_top_ini_rcv_num
8071 //Bit 2:0   osd_vsc_bank_length
8072 #define   VPP2_OSD_VSC_CTRL0                       (0x19c2)
8073 #define P_VPP2_OSD_VSC_CTRL0                       (volatile uint32_t *)((0x19c2  << 2) + 0xff900000)
8074 //horizontal scaler phase step
8075 //Bit 27:0,  4.24 format
8076 #define   VPP2_OSD_HSC_PHASE_STEP                  (0x19c3)
8077 #define P_VPP2_OSD_HSC_PHASE_STEP                  (volatile uint32_t *)((0x19c3  << 2) + 0xff900000)
8078 //Bit 31:16, horizontal scaler initial phase1
8079 //Bit 15:0, horizontal scaler initial phase0
8080 #define   VPP2_OSD_HSC_INI_PHASE                   (0x19c4)
8081 #define P_VPP2_OSD_HSC_INI_PHASE                   (volatile uint32_t *)((0x19c4  << 2) + 0xff900000)
8082 //Bit 22   osd horizontal scaler enable
8083 //Bit 21   osd_hsc_double_pix_mode
8084 //Bit 20   osd_hsc_phase0_always_en
8085 //Bit 19   osd_hsc_nearest_en
8086 //Bit 17:16 osd_hsc_rpt_p0_num1
8087 //Bit 14:11 osd_hsc_ini_rcv_num1
8088 //Bit 9:8   osd_hsc_rpt_p0_num0
8089 //Bit 6:3   osd_hsc_ini_rcv_num0
8090 //Bit 2:0   osd_hsc_bank_length
8091 #define   VPP2_OSD_HSC_CTRL0                       (0x19c5)
8092 #define P_VPP2_OSD_HSC_CTRL0                       (volatile uint32_t *)((0x19c5  << 2) + 0xff900000)
8093 //for 3D quincunx sub-sampling
8094 //bit 15:8 pattern, each patten 1 bit, from lsb -> msb
8095 //bit 6:4  pattern start
8096 //bit 2:0  pattern end
8097 #define   VPP2_OSD_HSC_INI_PAT_CTRL                (0x19c6)
8098 #define P_VPP2_OSD_HSC_INI_PAT_CTRL                (volatile uint32_t *)((0x19c6  << 2) + 0xff900000)
8099 //bit 31:24, componet 0
8100 //bit 23:16, component 1
8101 //bit 15:8, component 2
8102 //bit 7:0 component 3, alpha
8103 #define   VPP2_OSD_SC_DUMMY_DATA                   (0x19c7)
8104 #define P_VPP2_OSD_SC_DUMMY_DATA                   (volatile uint32_t *)((0x19c7  << 2) + 0xff900000)
8105 //Bit 14 osc_sc_din_osd1_alpha_mode, 1: (alpha >= 128) ? alpha -1: alpha,  0: (alpha >=1) ? alpha - 1: alpha.
8106 //Bit 13 osc_sc_din_osd2_alpha_mode, 1: (alpha >= 128) ? alpha -1: alpha,  0: (alpha >=1) ? alpha - 1: alpha.
8107 //Bit 12 osc_sc_dout_alpha_mode, 1: (alpha >= 128) ? alpha + 1: alpha, 0: (alpha >=1) ? alpha + 1: alpha.
8108 //Bit 12 osc_sc_alpha_mode, 1: (alpha >= 128) ? alpha + 1: alpha, 0: (alpha >=1) ? alpha + 1: alpha.
8109 //Bit 11:4 default alpha for vd1 or vd2 if they are selected as the source
8110 //Bit 3 osd scaler path enable
8111 //Bit 1:0 osd_sc_sel, 00: select osd1 input, 01: select osd2 input, 10: select vd1 input, 11: select vd2 input after matrix
8112 #define   VPP2_OSD_SC_CTRL0                        (0x19c8)
8113 #define P_VPP2_OSD_SC_CTRL0                        (volatile uint32_t *)((0x19c8  << 2) + 0xff900000)
8114 //Bit 28:16 OSD scaler input width minus 1
8115 //Bit 12:0 OSD scaler input height minus 1
8116 #define   VPP2_OSD_SCI_WH_M1                       (0x19c9)
8117 #define P_VPP2_OSD_SCI_WH_M1                       (volatile uint32_t *)((0x19c9  << 2) + 0xff900000)
8118 //Bit 28:16 OSD scaler output horizontal start
8119 //Bit 12:0 OSD scaler output horizontal end
8120 #define   VPP2_OSD_SCO_H_START_END                 (0x19ca)
8121 #define P_VPP2_OSD_SCO_H_START_END                 (volatile uint32_t *)((0x19ca  << 2) + 0xff900000)
8122 //Bit 28:16 OSD scaler output vertical start
8123 //Bit 12:0 OSD scaler output vertical end
8124 #define   VPP2_OSD_SCO_V_START_END                 (0x19cb)
8125 #define P_VPP2_OSD_SCO_V_START_END                 (volatile uint32_t *)((0x19cb  << 2) + 0xff900000)
8126 //Because there are many coefficients used in the vertical filter and horizontal filters,
8127 //indirect access the coefficients of vertical filter and horizontal filter is used.
8128 //For vertical filter, there are 33x4 coefficients
8129 //For horizontal filter, there are 33x4 coefficients
8130 //Bit 15    index increment, if bit9 == 1  then (0: index increase 1, 1: index increase 2) else (index increase 2)
8131 //Bit 14    1: read coef through cbus enable, just for debug purpose in case when we wanna check the coef in ram in correct or not
8132 //Bit 9     if true, use 9bit resolution coef, other use 8bit resolution coef
8133 //Bit 8   type of index, 0: vertical coef,  1: horizontal coef
8134 //Bit 6:0   coef index
8135 #define   VPP2_OSD_SCALE_COEF_IDX                  (0x19cc)
8136 #define P_VPP2_OSD_SCALE_COEF_IDX                  (volatile uint32_t *)((0x19cc  << 2) + 0xff900000)
8137 //coefficients for vertical filter and horizontal filter
8138 #define   VPP2_OSD_SCALE_COEF                      (0x19cd)
8139 #define P_VPP2_OSD_SCALE_COEF                      (volatile uint32_t *)((0x19cd  << 2) + 0xff900000)
8140 //Bit 12:0 line number use to generate interrupt when line == this number
8141 #define   VPP2_INT_LINE_NUM                        (0x19ce)
8142 #define P_VPP2_INT_LINE_NUM                        (volatile uint32_t *)((0x19ce  << 2) + 0xff900000)
8143 // synopsys translate_off
8144 // synopsys translate_on
8145 //
8146 // Closing file:  vpp2_regs.h
8147 //
8148 //`define VIU_VCBUS_BASE                8'h1a
8149 //
8150 // Reading file:  vregs_clk2.h
8151 //
8152 //===========================================================================
8153 // Video Interface Registers    0xa00 - 0xaff
8154 //===========================================================================
8155 // -----------------------------------------------
8156 // CBUS_BASE:  VIU_VCBUS_BASE = 0x1a
8157 // -----------------------------------------------
8158 #define   VIU_ADDR_START                           (0x1a00)
8159 #define P_VIU_ADDR_START                           (volatile uint32_t *)((0x1a00  << 2) + 0xff900000)
8160 #define   VIU_ADDR_END                             (0x1aff)
8161 #define P_VIU_ADDR_END                             (volatile uint32_t *)((0x1aff  << 2) + 0xff900000)
8162 //`define TRACE_REG 8'ff
8163 //------------------------------------------------------------------------------
8164 // VIU top-level registers
8165 //------------------------------------------------------------------------------
8166 // Bit  0 RW, osd1_reset
8167 // Bit  1 RW, osd2_reset
8168 // Bit  2 RW, vd1_reset
8169 // Bit  3 RW, vd1_fmt_reset
8170 // Bit  4 RW, vd2_reset
8171 // Bit  5 RW, vd2_fmt_reset
8172 // Bit  6 RW, di_dsr1to2_reset
8173 // Bit  7 RW, vpp_reset
8174 // Bit  8 RW, di_if1_reset
8175 // Bit  9 RW, di_if1_fmt_reset
8176 // Bit 10 RW, di_inp_reset
8177 // Bit 11 RW, di_inp_fmt_reset
8178 // Bit 12 RW, di_mem_reset
8179 // Bit 13 RW, di_mem_fmt_reset
8180 // Bit 14 RW, di_nr_wr_mif_reset
8181 // Bit 15 RW, dein_wr_mif_reset
8182 // Bit 16 RW, di_chan2_mif_reset
8183 // Bit 17 RW, di_mtn_wr_mif_reset
8184 // Bit 18 RW, di_mtn_rd_mif_reset
8185 // Bit 19 RW, di_mad_reset
8186 // Bit 20 RW, vdin0_reset
8187 // Bit 21 RW, vdin1_reset
8188 // Bit 22 RW, nrin_mux_reset
8189 // Bit 23 RW, vdin0_wr_reset
8190 // Bit 24 RW, vdin1_wr_reset
8191 // Bit 25 RW, reserved
8192 // Bit 26 RW, d2d3_reset
8193 // Bit 27 RW, di_cont_wr_mif_reset
8194 // Bit 28 RW, di_cont_rd_mif_reset
8195 #define   VIU_SW_RESET                             (0x1a01)
8196 #define P_VIU_SW_RESET                             (volatile uint32_t *)((0x1a01  << 2) + 0xff900000)
8197 #define   VIU_SW_RESET0                            (0x1a02)
8198 #define P_VIU_SW_RESET0                            (volatile uint32_t *)((0x1a02  << 2) + 0xff900000)
8199 // Bit 0 RW, software reset for mcvecrd_mif
8200 // Bit 1 RW, software reset for mcinfowr_mif
8201 // Bit 2 RW, software reset for mcinford_mif
8202 #define   VIU_SECURE_REG                           (0x1a04)
8203 #define P_VIU_SECURE_REG                           (volatile uint32_t *)((0x1a04  << 2) + 0xff900000)
8204 // Bit 0 RW, dolby core1_tv secure w and r
8205 // Bit 1 RW, dolby core2 secure w and r
8206 // Bit 2 RW, dolby core3 secure w and r
8207 // Bit 3 RW, for osd1 secure read
8208 // Bit 4 RW, for osd2 secure read
8209 #define   DOLBY_INT_STAT                           (0x1a05)
8210 #define P_DOLBY_INT_STAT                           (volatile uint32_t *)((0x1a05  << 2) + 0xff900000)
8211 // todo
8212 //bit 15:12 osdbld_gclk_ctrl 3:2 regclk ctrl 1:0 blending clk control
8213 //bit 8 if true, vsync interrup is generate only field == 0
8214 //bit 7:0 fix_disable
8215 #define   VIU_MISC_CTRL0                           (0x1a06)
8216 #define P_VIU_MISC_CTRL0                           (volatile uint32_t *)((0x1a06  << 2) + 0xff900000)
8217 #define   VIU_MISC_CTRL1                           (0x1a07)
8218 #define P_VIU_MISC_CTRL1                           (volatile uint32_t *)((0x1a07  << 2) + 0xff900000)
8219 // Bit 15:14  mali_afbcd_gclk_ctrl      mali_afbcd clock gate control[5:4]
8220 // Bit 12     osd1_afbcd_axi_mux        0 : use the osd mif as input; 1 : use afbcd as input
8221 // Bit 11:8   mali_afbcd_gclk_ctrl      mali_afbcd clock gate control[3:0]
8222 // Bit  7:2   vd2_afbcd_gclk_ctrl       vd2_afbcd clock gate control
8223 // Bit  1     vpp_vd2_din_sel           0: vpp vd2 sel the mif input; 1: vpp vd2 sel the dos afbcd
8224 // Bit  0     vd2_afbcd_out_sel         0: vd2_afbcd output to vpp; 1 : vd2_afbcd output to di inp
8225 #define   D2D3_INTF_LENGTH                         (0x1a08)
8226 #define P_D2D3_INTF_LENGTH                         (volatile uint32_t *)((0x1a08  << 2) + 0xff900000)
8227 // Bit 31:30 vdin0 dout splitter, bit 0 turns on vdin0 to old path, bit 1 turns on vdin0 to d2d3_intf vdin0 input path
8228 // Bit 29:28 vdin1 dout splitter, bit 0 turns on vdin1 to old path, bit 1 turns on vdin1 to d2d3_intf vdin1 input path
8229 // Bit 27:26 NR write dout splitter, bit 0 turns on NR write to old path, bit 1 turns on NR WR to d2d3_intf NR WR input path
8230 // Bit 23 if true, turn on clk_d2d3_reg (register clock)
8231 // Bit 22 if true, turn on clk_d2d3
8232 // Bit 21 reg_v1_go_line
8233 // Bit 20 reg_v1_go_field
8234 // Bit 19 reg_v0_go_field
8235 // Bit 18:16 v1_gofld_sel, 000: display go_field/go_line, 001: DI pre_frame_rst/go_line, 010: vdin0 go_field/go_line,
8236 //011: vdin1 go_field/go_line, otherwise: force go_field by reg_v1_go_field(bit20), force go_line by reg_v1_go_line(bit21)
8237 // Bit 15:13 v0_gofld_sel, 000: display go_field, 001: DI pre_frame_rst, 010: vdin0 go_field, 011: vdin1 go_field, otherwise: force go_field by
8238 // reg_v0_go_field(bit19)
8239 // Bit 12:6 hole_lines for d2d3 depth read interface
8240 // Bit 5:4 d2d3_v1_sel, 2'b01: video display read interface(DI or vd1 fomart output), 2'b10: scale output, otherwise nothing as v1
8241 // Bit 3 use_vdin_eol, if true, use vdin eol as the v0_eol, otherwise using length to get the v0_eol
8242 // Bit 2:0  d2d3_v0_sel  001: vdin0, 010: vdin1, 011: NRW, 100: video display read interface(DI or vd1 fomart output), 101: vpp scale output
8243 //
8244 #define   D2D3_INTF_CTRL0                          (0x1a09)
8245 #define P_D2D3_INTF_CTRL0                          (volatile uint32_t *)((0x1a09  << 2) + 0xff900000)
8246 //------------------------------------------------------------------------------
8247 // OSD1 registers
8248 //------------------------------------------------------------------------------
8249 // Bit    31 Reserved
8250 // Bit    30 RW, enable_free_clk: 1=use free-running clock to drive logics;
8251 //                                0=use gated clock for low power.
8252 // Bit    29 R, test_rd_dsr
8253 // Bit    28 R, osd_done
8254 // Bit 27:24 R, osd_blk_mode
8255 // Bit 23:22 R, osd_blk_ptr
8256 // Bit    21 R, osd_enable
8257 //
8258 // Bit 20:12 RW, global_alpha
8259 // Bit    11 RW, test_rd_en
8260 // Bit 10: 9 Reserved for control signals
8261 // Bit  8: 5 RW, ctrl_mtch_y
8262 // Bit     4 RW, ctrl_422to444
8263 // Bit  3: 0 RW, osd_blk_enable. Bit 0 to enable block 0: 1=enable, 0=disable;
8264 //                               Bit 1 to enable block 1, and so on.
8265 #define   VIU_OSD1_CTRL_STAT                       (0x1a10)
8266 #define P_VIU_OSD1_CTRL_STAT                       (volatile uint32_t *)((0x1a10  << 2) + 0xff900000)
8267 // Bit 31:26 Reserved
8268 // Bit 25:16 R, fifo_count
8269 // Bit 15    RW, osd_dpath_sel   0-osd1 mif 1-vpu mali afbcd
8270 // Bit 14    RW, replaced_alpha_en
8271 // Bit 13: 6 RW, replaced_alpha
8272 // Bit  5: 4 RW, hold_fifo_lines[6:5]
8273 // Bit     3 RW, rgb2yuv_full_range
8274 // Bit     2 RW, alpha_9b_mode
8275 // Bit     1 RW, reserved
8276 // Bit     0 RW, color_expand_mode
8277 #define   VIU_OSD1_CTRL_STAT2                      (0x1a2d)
8278 #define P_VIU_OSD1_CTRL_STAT2                      (volatile uint32_t *)((0x1a2d  << 2) + 0xff900000)
8279 // Bit 31: 9 Reserved
8280 // Bit     8 RW, 0 = Write LUT, 1 = Read LUT
8281 // Bit  7: 0 RW, lut_addr
8282 #define   VIU_OSD1_COLOR_ADDR                      (0x1a11)
8283 #define P_VIU_OSD1_COLOR_ADDR                      (volatile uint32_t *)((0x1a11  << 2) + 0xff900000)
8284 // Bit 31:24 RW, Y or R
8285 // Bit 23:16 RW, Cb or G
8286 // Bit 15: 8 RW, Cr or B
8287 // Bit  7: 0 RW, Alpha
8288 #define   VIU_OSD1_COLOR                           (0x1a12)
8289 #define P_VIU_OSD1_COLOR                           (volatile uint32_t *)((0x1a12  << 2) + 0xff900000)
8290 // Bit 31:24 RW, Y or R
8291 // Bit 23:16 RW, Cb or G
8292 // Bit 15: 8 RW, Cr or B
8293 // Bit  7: 0 RW, Alpha
8294 #define   VIU_OSD1_TCOLOR_AG0                      (0x1a17)
8295 #define P_VIU_OSD1_TCOLOR_AG0                      (volatile uint32_t *)((0x1a17  << 2) + 0xff900000)
8296 #define   VIU_OSD1_TCOLOR_AG1                      (0x1a18)
8297 #define P_VIU_OSD1_TCOLOR_AG1                      (volatile uint32_t *)((0x1a18  << 2) + 0xff900000)
8298 #define   VIU_OSD1_TCOLOR_AG2                      (0x1a19)
8299 #define P_VIU_OSD1_TCOLOR_AG2                      (volatile uint32_t *)((0x1a19  << 2) + 0xff900000)
8300 #define   VIU_OSD1_TCOLOR_AG3                      (0x1a1a)
8301 #define P_VIU_OSD1_TCOLOR_AG3                      (volatile uint32_t *)((0x1a1a  << 2) + 0xff900000)
8302 // Bit 31:30 Reserved
8303 // Bit    29 RW, y_rev: 0=normal read, 1=reverse read in Y direction
8304 // Bit    28 RW, x_rev: 0=normal read, 1=reverse read in X direction
8305 // Bit 27:24 Reserved
8306 // Bit 23:16 RW, tbl_addr
8307 // Bit    15 RW, little_endian: 0=big endian, 1=little endian
8308 // Bit    14 RW, rpt_y
8309 // Bit 13:12 RW, interp_ctrl. 0x=No interpolation; 10=Interpolate with previous
8310 //                            pixel; 11=Interpolate with the average value
8311 //                            between previous and next pixel.
8312 // Bit 11: 8 RW, osd_blk_mode
8313 // Bit     7 RW, rgb_en
8314 // Bit     6 RW, tc_alpha_en
8315 // Bit  5: 2 RW, color_matrix
8316 // Bit     1 RW, interlace_en
8317 // Bit     0 RW, interlace_sel_odd
8318 #define   VIU_OSD1_BLK0_CFG_W0                     (0x1a1b)
8319 #define P_VIU_OSD1_BLK0_CFG_W0                     (volatile uint32_t *)((0x1a1b  << 2) + 0xff900000)
8320 #define   VIU_OSD1_BLK1_CFG_W0                     (0x1a1f)
8321 #define P_VIU_OSD1_BLK1_CFG_W0                     (volatile uint32_t *)((0x1a1f  << 2) + 0xff900000)
8322 #define   VIU_OSD1_BLK2_CFG_W0                     (0x1a23)
8323 #define P_VIU_OSD1_BLK2_CFG_W0                     (volatile uint32_t *)((0x1a23  << 2) + 0xff900000)
8324 #define   VIU_OSD1_BLK3_CFG_W0                     (0x1a27)
8325 #define P_VIU_OSD1_BLK3_CFG_W0                     (volatile uint32_t *)((0x1a27  << 2) + 0xff900000)
8326 // Bit 31:29 Reserved
8327 // Bit 28:16 RW, x_end
8328 // Bit 15:13 Reserved
8329 // Bit 12: 0 RW, x_start
8330 #define   VIU_OSD1_BLK0_CFG_W1                     (0x1a1c)
8331 #define P_VIU_OSD1_BLK0_CFG_W1                     (volatile uint32_t *)((0x1a1c  << 2) + 0xff900000)
8332 #define   VIU_OSD1_BLK1_CFG_W1                     (0x1a20)
8333 #define P_VIU_OSD1_BLK1_CFG_W1                     (volatile uint32_t *)((0x1a20  << 2) + 0xff900000)
8334 #define   VIU_OSD1_BLK2_CFG_W1                     (0x1a24)
8335 #define P_VIU_OSD1_BLK2_CFG_W1                     (volatile uint32_t *)((0x1a24  << 2) + 0xff900000)
8336 #define   VIU_OSD1_BLK3_CFG_W1                     (0x1a28)
8337 #define P_VIU_OSD1_BLK3_CFG_W1                     (volatile uint32_t *)((0x1a28  << 2) + 0xff900000)
8338 // Bit 31:29 Reserved
8339 // Bit 28:16 RW, y_end
8340 // Bit 15:13 Reserved
8341 // Bit 12: 0 RW, y_start
8342 #define   VIU_OSD1_BLK0_CFG_W2                     (0x1a1d)
8343 #define P_VIU_OSD1_BLK0_CFG_W2                     (volatile uint32_t *)((0x1a1d  << 2) + 0xff900000)
8344 #define   VIU_OSD1_BLK1_CFG_W2                     (0x1a21)
8345 #define P_VIU_OSD1_BLK1_CFG_W2                     (volatile uint32_t *)((0x1a21  << 2) + 0xff900000)
8346 #define   VIU_OSD1_BLK2_CFG_W2                     (0x1a25)
8347 #define P_VIU_OSD1_BLK2_CFG_W2                     (volatile uint32_t *)((0x1a25  << 2) + 0xff900000)
8348 #define   VIU_OSD1_BLK3_CFG_W2                     (0x1a29)
8349 #define P_VIU_OSD1_BLK3_CFG_W2                     (volatile uint32_t *)((0x1a29  << 2) + 0xff900000)
8350 // Bit 31:28 Reserved
8351 // Bit 27:16 RW, h_end
8352 // Bit 15:12 Reserved
8353 // Bit 11: 0 RW, h_start
8354 #define   VIU_OSD1_BLK0_CFG_W3                     (0x1a1e)
8355 #define P_VIU_OSD1_BLK0_CFG_W3                     (volatile uint32_t *)((0x1a1e  << 2) + 0xff900000)
8356 #define   VIU_OSD1_BLK1_CFG_W3                     (0x1a22)
8357 #define P_VIU_OSD1_BLK1_CFG_W3                     (volatile uint32_t *)((0x1a22  << 2) + 0xff900000)
8358 #define   VIU_OSD1_BLK2_CFG_W3                     (0x1a26)
8359 #define P_VIU_OSD1_BLK2_CFG_W3                     (volatile uint32_t *)((0x1a26  << 2) + 0xff900000)
8360 #define   VIU_OSD1_BLK3_CFG_W3                     (0x1a2a)
8361 #define P_VIU_OSD1_BLK3_CFG_W3                     (volatile uint32_t *)((0x1a2a  << 2) + 0xff900000)
8362 // Bit 31:28 Reserved
8363 // Bit 27:16 RW, v_end
8364 // Bit 15:12 Reserved
8365 // Bit 11: 0 RW, v_start
8366 #define   VIU_OSD1_BLK0_CFG_W4                     (0x1a13)
8367 #define P_VIU_OSD1_BLK0_CFG_W4                     (volatile uint32_t *)((0x1a13  << 2) + 0xff900000)
8368 #define   VIU_OSD1_BLK1_CFG_W4                     (0x1a14)
8369 #define P_VIU_OSD1_BLK1_CFG_W4                     (volatile uint32_t *)((0x1a14  << 2) + 0xff900000)
8370 #define   VIU_OSD1_BLK2_CFG_W4                     (0x1a15)
8371 #define P_VIU_OSD1_BLK2_CFG_W4                     (volatile uint32_t *)((0x1a15  << 2) + 0xff900000)
8372 #define   VIU_OSD1_BLK3_CFG_W4                     (0x1a16)
8373 #define P_VIU_OSD1_BLK3_CFG_W4                     (volatile uint32_t *)((0x1a16  << 2) + 0xff900000)
8374 // Bit    31 RW, burst_len_sel[2] of [2:0]
8375 // Bit    30 RW, byte_swap: In addition to endian control, further define
8376 //               whether to swap upper and lower byte within a 16-bit mem word.
8377 //               0=No swap; 1=Swap data[15:0] to be {data[7:0], data[15:8]}
8378 // Bit    29 RW, div_swap : swap the 2 64bits words in 128 bit word
8379 // Bit 28:24 RW, fifo_lim : when osd fifo is small than the fifo_lim*16, closed the rq port of osd_rd_mif
8380 // Bit 23:22 RW, fifo_ctrl: 00 : for 1 word in 1 burst , 01 : for  2words in 1burst, 10: for 4words in 1burst, 11: reserved
8381 // Bit 21:20 R,  fifo_st. 0=IDLE, 1=FILL, 2=ABORT
8382 // Bit    19 R,  fifo_overflow
8383 // Bit 18:12 RW, fifo_depth_val, max value=64: set actual fifo depth to fifo_depth_val*8.
8384 // Bit 11:10 RW, burst_len_sel[1:0] of [2:0]. 0=24(default), 1=32, 2=48, 3=64, 4=96, 5=128.
8385 // Bit  9: 5 RW, hold_fifo_lines[4:0]
8386 // Bit     4 RW, clear_err: one pulse to clear fifo_overflow
8387 // Bit     3 RW, fifo_sync_rst
8388 // Bit  2: 1 RW, endian
8389 // Bit     0 RW, urgent
8390 #define   VIU_OSD1_FIFO_CTRL_STAT                  (0x1a2b)
8391 #define P_VIU_OSD1_FIFO_CTRL_STAT                  (volatile uint32_t *)((0x1a2b  << 2) + 0xff900000)
8392 // Bit 31:24 R, Y or R
8393 // Bit 23:16 R, Cb or G
8394 // Bit 15: 8 R, Cr or B
8395 // Bit  7: 0 R, Output Alpha[8:1]
8396 #define   VIU_OSD1_TEST_RDDATA                     (0x1a2c)
8397 #define P_VIU_OSD1_TEST_RDDATA                     (volatile uint32_t *)((0x1a2c  << 2) + 0xff900000)
8398 // Bit    15 RW, prot_en: 1=Borrow PROT's FIFO storage, either for rotate or non-rotate.
8399 // Bit 12: 0 RW, effective FIFO size when prot_en=1.
8400 #define   VIU_OSD1_PROT_CTRL                       (0x1a2e)
8401 #define P_VIU_OSD1_PROT_CTRL                       (volatile uint32_t *)((0x1a2e  << 2) + 0xff900000)
8402 //Bit 7,  highlight_en
8403 //Bit 6   probe_post, if true, probe pixel data after matrix, otherwise probe pixel data before matrix
8404 //Bit 5:4  probe_sel, 00: select matrix 0, 01: select matrix 1,  otherwise select nothing
8405 //Bit 3:2, matrix coef idx selection, 00: select mat0, 01: select mat1, otherwise slect nothing
8406 //Bit 1   mat1 conversion matrix enable
8407 //Bit 0   mat0 conversion matrix enable
8408 #define   VIU_OSD1_MATRIX_CTRL                     (0x1a90)
8409 #define P_VIU_OSD1_MATRIX_CTRL                     (volatile uint32_t *)((0x1a90  << 2) + 0xff900000)
8410 //Bit 28:16 coef00
8411 //Bit 12:0  coef01
8412 #define   VIU_OSD1_MATRIX_COEF00_01                (0x1a91)
8413 #define P_VIU_OSD1_MATRIX_COEF00_01                (volatile uint32_t *)((0x1a91  << 2) + 0xff900000)
8414 //Bit 28:16 coef02
8415 //Bit 12:0  coef10
8416 #define   VIU_OSD1_MATRIX_COEF02_10                (0x1a92)
8417 #define P_VIU_OSD1_MATRIX_COEF02_10                (volatile uint32_t *)((0x1a92  << 2) + 0xff900000)
8418 //Bit 28:16 coef11
8419 //Bit 12:0  coef12
8420 #define   VIU_OSD1_MATRIX_COEF11_12                (0x1a93)
8421 #define P_VIU_OSD1_MATRIX_COEF11_12                (volatile uint32_t *)((0x1a93  << 2) + 0xff900000)
8422 //Bit 28:16 coef20
8423 //Bit 12:0  coef21
8424 #define   VIU_OSD1_MATRIX_COEF20_21                (0x1a94)
8425 #define P_VIU_OSD1_MATRIX_COEF20_21                (volatile uint32_t *)((0x1a94  << 2) + 0xff900000)
8426 //Bit 31:30    mat_clmod
8427 //Bit 18:16    mat_convrs
8428 //Bit 12:0     mat_coef42
8429 #define   VIU_OSD1_MATRIX_COLMOD_COEF42            (0x1a95)
8430 #define P_VIU_OSD1_MATRIX_COLMOD_COEF42            (volatile uint32_t *)((0x1a95  << 2) + 0xff900000)
8431 //Bit 26:16 offset0
8432 //Bit 10:0  offset1
8433 #define   VIU_OSD1_MATRIX_OFFSET0_1                (0x1a96)
8434 #define P_VIU_OSD1_MATRIX_OFFSET0_1                (volatile uint32_t *)((0x1a96  << 2) + 0xff900000)
8435 //Bit 10:0  offset2
8436 #define   VIU_OSD1_MATRIX_OFFSET2                  (0x1a97)
8437 #define P_VIU_OSD1_MATRIX_OFFSET2                  (volatile uint32_t *)((0x1a97  << 2) + 0xff900000)
8438 //Bit 26:16 pre_offset0
8439 //Bit 10:0  pre_offset1
8440 #define   VIU_OSD1_MATRIX_PRE_OFFSET0_1            (0x1a98)
8441 #define P_VIU_OSD1_MATRIX_PRE_OFFSET0_1            (volatile uint32_t *)((0x1a98  << 2) + 0xff900000)
8442 //Bit 10:0  pre_offset2
8443 #define   VIU_OSD1_MATRIX_PRE_OFFSET2              (0x1a99)
8444 #define P_VIU_OSD1_MATRIX_PRE_OFFSET2              (volatile uint32_t *)((0x1a99  << 2) + 0xff900000)
8445 //Read only
8446 //Bit 29:20 component 0
8447 //Bit 19:10 component 1
8448 //Bit 9:0 component 2
8449 #define   VIU_OSD1_MATRIX_PROBE_COLOR              (0x1a9a)
8450 #define P_VIU_OSD1_MATRIX_PROBE_COLOR              (volatile uint32_t *)((0x1a9a  << 2) + 0xff900000)
8451 //Bit 23:16 component 0
8452 //Bit 15:8  component 1
8453 //Bit 7:0 component 2
8454 #define   VIU_OSD1_MATRIX_HL_COLOR                 (0x1a9b)
8455 #define P_VIU_OSD1_MATRIX_HL_COLOR                 (volatile uint32_t *)((0x1a9b  << 2) + 0xff900000)
8456 //28:16 probe x, postion
8457 //12:0  probe y, position
8458 #define   VIU_OSD1_MATRIX_PROBE_POS                (0x1a9c)
8459 #define P_VIU_OSD1_MATRIX_PROBE_POS                (volatile uint32_t *)((0x1a9c  << 2) + 0xff900000)
8460 //Bit 28:16 coef22
8461 //Bit 12:0  coef30
8462 #define   VIU_OSD1_MATRIX_COEF22_30                (0x1a9d)
8463 #define P_VIU_OSD1_MATRIX_COEF22_30                (volatile uint32_t *)((0x1a9d  << 2) + 0xff900000)
8464 //Bit 28:16 coef31
8465 //Bit 12:0  coef32
8466 #define   VIU_OSD1_MATRIX_COEF31_32                (0x1a9e)
8467 #define P_VIU_OSD1_MATRIX_COEF31_32                (volatile uint32_t *)((0x1a9e  << 2) + 0xff900000)
8468 //Bit 28:16 coef40
8469 //Bit 12:0  coef41
8470 #define   VIU_OSD1_MATRIX_COEF40_41                (0x1a9f)
8471 #define P_VIU_OSD1_MATRIX_COEF40_41                (volatile uint32_t *)((0x1a9f  << 2) + 0xff900000)
8472 //Bit 31:27 for all [31] for all eotf enable,[30] for matrix3x3 enable, [29:27] for eotf_ch0~3
8473 //Bit 17:6  for clock gating
8474 //Bit 5:4   pscale_mode ch2
8475 //Bit 3:2   pscale_mode ch1
8476 //Bit 1:0   pscale_mode ch0
8477 #define   VIU_OSD1_EOTF_CTL                        (0x1ad4)
8478 #define P_VIU_OSD1_EOTF_CTL                        (volatile uint32_t *)((0x1ad4  << 2) + 0xff900000)
8479 //Bit 28:16 coef00
8480 //Bit 12:0  coef01
8481 #define   VIU_OSD1_EOTF_COEF00_01                  (0x1ad5)
8482 #define P_VIU_OSD1_EOTF_COEF00_01                  (volatile uint32_t *)((0x1ad5  << 2) + 0xff900000)
8483 //Bit 28:16 coef02
8484 //Bit 12:0  coef10
8485 #define   VIU_OSD1_EOTF_COEF02_10                  (0x1ad6)
8486 #define P_VIU_OSD1_EOTF_COEF02_10                  (volatile uint32_t *)((0x1ad6  << 2) + 0xff900000)
8487 //Bit 28:16 coef11
8488 //Bit 12:0  coef12
8489 #define   VIU_OSD1_EOTF_COEF11_12                  (0x1ad7)
8490 #define P_VIU_OSD1_EOTF_COEF11_12                  (volatile uint32_t *)((0x1ad7  << 2) + 0xff900000)
8491 //Bit 28:16 coef20
8492 //Bit 12:0  coef21
8493 #define   VIU_OSD1_EOTF_COEF20_21                  (0x1ad8)
8494 #define P_VIU_OSD1_EOTF_COEF20_21                  (volatile uint32_t *)((0x1ad8  << 2) + 0xff900000)
8495 //Bit 28:16 coef22
8496 //Bit   2:0 coef_rs
8497 #define   VIU_OSD1_EOTF_COEF22_RS                  (0x1ad9)
8498 #define P_VIU_OSD1_EOTF_COEF22_RS                  (volatile uint32_t *)((0x1ad9  << 2) + 0xff900000)
8499 #define   VIU_OSD1_EOTF_LUT_ADDR_PORT              (0x1ada)
8500 #define P_VIU_OSD1_EOTF_LUT_ADDR_PORT              (volatile uint32_t *)((0x1ada  << 2) + 0xff900000)
8501 #define   VIU_OSD1_EOTF_LUT_DATA_PORT              (0x1adb)
8502 #define P_VIU_OSD1_EOTF_LUT_DATA_PORT              (volatile uint32_t *)((0x1adb  << 2) + 0xff900000)
8503 //Bit 31:29  for OETF ch0~ch2
8504 //Bit 21:12  for clock gating
8505 //Bit 11:8   for oetf_scl_ch2
8506 //Bit  7:4   for oetf_scl_ch1
8507 //Bit  3:0   for oetf_scl_ch0
8508 #define   VIU_OSD1_OETF_CTL                        (0x1adc)
8509 #define P_VIU_OSD1_OETF_CTL                        (volatile uint32_t *)((0x1adc  << 2) + 0xff900000)
8510 #define   VIU_OSD1_OETF_LUT_ADDR_PORT              (0x1add)
8511 #define P_VIU_OSD1_OETF_LUT_ADDR_PORT              (volatile uint32_t *)((0x1add  << 2) + 0xff900000)
8512 #define   VIU_OSD1_OETF_LUT_DATA_PORT              (0x1ade)
8513 #define P_VIU_OSD1_OETF_LUT_DATA_PORT              (volatile uint32_t *)((0x1ade  << 2) + 0xff900000)
8514 #define   VIU_OSD1_OETF_3X3_OFST_0                 (0x1aa0)
8515 #define P_VIU_OSD1_OETF_3X3_OFST_0                 (volatile uint32_t *)((0x1aa0  << 2) + 0xff900000)
8516 #define   VIU_OSD1_OETF_3X3_OFST_1                 (0x1aa1)
8517 #define P_VIU_OSD1_OETF_3X3_OFST_1                 (volatile uint32_t *)((0x1aa1  << 2) + 0xff900000)
8518 //------------------------------------------------------------------------------
8519 // OSD2 registers
8520 //------------------------------------------------------------------------------
8521 // Bit    31 Reserved
8522 // Bit    30 RW, enable_free_clk: 1=use free-running clock to drive logics;
8523 //                                0=use gated clock for low power.
8524 // Bit    29 R, test_rd_dsr
8525 // Bit    28 R, osd_done
8526 // Bit 27:24 R, osd_blk_mode
8527 // Bit 23:22 R, osd_blk_ptr
8528 // Bit    21 R, osd_enable
8529 //
8530 // Bit 20:12 RW, global_alpha
8531 // Bit    11 RW, test_rd_en
8532 // Bit    10 RW, hl2_en
8533 // Bit     9 RW, hl1_en
8534 // Bit  8: 5 RW, ctrl_mtch_y
8535 // Bit     4 RW, ctrl_422to444
8536 // Bit  3: 0 RW, osd_blk_enable. Bit 0 to enable block 0: 1=enable, 0=disable;
8537 //                               Bit 1 to enable block 1, and so on.
8538 #define   VIU_OSD2_CTRL_STAT                       (0x1a30)
8539 #define P_VIU_OSD2_CTRL_STAT                       (volatile uint32_t *)((0x1a30  << 2) + 0xff900000)
8540 // Bit 31:26 Reserved
8541 // Bit 25:16 R, fifo_count
8542 // Bit 15    Reserved
8543 // Bit 14    RW, replaced_alpha_en
8544 // Bit 13: 6 RW, replaced_alpha
8545 // Bit  5: 4 RW, hold_fifo_lines[6:5]
8546 // Bit     3 RW, rgb2yuv_full_range
8547 // Bit     2 RW, alpha_9b_mode
8548 // Bit     1 RW, reserved
8549 // Bit     0 RW, color_expand_mode
8550 #define   VIU_OSD2_CTRL_STAT2                      (0x1a4d)
8551 #define P_VIU_OSD2_CTRL_STAT2                      (volatile uint32_t *)((0x1a4d  << 2) + 0xff900000)
8552 // Bit 31: 9 Reserved
8553 // Bit     8 RW, 0 = Write LUT, 1 = Read LUT
8554 // Bit  7: 0 RW, lut_addr
8555 #define   VIU_OSD2_COLOR_ADDR                      (0x1a31)
8556 #define P_VIU_OSD2_COLOR_ADDR                      (volatile uint32_t *)((0x1a31  << 2) + 0xff900000)
8557 // Bit 31:24 RW, Y or R
8558 // Bit 23:16 RW, Cb or G
8559 // Bit 15: 8 RW, Cr or B
8560 // Bit  7: 0 RW, Alpha
8561 #define   VIU_OSD2_COLOR                           (0x1a32)
8562 #define P_VIU_OSD2_COLOR                           (volatile uint32_t *)((0x1a32  << 2) + 0xff900000)
8563 // Bit 31:28 Reserved
8564 // Bit 27:16 RW, hl[1-2]_h/v_start
8565 // Bit 15:12 Reserved
8566 // Bit 11: 0 RW, hl[1-2]_h/v_end
8567 #define   VIU_OSD2_HL1_H_START_END                 (0x1a33)
8568 #define P_VIU_OSD2_HL1_H_START_END                 (volatile uint32_t *)((0x1a33  << 2) + 0xff900000)
8569 #define   VIU_OSD2_HL1_V_START_END                 (0x1a34)
8570 #define P_VIU_OSD2_HL1_V_START_END                 (volatile uint32_t *)((0x1a34  << 2) + 0xff900000)
8571 #define   VIU_OSD2_HL2_H_START_END                 (0x1a35)
8572 #define P_VIU_OSD2_HL2_H_START_END                 (volatile uint32_t *)((0x1a35  << 2) + 0xff900000)
8573 #define   VIU_OSD2_HL2_V_START_END                 (0x1a36)
8574 #define P_VIU_OSD2_HL2_V_START_END                 (volatile uint32_t *)((0x1a36  << 2) + 0xff900000)
8575 // Bit 31:24 RW, Y or R
8576 // Bit 23:16 RW, Cb or G
8577 // Bit 15: 8 RW, Cr or B
8578 // Bit  7: 0 RW, Alpha
8579 #define   VIU_OSD2_TCOLOR_AG0                      (0x1a37)
8580 #define P_VIU_OSD2_TCOLOR_AG0                      (volatile uint32_t *)((0x1a37  << 2) + 0xff900000)
8581 #define   VIU_OSD2_TCOLOR_AG1                      (0x1a38)
8582 #define P_VIU_OSD2_TCOLOR_AG1                      (volatile uint32_t *)((0x1a38  << 2) + 0xff900000)
8583 #define   VIU_OSD2_TCOLOR_AG2                      (0x1a39)
8584 #define P_VIU_OSD2_TCOLOR_AG2                      (volatile uint32_t *)((0x1a39  << 2) + 0xff900000)
8585 #define   VIU_OSD2_TCOLOR_AG3                      (0x1a3a)
8586 #define P_VIU_OSD2_TCOLOR_AG3                      (volatile uint32_t *)((0x1a3a  << 2) + 0xff900000)
8587 // Bit 31:24 Reserved
8588 // Bit 23:16 RW, tbl_addr
8589 // Bit    15 RW, little_endian: 0=big endian, 1=little endian
8590 // Bit    14 RW, rpt_y
8591 // Bit 13:12 RW, interp_ctrl. 0x=No interpolation; 10=Interpolate with previous
8592 //                            pixel; 11=Interpolate with the average value
8593 //                            between previous and next pixel.
8594 // Bit 11: 8 RW, osd_blk_mode
8595 // Bit     7 RW, rgb_en
8596 // Bit     6 RW, tc_alpha_en
8597 // Bit  5: 2 RW, color_matrix
8598 // Bit     1 RW, interlace_en
8599 // Bit     0 RW, interlace_sel_odd
8600 #define   VIU_OSD2_BLK0_CFG_W0                     (0x1a3b)
8601 #define P_VIU_OSD2_BLK0_CFG_W0                     (volatile uint32_t *)((0x1a3b  << 2) + 0xff900000)
8602 #define   VIU_OSD2_BLK1_CFG_W0                     (0x1a3f)
8603 #define P_VIU_OSD2_BLK1_CFG_W0                     (volatile uint32_t *)((0x1a3f  << 2) + 0xff900000)
8604 #define   VIU_OSD2_BLK2_CFG_W0                     (0x1a43)
8605 #define P_VIU_OSD2_BLK2_CFG_W0                     (volatile uint32_t *)((0x1a43  << 2) + 0xff900000)
8606 #define   VIU_OSD2_BLK3_CFG_W0                     (0x1a47)
8607 #define P_VIU_OSD2_BLK3_CFG_W0                     (volatile uint32_t *)((0x1a47  << 2) + 0xff900000)
8608 // Bit 31:29 Reserved
8609 // Bit 28:16 RW, x_end
8610 // Bit 15:13 Reserved
8611 // Bit 12: 0 RW, x_start
8612 #define   VIU_OSD2_BLK0_CFG_W1                     (0x1a3c)
8613 #define P_VIU_OSD2_BLK0_CFG_W1                     (volatile uint32_t *)((0x1a3c  << 2) + 0xff900000)
8614 #define   VIU_OSD2_BLK1_CFG_W1                     (0x1a40)
8615 #define P_VIU_OSD2_BLK1_CFG_W1                     (volatile uint32_t *)((0x1a40  << 2) + 0xff900000)
8616 #define   VIU_OSD2_BLK2_CFG_W1                     (0x1a44)
8617 #define P_VIU_OSD2_BLK2_CFG_W1                     (volatile uint32_t *)((0x1a44  << 2) + 0xff900000)
8618 #define   VIU_OSD2_BLK3_CFG_W1                     (0x1a48)
8619 #define P_VIU_OSD2_BLK3_CFG_W1                     (volatile uint32_t *)((0x1a48  << 2) + 0xff900000)
8620 // Bit 31:29 Reserved
8621 // Bit 28:16 RW, y_end
8622 // Bit 15:13 Reserved
8623 // Bit 12: 0 RW, y_start
8624 #define   VIU_OSD2_BLK0_CFG_W2                     (0x1a3d)
8625 #define P_VIU_OSD2_BLK0_CFG_W2                     (volatile uint32_t *)((0x1a3d  << 2) + 0xff900000)
8626 #define   VIU_OSD2_BLK1_CFG_W2                     (0x1a41)
8627 #define P_VIU_OSD2_BLK1_CFG_W2                     (volatile uint32_t *)((0x1a41  << 2) + 0xff900000)
8628 #define   VIU_OSD2_BLK2_CFG_W2                     (0x1a45)
8629 #define P_VIU_OSD2_BLK2_CFG_W2                     (volatile uint32_t *)((0x1a45  << 2) + 0xff900000)
8630 #define   VIU_OSD2_BLK3_CFG_W2                     (0x1a49)
8631 #define P_VIU_OSD2_BLK3_CFG_W2                     (volatile uint32_t *)((0x1a49  << 2) + 0xff900000)
8632 // Bit 31:28 Reserved
8633 // Bit 27:16 RW, h_end
8634 // Bit 15:12 Reserved
8635 // Bit 11: 0 RW, h_start
8636 #define   VIU_OSD2_BLK0_CFG_W3                     (0x1a3e)
8637 #define P_VIU_OSD2_BLK0_CFG_W3                     (volatile uint32_t *)((0x1a3e  << 2) + 0xff900000)
8638 #define   VIU_OSD2_BLK1_CFG_W3                     (0x1a42)
8639 #define P_VIU_OSD2_BLK1_CFG_W3                     (volatile uint32_t *)((0x1a42  << 2) + 0xff900000)
8640 #define   VIU_OSD2_BLK2_CFG_W3                     (0x1a46)
8641 #define P_VIU_OSD2_BLK2_CFG_W3                     (volatile uint32_t *)((0x1a46  << 2) + 0xff900000)
8642 #define   VIU_OSD2_BLK3_CFG_W3                     (0x1a4a)
8643 #define P_VIU_OSD2_BLK3_CFG_W3                     (volatile uint32_t *)((0x1a4a  << 2) + 0xff900000)
8644 // Bit 31:28 Reserved
8645 // Bit 27:16 RW, v_end
8646 // Bit 15:12 Reserved
8647 // Bit 11: 0 RW, v_start
8648 #define   VIU_OSD2_BLK0_CFG_W4                     (0x1a64)
8649 #define P_VIU_OSD2_BLK0_CFG_W4                     (volatile uint32_t *)((0x1a64  << 2) + 0xff900000)
8650 #define   VIU_OSD2_BLK1_CFG_W4                     (0x1a65)
8651 #define P_VIU_OSD2_BLK1_CFG_W4                     (volatile uint32_t *)((0x1a65  << 2) + 0xff900000)
8652 #define   VIU_OSD2_BLK2_CFG_W4                     (0x1a66)
8653 #define P_VIU_OSD2_BLK2_CFG_W4                     (volatile uint32_t *)((0x1a66  << 2) + 0xff900000)
8654 #define   VIU_OSD2_BLK3_CFG_W4                     (0x1a67)
8655 #define P_VIU_OSD2_BLK3_CFG_W4                     (volatile uint32_t *)((0x1a67  << 2) + 0xff900000)
8656 // Bit    31 RW, burst_len_sel[2] of [2:0]
8657 // Bit    30 RW, byte_swap: In addition to endian control, further define
8658 //               whether to swap upper and lower byte within a 16-bit mem word.
8659 //               0=No swap; 1=Swap data[15:0] to be {data[7:0], data[15:8]}
8660 // Bit    29 RW, div_swap : swap the 2 64bits words in 128 bit word
8661 // Bit 28:24 RW, fifo_lim : when osd fifo is small than the fifo_lim*16, closed the rq port of osd_rd_mif
8662 // Bit 23:22 RW, fifo_ctrl: 00 : for 1 word in 1 burst , 01 : for  2words in 1burst, 10: for 4words in 1burst, 11: reserved
8663 // Bit 21:20 R,  fifo_st. 0=IDLE, 1=FILL, 2=ABORT
8664 // Bit    19 R,  fifo_overflow
8665 //
8666 // Bit 18:12 RW, fifo_depth_val, max value=64: set actual fifo depth to fifo_depth_val*8.
8667 // Bit 11:10 RW, burst_len_sel[1:0] of [2:0]. 0=24(default), 1=32, 2=48, 3=64, 4=96, 5=128.
8668 // Bit  9: 5 RW, hold_fifo_lines[4:0]
8669 // Bit     4 RW, clear_err: one pulse to clear fifo_overflow
8670 // Bit     3 RW, fifo_sync_rst
8671 // Bit  2: 1 RW, endian
8672 // Bit     0 RW, urgent
8673 #define   VIU_OSD2_FIFO_CTRL_STAT                  (0x1a4b)
8674 #define P_VIU_OSD2_FIFO_CTRL_STAT                  (volatile uint32_t *)((0x1a4b  << 2) + 0xff900000)
8675 // Bit 31:24 R, Y or R
8676 // Bit 23:16 R, Cb or G
8677 // Bit 15: 8 R, Cr or B
8678 // Bit  7: 0 R, Output Alpha[8:1]
8679 #define   VIU_OSD2_TEST_RDDATA                     (0x1a4c)
8680 #define P_VIU_OSD2_TEST_RDDATA                     (volatile uint32_t *)((0x1a4c  << 2) + 0xff900000)
8681 // Bit    15 RW, prot_en: 1=Borrow PROT's FIFO storage, either for rotate or non-rotate.
8682 // Bit 12: 0 RW, effective FIFO size when prot_en=1.
8683 #define   VIU_OSD2_PROT_CTRL                       (0x1a4e)
8684 #define P_VIU_OSD2_PROT_CTRL                       (volatile uint32_t *)((0x1a4e  << 2) + 0xff900000)
8685 //------------------------------------------------------------------------------
8686 // VD1 path
8687 //------------------------------------------------------------------------------
8688 #define   VD1_IF0_GEN_REG                          (0x1a50)
8689 #define P_VD1_IF0_GEN_REG                          (volatile uint32_t *)((0x1a50  << 2) + 0xff900000)
8690 #define   VD1_IF0_CANVAS0                          (0x1a51)
8691 #define P_VD1_IF0_CANVAS0                          (volatile uint32_t *)((0x1a51  << 2) + 0xff900000)
8692 #define   VD1_IF0_CANVAS1                          (0x1a52)
8693 #define P_VD1_IF0_CANVAS1                          (volatile uint32_t *)((0x1a52  << 2) + 0xff900000)
8694 #define   VD1_IF0_LUMA_X0                          (0x1a53)
8695 #define P_VD1_IF0_LUMA_X0                          (volatile uint32_t *)((0x1a53  << 2) + 0xff900000)
8696 #define   VD1_IF0_LUMA_Y0                          (0x1a54)
8697 #define P_VD1_IF0_LUMA_Y0                          (volatile uint32_t *)((0x1a54  << 2) + 0xff900000)
8698 #define   VD1_IF0_CHROMA_X0                        (0x1a55)
8699 #define P_VD1_IF0_CHROMA_X0                        (volatile uint32_t *)((0x1a55  << 2) + 0xff900000)
8700 #define   VD1_IF0_CHROMA_Y0                        (0x1a56)
8701 #define P_VD1_IF0_CHROMA_Y0                        (volatile uint32_t *)((0x1a56  << 2) + 0xff900000)
8702 #define   VD1_IF0_LUMA_X1                          (0x1a57)
8703 #define P_VD1_IF0_LUMA_X1                          (volatile uint32_t *)((0x1a57  << 2) + 0xff900000)
8704 #define   VD1_IF0_LUMA_Y1                          (0x1a58)
8705 #define P_VD1_IF0_LUMA_Y1                          (volatile uint32_t *)((0x1a58  << 2) + 0xff900000)
8706 #define   VD1_IF0_CHROMA_X1                        (0x1a59)
8707 #define P_VD1_IF0_CHROMA_X1                        (volatile uint32_t *)((0x1a59  << 2) + 0xff900000)
8708 #define   VD1_IF0_CHROMA_Y1                        (0x1a5a)
8709 #define P_VD1_IF0_CHROMA_Y1                        (volatile uint32_t *)((0x1a5a  << 2) + 0xff900000)
8710 #define   VD1_IF0_RPT_LOOP                         (0x1a5b)
8711 #define P_VD1_IF0_RPT_LOOP                         (volatile uint32_t *)((0x1a5b  << 2) + 0xff900000)
8712 #define   VD1_IF0_LUMA0_RPT_PAT                    (0x1a5c)
8713 #define P_VD1_IF0_LUMA0_RPT_PAT                    (volatile uint32_t *)((0x1a5c  << 2) + 0xff900000)
8714 #define   VD1_IF0_CHROMA0_RPT_PAT                  (0x1a5d)
8715 #define P_VD1_IF0_CHROMA0_RPT_PAT                  (volatile uint32_t *)((0x1a5d  << 2) + 0xff900000)
8716 #define   VD1_IF0_LUMA1_RPT_PAT                    (0x1a5e)
8717 #define P_VD1_IF0_LUMA1_RPT_PAT                    (volatile uint32_t *)((0x1a5e  << 2) + 0xff900000)
8718 #define   VD1_IF0_CHROMA1_RPT_PAT                  (0x1a5f)
8719 #define P_VD1_IF0_CHROMA1_RPT_PAT                  (volatile uint32_t *)((0x1a5f  << 2) + 0xff900000)
8720 #define   VD1_IF0_LUMA_PSEL                        (0x1a60)
8721 #define P_VD1_IF0_LUMA_PSEL                        (volatile uint32_t *)((0x1a60  << 2) + 0xff900000)
8722 #define   VD1_IF0_CHROMA_PSEL                      (0x1a61)
8723 #define P_VD1_IF0_CHROMA_PSEL                      (volatile uint32_t *)((0x1a61  << 2) + 0xff900000)
8724 #define   VD1_IF0_DUMMY_PIXEL                      (0x1a62)
8725 #define P_VD1_IF0_DUMMY_PIXEL                      (volatile uint32_t *)((0x1a62  << 2) + 0xff900000)
8726 #define   VD1_IF0_LUMA_FIFO_SIZE                   (0x1a63)
8727 #define P_VD1_IF0_LUMA_FIFO_SIZE                   (volatile uint32_t *)((0x1a63  << 2) + 0xff900000)
8728 #define   VD1_IF0_RANGE_MAP_Y                      (0x1a6a)
8729 #define P_VD1_IF0_RANGE_MAP_Y                      (volatile uint32_t *)((0x1a6a  << 2) + 0xff900000)
8730 #define   VD1_IF0_RANGE_MAP_CB                     (0x1a6b)
8731 #define P_VD1_IF0_RANGE_MAP_CB                     (volatile uint32_t *)((0x1a6b  << 2) + 0xff900000)
8732 #define   VD1_IF0_RANGE_MAP_CR                     (0x1a6c)
8733 #define P_VD1_IF0_RANGE_MAP_CR                     (volatile uint32_t *)((0x1a6c  << 2) + 0xff900000)
8734 #define   VD1_IF0_GEN_REG2                         (0x1a6d)
8735 #define P_VD1_IF0_GEN_REG2                         (volatile uint32_t *)((0x1a6d  << 2) + 0xff900000)
8736 #define   VD1_IF0_PROT_CNTL                        (0x1a6e)
8737 #define P_VD1_IF0_PROT_CNTL                        (volatile uint32_t *)((0x1a6e  << 2) + 0xff900000)
8738 #define   VD1_IF0_URGENT_CTRL                      (0x1a6f)
8739 #define P_VD1_IF0_URGENT_CTRL                      (volatile uint32_t *)((0x1a6f  << 2) + 0xff900000)
8740 //Bit 31    it true, disable clock, otherwise enable clock
8741 //Bit 30    soft rst bit
8742 //Bit 28    if true, horizontal formatter use repeating to generete pixel, otherwise use bilinear interpolation
8743 //Bit 27:24 horizontal formatter initial phase
8744 //Bit 23    horizontal formatter repeat pixel 0 enable
8745 //Bit 22:21 horizontal Y/C ratio, 00: 1:1, 01: 2:1, 10: 4:1
8746 //Bit 20    horizontal formatter enable
8747 //Bit 19    if true, always use phase0 while vertical formater, meaning always
8748 //          repeat data, no interpolation
8749 //Bit 18    if true, disable vertical formatter chroma repeat last line
8750 //Bit 17    veritcal formatter dont need repeat line on phase0, 1: enable, 0: disable
8751 //Bit 16    veritcal formatter repeat line 0 enable
8752 //Bit 15:12 vertical formatter skip line num at the beginning
8753 //Bit 11:8  vertical formatter initial phase
8754 //Bit 7:1   vertical formatter phase step (3.4)
8755 //Bit 0     vertical formatter enable
8756 #define   VIU_VD1_FMT_CTRL                         (0x1a68)
8757 #define P_VIU_VD1_FMT_CTRL                         (volatile uint32_t *)((0x1a68  << 2) + 0xff900000)
8758 //Bit 27:16  horizontal formatter width
8759 //Bit 11:0   vertical formatter width
8760 #define   VIU_VD1_FMT_W                            (0x1a69)
8761 #define P_VIU_VD1_FMT_W                            (volatile uint32_t *)((0x1a69  << 2) + 0xff900000)
8762 //------------------------------------------------------------------------------
8763 // VD2 path
8764 //------------------------------------------------------------------------------
8765 #define   VD2_IF0_GEN_REG                          (0x1a70)
8766 #define P_VD2_IF0_GEN_REG                          (volatile uint32_t *)((0x1a70  << 2) + 0xff900000)
8767 #define   VD2_IF0_CANVAS0                          (0x1a71)
8768 #define P_VD2_IF0_CANVAS0                          (volatile uint32_t *)((0x1a71  << 2) + 0xff900000)
8769 #define   VD2_IF0_CANVAS1                          (0x1a72)
8770 #define P_VD2_IF0_CANVAS1                          (volatile uint32_t *)((0x1a72  << 2) + 0xff900000)
8771 #define   VD2_IF0_LUMA_X0                          (0x1a73)
8772 #define P_VD2_IF0_LUMA_X0                          (volatile uint32_t *)((0x1a73  << 2) + 0xff900000)
8773 #define   VD2_IF0_LUMA_Y0                          (0x1a74)
8774 #define P_VD2_IF0_LUMA_Y0                          (volatile uint32_t *)((0x1a74  << 2) + 0xff900000)
8775 #define   VD2_IF0_CHROMA_X0                        (0x1a75)
8776 #define P_VD2_IF0_CHROMA_X0                        (volatile uint32_t *)((0x1a75  << 2) + 0xff900000)
8777 #define   VD2_IF0_CHROMA_Y0                        (0x1a76)
8778 #define P_VD2_IF0_CHROMA_Y0                        (volatile uint32_t *)((0x1a76  << 2) + 0xff900000)
8779 #define   VD2_IF0_LUMA_X1                          (0x1a77)
8780 #define P_VD2_IF0_LUMA_X1                          (volatile uint32_t *)((0x1a77  << 2) + 0xff900000)
8781 #define   VD2_IF0_LUMA_Y1                          (0x1a78)
8782 #define P_VD2_IF0_LUMA_Y1                          (volatile uint32_t *)((0x1a78  << 2) + 0xff900000)
8783 #define   VD2_IF0_CHROMA_X1                        (0x1a79)
8784 #define P_VD2_IF0_CHROMA_X1                        (volatile uint32_t *)((0x1a79  << 2) + 0xff900000)
8785 #define   VD2_IF0_CHROMA_Y1                        (0x1a7a)
8786 #define P_VD2_IF0_CHROMA_Y1                        (volatile uint32_t *)((0x1a7a  << 2) + 0xff900000)
8787 #define   VD2_IF0_RPT_LOOP                         (0x1a7b)
8788 #define P_VD2_IF0_RPT_LOOP                         (volatile uint32_t *)((0x1a7b  << 2) + 0xff900000)
8789 #define   VD2_IF0_LUMA0_RPT_PAT                    (0x1a7c)
8790 #define P_VD2_IF0_LUMA0_RPT_PAT                    (volatile uint32_t *)((0x1a7c  << 2) + 0xff900000)
8791 #define   VD2_IF0_CHROMA0_RPT_PAT                  (0x1a7d)
8792 #define P_VD2_IF0_CHROMA0_RPT_PAT                  (volatile uint32_t *)((0x1a7d  << 2) + 0xff900000)
8793 #define   VD2_IF0_LUMA1_RPT_PAT                    (0x1a7e)
8794 #define P_VD2_IF0_LUMA1_RPT_PAT                    (volatile uint32_t *)((0x1a7e  << 2) + 0xff900000)
8795 #define   VD2_IF0_CHROMA1_RPT_PAT                  (0x1a7f)
8796 #define P_VD2_IF0_CHROMA1_RPT_PAT                  (volatile uint32_t *)((0x1a7f  << 2) + 0xff900000)
8797 #define   VD2_IF0_LUMA_PSEL                        (0x1a80)
8798 #define P_VD2_IF0_LUMA_PSEL                        (volatile uint32_t *)((0x1a80  << 2) + 0xff900000)
8799 #define   VD2_IF0_CHROMA_PSEL                      (0x1a81)
8800 #define P_VD2_IF0_CHROMA_PSEL                      (volatile uint32_t *)((0x1a81  << 2) + 0xff900000)
8801 #define   VD2_IF0_DUMMY_PIXEL                      (0x1a82)
8802 #define P_VD2_IF0_DUMMY_PIXEL                      (volatile uint32_t *)((0x1a82  << 2) + 0xff900000)
8803 #define   VD2_IF0_LUMA_FIFO_SIZE                   (0x1a83)
8804 #define P_VD2_IF0_LUMA_FIFO_SIZE                   (volatile uint32_t *)((0x1a83  << 2) + 0xff900000)
8805 #define   VD2_IF0_RANGE_MAP_Y                      (0x1a8a)
8806 #define P_VD2_IF0_RANGE_MAP_Y                      (volatile uint32_t *)((0x1a8a  << 2) + 0xff900000)
8807 #define   VD2_IF0_RANGE_MAP_CB                     (0x1a8b)
8808 #define P_VD2_IF0_RANGE_MAP_CB                     (volatile uint32_t *)((0x1a8b  << 2) + 0xff900000)
8809 #define   VD2_IF0_RANGE_MAP_CR                     (0x1a8c)
8810 #define P_VD2_IF0_RANGE_MAP_CR                     (volatile uint32_t *)((0x1a8c  << 2) + 0xff900000)
8811 #define   VD2_IF0_GEN_REG2                         (0x1a8d)
8812 #define P_VD2_IF0_GEN_REG2                         (volatile uint32_t *)((0x1a8d  << 2) + 0xff900000)
8813 #define   VD2_IF0_PROT_CNTL                        (0x1a8e)
8814 #define P_VD2_IF0_PROT_CNTL                        (volatile uint32_t *)((0x1a8e  << 2) + 0xff900000)
8815 #define   VD2_IF0_URGENT_CTRL                      (0x1a8f)
8816 #define P_VD2_IF0_URGENT_CTRL                      (volatile uint32_t *)((0x1a8f  << 2) + 0xff900000)
8817 //Bit 31    it true, disable clock, otherwise enable clock
8818 //Bit 30    soft rst bit
8819 //Bit 28    if true, horizontal formatter use repeating to generete pixel, otherwise use bilinear interpolation
8820 //Bit 27:24 horizontal formatter initial phase
8821 //Bit 23    horizontal formatter repeat pixel 0 enable
8822 //Bit 22:21 horizontal Y/C ratio, 00: 1:1, 01: 2:1, 10: 4:1
8823 //Bit 20    horizontal formatter enable
8824 //Bit 17    veritcal formatter dont need repeat line on phase0, 1: enable, 0: disable
8825 //Bit 16    veritcal formatter repeat line 0 enable
8826 //Bit 15:12 vertical formatter skip line num at the beginning
8827 //Bit 11:8  vertical formatter initial phase
8828 //Bit 7:1   vertical formatter phase step (3.4)
8829 //Bit 0     vertical formatter enable
8830 #define   VIU_VD2_FMT_CTRL                         (0x1a88)
8831 #define P_VIU_VD2_FMT_CTRL                         (volatile uint32_t *)((0x1a88  << 2) + 0xff900000)
8832 //Bit 27:16  horizontal formatter width
8833 //Bit 11:0   vertical formatter width
8834 #define   VIU_VD2_FMT_W                            (0x1a89)
8835 #define P_VIU_VD2_FMT_W                            (volatile uint32_t *)((0x1a89  << 2) + 0xff900000)
8836 //     //todo add comment
8837 #define   LDIM_STTS_GCLK_CTRL0                     (0x1ac0)
8838 #define P_LDIM_STTS_GCLK_CTRL0                     (volatile uint32_t *)((0x1ac0  << 2) + 0xff900000)
8839 #define   LDIM_STTS_CTRL0                          (0x1ac1)
8840 #define P_LDIM_STTS_CTRL0                          (volatile uint32_t *)((0x1ac1  << 2) + 0xff900000)
8841 #define   LDIM_STTS_WIDTHM1_HEIGHTM1               (0x1ac2)
8842 #define P_LDIM_STTS_WIDTHM1_HEIGHTM1               (volatile uint32_t *)((0x1ac2  << 2) + 0xff900000)
8843 #define   LDIM_STTS_MATRIX_COEF00_01               (0x1ac3)
8844 #define P_LDIM_STTS_MATRIX_COEF00_01               (volatile uint32_t *)((0x1ac3  << 2) + 0xff900000)
8845 #define   LDIM_STTS_MATRIX_COEF02_10               (0x1ac4)
8846 #define P_LDIM_STTS_MATRIX_COEF02_10               (volatile uint32_t *)((0x1ac4  << 2) + 0xff900000)
8847 #define   LDIM_STTS_MATRIX_COEF11_12               (0x1ac5)
8848 #define P_LDIM_STTS_MATRIX_COEF11_12               (volatile uint32_t *)((0x1ac5  << 2) + 0xff900000)
8849 #define   LDIM_STTS_MATRIX_COEF20_21               (0x1ac6)
8850 #define P_LDIM_STTS_MATRIX_COEF20_21               (volatile uint32_t *)((0x1ac6  << 2) + 0xff900000)
8851 #define   LDIM_STTS_MATRIX_COEF22                  (0x1ac7)
8852 #define P_LDIM_STTS_MATRIX_COEF22                  (volatile uint32_t *)((0x1ac7  << 2) + 0xff900000)
8853 #define   LDIM_STTS_MATRIX_OFFSET0_1               (0x1ac8)
8854 #define P_LDIM_STTS_MATRIX_OFFSET0_1               (volatile uint32_t *)((0x1ac8  << 2) + 0xff900000)
8855 #define   LDIM_STTS_MATRIX_OFFSET2                 (0x1ac9)
8856 #define P_LDIM_STTS_MATRIX_OFFSET2                 (volatile uint32_t *)((0x1ac9  << 2) + 0xff900000)
8857 #define   LDIM_STTS_MATRIX_PRE_OFFSET0_1           (0x1aca)
8858 #define P_LDIM_STTS_MATRIX_PRE_OFFSET0_1           (volatile uint32_t *)((0x1aca  << 2) + 0xff900000)
8859 #define   LDIM_STTS_MATRIX_PRE_OFFSET2             (0x1acb)
8860 #define P_LDIM_STTS_MATRIX_PRE_OFFSET2             (volatile uint32_t *)((0x1acb  << 2) + 0xff900000)
8861 #define   LDIM_STTS_MATRIX_HL_COLOR                (0x1acc)
8862 #define P_LDIM_STTS_MATRIX_HL_COLOR                (volatile uint32_t *)((0x1acc  << 2) + 0xff900000)
8863 #define   LDIM_STTS_MATRIX_PROBE_POS               (0x1acd)
8864 #define P_LDIM_STTS_MATRIX_PROBE_POS               (volatile uint32_t *)((0x1acd  << 2) + 0xff900000)
8865 //
8866 //     //read only
8867 #define   LDIM_STTS_MATRIX_PROBE_COLOR             (0x1ace)
8868 #define P_LDIM_STTS_MATRIX_PROBE_COLOR             (volatile uint32_t *)((0x1ace  << 2) + 0xff900000)
8869 //
8870 //     //Bit 31, local dimming statistic enable
8871 //     //Bit 29, 1: output region histogram 16bit 0:output region histogram 20bit
8872 //     //Bit 28, eol enable
8873 //     //Bit 27:25, vertical line overlap number for max finding
8874 //     //Bit 24:22, horizontal pixel overlap number, 0: 17 pix, 1: 9 pix, 2: 5 pix, 3: 3 pix, 4: 0 pix
8875 //     //Bit 20, 1,2,1 low pass filter enable before max/hist statistic
8876 //     //Bit 19:16, region H/V position index, refer to VDIN_LDIM_STTS_HIST_SET_REGION
8877 //     //Bit 15:14, 1: region read index auto increase per block read finished to VDIN_LDIM_STTS_HIST_READ_REGION
8878 //     //            2: region read index auto increase per read finished to VDIN_LDIM_STTS_HIST_READ_REGION
8879 //     //            0/3: disable read index self increase
8880 //     //Bit 13:8, region read sub index, which mux the hist & max-finding result to cbus port, refer to LDIM_STTS_HIST_READ_REGION
8881 //     //Bit 6:0, region read index
8882 #define   LDIM_STTS_HIST_REGION_IDX                (0x1ad0)
8883 #define P_LDIM_STTS_HIST_REGION_IDX                (volatile uint32_t *)((0x1ad0  << 2) + 0xff900000)
8884 //Bit 28:0, if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h0: read/write hvstart0
8885 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h1: read/write hend01
8886 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h2: read/write vend01
8887 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h3: read/write hend23
8888 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h4: read/write vend23
8889 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h5: read/write hend45
8890 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h6: read/write vend45
8891 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'd7: read/write hend67
8892 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h8: read/write vend67
8893 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'h9: read/write hend89
8894 //          if VDIN_LDIM_STTS_HIST_REGION_IDX[19:16] == 5'ha: read/write vend89
8895 //     //hvstart0, Bit 28:16 row0 vstart, Bit 12:0 col0 hstart
8896 //     //hend01, Bit 28:16 col1 hend, Bit 12:0 col0 hend
8897 //     //vend01, Bit 28:16 row1 vend, Bit 12:0 row0 vend
8898 //     //hend23, Bit 28:16 col3 hend, Bit 12:0 col2 hend
8899 //     //vend23, Bit 28:16 row3 vend, Bit 12:0 row2 vend
8900 //     //hend45, Bit 28:16 col5 hend, Bit 12:0 col4 hend
8901 //     //vend45, Bit 28:16 row5 vend, Bit 12:0 row4 vend
8902 //     //hend67, Bit 28:16 col7 hend, Bit 12:0 col6 hend
8903 //     //vend67, Bit 28:16 row7 vend, Bit 12:0 row6 vend
8904 //     //hend89, Bit 28:16 col9 hend, Bit 12:0 col8 hend
8905 //     //vend89, Bit 28:16 row9 vend, Bit 12:0 row8 vend
8906 #define   LDIM_STTS_HIST_SET_REGION                (0x1ad1)
8907 #define P_LDIM_STTS_HIST_SET_REGION                (volatile uint32_t *)((0x1ad1  << 2) + 0xff900000)
8908 //
8909 //     //if LDIM_STTS_HIST_REGION_IDX[29] == 0, that is output hist with 20bit data.
8910 //     //if LDIM_STTS_HIST_REGION_IDX[21] == 0, that is output 16hist bins in comp 0.
8911 //     //output sequence as rd_sub_idx from 0~47: {max_comp2, comp0_hist0}, {max_comp1, comp0_hist1}, {max_comp0, comp0_hist2},
8912 //     //                                          comp0_hist3 ... comp2_hist16
8913 //     //if LDIM_STTS_HIST_REGION_IDX[29] == 1, that is output hist with 16bit data.
8914 //     //if LDIM_STTS_HIST_REGION_IDX[21] == 0, that is output 16hist bins in comp 0.
8915 //     //output sequence as rd_sub_idx from 0~47: {max_comp2, max_comp1, max_comp0}, comp0_hist0, comp0_hist1, comp0_hist2
8916 //     //                                          comp0_hist3 ... comp2_hist16
8917 //     //if LDIM_STTS_HIST_REGION_IDX[29] == 0, that is output hist with 20bit data.
8918 //     //if LDIM_STTS_HIST_REGION_IDX[21] == 1, that is output 32hist bins in comp 0.
8919 //     //output sequence as rd_sub_idx from 0~47: {max_comp2, max_comp1, max_comp0}, comp0_hist0, comp0_hist1, comp0_hist2
8920 //     //                                          comp0_hist3 ...comp0_hist31 ... comp1_hist16
8921 //
8922 #define   LDIM_STTS_HIST_READ_REGION               (0x1ad2)
8923 #define P_LDIM_STTS_HIST_READ_REGION               (volatile uint32_t *)((0x1ad2  << 2) + 0xff900000)
8924 #define   LDIM_STTS_HIST_START_RD_REGION           (0x1ad3)
8925 #define P_LDIM_STTS_HIST_START_RD_REGION           (volatile uint32_t *)((0x1ad3  << 2) + 0xff900000)
8926 //     //bit15, auto enable; bit14, canvas write mode ;7:4, high threshold ;3:0 , low threshold  for di if1 chroma path
8927 //     //bit31, auto enable; bit30, canvas write mode ;23:20, high threshold ;19:16 , low threshold  for di if1 luma path
8928 //     `define DI_IF1_URGENT_CTRL                       8'ha3
8929 //     //bit15, auto enable; bit14, canvas write mode ;7:4, high threshold ;3:0 , low threshold  for di inp chroma path
8930 //     //bit31, auto enable; bit30, canvas write mode ;23:20, high threshold ;19:16 , low threshold  for di inp luma path
8931 //     `define DI_INP_URGENT_CTRL                       8'ha4
8932 //     //bit15, auto enable; bit14, canvas write mode ;7:4, high threshold ;3:0 , low threshold  for di mem chroma path
8933 //     //bit31, auto enable; bit30, canvas write mode ;23:20, high threshold ;19:16 , low threshold  for di mem luma path
8934 //     `define DI_MEM_URGENT_CTRL                       8'ha5
8935 //     //bit15, auto enable; bit14, canvas write mode ;7:4, high threshold ;3:0 , low threshold  for di chan2 chroma path
8936 //     //bit31, auto enable; bit30, canvas write mode ;23:20, high threshold ;19:16 , low threshold  for di chan2 luma path
8937 //     `define DI_CHAN2_URGENT_CTRL                 8'ha6
8938 #define   VD1_IF0_GEN_REG3                         (0x1aa7)
8939 #define P_VD1_IF0_GEN_REG3                         (volatile uint32_t *)((0x1aa7  << 2) + 0xff900000)
8940 //bit 31:1,  reversed
8941 //bit 0,     cntl_64bit_rev
8942 #define   VD2_IF0_GEN_REG3                         (0x1aa8)
8943 #define P_VD2_IF0_GEN_REG3                         (volatile uint32_t *)((0x1aa8  << 2) + 0xff900000)
8944 //bit 31:1,  reversed
8945 //bit 0,     cntl_64bit_rev
8946 #define   OSD_BLENDO_H_START_END                   (0x1aa9)
8947 #define P_OSD_BLENDO_H_START_END                   (volatile uint32_t *)((0x1aa9  << 2) + 0xff900000)
8948 //OSD blending output horizontal start and end
8949 //Bit 28:16 start
8950 //Bit 12:0 end
8951 #define   OSD_BLENDO_V_START_END                   (0x1aaa)
8952 #define P_OSD_BLENDO_V_START_END                   (volatile uint32_t *)((0x1aaa  << 2) + 0xff900000)
8953 //OSD blending output vertical start and end
8954 //Bit 28:16 start
8955 //Bit 12:0 end
8956 #define   OSD_BLEND_GEN_CTRL0                      (0x1aab)
8957 #define P_OSD_BLEND_GEN_CTRL0                      (volatile uint32_t *)((0x1aab  << 2) + 0xff900000)
8958 //Bit 31:23 const_out_alpha
8959 //Bit 22:14 const_op_alpha
8960 //Bit 13 if true, OSD2 foreground otherwise OSD1 foreground
8961 //Bit 12  OSD BLENDing enable
8962 //Bit 9:8 alpha_op_sel 00: output alpha use osd1_alpha, 01: use osd2_alpha, else use const_out_alpha
8963 //Bit 5:4 color_op_sel 00: use osd1_alpha, 01: use osd2_alpha, else use const_op_alpha
8964 //Bit 1  OSD2 enable
8965 //Bit 0  OSD1 enable
8966 #define   OSD_BLEND_GEN_CTRL1                      (0x1aac)
8967 #define P_OSD_BLEND_GEN_CTRL1                      (volatile uint32_t *)((0x1aac  << 2) + 0xff900000)
8968 //Bit 31    osd1_alpha_premult, if true, osd1 alpha is premultipiled
8969 //Bit 30    osd2_alpha_premult, if true, osd2 alpha is premultipiled
8970 //Bit 23:16 osd blending hold lines
8971 //Bit 13:0  osd blending h_size
8972 #define   OSD_BLEND_DUMMY_DATA                     (0x1aad)
8973 #define P_OSD_BLEND_DUMMY_DATA                     (volatile uint32_t *)((0x1aad  << 2) + 0xff900000)
8974 //Bit 29:20   Y/R
8975 //Bit 19:10   CB/G
8976 //Bit 9:0     Cr/B
8977 #define   OSD_BLEND_CURRENT_XY                     (0x1aae)
8978 #define P_OSD_BLEND_CURRENT_XY                     (volatile uint32_t *)((0x1aae  << 2) + 0xff900000)
8979 //Bit 28:16 current_x
8980 //Bit 12:0 current_y
8981 //Bit 7,  highlight_en
8982 //Bit 6   probe_post, if true, probe pixel data after matrix, otherwise probe pixel data before matrix
8983 //Bit 5:4  probe_sel, 00: select matrix 0, 01: select matrix 1,  otherwise select nothing
8984 //Bit 3:2, matrix coef idx selection, 00: select mat0, 01: select mat1, otherwise slect nothing
8985 //Bit 1   mat1 conversion matrix enable
8986 //Bit 0   mat0 conversion matrix enable
8987 #define   VIU_OSD2_MATRIX_CTRL                     (0x1ab0)
8988 #define P_VIU_OSD2_MATRIX_CTRL                     (volatile uint32_t *)((0x1ab0  << 2) + 0xff900000)
8989 //Bit 28:16 coef00
8990 //Bit 12:0  coef01
8991 #define   VIU_OSD2_MATRIX_COEF00_01                (0x1ab1)
8992 #define P_VIU_OSD2_MATRIX_COEF00_01                (volatile uint32_t *)((0x1ab1  << 2) + 0xff900000)
8993 //Bit 28:16 coef02
8994 //Bit 12:0  coef10
8995 #define   VIU_OSD2_MATRIX_COEF02_10                (0x1ab2)
8996 #define P_VIU_OSD2_MATRIX_COEF02_10                (volatile uint32_t *)((0x1ab2  << 2) + 0xff900000)
8997 //Bit 28:16 coef11
8998 //Bit 12:0  coef12
8999 #define   VIU_OSD2_MATRIX_COEF11_12                (0x1ab3)
9000 #define P_VIU_OSD2_MATRIX_COEF11_12                (volatile uint32_t *)((0x1ab3  << 2) + 0xff900000)
9001 //Bit 28:16 coef20
9002 //Bit 12:0  coef21
9003 #define   VIU_OSD2_MATRIX_COEF20_21                (0x1ab4)
9004 #define P_VIU_OSD2_MATRIX_COEF20_21                (volatile uint32_t *)((0x1ab4  << 2) + 0xff900000)
9005 #define   VIU_OSD2_MATRIX_COEF22                   (0x1ab5)
9006 #define P_VIU_OSD2_MATRIX_COEF22                   (volatile uint32_t *)((0x1ab5  << 2) + 0xff900000)
9007 //Bit 26:16 offset0
9008 //Bit 10:0  offset1
9009 #define   VIU_OSD2_MATRIX_OFFSET0_1                (0x1ab6)
9010 #define P_VIU_OSD2_MATRIX_OFFSET0_1                (volatile uint32_t *)((0x1ab6  << 2) + 0xff900000)
9011 //Bit 10:0  offset2
9012 #define   VIU_OSD2_MATRIX_OFFSET2                  (0x1ab7)
9013 #define P_VIU_OSD2_MATRIX_OFFSET2                  (volatile uint32_t *)((0x1ab7  << 2) + 0xff900000)
9014 //Bit 26:16 pre_offset0
9015 //Bit 10:0  pre_offset1
9016 #define   VIU_OSD2_MATRIX_PRE_OFFSET0_1            (0x1ab8)
9017 #define P_VIU_OSD2_MATRIX_PRE_OFFSET0_1            (volatile uint32_t *)((0x1ab8  << 2) + 0xff900000)
9018 //Bit 10:0  pre_offset2
9019 #define   VIU_OSD2_MATRIX_PRE_OFFSET2              (0x1ab9)
9020 #define P_VIU_OSD2_MATRIX_PRE_OFFSET2              (volatile uint32_t *)((0x1ab9  << 2) + 0xff900000)
9021 //Read only
9022 //Bit 29:20 component 0
9023 //Bit 19:10 component 1
9024 //Bit 9:0 component 2
9025 #define   VIU_OSD2_MATRIX_PROBE_COLOR              (0x1aba)
9026 #define P_VIU_OSD2_MATRIX_PROBE_COLOR              (volatile uint32_t *)((0x1aba  << 2) + 0xff900000)
9027 //Bit 23:16 component 0
9028 //Bit 15:8  component 1
9029 //Bit 7:0 component 2
9030 #define   VIU_OSD2_MATRIX_HL_COLOR                 (0x1abb)
9031 #define P_VIU_OSD2_MATRIX_HL_COLOR                 (volatile uint32_t *)((0x1abb  << 2) + 0xff900000)
9032 //28:16 probe x, postion
9033 //12:0  probe y, position
9034 #define   VIU_OSD2_MATRIX_PROBE_POS                (0x1abc)
9035 #define P_VIU_OSD2_MATRIX_PROBE_POS                (volatile uint32_t *)((0x1abc  << 2) + 0xff900000)
9036 //the segment of afbc dec is 8'he0-8'hfe
9037 //`define AFBC_DEC_OFFSET   8'he0
9038 //
9039 // Reading file:  afbc_dec_regs.h
9040 //
9041 // synopsys translate_off
9042 // synopsys translate_on
9043 ////===============================////
9044 //// reg
9045 ////===============================////
9046 #define   AFBC_ENABLE                              (0x1ae0)
9047 #define P_AFBC_ENABLE                              (volatile uint32_t *)((0x1ae0  << 2) + 0xff900000)
9048 //Bit   31:1,     reserved
9049 //Bit   8,        dec_enable        unsigned  , default = 0
9050 //Bit   7:1,      reserved
9051 //Bit   0,        frm_start         unsigned  , default = 0
9052 #define   AFBC_MODE                                (0x1ae1)
9053 #define P_AFBC_MODE                                (volatile uint32_t *)((0x1ae1  << 2) + 0xff900000)
9054 //Bit   31,       soft_reset        the use as go_field
9055 //Bit   30,       reserved
9056 //Bit   29,       ddr_sz_mode       uns, default = 0 , 0: fixed block ddr size 1 : unfixed block ddr size;
9057 //Bit   28,       blk_mem_mode      uns, default = 0 , 0: fixed 16x128 size; 1 : fixed 12x128 size
9058 //Bit   27:26,    rev_mode          uns, default = 0 , reverse mode
9059 //Bit   25:24,    mif_urgent        uns, default = 3 , info mif and data mif urgent
9060 //Bit   22:16,    hold_line_num
9061 //Bit   15:14,    burst_len         uns, default = 1, 0: burst1 1:burst2 2:burst4
9062 //Bit   13:8,     compbits_yuv      uns, default = 0 ,
9063 //                                  bit 1:0,: y  component bitwidth : 00-8bit 01-9bit 10-10bit
9064 //                                  bit 3:2,: u  component bitwidth : 00-8bit 01-9bit 10-10bit
9065 //                                  bit 5:4,: v  component bitwidth : 00-8bit 01-9bit 10-10bit
9066 //Bit   7:6,      vert_skip_y       uns, default = 0 , luma vert skip mode : 00-y0y1, 01-y0, 10-y1, 11-(y0+y1)/2
9067 //Bit   5:4,      horz_skip_y       uns, default = 0 , luma horz skip mode : 00-y0y1, 01-y0, 10-y1, 11-(y0+y1)/2
9068 //Bit   3:2,      vert_skip_uv      uns, default = 0 , chroma vert skip mode : 00-y0y1, 01-y0, 10-y1, 11-(y0+y1)/2
9069 //Bit   1:0,      horz_skip_uv      uns, default = 0 , chroma horz skip mode : 00-y0y1, 01-y0, 10-y1, 11-(y0+y1)/2
9070 #define   AFBC_SIZE_IN                             (0x1ae2)
9071 #define P_AFBC_SIZE_IN                             (volatile uint32_t *)((0x1ae2  << 2) + 0xff900000)
9072 //Bit   31:29,    reserved
9073 //Bit   28:16     hsize_in          uns, default = 1920 , pic horz size in  unit: pixel
9074 //Bit   15:13,    reserved
9075 //Bit   12:0,     vsize_in          uns, default = 1080 , pic vert size in  unit: pixel
9076 #define   AFBC_DEC_DEF_COLOR                       (0x1ae3)
9077 #define P_AFBC_DEC_DEF_COLOR                       (volatile uint32_t *)((0x1ae3  << 2) + 0xff900000)
9078 //Bit   31:29,    reserved
9079 //Bit   29:20,   def_color_y        uns, default = 0, afbc dec y default setting value
9080 //Bit   19:10,   def_color_u        uns, default = 0, afbc dec u default setting value
9081 //Bit    9: 0,   def_color_v        uns, default = 0, afbc dec v default setting value
9082 #define   AFBC_CONV_CTRL                           (0x1ae4)
9083 #define P_AFBC_CONV_CTRL                           (volatile uint32_t *)((0x1ae4  << 2) + 0xff900000)
9084 //Bit   31:12,   reserved
9085 //Bit   11: 0,   conv_lbuf_len       uns, default = 256, unit=16 pixel need to set = 2^n
9086 #define   AFBC_LBUF_DEPTH                          (0x1ae5)
9087 #define P_AFBC_LBUF_DEPTH                          (volatile uint32_t *)((0x1ae5  << 2) + 0xff900000)
9088 //Bit   31:28,   reserved
9089 //Bit   27:16,   dec_lbuf_depth      uns, default = 128; // unit= 8 pixel
9090 //Bit   15:12,   reserved
9091 //Bit   11:0,    mif_lbuf_depth      uns, default = 128;
9092 #define   AFBC_HEAD_BADDR                          (0x1ae6)
9093 #define P_AFBC_HEAD_BADDR                          (volatile uint32_t *)((0x1ae6  << 2) + 0xff900000)
9094 //Bit   31:0,   mif_info_baddr      uns, default = 32'h0;
9095 #define   AFBC_BODY_BADDR                          (0x1ae7)
9096 #define P_AFBC_BODY_BADDR                          (volatile uint32_t *)((0x1ae7  << 2) + 0xff900000)
9097 //Bit   31:0,   mif_data_baddr      uns, default = 32'h0001_0000;
9098 #define   AFBC_SIZE_OUT                            (0x1ae8)
9099 #define P_AFBC_SIZE_OUT                            (volatile uint32_t *)((0x1ae8  << 2) + 0xff900000)
9100 //Bit   31:29,   reserved
9101 //Bit   28:16,   hsize_out           uns, default = 1920    ; // unit: 1 pixel
9102 //Bit   15:13,   reserved
9103 //Bit    12:0,   vsize_out           uns, default = 1080 ; // unit: 1 pixel
9104 #define   AFBC_OUT_YSCOPE                          (0x1ae9)
9105 #define P_AFBC_OUT_YSCOPE                          (volatile uint32_t *)((0x1ae9  << 2) + 0xff900000)
9106 //Bit   31:29,   reserved
9107 //Bit   28:16,   out_vert_bgn        uns, default = 0    ; // unit: 1 pixel
9108 //Bit   15:13,   reserved
9109 //Bit    12:0,   out_vert_end        uns, default = 1079 ; // unit: 1 pixel
9110 #define   AFBC_STAT                                (0x1aea)
9111 #define P_AFBC_STAT                                (volatile uint32_t *)((0x1aea  << 2) + 0xff900000)
9112 //Bit   31:1,   reserved
9113 //Bit      0,   frm_end_stat         uns, frame end status
9114 #define   AFBC_VD_CFMT_CTRL                        (0x1aeb)
9115 #define P_AFBC_VD_CFMT_CTRL                        (volatile uint32_t *)((0x1aeb  << 2) + 0xff900000)
9116 //Bit 31    it true, disable clock, otherwise enable clock
9117 //Bit 30    soft rst bit
9118 //Bit 28    if true, horizontal formatter use repeating to generete pixel, otherwise use bilinear interpolation
9119 //Bit 27:24 horizontal formatter initial phase
9120 //Bit 23    horizontal formatter repeat pixel 0 enable
9121 //Bit 22:21 horizontal Y/C ratio, 00: 1:1, 01: 2:1, 10: 4:1
9122 //Bit 20    horizontal formatter enable
9123 //Bit 19    if true, always use phase0 while vertical formater, meaning always
9124 //          repeat data, no interpolation
9125 //Bit 18    if true, disable vertical formatter chroma repeat last line
9126 //Bit 17    veritcal formatter dont need repeat line on phase0, 1: enable, 0: disable
9127 //Bit 16    veritcal formatter repeat line 0 enable
9128 //Bit 15:12 vertical formatter skip line num at the beginning
9129 //Bit 11:8  vertical formatter initial phase
9130 //Bit 7:1   vertical formatter phase step (3.4)
9131 //Bit 0     vertical formatter enable
9132 #define   AFBC_VD_CFMT_W                           (0x1aec)
9133 #define P_AFBC_VD_CFMT_W                           (volatile uint32_t *)((0x1aec  << 2) + 0xff900000)
9134 //Bit 27:16  horizontal formatter width
9135 //Bit 11:0   vertical formatter width
9136 #define   AFBC_MIF_HOR_SCOPE                       (0x1aed)
9137 #define P_AFBC_MIF_HOR_SCOPE                       (volatile uint32_t *)((0x1aed  << 2) + 0xff900000)
9138 //Bit   31:26,   reserved
9139 //Bit   25:16,   mif_blk_bgn_h        uns, default = 0  ; // unit: 32 pixel/block hor
9140 //Bit   15:10,   reserved
9141 //Bit    9: 0,   mif_blk_end_h        uns, default = 59 ; // unit: 32 pixel/block hor
9142 #define   AFBC_MIF_VER_SCOPE                       (0x1aee)
9143 #define P_AFBC_MIF_VER_SCOPE                       (volatile uint32_t *)((0x1aee  << 2) + 0xff900000)
9144 //Bit   31:28,   reserved
9145 //Bit   27:16,   mif_blk_bgn_v        uns, default = 0  ; // unit: 32 pixel/block ver
9146 //Bit   15:12,   reserved
9147 //Bit   11: 0,   mif_blk_end_v        uns, default = 269; // unit: 32 pixel/block ver
9148 #define   AFBC_PIXEL_HOR_SCOPE                     (0x1aef)
9149 #define P_AFBC_PIXEL_HOR_SCOPE                     (volatile uint32_t *)((0x1aef  << 2) + 0xff900000)
9150 //Bit   31:29,   reserved
9151 //Bit   28:16,   dec_pixel_bgn_h        uns, default = 0  ; // unit: pixel
9152 //Bit   15:13,   reserved
9153 //Bit   12: 0,   dec_pixel_end_h        uns, default = 1919 ; // unit: pixel
9154 #define   AFBC_PIXEL_VER_SCOPE                     (0x1af0)
9155 #define P_AFBC_PIXEL_VER_SCOPE                     (volatile uint32_t *)((0x1af0  << 2) + 0xff900000)
9156 //Bit   31:29,   reserved
9157 //Bit   28:16,   dec_pixel_bgn_v        uns, default = 0  ; // unit: pixel
9158 //Bit   15:13,   reserved
9159 //Bit   12: 0,   dec_pixel_end_v        uns, default = 1079 ; // unit: pixel
9160 #define   AFBC_VD_CFMT_H                           (0x1af1)
9161 #define P_AFBC_VD_CFMT_H                           (volatile uint32_t *)((0x1af1  << 2) + 0xff900000)
9162 //Bit 12:0   vertical formatter height
9163 // synopsys translate_off
9164 // synopsys translate_on
9165 //
9166 // Closing file:  afbc_dec_regs.h
9167 //
9168 //
9169 // Closing file:  vregs_clk2.h
9170 //
9171 //`define  VENC_VCBUS_BASE              8'h1b
9172 //
9173 // Reading file:  venc_regs.h
9174 //
9175 //===========================================================================
9176 // Video Interface Registers    0xa00 - 0xbff
9177 //===========================================================================
9178 // -----------------------------------------------
9179 // CBUS_BASE:  VENC_VCBUS_BASE = 0x1b
9180 // -----------------------------------------------
9181 // bit 15:8 -- vfifo2vd_vd_sel
9182 // bit 0 -- vfifo2vd_en
9183 #define   ENCP_VFIFO2VD_CTL                        (0x1b58)
9184 #define P_ENCP_VFIFO2VD_CTL                        (volatile uint32_t *)((0x1b58  << 2) + 0xff900000)
9185 // bit 12:0 -- vfifo2vd_pixel_start
9186 #define   ENCP_VFIFO2VD_PIXEL_START                (0x1b59)
9187 #define P_ENCP_VFIFO2VD_PIXEL_START                (volatile uint32_t *)((0x1b59  << 2) + 0xff900000)
9188 // bit 12:00 -- vfifo2vd_pixel_end
9189 #define   ENCP_VFIFO2VD_PIXEL_END                  (0x1b5a)
9190 #define P_ENCP_VFIFO2VD_PIXEL_END                  (volatile uint32_t *)((0x1b5a  << 2) + 0xff900000)
9191 // bit 10:0 -- vfifo2vd_line_top_start
9192 #define   ENCP_VFIFO2VD_LINE_TOP_START             (0x1b5b)
9193 #define P_ENCP_VFIFO2VD_LINE_TOP_START             (volatile uint32_t *)((0x1b5b  << 2) + 0xff900000)
9194 // bit 10:00 -- vfifo2vd_line_top_end
9195 #define   ENCP_VFIFO2VD_LINE_TOP_END               (0x1b5c)
9196 #define P_ENCP_VFIFO2VD_LINE_TOP_END               (volatile uint32_t *)((0x1b5c  << 2) + 0xff900000)
9197 // bit 10:00 -- vfifo2vd_line_bot_start
9198 #define   ENCP_VFIFO2VD_LINE_BOT_START             (0x1b5d)
9199 #define P_ENCP_VFIFO2VD_LINE_BOT_START             (volatile uint32_t *)((0x1b5d  << 2) + 0xff900000)
9200 // bit 10:00 -- vfifo2vd_line_bot_end
9201 #define   ENCP_VFIFO2VD_LINE_BOT_END               (0x1b5e)
9202 #define P_ENCP_VFIFO2VD_LINE_BOT_END               (volatile uint32_t *)((0x1b5e  << 2) + 0xff900000)
9203 // Route the hsync and vsync signals round the chip. There are three
9204 // sources and users of these signals: VIU, internal video encoder, and
9205 // the pins on the chip. Some muxing is still being done in the VIU. It
9206 // was not moved to the venc module so that the same exact VIU code could
9207 // be used both in Twister and Twister2000.
9208 // Bit 2: venc_sync_source (1=>pins, 0=>viu)
9209 // Bit 1: viu_sync_source (1=>pins, 0=>venc)
9210 // Bit 0: vpins_sync_source (1=>venc, 0=>viu)
9211 #define   VENC_SYNC_ROUTE                          (0x1b60)
9212 #define P_VENC_SYNC_ROUTE                          (volatile uint32_t *)((0x1b60  << 2) + 0xff900000)
9213 #define   VENC_VIDEO_EXSRC                         (0x1b61)
9214 #define P_VENC_VIDEO_EXSRC                         (volatile uint32_t *)((0x1b61  << 2) + 0xff900000)
9215 #define   VENC_DVI_SETTING                         (0x1b62)
9216 #define P_VENC_DVI_SETTING                         (volatile uint32_t *)((0x1b62  << 2) + 0xff900000)
9217 #define   VENC_C656_CTRL                           (0x1b63)
9218 #define P_VENC_C656_CTRL                           (volatile uint32_t *)((0x1b63  << 2) + 0xff900000)
9219 #define   VENC_UPSAMPLE_CTRL0                      (0x1b64)
9220 #define P_VENC_UPSAMPLE_CTRL0                      (volatile uint32_t *)((0x1b64  << 2) + 0xff900000)
9221 #define   VENC_UPSAMPLE_CTRL1                      (0x1b65)
9222 #define P_VENC_UPSAMPLE_CTRL1                      (volatile uint32_t *)((0x1b65  << 2) + 0xff900000)
9223 #define   VENC_UPSAMPLE_CTRL2                      (0x1b66)
9224 #define P_VENC_UPSAMPLE_CTRL2                      (volatile uint32_t *)((0x1b66  << 2) + 0xff900000)
9225 // Invert control for tcon output
9226 // bit[15:14] -- vsync, hsync,
9227 // bit[13:0] --  oev3, oev2, cpv2, cph3, cph2, cph1, oeh, vcom, stv2, stv1, cpv1, oev1, sth1, sth2
9228 #define   TCON_INVERT_CTL                          (0x1b67)
9229 #define P_TCON_INVERT_CTL                          (volatile uint32_t *)((0x1b67  << 2) + 0xff900000)
9230 #define   VENC_VIDEO_PROG_MODE                     (0x1b68)
9231 #define P_VENC_VIDEO_PROG_MODE                     (volatile uint32_t *)((0x1b68  << 2) + 0xff900000)
9232 //---- Venc pixel/line info
9233 #define   VENC_ENCI_LINE                           (0x1b69)
9234 #define P_VENC_ENCI_LINE                           (volatile uint32_t *)((0x1b69  << 2) + 0xff900000)
9235 #define   VENC_ENCI_PIXEL                          (0x1b6a)
9236 #define P_VENC_ENCI_PIXEL                          (volatile uint32_t *)((0x1b6a  << 2) + 0xff900000)
9237 #define   VENC_ENCP_LINE                           (0x1b6b)
9238 #define P_VENC_ENCP_LINE                           (volatile uint32_t *)((0x1b6b  << 2) + 0xff900000)
9239 #define   VENC_ENCP_PIXEL                          (0x1b6c)
9240 #define P_VENC_ENCP_PIXEL                          (volatile uint32_t *)((0x1b6c  << 2) + 0xff900000)
9241 //---- Status
9242 #define   VENC_STATA                               (0x1b6d)
9243 #define P_VENC_STATA                               (volatile uint32_t *)((0x1b6d  << 2) + 0xff900000)
9244 //---- Interrupt setting
9245 #define   VENC_INTCTRL                             (0x1b6e)
9246 #define P_VENC_INTCTRL                             (volatile uint32_t *)((0x1b6e  << 2) + 0xff900000)
9247 #define   VENC_INTFLAG                             (0x1b6f)
9248 #define P_VENC_INTFLAG                             (volatile uint32_t *)((0x1b6f  << 2) + 0xff900000)
9249 //--------- Video test configuration
9250 #define   VENC_VIDEO_TST_EN                        (0x1b70)
9251 #define P_VENC_VIDEO_TST_EN                        (volatile uint32_t *)((0x1b70  << 2) + 0xff900000)
9252 #define   VENC_VIDEO_TST_MDSEL                     (0x1b71)
9253 #define P_VENC_VIDEO_TST_MDSEL                     (volatile uint32_t *)((0x1b71  << 2) + 0xff900000)
9254 #define   VENC_VIDEO_TST_Y                         (0x1b72)
9255 #define P_VENC_VIDEO_TST_Y                         (volatile uint32_t *)((0x1b72  << 2) + 0xff900000)
9256 #define   VENC_VIDEO_TST_CB                        (0x1b73)
9257 #define P_VENC_VIDEO_TST_CB                        (volatile uint32_t *)((0x1b73  << 2) + 0xff900000)
9258 #define   VENC_VIDEO_TST_CR                        (0x1b74)
9259 #define P_VENC_VIDEO_TST_CR                        (volatile uint32_t *)((0x1b74  << 2) + 0xff900000)
9260 #define   VENC_VIDEO_TST_CLRBAR_STRT               (0x1b75)
9261 #define P_VENC_VIDEO_TST_CLRBAR_STRT               (volatile uint32_t *)((0x1b75  << 2) + 0xff900000)
9262 #define   VENC_VIDEO_TST_CLRBAR_WIDTH              (0x1b76)
9263 #define P_VENC_VIDEO_TST_CLRBAR_WIDTH              (volatile uint32_t *)((0x1b76  << 2) + 0xff900000)
9264 #define   VENC_VIDEO_TST_VDCNT_STSET               (0x1b77)
9265 #define P_VENC_VIDEO_TST_VDCNT_STSET               (volatile uint32_t *)((0x1b77  << 2) + 0xff900000)
9266 //----- Video dac setting
9267 #define   VENC_VDAC_DACSEL0                        (0x1b78)
9268 #define P_VENC_VDAC_DACSEL0                        (volatile uint32_t *)((0x1b78  << 2) + 0xff900000)
9269 #define   VENC_VDAC_DACSEL1                        (0x1b79)
9270 #define P_VENC_VDAC_DACSEL1                        (volatile uint32_t *)((0x1b79  << 2) + 0xff900000)
9271 #define   VENC_VDAC_DACSEL2                        (0x1b7a)
9272 #define P_VENC_VDAC_DACSEL2                        (volatile uint32_t *)((0x1b7a  << 2) + 0xff900000)
9273 #define   VENC_VDAC_DACSEL3                        (0x1b7b)
9274 #define P_VENC_VDAC_DACSEL3                        (volatile uint32_t *)((0x1b7b  << 2) + 0xff900000)
9275 #define   VENC_VDAC_DACSEL4                        (0x1b7c)
9276 #define P_VENC_VDAC_DACSEL4                        (volatile uint32_t *)((0x1b7c  << 2) + 0xff900000)
9277 #define   VENC_VDAC_DACSEL5                        (0x1b7d)
9278 #define P_VENC_VDAC_DACSEL5                        (volatile uint32_t *)((0x1b7d  << 2) + 0xff900000)
9279 #define   VENC_VDAC_SETTING                        (0x1b7e)
9280 #define P_VENC_VDAC_SETTING                        (volatile uint32_t *)((0x1b7e  << 2) + 0xff900000)
9281 #define   VENC_VDAC_TST_VAL                        (0x1b7f)
9282 #define P_VENC_VDAC_TST_VAL                        (volatile uint32_t *)((0x1b7f  << 2) + 0xff900000)
9283 #define   VENC_VDAC_DAC0_GAINCTRL                  (0x1bf0)
9284 #define P_VENC_VDAC_DAC0_GAINCTRL                  (volatile uint32_t *)((0x1bf0  << 2) + 0xff900000)
9285 #define   VENC_VDAC_DAC0_OFFSET                    (0x1bf1)
9286 #define P_VENC_VDAC_DAC0_OFFSET                    (volatile uint32_t *)((0x1bf1  << 2) + 0xff900000)
9287 #define   VENC_VDAC_DAC1_GAINCTRL                  (0x1bf2)
9288 #define P_VENC_VDAC_DAC1_GAINCTRL                  (volatile uint32_t *)((0x1bf2  << 2) + 0xff900000)
9289 #define   VENC_VDAC_DAC1_OFFSET                    (0x1bf3)
9290 #define P_VENC_VDAC_DAC1_OFFSET                    (volatile uint32_t *)((0x1bf3  << 2) + 0xff900000)
9291 #define   VENC_VDAC_DAC2_GAINCTRL                  (0x1bf4)
9292 #define P_VENC_VDAC_DAC2_GAINCTRL                  (volatile uint32_t *)((0x1bf4  << 2) + 0xff900000)
9293 #define   VENC_VDAC_DAC2_OFFSET                    (0x1bf5)
9294 #define P_VENC_VDAC_DAC2_OFFSET                    (volatile uint32_t *)((0x1bf5  << 2) + 0xff900000)
9295 #define   VENC_VDAC_DAC3_GAINCTRL                  (0x1bf6)
9296 #define P_VENC_VDAC_DAC3_GAINCTRL                  (volatile uint32_t *)((0x1bf6  << 2) + 0xff900000)
9297 #define   VENC_VDAC_DAC3_OFFSET                    (0x1bf7)
9298 #define P_VENC_VDAC_DAC3_OFFSET                    (volatile uint32_t *)((0x1bf7  << 2) + 0xff900000)
9299 #define   VENC_VDAC_DAC4_GAINCTRL                  (0x1bf8)
9300 #define P_VENC_VDAC_DAC4_GAINCTRL                  (volatile uint32_t *)((0x1bf8  << 2) + 0xff900000)
9301 #define   VENC_VDAC_DAC4_OFFSET                    (0x1bf9)
9302 #define P_VENC_VDAC_DAC4_OFFSET                    (volatile uint32_t *)((0x1bf9  << 2) + 0xff900000)
9303 #define   VENC_VDAC_DAC5_GAINCTRL                  (0x1bfa)
9304 #define P_VENC_VDAC_DAC5_GAINCTRL                  (volatile uint32_t *)((0x1bfa  << 2) + 0xff900000)
9305 #define   VENC_VDAC_DAC5_OFFSET                    (0x1bfb)
9306 #define P_VENC_VDAC_DAC5_OFFSET                    (volatile uint32_t *)((0x1bfb  << 2) + 0xff900000)
9307 #define   VENC_VDAC_FIFO_CTRL                      (0x1bfc)
9308 #define P_VENC_VDAC_FIFO_CTRL                      (volatile uint32_t *)((0x1bfc  << 2) + 0xff900000)
9309 #define   ENCL_TCON_INVERT_CTL                     (0x1bfd)
9310 #define P_ENCL_TCON_INVERT_CTL                     (volatile uint32_t *)((0x1bfd  << 2) + 0xff900000)
9311 //
9312 // Closing file:  venc_regs.h
9313 //
9314 //
9315 // Reading file:  enc480p_regs.h
9316 //
9317 // synopsys translate_off
9318 // synopsys translate_on
9319 //===========================================================================
9320 // Video Encoder 480p Registers    0xb80 - 0xbef
9321 //===========================================================================
9322 //-------- Video basic setting
9323 #define   ENCP_VIDEO_EN                            (0x1b80)
9324 #define P_ENCP_VIDEO_EN                            (volatile uint32_t *)((0x1b80  << 2) + 0xff900000)
9325 #define   ENCP_VIDEO_SYNC_MODE                     (0x1b81)
9326 #define P_ENCP_VIDEO_SYNC_MODE                     (volatile uint32_t *)((0x1b81  << 2) + 0xff900000)
9327 #define   ENCP_MACV_EN                             (0x1b82)
9328 #define P_ENCP_MACV_EN                             (volatile uint32_t *)((0x1b82  << 2) + 0xff900000)
9329 #define   ENCP_VIDEO_Y_SCL                         (0x1b83)
9330 #define P_ENCP_VIDEO_Y_SCL                         (volatile uint32_t *)((0x1b83  << 2) + 0xff900000)
9331 #define   ENCP_VIDEO_PB_SCL                        (0x1b84)
9332 #define P_ENCP_VIDEO_PB_SCL                        (volatile uint32_t *)((0x1b84  << 2) + 0xff900000)
9333 #define   ENCP_VIDEO_PR_SCL                        (0x1b85)
9334 #define P_ENCP_VIDEO_PR_SCL                        (volatile uint32_t *)((0x1b85  << 2) + 0xff900000)
9335 #define   ENCP_VIDEO_SYNC_SCL                      (0x1b86)
9336 #define P_ENCP_VIDEO_SYNC_SCL                      (volatile uint32_t *)((0x1b86  << 2) + 0xff900000)
9337 #define   ENCP_VIDEO_MACV_SCL                      (0x1b87)
9338 #define P_ENCP_VIDEO_MACV_SCL                      (volatile uint32_t *)((0x1b87  << 2) + 0xff900000)
9339 #define   ENCP_VIDEO_Y_OFFST                       (0x1b88)
9340 #define P_ENCP_VIDEO_Y_OFFST                       (volatile uint32_t *)((0x1b88  << 2) + 0xff900000)
9341 #define   ENCP_VIDEO_PB_OFFST                      (0x1b89)
9342 #define P_ENCP_VIDEO_PB_OFFST                      (volatile uint32_t *)((0x1b89  << 2) + 0xff900000)
9343 #define   ENCP_VIDEO_PR_OFFST                      (0x1b8a)
9344 #define P_ENCP_VIDEO_PR_OFFST                      (volatile uint32_t *)((0x1b8a  << 2) + 0xff900000)
9345 #define   ENCP_VIDEO_SYNC_OFFST                    (0x1b8b)
9346 #define P_ENCP_VIDEO_SYNC_OFFST                    (volatile uint32_t *)((0x1b8b  << 2) + 0xff900000)
9347 #define   ENCP_VIDEO_MACV_OFFST                    (0x1b8c)
9348 #define P_ENCP_VIDEO_MACV_OFFST                    (volatile uint32_t *)((0x1b8c  << 2) + 0xff900000)
9349 //----- Video mode
9350 #define   ENCP_VIDEO_MODE                          (0x1b8d)
9351 #define P_ENCP_VIDEO_MODE                          (volatile uint32_t *)((0x1b8d  << 2) + 0xff900000)
9352 #define   ENCP_VIDEO_MODE_ADV                      (0x1b8e)
9353 #define P_ENCP_VIDEO_MODE_ADV                      (volatile uint32_t *)((0x1b8e  << 2) + 0xff900000)
9354 //--------------- Debug pins
9355 #define   ENCP_DBG_PX_RST                          (0x1b90)
9356 #define P_ENCP_DBG_PX_RST                          (volatile uint32_t *)((0x1b90  << 2) + 0xff900000)
9357 #define   ENCP_DBG_LN_RST                          (0x1b91)
9358 #define P_ENCP_DBG_LN_RST                          (volatile uint32_t *)((0x1b91  << 2) + 0xff900000)
9359 #define   ENCP_DBG_PX_INT                          (0x1b92)
9360 #define P_ENCP_DBG_PX_INT                          (volatile uint32_t *)((0x1b92  << 2) + 0xff900000)
9361 #define   ENCP_DBG_LN_INT                          (0x1b93)
9362 #define P_ENCP_DBG_LN_INT                          (volatile uint32_t *)((0x1b93  << 2) + 0xff900000)
9363 //----------- Video Advanced setting
9364 #define   ENCP_VIDEO_YFP1_HTIME                    (0x1b94)
9365 #define P_ENCP_VIDEO_YFP1_HTIME                    (volatile uint32_t *)((0x1b94  << 2) + 0xff900000)
9366 #define   ENCP_VIDEO_YFP2_HTIME                    (0x1b95)
9367 #define P_ENCP_VIDEO_YFP2_HTIME                    (volatile uint32_t *)((0x1b95  << 2) + 0xff900000)
9368 #define   ENCP_VIDEO_YC_DLY                        (0x1b96)
9369 #define P_ENCP_VIDEO_YC_DLY                        (volatile uint32_t *)((0x1b96  << 2) + 0xff900000)
9370 #define   ENCP_VIDEO_MAX_PXCNT                     (0x1b97)
9371 #define P_ENCP_VIDEO_MAX_PXCNT                     (volatile uint32_t *)((0x1b97  << 2) + 0xff900000)
9372 #define   ENCP_VIDEO_HSPULS_BEGIN                  (0x1b98)
9373 #define P_ENCP_VIDEO_HSPULS_BEGIN                  (volatile uint32_t *)((0x1b98  << 2) + 0xff900000)
9374 #define   ENCP_VIDEO_HSPULS_END                    (0x1b99)
9375 #define P_ENCP_VIDEO_HSPULS_END                    (volatile uint32_t *)((0x1b99  << 2) + 0xff900000)
9376 #define   ENCP_VIDEO_HSPULS_SWITCH                 (0x1b9a)
9377 #define P_ENCP_VIDEO_HSPULS_SWITCH                 (volatile uint32_t *)((0x1b9a  << 2) + 0xff900000)
9378 #define   ENCP_VIDEO_VSPULS_BEGIN                  (0x1b9b)
9379 #define P_ENCP_VIDEO_VSPULS_BEGIN                  (volatile uint32_t *)((0x1b9b  << 2) + 0xff900000)
9380 #define   ENCP_VIDEO_VSPULS_END                    (0x1b9c)
9381 #define P_ENCP_VIDEO_VSPULS_END                    (volatile uint32_t *)((0x1b9c  << 2) + 0xff900000)
9382 #define   ENCP_VIDEO_VSPULS_BLINE                  (0x1b9d)
9383 #define P_ENCP_VIDEO_VSPULS_BLINE                  (volatile uint32_t *)((0x1b9d  << 2) + 0xff900000)
9384 #define   ENCP_VIDEO_VSPULS_ELINE                  (0x1b9e)
9385 #define P_ENCP_VIDEO_VSPULS_ELINE                  (volatile uint32_t *)((0x1b9e  << 2) + 0xff900000)
9386 #define   ENCP_VIDEO_EQPULS_BEGIN                  (0x1b9f)
9387 #define P_ENCP_VIDEO_EQPULS_BEGIN                  (volatile uint32_t *)((0x1b9f  << 2) + 0xff900000)
9388 #define   ENCP_VIDEO_EQPULS_END                    (0x1ba0)
9389 #define P_ENCP_VIDEO_EQPULS_END                    (volatile uint32_t *)((0x1ba0  << 2) + 0xff900000)
9390 #define   ENCP_VIDEO_EQPULS_BLINE                  (0x1ba1)
9391 #define P_ENCP_VIDEO_EQPULS_BLINE                  (volatile uint32_t *)((0x1ba1  << 2) + 0xff900000)
9392 #define   ENCP_VIDEO_EQPULS_ELINE                  (0x1ba2)
9393 #define P_ENCP_VIDEO_EQPULS_ELINE                  (volatile uint32_t *)((0x1ba2  << 2) + 0xff900000)
9394 #define   ENCP_VIDEO_HAVON_END                     (0x1ba3)
9395 #define P_ENCP_VIDEO_HAVON_END                     (volatile uint32_t *)((0x1ba3  << 2) + 0xff900000)
9396 #define   ENCP_VIDEO_HAVON_BEGIN                   (0x1ba4)
9397 #define P_ENCP_VIDEO_HAVON_BEGIN                   (volatile uint32_t *)((0x1ba4  << 2) + 0xff900000)
9398 #define   ENCP_VIDEO_VAVON_ELINE                   (0x1baf)
9399 #define P_ENCP_VIDEO_VAVON_ELINE                   (volatile uint32_t *)((0x1baf  << 2) + 0xff900000)
9400 #define   ENCP_VIDEO_VAVON_BLINE                   (0x1ba6)
9401 #define P_ENCP_VIDEO_VAVON_BLINE                   (volatile uint32_t *)((0x1ba6  << 2) + 0xff900000)
9402 #define   ENCP_VIDEO_HSO_BEGIN                     (0x1ba7)
9403 #define P_ENCP_VIDEO_HSO_BEGIN                     (volatile uint32_t *)((0x1ba7  << 2) + 0xff900000)
9404 #define   ENCP_VIDEO_HSO_END                       (0x1ba8)
9405 #define P_ENCP_VIDEO_HSO_END                       (volatile uint32_t *)((0x1ba8  << 2) + 0xff900000)
9406 #define   ENCP_VIDEO_VSO_BEGIN                     (0x1ba9)
9407 #define P_ENCP_VIDEO_VSO_BEGIN                     (volatile uint32_t *)((0x1ba9  << 2) + 0xff900000)
9408 #define   ENCP_VIDEO_VSO_END                       (0x1baa)
9409 #define P_ENCP_VIDEO_VSO_END                       (volatile uint32_t *)((0x1baa  << 2) + 0xff900000)
9410 #define   ENCP_VIDEO_VSO_BLINE                     (0x1bab)
9411 #define P_ENCP_VIDEO_VSO_BLINE                     (volatile uint32_t *)((0x1bab  << 2) + 0xff900000)
9412 #define   ENCP_VIDEO_VSO_ELINE                     (0x1bac)
9413 #define P_ENCP_VIDEO_VSO_ELINE                     (volatile uint32_t *)((0x1bac  << 2) + 0xff900000)
9414 #define   ENCP_VIDEO_SYNC_WAVE_CURVE               (0x1bad)
9415 #define P_ENCP_VIDEO_SYNC_WAVE_CURVE               (volatile uint32_t *)((0x1bad  << 2) + 0xff900000)
9416 #define   ENCP_VIDEO_MAX_LNCNT                     (0x1bae)
9417 #define P_ENCP_VIDEO_MAX_LNCNT                     (volatile uint32_t *)((0x1bae  << 2) + 0xff900000)
9418 #define   ENCP_VIDEO_SY_VAL                        (0x1bb0)
9419 #define P_ENCP_VIDEO_SY_VAL                        (volatile uint32_t *)((0x1bb0  << 2) + 0xff900000)
9420 #define   ENCP_VIDEO_SY2_VAL                       (0x1bb1)
9421 #define P_ENCP_VIDEO_SY2_VAL                       (volatile uint32_t *)((0x1bb1  << 2) + 0xff900000)
9422 #define   ENCP_VIDEO_BLANKY_VAL                    (0x1bb2)
9423 #define P_ENCP_VIDEO_BLANKY_VAL                    (volatile uint32_t *)((0x1bb2  << 2) + 0xff900000)
9424 #define   ENCP_VIDEO_BLANKPB_VAL                   (0x1bb3)
9425 #define P_ENCP_VIDEO_BLANKPB_VAL                   (volatile uint32_t *)((0x1bb3  << 2) + 0xff900000)
9426 #define   ENCP_VIDEO_BLANKPR_VAL                   (0x1bb4)
9427 #define P_ENCP_VIDEO_BLANKPR_VAL                   (volatile uint32_t *)((0x1bb4  << 2) + 0xff900000)
9428 #define   ENCP_VIDEO_HOFFST                        (0x1bb5)
9429 #define P_ENCP_VIDEO_HOFFST                        (volatile uint32_t *)((0x1bb5  << 2) + 0xff900000)
9430 #define   ENCP_VIDEO_VOFFST                        (0x1bb6)
9431 #define P_ENCP_VIDEO_VOFFST                        (volatile uint32_t *)((0x1bb6  << 2) + 0xff900000)
9432 #define   ENCP_VIDEO_RGB_CTRL                      (0x1bb7)
9433 #define P_ENCP_VIDEO_RGB_CTRL                      (volatile uint32_t *)((0x1bb7  << 2) + 0xff900000)
9434 #define   ENCP_VIDEO_FILT_CTRL                     (0x1bb8)
9435 #define P_ENCP_VIDEO_FILT_CTRL                     (volatile uint32_t *)((0x1bb8  << 2) + 0xff900000)
9436 #define   ENCP_VIDEO_OFLD_VPEQ_OFST                (0x1bb9)
9437 #define P_ENCP_VIDEO_OFLD_VPEQ_OFST                (volatile uint32_t *)((0x1bb9  << 2) + 0xff900000)
9438 #define   ENCP_VIDEO_OFLD_VOAV_OFST                (0x1bba)
9439 #define P_ENCP_VIDEO_OFLD_VOAV_OFST                (volatile uint32_t *)((0x1bba  << 2) + 0xff900000)
9440 #define   ENCP_VIDEO_MATRIX_CB                     (0x1bbb)
9441 #define P_ENCP_VIDEO_MATRIX_CB                     (volatile uint32_t *)((0x1bbb  << 2) + 0xff900000)
9442 #define   ENCP_VIDEO_MATRIX_CR                     (0x1bbc)
9443 #define P_ENCP_VIDEO_MATRIX_CR                     (volatile uint32_t *)((0x1bbc  << 2) + 0xff900000)
9444 #define   ENCP_VIDEO_RGBIN_CTRL                    (0x1bbd)
9445 #define P_ENCP_VIDEO_RGBIN_CTRL                    (volatile uint32_t *)((0x1bbd  << 2) + 0xff900000)
9446 //------------------Macrovision advanced setting
9447 #define   ENCP_MACV_BLANKY_VAL                     (0x1bc0)
9448 #define P_ENCP_MACV_BLANKY_VAL                     (volatile uint32_t *)((0x1bc0  << 2) + 0xff900000)
9449 #define   ENCP_MACV_MAXY_VAL                       (0x1bc1)
9450 #define P_ENCP_MACV_MAXY_VAL                       (volatile uint32_t *)((0x1bc1  << 2) + 0xff900000)
9451 #define   ENCP_MACV_1ST_PSSYNC_STRT                (0x1bc2)
9452 #define P_ENCP_MACV_1ST_PSSYNC_STRT                (volatile uint32_t *)((0x1bc2  << 2) + 0xff900000)
9453 #define   ENCP_MACV_PSSYNC_STRT                    (0x1bc3)
9454 #define P_ENCP_MACV_PSSYNC_STRT                    (volatile uint32_t *)((0x1bc3  << 2) + 0xff900000)
9455 #define   ENCP_MACV_AGC_STRT                       (0x1bc4)
9456 #define P_ENCP_MACV_AGC_STRT                       (volatile uint32_t *)((0x1bc4  << 2) + 0xff900000)
9457 #define   ENCP_MACV_AGC_END                        (0x1bc5)
9458 #define P_ENCP_MACV_AGC_END                        (volatile uint32_t *)((0x1bc5  << 2) + 0xff900000)
9459 #define   ENCP_MACV_WAVE_END                       (0x1bc6)
9460 #define P_ENCP_MACV_WAVE_END                       (volatile uint32_t *)((0x1bc6  << 2) + 0xff900000)
9461 #define   ENCP_MACV_STRTLINE                       (0x1bc7)
9462 #define P_ENCP_MACV_STRTLINE                       (volatile uint32_t *)((0x1bc7  << 2) + 0xff900000)
9463 #define   ENCP_MACV_ENDLINE                        (0x1bc8)
9464 #define P_ENCP_MACV_ENDLINE                        (volatile uint32_t *)((0x1bc8  << 2) + 0xff900000)
9465 #define   ENCP_MACV_TS_CNT_MAX_L                   (0x1bc9)
9466 #define P_ENCP_MACV_TS_CNT_MAX_L                   (volatile uint32_t *)((0x1bc9  << 2) + 0xff900000)
9467 #define   ENCP_MACV_TS_CNT_MAX_H                   (0x1bca)
9468 #define P_ENCP_MACV_TS_CNT_MAX_H                   (volatile uint32_t *)((0x1bca  << 2) + 0xff900000)
9469 #define   ENCP_MACV_TIME_DOWN                      (0x1bcb)
9470 #define P_ENCP_MACV_TIME_DOWN                      (volatile uint32_t *)((0x1bcb  << 2) + 0xff900000)
9471 #define   ENCP_MACV_TIME_LO                        (0x1bcc)
9472 #define P_ENCP_MACV_TIME_LO                        (volatile uint32_t *)((0x1bcc  << 2) + 0xff900000)
9473 #define   ENCP_MACV_TIME_UP                        (0x1bcd)
9474 #define P_ENCP_MACV_TIME_UP                        (volatile uint32_t *)((0x1bcd  << 2) + 0xff900000)
9475 #define   ENCP_MACV_TIME_RST                       (0x1bce)
9476 #define P_ENCP_MACV_TIME_RST                       (volatile uint32_t *)((0x1bce  << 2) + 0xff900000)
9477 //---------------- VBI control -------------------
9478 #define   ENCP_VBI_CTRL                            (0x1bd0)
9479 #define P_ENCP_VBI_CTRL                            (volatile uint32_t *)((0x1bd0  << 2) + 0xff900000)
9480 #define   ENCP_VBI_SETTING                         (0x1bd1)
9481 #define P_ENCP_VBI_SETTING                         (volatile uint32_t *)((0x1bd1  << 2) + 0xff900000)
9482 #define   ENCP_VBI_BEGIN                           (0x1bd2)
9483 #define P_ENCP_VBI_BEGIN                           (volatile uint32_t *)((0x1bd2  << 2) + 0xff900000)
9484 #define   ENCP_VBI_WIDTH                           (0x1bd3)
9485 #define P_ENCP_VBI_WIDTH                           (volatile uint32_t *)((0x1bd3  << 2) + 0xff900000)
9486 #define   ENCP_VBI_HVAL                            (0x1bd4)
9487 #define P_ENCP_VBI_HVAL                            (volatile uint32_t *)((0x1bd4  << 2) + 0xff900000)
9488 #define   ENCP_VBI_DATA0                           (0x1bd5)
9489 #define P_ENCP_VBI_DATA0                           (volatile uint32_t *)((0x1bd5  << 2) + 0xff900000)
9490 #define   ENCP_VBI_DATA1                           (0x1bd6)
9491 #define P_ENCP_VBI_DATA1                           (volatile uint32_t *)((0x1bd6  << 2) + 0xff900000)
9492 //----------------C656 OUT Control------------- Grant
9493 #define   C656_HS_ST                               (0x1be0)
9494 #define P_C656_HS_ST                               (volatile uint32_t *)((0x1be0  << 2) + 0xff900000)
9495 #define   C656_HS_ED                               (0x1be1)
9496 #define P_C656_HS_ED                               (volatile uint32_t *)((0x1be1  << 2) + 0xff900000)
9497 #define   C656_VS_LNST_E                           (0x1be2)
9498 #define P_C656_VS_LNST_E                           (volatile uint32_t *)((0x1be2  << 2) + 0xff900000)
9499 #define   C656_VS_LNST_O                           (0x1be3)
9500 #define P_C656_VS_LNST_O                           (volatile uint32_t *)((0x1be3  << 2) + 0xff900000)
9501 #define   C656_VS_LNED_E                           (0x1be4)
9502 #define P_C656_VS_LNED_E                           (volatile uint32_t *)((0x1be4  << 2) + 0xff900000)
9503 #define   C656_VS_LNED_O                           (0x1be5)
9504 #define P_C656_VS_LNED_O                           (volatile uint32_t *)((0x1be5  << 2) + 0xff900000)
9505 #define   C656_FS_LNST                             (0x1be6)
9506 #define P_C656_FS_LNST                             (volatile uint32_t *)((0x1be6  << 2) + 0xff900000)
9507 #define   C656_FS_LNED                             (0x1be7)
9508 #define P_C656_FS_LNED                             (volatile uint32_t *)((0x1be7  << 2) + 0xff900000)
9509 // synopsys translate_off
9510 // synopsys translate_on
9511 //
9512 // Closing file:  enc480p_regs.h
9513 //
9514 //
9515 // Reading file:  enci_regs.h
9516 //
9517 //===========================================================================
9518 // Video Interface Registers    0xb00 - 0xb57
9519 //===========================================================================
9520 #define   ENCI_VIDEO_MODE                          (0x1b00)
9521 #define P_ENCI_VIDEO_MODE                          (volatile uint32_t *)((0x1b00  << 2) + 0xff900000)
9522 #define   ENCI_VIDEO_MODE_ADV                      (0x1b01)
9523 #define P_ENCI_VIDEO_MODE_ADV                      (volatile uint32_t *)((0x1b01  << 2) + 0xff900000)
9524 #define   ENCI_VIDEO_FSC_ADJ                       (0x1b02)
9525 #define P_ENCI_VIDEO_FSC_ADJ                       (volatile uint32_t *)((0x1b02  << 2) + 0xff900000)
9526 #define   ENCI_VIDEO_BRIGHT                        (0x1b03)
9527 #define P_ENCI_VIDEO_BRIGHT                        (volatile uint32_t *)((0x1b03  << 2) + 0xff900000)
9528 #define   ENCI_VIDEO_CONT                          (0x1b04)
9529 #define P_ENCI_VIDEO_CONT                          (volatile uint32_t *)((0x1b04  << 2) + 0xff900000)
9530 #define   ENCI_VIDEO_SAT                           (0x1b05)
9531 #define P_ENCI_VIDEO_SAT                           (volatile uint32_t *)((0x1b05  << 2) + 0xff900000)
9532 #define   ENCI_VIDEO_HUE                           (0x1b06)
9533 #define P_ENCI_VIDEO_HUE                           (volatile uint32_t *)((0x1b06  << 2) + 0xff900000)
9534 #define   ENCI_VIDEO_SCH                           (0x1b07)
9535 #define P_ENCI_VIDEO_SCH                           (volatile uint32_t *)((0x1b07  << 2) + 0xff900000)
9536 #define   ENCI_SYNC_MODE                           (0x1b08)
9537 #define P_ENCI_SYNC_MODE                           (volatile uint32_t *)((0x1b08  << 2) + 0xff900000)
9538 #define   ENCI_SYNC_CTRL                           (0x1b09)
9539 #define P_ENCI_SYNC_CTRL                           (volatile uint32_t *)((0x1b09  << 2) + 0xff900000)
9540 #define   ENCI_SYNC_HSO_BEGIN                      (0x1b0a)
9541 #define P_ENCI_SYNC_HSO_BEGIN                      (volatile uint32_t *)((0x1b0a  << 2) + 0xff900000)
9542 #define   ENCI_SYNC_HSO_END                        (0x1b0b)
9543 #define P_ENCI_SYNC_HSO_END                        (volatile uint32_t *)((0x1b0b  << 2) + 0xff900000)
9544 #define   ENCI_SYNC_VSO_EVN                        (0x1b0c)
9545 #define P_ENCI_SYNC_VSO_EVN                        (volatile uint32_t *)((0x1b0c  << 2) + 0xff900000)
9546 #define   ENCI_SYNC_VSO_ODD                        (0x1b0d)
9547 #define P_ENCI_SYNC_VSO_ODD                        (volatile uint32_t *)((0x1b0d  << 2) + 0xff900000)
9548 #define   ENCI_SYNC_VSO_EVNLN                      (0x1b0e)
9549 #define P_ENCI_SYNC_VSO_EVNLN                      (volatile uint32_t *)((0x1b0e  << 2) + 0xff900000)
9550 #define   ENCI_SYNC_VSO_ODDLN                      (0x1b0f)
9551 #define P_ENCI_SYNC_VSO_ODDLN                      (volatile uint32_t *)((0x1b0f  << 2) + 0xff900000)
9552 #define   ENCI_SYNC_HOFFST                         (0x1b10)
9553 #define P_ENCI_SYNC_HOFFST                         (volatile uint32_t *)((0x1b10  << 2) + 0xff900000)
9554 #define   ENCI_SYNC_VOFFST                         (0x1b11)
9555 #define P_ENCI_SYNC_VOFFST                         (volatile uint32_t *)((0x1b11  << 2) + 0xff900000)
9556 #define   ENCI_SYNC_ADJ                            (0x1b12)
9557 #define P_ENCI_SYNC_ADJ                            (volatile uint32_t *)((0x1b12  << 2) + 0xff900000)
9558 #define   ENCI_RGB_SETTING                         (0x1b13)
9559 #define P_ENCI_RGB_SETTING                         (volatile uint32_t *)((0x1b13  << 2) + 0xff900000)
9560 //`define   ENCI_CMPN_MATRIX_CB     8'h14
9561 //`define   ENCI_CMPN_MATRIX_CR     8'h15
9562 #define   ENCI_DE_H_BEGIN                          (0x1b16)
9563 #define P_ENCI_DE_H_BEGIN                          (volatile uint32_t *)((0x1b16  << 2) + 0xff900000)
9564 #define   ENCI_DE_H_END                            (0x1b17)
9565 #define P_ENCI_DE_H_END                            (volatile uint32_t *)((0x1b17  << 2) + 0xff900000)
9566 #define   ENCI_DE_V_BEGIN_EVEN                     (0x1b18)
9567 #define P_ENCI_DE_V_BEGIN_EVEN                     (volatile uint32_t *)((0x1b18  << 2) + 0xff900000)
9568 #define   ENCI_DE_V_END_EVEN                       (0x1b19)
9569 #define P_ENCI_DE_V_END_EVEN                       (volatile uint32_t *)((0x1b19  << 2) + 0xff900000)
9570 #define   ENCI_DE_V_BEGIN_ODD                      (0x1b1a)
9571 #define P_ENCI_DE_V_BEGIN_ODD                      (volatile uint32_t *)((0x1b1a  << 2) + 0xff900000)
9572 #define   ENCI_DE_V_END_ODD                        (0x1b1b)
9573 #define P_ENCI_DE_V_END_ODD                        (volatile uint32_t *)((0x1b1b  << 2) + 0xff900000)
9574 #define   ENCI_VBI_SETTING                         (0x1b20)
9575 #define P_ENCI_VBI_SETTING                         (volatile uint32_t *)((0x1b20  << 2) + 0xff900000)
9576 #define   ENCI_VBI_CCDT_EVN                        (0x1b21)
9577 #define P_ENCI_VBI_CCDT_EVN                        (volatile uint32_t *)((0x1b21  << 2) + 0xff900000)
9578 #define   ENCI_VBI_CCDT_ODD                        (0x1b22)
9579 #define P_ENCI_VBI_CCDT_ODD                        (volatile uint32_t *)((0x1b22  << 2) + 0xff900000)
9580 #define   ENCI_VBI_CC525_LN                        (0x1b23)
9581 #define P_ENCI_VBI_CC525_LN                        (volatile uint32_t *)((0x1b23  << 2) + 0xff900000)
9582 #define   ENCI_VBI_CC625_LN                        (0x1b24)
9583 #define P_ENCI_VBI_CC625_LN                        (volatile uint32_t *)((0x1b24  << 2) + 0xff900000)
9584 #define   ENCI_VBI_WSSDT                           (0x1b25)
9585 #define P_ENCI_VBI_WSSDT                           (volatile uint32_t *)((0x1b25  << 2) + 0xff900000)
9586 #define   ENCI_VBI_WSS_LN                          (0x1b26)
9587 #define P_ENCI_VBI_WSS_LN                          (volatile uint32_t *)((0x1b26  << 2) + 0xff900000)
9588 #define   ENCI_VBI_CGMSDT_L                        (0x1b27)
9589 #define P_ENCI_VBI_CGMSDT_L                        (volatile uint32_t *)((0x1b27  << 2) + 0xff900000)
9590 #define   ENCI_VBI_CGMSDT_H                        (0x1b28)
9591 #define P_ENCI_VBI_CGMSDT_H                        (volatile uint32_t *)((0x1b28  << 2) + 0xff900000)
9592 #define   ENCI_VBI_CGMS_LN                         (0x1b29)
9593 #define P_ENCI_VBI_CGMS_LN                         (volatile uint32_t *)((0x1b29  << 2) + 0xff900000)
9594 #define   ENCI_VBI_TTX_HTIME                       (0x1b2a)
9595 #define P_ENCI_VBI_TTX_HTIME                       (volatile uint32_t *)((0x1b2a  << 2) + 0xff900000)
9596 #define   ENCI_VBI_TTX_LN                          (0x1b2b)
9597 #define P_ENCI_VBI_TTX_LN                          (volatile uint32_t *)((0x1b2b  << 2) + 0xff900000)
9598 #define   ENCI_VBI_TTXDT0                          (0x1b2c)
9599 #define P_ENCI_VBI_TTXDT0                          (volatile uint32_t *)((0x1b2c  << 2) + 0xff900000)
9600 #define   ENCI_VBI_TTXDT1                          (0x1b2d)
9601 #define P_ENCI_VBI_TTXDT1                          (volatile uint32_t *)((0x1b2d  << 2) + 0xff900000)
9602 #define   ENCI_VBI_TTXDT2                          (0x1b2e)
9603 #define P_ENCI_VBI_TTXDT2                          (volatile uint32_t *)((0x1b2e  << 2) + 0xff900000)
9604 #define   ENCI_VBI_TTXDT3                          (0x1b2f)
9605 #define P_ENCI_VBI_TTXDT3                          (volatile uint32_t *)((0x1b2f  << 2) + 0xff900000)
9606 #define   ENCI_MACV_N0                             (0x1b30)
9607 #define P_ENCI_MACV_N0                             (volatile uint32_t *)((0x1b30  << 2) + 0xff900000)
9608 #define   ENCI_MACV_N1                             (0x1b31)
9609 #define P_ENCI_MACV_N1                             (volatile uint32_t *)((0x1b31  << 2) + 0xff900000)
9610 #define   ENCI_MACV_N2                             (0x1b32)
9611 #define P_ENCI_MACV_N2                             (volatile uint32_t *)((0x1b32  << 2) + 0xff900000)
9612 #define   ENCI_MACV_N3                             (0x1b33)
9613 #define P_ENCI_MACV_N3                             (volatile uint32_t *)((0x1b33  << 2) + 0xff900000)
9614 #define   ENCI_MACV_N4                             (0x1b34)
9615 #define P_ENCI_MACV_N4                             (volatile uint32_t *)((0x1b34  << 2) + 0xff900000)
9616 #define   ENCI_MACV_N5                             (0x1b35)
9617 #define P_ENCI_MACV_N5                             (volatile uint32_t *)((0x1b35  << 2) + 0xff900000)
9618 #define   ENCI_MACV_N6                             (0x1b36)
9619 #define P_ENCI_MACV_N6                             (volatile uint32_t *)((0x1b36  << 2) + 0xff900000)
9620 #define   ENCI_MACV_N7                             (0x1b37)
9621 #define P_ENCI_MACV_N7                             (volatile uint32_t *)((0x1b37  << 2) + 0xff900000)
9622 #define   ENCI_MACV_N8                             (0x1b38)
9623 #define P_ENCI_MACV_N8                             (volatile uint32_t *)((0x1b38  << 2) + 0xff900000)
9624 #define   ENCI_MACV_N9                             (0x1b39)
9625 #define P_ENCI_MACV_N9                             (volatile uint32_t *)((0x1b39  << 2) + 0xff900000)
9626 #define   ENCI_MACV_N10                            (0x1b3a)
9627 #define P_ENCI_MACV_N10                            (volatile uint32_t *)((0x1b3a  << 2) + 0xff900000)
9628 #define   ENCI_MACV_N11                            (0x1b3b)
9629 #define P_ENCI_MACV_N11                            (volatile uint32_t *)((0x1b3b  << 2) + 0xff900000)
9630 #define   ENCI_MACV_N12                            (0x1b3c)
9631 #define P_ENCI_MACV_N12                            (volatile uint32_t *)((0x1b3c  << 2) + 0xff900000)
9632 #define   ENCI_MACV_N13                            (0x1b3d)
9633 #define P_ENCI_MACV_N13                            (volatile uint32_t *)((0x1b3d  << 2) + 0xff900000)
9634 #define   ENCI_MACV_N14                            (0x1b3e)
9635 #define P_ENCI_MACV_N14                            (volatile uint32_t *)((0x1b3e  << 2) + 0xff900000)
9636 #define   ENCI_MACV_N15                            (0x1b3f)
9637 #define P_ENCI_MACV_N15                            (volatile uint32_t *)((0x1b3f  << 2) + 0xff900000)
9638 #define   ENCI_MACV_N16                            (0x1b40)
9639 #define P_ENCI_MACV_N16                            (volatile uint32_t *)((0x1b40  << 2) + 0xff900000)
9640 #define   ENCI_MACV_N17                            (0x1b41)
9641 #define P_ENCI_MACV_N17                            (volatile uint32_t *)((0x1b41  << 2) + 0xff900000)
9642 #define   ENCI_MACV_N18                            (0x1b42)
9643 #define P_ENCI_MACV_N18                            (volatile uint32_t *)((0x1b42  << 2) + 0xff900000)
9644 #define   ENCI_MACV_N19                            (0x1b43)
9645 #define P_ENCI_MACV_N19                            (volatile uint32_t *)((0x1b43  << 2) + 0xff900000)
9646 #define   ENCI_MACV_N20                            (0x1b44)
9647 #define P_ENCI_MACV_N20                            (volatile uint32_t *)((0x1b44  << 2) + 0xff900000)
9648 #define   ENCI_MACV_N21                            (0x1b45)
9649 #define P_ENCI_MACV_N21                            (volatile uint32_t *)((0x1b45  << 2) + 0xff900000)
9650 #define   ENCI_MACV_N22                            (0x1b46)
9651 #define P_ENCI_MACV_N22                            (volatile uint32_t *)((0x1b46  << 2) + 0xff900000)
9652 //`define   ENCI_MACV_P_AGC         8'h47
9653 #define   ENCI_DBG_PX_RST                          (0x1b48)
9654 #define P_ENCI_DBG_PX_RST                          (volatile uint32_t *)((0x1b48  << 2) + 0xff900000)
9655 #define   ENCI_DBG_FLDLN_RST                       (0x1b49)
9656 #define P_ENCI_DBG_FLDLN_RST                       (volatile uint32_t *)((0x1b49  << 2) + 0xff900000)
9657 #define   ENCI_DBG_PX_INT                          (0x1b4a)
9658 #define P_ENCI_DBG_PX_INT                          (volatile uint32_t *)((0x1b4a  << 2) + 0xff900000)
9659 #define   ENCI_DBG_FLDLN_INT                       (0x1b4b)
9660 #define P_ENCI_DBG_FLDLN_INT                       (volatile uint32_t *)((0x1b4b  << 2) + 0xff900000)
9661 #define   ENCI_DBG_MAXPX                           (0x1b4c)
9662 #define P_ENCI_DBG_MAXPX                           (volatile uint32_t *)((0x1b4c  << 2) + 0xff900000)
9663 #define   ENCI_DBG_MAXLN                           (0x1b4d)
9664 #define P_ENCI_DBG_MAXLN                           (volatile uint32_t *)((0x1b4d  << 2) + 0xff900000)
9665 #define   ENCI_MACV_MAX_AMP                        (0x1b50)
9666 #define P_ENCI_MACV_MAX_AMP                        (volatile uint32_t *)((0x1b50  << 2) + 0xff900000)
9667 #define   ENCI_MACV_PULSE_LO                       (0x1b51)
9668 #define P_ENCI_MACV_PULSE_LO                       (volatile uint32_t *)((0x1b51  << 2) + 0xff900000)
9669 #define   ENCI_MACV_PULSE_HI                       (0x1b52)
9670 #define P_ENCI_MACV_PULSE_HI                       (volatile uint32_t *)((0x1b52  << 2) + 0xff900000)
9671 #define   ENCI_MACV_BKP_MAX                        (0x1b53)
9672 #define P_ENCI_MACV_BKP_MAX                        (volatile uint32_t *)((0x1b53  << 2) + 0xff900000)
9673 #define   ENCI_CFILT_CTRL                          (0x1b54)
9674 #define P_ENCI_CFILT_CTRL                          (volatile uint32_t *)((0x1b54  << 2) + 0xff900000)
9675 #define   ENCI_CFILT7                              (0x1b55)
9676 #define P_ENCI_CFILT7                              (volatile uint32_t *)((0x1b55  << 2) + 0xff900000)
9677 #define   ENCI_YC_DELAY                            (0x1b56)
9678 #define P_ENCI_YC_DELAY                            (volatile uint32_t *)((0x1b56  << 2) + 0xff900000)
9679 #define   ENCI_VIDEO_EN                            (0x1b57)
9680 #define P_ENCI_VIDEO_EN                            (volatile uint32_t *)((0x1b57  << 2) + 0xff900000)
9681 //
9682 // Closing file:  enci_regs.h
9683 //
9684 //`define  VENC2_VCBUS_BASE             8'h1c
9685 //
9686 // Reading file:  venc2_regs.h
9687 //
9688 //===========================================================================
9689 // Venc Registers (Cont.)    0xc00 - 0xcff (VENC registers 0xc00 - 0xcef)
9690 //===========================================================================
9691 // -----------------------------------------------
9692 // CBUS_BASE:  VENC2_VCBUS_BASE = 0x1c
9693 // -----------------------------------------------
9694 // Program video control signals from ENCI core to DVI/HDMI interface
9695 #define   ENCI_DVI_HSO_BEGIN                       (0x1c00)
9696 #define P_ENCI_DVI_HSO_BEGIN                       (volatile uint32_t *)((0x1c00  << 2) + 0xff900000)
9697 #define   ENCI_DVI_HSO_END                         (0x1c01)
9698 #define P_ENCI_DVI_HSO_END                         (volatile uint32_t *)((0x1c01  << 2) + 0xff900000)
9699 #define   ENCI_DVI_VSO_BLINE_EVN                   (0x1c02)
9700 #define P_ENCI_DVI_VSO_BLINE_EVN                   (volatile uint32_t *)((0x1c02  << 2) + 0xff900000)
9701 #define   ENCI_DVI_VSO_BLINE_ODD                   (0x1c03)
9702 #define P_ENCI_DVI_VSO_BLINE_ODD                   (volatile uint32_t *)((0x1c03  << 2) + 0xff900000)
9703 #define   ENCI_DVI_VSO_ELINE_EVN                   (0x1c04)
9704 #define P_ENCI_DVI_VSO_ELINE_EVN                   (volatile uint32_t *)((0x1c04  << 2) + 0xff900000)
9705 #define   ENCI_DVI_VSO_ELINE_ODD                   (0x1c05)
9706 #define P_ENCI_DVI_VSO_ELINE_ODD                   (volatile uint32_t *)((0x1c05  << 2) + 0xff900000)
9707 #define   ENCI_DVI_VSO_BEGIN_EVN                   (0x1c06)
9708 #define P_ENCI_DVI_VSO_BEGIN_EVN                   (volatile uint32_t *)((0x1c06  << 2) + 0xff900000)
9709 #define   ENCI_DVI_VSO_BEGIN_ODD                   (0x1c07)
9710 #define P_ENCI_DVI_VSO_BEGIN_ODD                   (volatile uint32_t *)((0x1c07  << 2) + 0xff900000)
9711 #define   ENCI_DVI_VSO_END_EVN                     (0x1c08)
9712 #define P_ENCI_DVI_VSO_END_EVN                     (volatile uint32_t *)((0x1c08  << 2) + 0xff900000)
9713 #define   ENCI_DVI_VSO_END_ODD                     (0x1c09)
9714 #define P_ENCI_DVI_VSO_END_ODD                     (volatile uint32_t *)((0x1c09  << 2) + 0xff900000)
9715 // Define cmpt and cvbs cb/cr delay after ENCI chroma filters
9716 // Bit 15:12 RW, enci_cb_cvbs_dly_sel. 0=no delay; 1~6=delay by 1~6 clk; 7~15 reserved.
9717 // Bit 11: 8 RW, enci_cr_cvbs_dly_sel. 0=no delay; 1~6=delay by 1~6 clk; 7~15 reserved.
9718 // Bit  7: 4 RW, enci_cb_cmpt_dly_sel. 0=no delay; 1~6=delay by 1~6 clk; 7~15 reserved.
9719 // Bit  3: 0 RW, enci_cr_cmpt_dly_sel. 0=no delay; 1~6=delay by 1~6 clk; 7~15 reserved.
9720 #define   ENCI_CFILT_CTRL2                         (0x1c0a)
9721 #define P_ENCI_CFILT_CTRL2                         (volatile uint32_t *)((0x1c0a  << 2) + 0xff900000)
9722 #define   ENCI_DACSEL_0                            (0x1c0b)
9723 #define P_ENCI_DACSEL_0                            (volatile uint32_t *)((0x1c0b  << 2) + 0xff900000)
9724 #define   ENCI_DACSEL_1                            (0x1c0c)
9725 #define P_ENCI_DACSEL_1                            (volatile uint32_t *)((0x1c0c  << 2) + 0xff900000)
9726 #define   ENCP_DACSEL_0                            (0x1c0d)
9727 #define P_ENCP_DACSEL_0                            (volatile uint32_t *)((0x1c0d  << 2) + 0xff900000)
9728 #define   ENCP_DACSEL_1                            (0x1c0e)
9729 #define P_ENCP_DACSEL_1                            (volatile uint32_t *)((0x1c0e  << 2) + 0xff900000)
9730 #define   ENCP_MAX_LINE_SWITCH_POINT               (0x1c0f)
9731 #define P_ENCP_MAX_LINE_SWITCH_POINT               (volatile uint32_t *)((0x1c0f  << 2) + 0xff900000)
9732 #define   ENCI_TST_EN                              (0x1c10)
9733 #define P_ENCI_TST_EN                              (volatile uint32_t *)((0x1c10  << 2) + 0xff900000)
9734 #define   ENCI_TST_MDSEL                           (0x1c11)
9735 #define P_ENCI_TST_MDSEL                           (volatile uint32_t *)((0x1c11  << 2) + 0xff900000)
9736 #define   ENCI_TST_Y                               (0x1c12)
9737 #define P_ENCI_TST_Y                               (volatile uint32_t *)((0x1c12  << 2) + 0xff900000)
9738 #define   ENCI_TST_CB                              (0x1c13)
9739 #define P_ENCI_TST_CB                              (volatile uint32_t *)((0x1c13  << 2) + 0xff900000)
9740 #define   ENCI_TST_CR                              (0x1c14)
9741 #define P_ENCI_TST_CR                              (volatile uint32_t *)((0x1c14  << 2) + 0xff900000)
9742 #define   ENCI_TST_CLRBAR_STRT                     (0x1c15)
9743 #define P_ENCI_TST_CLRBAR_STRT                     (volatile uint32_t *)((0x1c15  << 2) + 0xff900000)
9744 #define   ENCI_TST_CLRBAR_WIDTH                    (0x1c16)
9745 #define P_ENCI_TST_CLRBAR_WIDTH                    (volatile uint32_t *)((0x1c16  << 2) + 0xff900000)
9746 #define   ENCI_TST_VDCNT_STSET                     (0x1c17)
9747 #define P_ENCI_TST_VDCNT_STSET                     (volatile uint32_t *)((0x1c17  << 2) + 0xff900000)
9748 // bit 15:8 -- vfifo2vd_vd_sel
9749 // bit 7 -- vfifo2vd_drop
9750 // bit 6:1 -- vfifo2vd_delay
9751 // bit 0 -- vfifo2vd_en
9752 #define   ENCI_VFIFO2VD_CTL                        (0x1c18)
9753 #define P_ENCI_VFIFO2VD_CTL                        (volatile uint32_t *)((0x1c18  << 2) + 0xff900000)
9754 // bit 12:0 -- vfifo2vd_pixel_start
9755 #define   ENCI_VFIFO2VD_PIXEL_START                (0x1c19)
9756 #define P_ENCI_VFIFO2VD_PIXEL_START                (volatile uint32_t *)((0x1c19  << 2) + 0xff900000)
9757 // bit 12:00 -- vfifo2vd_pixel_end
9758 #define   ENCI_VFIFO2VD_PIXEL_END                  (0x1c1a)
9759 #define P_ENCI_VFIFO2VD_PIXEL_END                  (volatile uint32_t *)((0x1c1a  << 2) + 0xff900000)
9760 // bit 10:0 -- vfifo2vd_line_top_start
9761 #define   ENCI_VFIFO2VD_LINE_TOP_START             (0x1c1b)
9762 #define P_ENCI_VFIFO2VD_LINE_TOP_START             (volatile uint32_t *)((0x1c1b  << 2) + 0xff900000)
9763 // bit 10:00 -- vfifo2vd_line_top_end
9764 #define   ENCI_VFIFO2VD_LINE_TOP_END               (0x1c1c)
9765 #define P_ENCI_VFIFO2VD_LINE_TOP_END               (volatile uint32_t *)((0x1c1c  << 2) + 0xff900000)
9766 // bit 10:00 -- vfifo2vd_line_bot_start
9767 #define   ENCI_VFIFO2VD_LINE_BOT_START             (0x1c1d)
9768 #define P_ENCI_VFIFO2VD_LINE_BOT_START             (volatile uint32_t *)((0x1c1d  << 2) + 0xff900000)
9769 // bit 10:00 -- vfifo2vd_line_bot_end
9770 #define   ENCI_VFIFO2VD_LINE_BOT_END               (0x1c1e)
9771 #define P_ENCI_VFIFO2VD_LINE_BOT_END               (volatile uint32_t *)((0x1c1e  << 2) + 0xff900000)
9772 #define   ENCI_VFIFO2VD_CTL2                       (0x1c1f)
9773 #define P_ENCI_VFIFO2VD_CTL2                       (volatile uint32_t *)((0x1c1f  << 2) + 0xff900000)
9774 // bit 15:8 -- vfifo2vd_vd_sel
9775 // bit 7 -- vfifo2vd_drop
9776 // bit 6:1 -- vfifo2vd_delay
9777 // bit 0 -- vfifo2vd_en
9778 #define   ENCT_VFIFO2VD_CTL                        (0x1c20)
9779 #define P_ENCT_VFIFO2VD_CTL                        (volatile uint32_t *)((0x1c20  << 2) + 0xff900000)
9780 // bit 12:0 -- vfifo2vd_pixel_start
9781 #define   ENCT_VFIFO2VD_PIXEL_START                (0x1c21)
9782 #define P_ENCT_VFIFO2VD_PIXEL_START                (volatile uint32_t *)((0x1c21  << 2) + 0xff900000)
9783 // bit 12:00 -- vfifo2vd_pixel_end
9784 #define   ENCT_VFIFO2VD_PIXEL_END                  (0x1c22)
9785 #define P_ENCT_VFIFO2VD_PIXEL_END                  (volatile uint32_t *)((0x1c22  << 2) + 0xff900000)
9786 // bit 10:0 -- vfifo2vd_line_top_start
9787 #define   ENCT_VFIFO2VD_LINE_TOP_START             (0x1c23)
9788 #define P_ENCT_VFIFO2VD_LINE_TOP_START             (volatile uint32_t *)((0x1c23  << 2) + 0xff900000)
9789 // bit 10:00 -- vfifo2vd_line_top_end
9790 #define   ENCT_VFIFO2VD_LINE_TOP_END               (0x1c24)
9791 #define P_ENCT_VFIFO2VD_LINE_TOP_END               (volatile uint32_t *)((0x1c24  << 2) + 0xff900000)
9792 // bit 10:00 -- vfifo2vd_line_bot_start
9793 #define   ENCT_VFIFO2VD_LINE_BOT_START             (0x1c25)
9794 #define P_ENCT_VFIFO2VD_LINE_BOT_START             (volatile uint32_t *)((0x1c25  << 2) + 0xff900000)
9795 // bit 10:00 -- vfifo2vd_line_bot_end
9796 #define   ENCT_VFIFO2VD_LINE_BOT_END               (0x1c26)
9797 #define P_ENCT_VFIFO2VD_LINE_BOT_END               (volatile uint32_t *)((0x1c26  << 2) + 0xff900000)
9798 #define   ENCT_VFIFO2VD_CTL2                       (0x1c27)
9799 #define P_ENCT_VFIFO2VD_CTL2                       (volatile uint32_t *)((0x1c27  << 2) + 0xff900000)
9800 #define   ENCT_TST_EN                              (0x1c28)
9801 #define P_ENCT_TST_EN                              (volatile uint32_t *)((0x1c28  << 2) + 0xff900000)
9802 #define   ENCT_TST_MDSEL                           (0x1c29)
9803 #define P_ENCT_TST_MDSEL                           (volatile uint32_t *)((0x1c29  << 2) + 0xff900000)
9804 #define   ENCT_TST_Y                               (0x1c2a)
9805 #define P_ENCT_TST_Y                               (volatile uint32_t *)((0x1c2a  << 2) + 0xff900000)
9806 #define   ENCT_TST_CB                              (0x1c2b)
9807 #define P_ENCT_TST_CB                              (volatile uint32_t *)((0x1c2b  << 2) + 0xff900000)
9808 #define   ENCT_TST_CR                              (0x1c2c)
9809 #define P_ENCT_TST_CR                              (volatile uint32_t *)((0x1c2c  << 2) + 0xff900000)
9810 #define   ENCT_TST_CLRBAR_STRT                     (0x1c2d)
9811 #define P_ENCT_TST_CLRBAR_STRT                     (volatile uint32_t *)((0x1c2d  << 2) + 0xff900000)
9812 #define   ENCT_TST_CLRBAR_WIDTH                    (0x1c2e)
9813 #define P_ENCT_TST_CLRBAR_WIDTH                    (volatile uint32_t *)((0x1c2e  << 2) + 0xff900000)
9814 #define   ENCT_TST_VDCNT_STSET                     (0x1c2f)
9815 #define P_ENCT_TST_VDCNT_STSET                     (volatile uint32_t *)((0x1c2f  << 2) + 0xff900000)
9816 // Program video control signals from ENCP core to DVI/HDMI interface
9817 #define   ENCP_DVI_HSO_BEGIN                       (0x1c30)
9818 #define P_ENCP_DVI_HSO_BEGIN                       (volatile uint32_t *)((0x1c30  << 2) + 0xff900000)
9819 #define   ENCP_DVI_HSO_END                         (0x1c31)
9820 #define P_ENCP_DVI_HSO_END                         (volatile uint32_t *)((0x1c31  << 2) + 0xff900000)
9821 #define   ENCP_DVI_VSO_BLINE_EVN                   (0x1c32)
9822 #define P_ENCP_DVI_VSO_BLINE_EVN                   (volatile uint32_t *)((0x1c32  << 2) + 0xff900000)
9823 #define   ENCP_DVI_VSO_BLINE_ODD                   (0x1c33)
9824 #define P_ENCP_DVI_VSO_BLINE_ODD                   (volatile uint32_t *)((0x1c33  << 2) + 0xff900000)
9825 #define   ENCP_DVI_VSO_ELINE_EVN                   (0x1c34)
9826 #define P_ENCP_DVI_VSO_ELINE_EVN                   (volatile uint32_t *)((0x1c34  << 2) + 0xff900000)
9827 #define   ENCP_DVI_VSO_ELINE_ODD                   (0x1c35)
9828 #define P_ENCP_DVI_VSO_ELINE_ODD                   (volatile uint32_t *)((0x1c35  << 2) + 0xff900000)
9829 #define   ENCP_DVI_VSO_BEGIN_EVN                   (0x1c36)
9830 #define P_ENCP_DVI_VSO_BEGIN_EVN                   (volatile uint32_t *)((0x1c36  << 2) + 0xff900000)
9831 #define   ENCP_DVI_VSO_BEGIN_ODD                   (0x1c37)
9832 #define P_ENCP_DVI_VSO_BEGIN_ODD                   (volatile uint32_t *)((0x1c37  << 2) + 0xff900000)
9833 #define   ENCP_DVI_VSO_END_EVN                     (0x1c38)
9834 #define P_ENCP_DVI_VSO_END_EVN                     (volatile uint32_t *)((0x1c38  << 2) + 0xff900000)
9835 #define   ENCP_DVI_VSO_END_ODD                     (0x1c39)
9836 #define P_ENCP_DVI_VSO_END_ODD                     (volatile uint32_t *)((0x1c39  << 2) + 0xff900000)
9837 #define   ENCP_DE_H_BEGIN                          (0x1c3a)
9838 #define P_ENCP_DE_H_BEGIN                          (volatile uint32_t *)((0x1c3a  << 2) + 0xff900000)
9839 #define   ENCP_DE_H_END                            (0x1c3b)
9840 #define P_ENCP_DE_H_END                            (volatile uint32_t *)((0x1c3b  << 2) + 0xff900000)
9841 #define   ENCP_DE_V_BEGIN_EVEN                     (0x1c3c)
9842 #define P_ENCP_DE_V_BEGIN_EVEN                     (volatile uint32_t *)((0x1c3c  << 2) + 0xff900000)
9843 #define   ENCP_DE_V_END_EVEN                       (0x1c3d)
9844 #define P_ENCP_DE_V_END_EVEN                       (volatile uint32_t *)((0x1c3d  << 2) + 0xff900000)
9845 #define   ENCP_DE_V_BEGIN_ODD                      (0x1c3e)
9846 #define P_ENCP_DE_V_BEGIN_ODD                      (volatile uint32_t *)((0x1c3e  << 2) + 0xff900000)
9847 #define   ENCP_DE_V_END_ODD                        (0x1c3f)
9848 #define P_ENCP_DE_V_END_ODD                        (volatile uint32_t *)((0x1c3f  << 2) + 0xff900000)
9849 // Bit 15:11 - sync length
9850 // Bit 10:0 - sync start line
9851 #define   ENCI_SYNC_LINE_LENGTH                    (0x1c40)
9852 #define P_ENCI_SYNC_LINE_LENGTH                    (volatile uint32_t *)((0x1c40  << 2) + 0xff900000)
9853 // Bit 15 - sync_pulse_enable
9854 // Bit 12:0 - sync start pixel
9855 #define   ENCI_SYNC_PIXEL_EN                       (0x1c41)
9856 #define P_ENCI_SYNC_PIXEL_EN                       (volatile uint32_t *)((0x1c41  << 2) + 0xff900000)
9857 // Bit 15 - enci_sync_enable
9858 // Bit 14 - encp_sync_enable
9859 // Bit 13 - enct_sync_enable
9860 // Bit 12 - short_fussy_sync
9861 // Bit 11 - fussy_sync_enable
9862 // Bit 10:0 - sync target line
9863 #define   ENCI_SYNC_TO_LINE_EN                     (0x1c42)
9864 #define P_ENCI_SYNC_TO_LINE_EN                     (volatile uint32_t *)((0x1c42  << 2) + 0xff900000)
9865 // Bit 12:0 - sync target pixel
9866 #define   ENCI_SYNC_TO_PIXEL                       (0x1c43)
9867 #define P_ENCI_SYNC_TO_PIXEL                       (volatile uint32_t *)((0x1c43  << 2) + 0xff900000)
9868 // Bit 15:11 - sync length
9869 // Bit 10:0 - sync start line
9870 #define   ENCP_SYNC_LINE_LENGTH                    (0x1c44)
9871 #define P_ENCP_SYNC_LINE_LENGTH                    (volatile uint32_t *)((0x1c44  << 2) + 0xff900000)
9872 // Bit 15 - sync_pulse_enable
9873 // Bit 12:0 - sync start pixel
9874 #define   ENCP_SYNC_PIXEL_EN                       (0x1c45)
9875 #define P_ENCP_SYNC_PIXEL_EN                       (volatile uint32_t *)((0x1c45  << 2) + 0xff900000)
9876 // Bit 15 - enci_sync_enable
9877 // Bit 14 - encp_sync_enable
9878 // Bit 13 - enct_sync_enable
9879 // Bit 12 - short_fussy_sync
9880 // Bit 11 - fussy_sync_enable
9881 // Bit 10:0 - sync target line
9882 #define   ENCP_SYNC_TO_LINE_EN                     (0x1c46)
9883 #define P_ENCP_SYNC_TO_LINE_EN                     (volatile uint32_t *)((0x1c46  << 2) + 0xff900000)
9884 // Bit 12:0 - sync target pixel
9885 #define   ENCP_SYNC_TO_PIXEL                       (0x1c47)
9886 #define P_ENCP_SYNC_TO_PIXEL                       (volatile uint32_t *)((0x1c47  << 2) + 0xff900000)
9887 // Bit 15:11 - sync length
9888 // Bit 10:0 - sync start line
9889 #define   ENCT_SYNC_LINE_LENGTH                    (0x1c48)
9890 #define P_ENCT_SYNC_LINE_LENGTH                    (volatile uint32_t *)((0x1c48  << 2) + 0xff900000)
9891 // Bit 15 - sync_pulse_enable
9892 // Bit 12:0 - sync start pixel
9893 #define   ENCT_SYNC_PIXEL_EN                       (0x1c49)
9894 #define P_ENCT_SYNC_PIXEL_EN                       (volatile uint32_t *)((0x1c49  << 2) + 0xff900000)
9895 // Bit 15 - enci_sync_enable
9896 // Bit 14 - encp_sync_enable
9897 // Bit 13 - enct_sync_enable
9898 // Bit 12 - short_fussy_sync
9899 // Bit 11 - fussy_sync_enable
9900 // Bit 10:0 - sync target line
9901 #define   ENCT_SYNC_TO_LINE_EN                     (0x1c4a)
9902 #define P_ENCT_SYNC_TO_LINE_EN                     (volatile uint32_t *)((0x1c4a  << 2) + 0xff900000)
9903 // Bit 12:0 - sync target pixel
9904 #define   ENCT_SYNC_TO_PIXEL                       (0x1c4b)
9905 #define P_ENCT_SYNC_TO_PIXEL                       (volatile uint32_t *)((0x1c4b  << 2) + 0xff900000)
9906 // Bit 15:11 - sync length
9907 // Bit 10:0 - sync start line
9908 #define   ENCL_SYNC_LINE_LENGTH                    (0x1c4c)
9909 #define P_ENCL_SYNC_LINE_LENGTH                    (volatile uint32_t *)((0x1c4c  << 2) + 0xff900000)
9910 // Bit 15 - sync_pulse_enable
9911 // Bit 12:0 - sync start pixel
9912 #define   ENCL_SYNC_PIXEL_EN                       (0x1c4d)
9913 #define P_ENCL_SYNC_PIXEL_EN                       (volatile uint32_t *)((0x1c4d  << 2) + 0xff900000)
9914 // Bit 15 - enci_sync_enable
9915 // Bit 14 - encp_sync_enable
9916 // Bit 13 - enct_sync_enable
9917 // Bit 12 - short_fussy_sync
9918 // Bit 11 - fussy_sync_enable
9919 // Bit 10:0 - sync target line
9920 #define   ENCL_SYNC_TO_LINE_EN                     (0x1c4e)
9921 #define P_ENCL_SYNC_TO_LINE_EN                     (volatile uint32_t *)((0x1c4e  << 2) + 0xff900000)
9922 // Bit 12:0 - sync target pixel
9923 #define   ENCL_SYNC_TO_PIXEL                       (0x1c4f)
9924 #define P_ENCL_SYNC_TO_PIXEL                       (volatile uint32_t *)((0x1c4f  << 2) + 0xff900000)
9925 // bit    3 cfg_encp_lcd_scaler_bypass. 1=Do not scale LCD input data;
9926 //                                      0=Scale LCD input data to y [16*4,235*4], c [16*4,240*4].
9927 // bit    2 cfg_encp_vadj_scaler_bypass. 1=Do not scale data to enc480p_vadj;
9928 //                                       0=Scale enc480p_vadj input data to y [16*4,235*4], c [16*4,240*4].
9929 // bit    1 cfg_vfifo2vd_out_scaler_bypass. 1=Do not scale vfifo2vd's output vdata;
9930 //                                          0=Scale vfifo2vd's output vdata to y [16,235], c [16,240].
9931 // bit    0 cfg_vfifo_din_full_range. 1=Data from viu fifo is full range [0,1023];
9932 //                                    0=Data from viu fifo is y [16*4,235*4], c [16*4,240*4].
9933 #define   ENCP_VFIFO2VD_CTL2                       (0x1c50)
9934 #define P_ENCP_VFIFO2VD_CTL2                       (volatile uint32_t *)((0x1c50  << 2) + 0xff900000)
9935 // bit 15:1 Reserved.
9936 // bit    0 cfg_int_dvi_sel_rgb. Applicable for using on-chip hdmi tx module only. This bit controls correct bit-mapping from
9937 //          Venc to hdmi_tx depending on whether YCbCr or RGB mode.
9938 //                               1=Map data bit from Venc to hdmi_tx for RGB mode;
9939 //                               0=Default. Map data bit from Venc to hdmi_tx for YCbCr mode.
9940 #define   VENC_DVI_SETTING_MORE                    (0x1c51)
9941 #define P_VENC_DVI_SETTING_MORE                    (volatile uint32_t *)((0x1c51  << 2) + 0xff900000)
9942 #define   VENC_VDAC_DAC4_FILT_CTRL0                (0x1c54)
9943 #define P_VENC_VDAC_DAC4_FILT_CTRL0                (volatile uint32_t *)((0x1c54  << 2) + 0xff900000)
9944 #define   VENC_VDAC_DAC4_FILT_CTRL1                (0x1c55)
9945 #define P_VENC_VDAC_DAC4_FILT_CTRL1                (volatile uint32_t *)((0x1c55  << 2) + 0xff900000)
9946 #define   VENC_VDAC_DAC5_FILT_CTRL0                (0x1c56)
9947 #define P_VENC_VDAC_DAC5_FILT_CTRL0                (volatile uint32_t *)((0x1c56  << 2) + 0xff900000)
9948 #define   VENC_VDAC_DAC5_FILT_CTRL1                (0x1c57)
9949 #define P_VENC_VDAC_DAC5_FILT_CTRL1                (volatile uint32_t *)((0x1c57  << 2) + 0xff900000)
9950 //Bit 0   filter_en
9951 #define   VENC_VDAC_DAC0_FILT_CTRL0                (0x1c58)
9952 #define P_VENC_VDAC_DAC0_FILT_CTRL0                (volatile uint32_t *)((0x1c58  << 2) + 0xff900000)
9953 //dout = ((din + din_d2) * coef1 + (din_d1 * coef0) + 32) >> 6
9954 //Bit 15:8, coef1,
9955 //Bit 7:0, coef0,
9956 #define   VENC_VDAC_DAC0_FILT_CTRL1                (0x1c59)
9957 #define P_VENC_VDAC_DAC0_FILT_CTRL1                (volatile uint32_t *)((0x1c59  << 2) + 0xff900000)
9958 //Bit 0   filter_en
9959 #define   VENC_VDAC_DAC1_FILT_CTRL0                (0x1c5a)
9960 #define P_VENC_VDAC_DAC1_FILT_CTRL0                (volatile uint32_t *)((0x1c5a  << 2) + 0xff900000)
9961 //dout = ((din + din_d2) * coef1 + (din_d1 * coef0) + 32) >> 6
9962 //Bit 15:8, coef1,
9963 //Bit 7:0, coef0,
9964 #define   VENC_VDAC_DAC1_FILT_CTRL1                (0x1c5b)
9965 #define P_VENC_VDAC_DAC1_FILT_CTRL1                (volatile uint32_t *)((0x1c5b  << 2) + 0xff900000)
9966 //Bit 0   filter_en
9967 #define   VENC_VDAC_DAC2_FILT_CTRL0                (0x1c5c)
9968 #define P_VENC_VDAC_DAC2_FILT_CTRL0                (volatile uint32_t *)((0x1c5c  << 2) + 0xff900000)
9969 //dout = ((din + din_d2) * coef1 + (din_d1 * coef0) + 32) >> 6
9970 //Bit 15:8, coef1,
9971 //Bit 7:0, coef0,
9972 #define   VENC_VDAC_DAC2_FILT_CTRL1                (0x1c5d)
9973 #define P_VENC_VDAC_DAC2_FILT_CTRL1                (volatile uint32_t *)((0x1c5d  << 2) + 0xff900000)
9974 //Bit 0   filter_en
9975 #define   VENC_VDAC_DAC3_FILT_CTRL0                (0x1c5e)
9976 #define P_VENC_VDAC_DAC3_FILT_CTRL0                (volatile uint32_t *)((0x1c5e  << 2) + 0xff900000)
9977 //dout = ((din + din_d2) * coef1 + (din_d1 * coef0) + 32) >> 6
9978 //Bit 15:8, coef1,
9979 //Bit 7:0, coef0,
9980 #define   VENC_VDAC_DAC3_FILT_CTRL1                (0x1c5f)
9981 #define P_VENC_VDAC_DAC3_FILT_CTRL1                (volatile uint32_t *)((0x1c5f  << 2) + 0xff900000)
9982 //===========================================================================
9983 // ENCT registers
9984 #define   ENCT_VIDEO_EN                            (0x1c60)
9985 #define P_ENCT_VIDEO_EN                            (volatile uint32_t *)((0x1c60  << 2) + 0xff900000)
9986 #define   ENCT_VIDEO_Y_SCL                         (0x1c61)
9987 #define P_ENCT_VIDEO_Y_SCL                         (volatile uint32_t *)((0x1c61  << 2) + 0xff900000)
9988 #define   ENCT_VIDEO_PB_SCL                        (0x1c62)
9989 #define P_ENCT_VIDEO_PB_SCL                        (volatile uint32_t *)((0x1c62  << 2) + 0xff900000)
9990 #define   ENCT_VIDEO_PR_SCL                        (0x1c63)
9991 #define P_ENCT_VIDEO_PR_SCL                        (volatile uint32_t *)((0x1c63  << 2) + 0xff900000)
9992 #define   ENCT_VIDEO_Y_OFFST                       (0x1c64)
9993 #define P_ENCT_VIDEO_Y_OFFST                       (volatile uint32_t *)((0x1c64  << 2) + 0xff900000)
9994 #define   ENCT_VIDEO_PB_OFFST                      (0x1c65)
9995 #define P_ENCT_VIDEO_PB_OFFST                      (volatile uint32_t *)((0x1c65  << 2) + 0xff900000)
9996 #define   ENCT_VIDEO_PR_OFFST                      (0x1c66)
9997 #define P_ENCT_VIDEO_PR_OFFST                      (volatile uint32_t *)((0x1c66  << 2) + 0xff900000)
9998 //----- Video mode
9999 #define   ENCT_VIDEO_MODE                          (0x1c67)
10000 #define P_ENCT_VIDEO_MODE                          (volatile uint32_t *)((0x1c67  << 2) + 0xff900000)
10001 #define   ENCT_VIDEO_MODE_ADV                      (0x1c68)
10002 #define P_ENCT_VIDEO_MODE_ADV                      (volatile uint32_t *)((0x1c68  << 2) + 0xff900000)
10003 //--------------- Debug pins
10004 #define   ENCT_DBG_PX_RST                          (0x1c69)
10005 #define P_ENCT_DBG_PX_RST                          (volatile uint32_t *)((0x1c69  << 2) + 0xff900000)
10006 #define   ENCT_DBG_LN_RST                          (0x1c6a)
10007 #define P_ENCT_DBG_LN_RST                          (volatile uint32_t *)((0x1c6a  << 2) + 0xff900000)
10008 #define   ENCT_DBG_PX_INT                          (0x1c6b)
10009 #define P_ENCT_DBG_PX_INT                          (volatile uint32_t *)((0x1c6b  << 2) + 0xff900000)
10010 #define   ENCT_DBG_LN_INT                          (0x1c6c)
10011 #define P_ENCT_DBG_LN_INT                          (volatile uint32_t *)((0x1c6c  << 2) + 0xff900000)
10012 //----------- Video Advanced setting
10013 #define   ENCT_VIDEO_YFP1_HTIME                    (0x1c6d)
10014 #define P_ENCT_VIDEO_YFP1_HTIME                    (volatile uint32_t *)((0x1c6d  << 2) + 0xff900000)
10015 #define   ENCT_VIDEO_YFP2_HTIME                    (0x1c6e)
10016 #define P_ENCT_VIDEO_YFP2_HTIME                    (volatile uint32_t *)((0x1c6e  << 2) + 0xff900000)
10017 #define   ENCT_VIDEO_YC_DLY                        (0x1c6f)
10018 #define P_ENCT_VIDEO_YC_DLY                        (volatile uint32_t *)((0x1c6f  << 2) + 0xff900000)
10019 #define   ENCT_VIDEO_MAX_PXCNT                     (0x1c70)
10020 #define P_ENCT_VIDEO_MAX_PXCNT                     (volatile uint32_t *)((0x1c70  << 2) + 0xff900000)
10021 #define   ENCT_VIDEO_HAVON_END                     (0x1c71)
10022 #define P_ENCT_VIDEO_HAVON_END                     (volatile uint32_t *)((0x1c71  << 2) + 0xff900000)
10023 #define   ENCT_VIDEO_HAVON_BEGIN                   (0x1c72)
10024 #define P_ENCT_VIDEO_HAVON_BEGIN                   (volatile uint32_t *)((0x1c72  << 2) + 0xff900000)
10025 #define   ENCT_VIDEO_VAVON_ELINE                   (0x1c73)
10026 #define P_ENCT_VIDEO_VAVON_ELINE                   (volatile uint32_t *)((0x1c73  << 2) + 0xff900000)
10027 #define   ENCT_VIDEO_VAVON_BLINE                   (0x1c74)
10028 #define P_ENCT_VIDEO_VAVON_BLINE                   (volatile uint32_t *)((0x1c74  << 2) + 0xff900000)
10029 #define   ENCT_VIDEO_HSO_BEGIN                     (0x1c75)
10030 #define P_ENCT_VIDEO_HSO_BEGIN                     (volatile uint32_t *)((0x1c75  << 2) + 0xff900000)
10031 #define   ENCT_VIDEO_HSO_END                       (0x1c76)
10032 #define P_ENCT_VIDEO_HSO_END                       (volatile uint32_t *)((0x1c76  << 2) + 0xff900000)
10033 #define   ENCT_VIDEO_VSO_BEGIN                     (0x1c77)
10034 #define P_ENCT_VIDEO_VSO_BEGIN                     (volatile uint32_t *)((0x1c77  << 2) + 0xff900000)
10035 #define   ENCT_VIDEO_VSO_END                       (0x1c78)
10036 #define P_ENCT_VIDEO_VSO_END                       (volatile uint32_t *)((0x1c78  << 2) + 0xff900000)
10037 #define   ENCT_VIDEO_VSO_BLINE                     (0x1c79)
10038 #define P_ENCT_VIDEO_VSO_BLINE                     (volatile uint32_t *)((0x1c79  << 2) + 0xff900000)
10039 #define   ENCT_VIDEO_VSO_ELINE                     (0x1c7a)
10040 #define P_ENCT_VIDEO_VSO_ELINE                     (volatile uint32_t *)((0x1c7a  << 2) + 0xff900000)
10041 #define   ENCT_VIDEO_MAX_LNCNT                     (0x1c7b)
10042 #define P_ENCT_VIDEO_MAX_LNCNT                     (volatile uint32_t *)((0x1c7b  << 2) + 0xff900000)
10043 #define   ENCT_VIDEO_BLANKY_VAL                    (0x1c7c)
10044 #define P_ENCT_VIDEO_BLANKY_VAL                    (volatile uint32_t *)((0x1c7c  << 2) + 0xff900000)
10045 #define   ENCT_VIDEO_BLANKPB_VAL                   (0x1c7d)
10046 #define P_ENCT_VIDEO_BLANKPB_VAL                   (volatile uint32_t *)((0x1c7d  << 2) + 0xff900000)
10047 #define   ENCT_VIDEO_BLANKPR_VAL                   (0x1c7e)
10048 #define P_ENCT_VIDEO_BLANKPR_VAL                   (volatile uint32_t *)((0x1c7e  << 2) + 0xff900000)
10049 #define   ENCT_VIDEO_HOFFST                        (0x1c7f)
10050 #define P_ENCT_VIDEO_HOFFST                        (volatile uint32_t *)((0x1c7f  << 2) + 0xff900000)
10051 #define   ENCT_VIDEO_VOFFST                        (0x1c80)
10052 #define P_ENCT_VIDEO_VOFFST                        (volatile uint32_t *)((0x1c80  << 2) + 0xff900000)
10053 #define   ENCT_VIDEO_RGB_CTRL                      (0x1c81)
10054 #define P_ENCT_VIDEO_RGB_CTRL                      (volatile uint32_t *)((0x1c81  << 2) + 0xff900000)
10055 #define   ENCT_VIDEO_FILT_CTRL                     (0x1c82)
10056 #define P_ENCT_VIDEO_FILT_CTRL                     (volatile uint32_t *)((0x1c82  << 2) + 0xff900000)
10057 #define   ENCT_VIDEO_OFLD_VPEQ_OFST                (0x1c83)
10058 #define P_ENCT_VIDEO_OFLD_VPEQ_OFST                (volatile uint32_t *)((0x1c83  << 2) + 0xff900000)
10059 #define   ENCT_VIDEO_OFLD_VOAV_OFST                (0x1c84)
10060 #define P_ENCT_VIDEO_OFLD_VOAV_OFST                (volatile uint32_t *)((0x1c84  << 2) + 0xff900000)
10061 #define   ENCT_VIDEO_MATRIX_CB                     (0x1c85)
10062 #define P_ENCT_VIDEO_MATRIX_CB                     (volatile uint32_t *)((0x1c85  << 2) + 0xff900000)
10063 #define   ENCT_VIDEO_MATRIX_CR                     (0x1c86)
10064 #define P_ENCT_VIDEO_MATRIX_CR                     (volatile uint32_t *)((0x1c86  << 2) + 0xff900000)
10065 #define   ENCT_VIDEO_RGBIN_CTRL                    (0x1c87)
10066 #define P_ENCT_VIDEO_RGBIN_CTRL                    (volatile uint32_t *)((0x1c87  << 2) + 0xff900000)
10067 #define   ENCT_MAX_LINE_SWITCH_POINT               (0x1c88)
10068 #define P_ENCT_MAX_LINE_SWITCH_POINT               (volatile uint32_t *)((0x1c88  << 2) + 0xff900000)
10069 #define   ENCT_DACSEL_0                            (0x1c89)
10070 #define P_ENCT_DACSEL_0                            (volatile uint32_t *)((0x1c89  << 2) + 0xff900000)
10071 #define   ENCT_DACSEL_1                            (0x1c8a)
10072 #define P_ENCT_DACSEL_1                            (volatile uint32_t *)((0x1c8a  << 2) + 0xff900000)
10073 //===========================================================================
10074 // For ENCL
10075 //===========================================================================
10076 // bit 15:8 -- vfifo2vd_vd_sel
10077 // bit 7 -- vfifo2vd_drop
10078 // bit 6:1 -- vfifo2vd_delay
10079 // bit 0 -- vfifo2vd_en
10080 #define   ENCL_VFIFO2VD_CTL                        (0x1c90)
10081 #define P_ENCL_VFIFO2VD_CTL                        (volatile uint32_t *)((0x1c90  << 2) + 0xff900000)
10082 // bit 12:0 -- vfifo2vd_pixel_start
10083 #define   ENCL_VFIFO2VD_PIXEL_START                (0x1c91)
10084 #define P_ENCL_VFIFO2VD_PIXEL_START                (volatile uint32_t *)((0x1c91  << 2) + 0xff900000)
10085 // bit 12:00 -- vfifo2vd_pixel_end
10086 #define   ENCL_VFIFO2VD_PIXEL_END                  (0x1c92)
10087 #define P_ENCL_VFIFO2VD_PIXEL_END                  (volatile uint32_t *)((0x1c92  << 2) + 0xff900000)
10088 // bit 10:0 -- vfifo2vd_line_top_start
10089 #define   ENCL_VFIFO2VD_LINE_TOP_START             (0x1c93)
10090 #define P_ENCL_VFIFO2VD_LINE_TOP_START             (volatile uint32_t *)((0x1c93  << 2) + 0xff900000)
10091 // bit 10:00 -- vfifo2vd_line_top_end
10092 #define   ENCL_VFIFO2VD_LINE_TOP_END               (0x1c94)
10093 #define P_ENCL_VFIFO2VD_LINE_TOP_END               (volatile uint32_t *)((0x1c94  << 2) + 0xff900000)
10094 // bit 10:00 -- vfifo2vd_line_bot_start
10095 #define   ENCL_VFIFO2VD_LINE_BOT_START             (0x1c95)
10096 #define P_ENCL_VFIFO2VD_LINE_BOT_START             (volatile uint32_t *)((0x1c95  << 2) + 0xff900000)
10097 // bit 10:00 -- vfifo2vd_line_bot_end
10098 #define   ENCL_VFIFO2VD_LINE_BOT_END               (0x1c96)
10099 #define P_ENCL_VFIFO2VD_LINE_BOT_END               (volatile uint32_t *)((0x1c96  << 2) + 0xff900000)
10100 #define   ENCL_VFIFO2VD_CTL2                       (0x1c97)
10101 #define P_ENCL_VFIFO2VD_CTL2                       (volatile uint32_t *)((0x1c97  << 2) + 0xff900000)
10102 #define   ENCL_TST_EN                              (0x1c98)
10103 #define P_ENCL_TST_EN                              (volatile uint32_t *)((0x1c98  << 2) + 0xff900000)
10104 #define   ENCL_TST_MDSEL                           (0x1c99)
10105 #define P_ENCL_TST_MDSEL                           (volatile uint32_t *)((0x1c99  << 2) + 0xff900000)
10106 #define   ENCL_TST_Y                               (0x1c9a)
10107 #define P_ENCL_TST_Y                               (volatile uint32_t *)((0x1c9a  << 2) + 0xff900000)
10108 #define   ENCL_TST_CB                              (0x1c9b)
10109 #define P_ENCL_TST_CB                              (volatile uint32_t *)((0x1c9b  << 2) + 0xff900000)
10110 #define   ENCL_TST_CR                              (0x1c9c)
10111 #define P_ENCL_TST_CR                              (volatile uint32_t *)((0x1c9c  << 2) + 0xff900000)
10112 #define   ENCL_TST_CLRBAR_STRT                     (0x1c9d)
10113 #define P_ENCL_TST_CLRBAR_STRT                     (volatile uint32_t *)((0x1c9d  << 2) + 0xff900000)
10114 #define   ENCL_TST_CLRBAR_WIDTH                    (0x1c9e)
10115 #define P_ENCL_TST_CLRBAR_WIDTH                    (volatile uint32_t *)((0x1c9e  << 2) + 0xff900000)
10116 #define   ENCL_TST_VDCNT_STSET                     (0x1c9f)
10117 #define P_ENCL_TST_VDCNT_STSET                     (volatile uint32_t *)((0x1c9f  << 2) + 0xff900000)
10118 //===========================================================================
10119 // ENCL registers
10120 #define   ENCL_VIDEO_EN                            (0x1ca0)
10121 #define P_ENCL_VIDEO_EN                            (volatile uint32_t *)((0x1ca0  << 2) + 0xff900000)
10122 #define   ENCL_VIDEO_Y_SCL                         (0x1ca1)
10123 #define P_ENCL_VIDEO_Y_SCL                         (volatile uint32_t *)((0x1ca1  << 2) + 0xff900000)
10124 #define   ENCL_VIDEO_PB_SCL                        (0x1ca2)
10125 #define P_ENCL_VIDEO_PB_SCL                        (volatile uint32_t *)((0x1ca2  << 2) + 0xff900000)
10126 #define   ENCL_VIDEO_PR_SCL                        (0x1ca3)
10127 #define P_ENCL_VIDEO_PR_SCL                        (volatile uint32_t *)((0x1ca3  << 2) + 0xff900000)
10128 #define   ENCL_VIDEO_Y_OFFST                       (0x1ca4)
10129 #define P_ENCL_VIDEO_Y_OFFST                       (volatile uint32_t *)((0x1ca4  << 2) + 0xff900000)
10130 #define   ENCL_VIDEO_PB_OFFST                      (0x1ca5)
10131 #define P_ENCL_VIDEO_PB_OFFST                      (volatile uint32_t *)((0x1ca5  << 2) + 0xff900000)
10132 #define   ENCL_VIDEO_PR_OFFST                      (0x1ca6)
10133 #define P_ENCL_VIDEO_PR_OFFST                      (volatile uint32_t *)((0x1ca6  << 2) + 0xff900000)
10134 //----- Video mode
10135 #define   ENCL_VIDEO_MODE                          (0x1ca7)
10136 #define P_ENCL_VIDEO_MODE                          (volatile uint32_t *)((0x1ca7  << 2) + 0xff900000)
10137 #define   ENCL_VIDEO_MODE_ADV                      (0x1ca8)
10138 #define P_ENCL_VIDEO_MODE_ADV                      (volatile uint32_t *)((0x1ca8  << 2) + 0xff900000)
10139 //--------------- Debug pins
10140 #define   ENCL_DBG_PX_RST                          (0x1ca9)
10141 #define P_ENCL_DBG_PX_RST                          (volatile uint32_t *)((0x1ca9  << 2) + 0xff900000)
10142 #define   ENCL_DBG_LN_RST                          (0x1caa)
10143 #define P_ENCL_DBG_LN_RST                          (volatile uint32_t *)((0x1caa  << 2) + 0xff900000)
10144 #define   ENCL_DBG_PX_INT                          (0x1cab)
10145 #define P_ENCL_DBG_PX_INT                          (volatile uint32_t *)((0x1cab  << 2) + 0xff900000)
10146 #define   ENCL_DBG_LN_INT                          (0x1cac)
10147 #define P_ENCL_DBG_LN_INT                          (volatile uint32_t *)((0x1cac  << 2) + 0xff900000)
10148 //----------- Video Advanced setting
10149 #define   ENCL_VIDEO_YFP1_HTIME                    (0x1cad)
10150 #define P_ENCL_VIDEO_YFP1_HTIME                    (volatile uint32_t *)((0x1cad  << 2) + 0xff900000)
10151 #define   ENCL_VIDEO_YFP2_HTIME                    (0x1cae)
10152 #define P_ENCL_VIDEO_YFP2_HTIME                    (volatile uint32_t *)((0x1cae  << 2) + 0xff900000)
10153 #define   ENCL_VIDEO_YC_DLY                        (0x1caf)
10154 #define P_ENCL_VIDEO_YC_DLY                        (volatile uint32_t *)((0x1caf  << 2) + 0xff900000)
10155 #define   ENCL_VIDEO_MAX_PXCNT                     (0x1cb0)
10156 #define P_ENCL_VIDEO_MAX_PXCNT                     (volatile uint32_t *)((0x1cb0  << 2) + 0xff900000)
10157 #define   ENCL_VIDEO_HAVON_END                     (0x1cb1)
10158 #define P_ENCL_VIDEO_HAVON_END                     (volatile uint32_t *)((0x1cb1  << 2) + 0xff900000)
10159 #define   ENCL_VIDEO_HAVON_BEGIN                   (0x1cb2)
10160 #define P_ENCL_VIDEO_HAVON_BEGIN                   (volatile uint32_t *)((0x1cb2  << 2) + 0xff900000)
10161 #define   ENCL_VIDEO_VAVON_ELINE                   (0x1cb3)
10162 #define P_ENCL_VIDEO_VAVON_ELINE                   (volatile uint32_t *)((0x1cb3  << 2) + 0xff900000)
10163 #define   ENCL_VIDEO_VAVON_BLINE                   (0x1cb4)
10164 #define P_ENCL_VIDEO_VAVON_BLINE                   (volatile uint32_t *)((0x1cb4  << 2) + 0xff900000)
10165 #define   ENCL_VIDEO_HSO_BEGIN                     (0x1cb5)
10166 #define P_ENCL_VIDEO_HSO_BEGIN                     (volatile uint32_t *)((0x1cb5  << 2) + 0xff900000)
10167 #define   ENCL_VIDEO_HSO_END                       (0x1cb6)
10168 #define P_ENCL_VIDEO_HSO_END                       (volatile uint32_t *)((0x1cb6  << 2) + 0xff900000)
10169 #define   ENCL_VIDEO_VSO_BEGIN                     (0x1cb7)
10170 #define P_ENCL_VIDEO_VSO_BEGIN                     (volatile uint32_t *)((0x1cb7  << 2) + 0xff900000)
10171 #define   ENCL_VIDEO_VSO_END                       (0x1cb8)
10172 #define P_ENCL_VIDEO_VSO_END                       (volatile uint32_t *)((0x1cb8  << 2) + 0xff900000)
10173 #define   ENCL_VIDEO_VSO_BLINE                     (0x1cb9)
10174 #define P_ENCL_VIDEO_VSO_BLINE                     (volatile uint32_t *)((0x1cb9  << 2) + 0xff900000)
10175 #define   ENCL_VIDEO_VSO_ELINE                     (0x1cba)
10176 #define P_ENCL_VIDEO_VSO_ELINE                     (volatile uint32_t *)((0x1cba  << 2) + 0xff900000)
10177 #define   ENCL_VIDEO_MAX_LNCNT                     (0x1cbb)
10178 #define P_ENCL_VIDEO_MAX_LNCNT                     (volatile uint32_t *)((0x1cbb  << 2) + 0xff900000)
10179 #define   ENCL_VIDEO_BLANKY_VAL                    (0x1cbc)
10180 #define P_ENCL_VIDEO_BLANKY_VAL                    (volatile uint32_t *)((0x1cbc  << 2) + 0xff900000)
10181 #define   ENCL_VIDEO_BLANKPB_VAL                   (0x1cbd)
10182 #define P_ENCL_VIDEO_BLANKPB_VAL                   (volatile uint32_t *)((0x1cbd  << 2) + 0xff900000)
10183 #define   ENCL_VIDEO_BLANKPR_VAL                   (0x1cbe)
10184 #define P_ENCL_VIDEO_BLANKPR_VAL                   (volatile uint32_t *)((0x1cbe  << 2) + 0xff900000)
10185 #define   ENCL_VIDEO_HOFFST                        (0x1cbf)
10186 #define P_ENCL_VIDEO_HOFFST                        (volatile uint32_t *)((0x1cbf  << 2) + 0xff900000)
10187 #define   ENCL_VIDEO_VOFFST                        (0x1cc0)
10188 #define P_ENCL_VIDEO_VOFFST                        (volatile uint32_t *)((0x1cc0  << 2) + 0xff900000)
10189 #define   ENCL_VIDEO_RGB_CTRL                      (0x1cc1)
10190 #define P_ENCL_VIDEO_RGB_CTRL                      (volatile uint32_t *)((0x1cc1  << 2) + 0xff900000)
10191 #define   ENCL_VIDEO_FILT_CTRL                     (0x1cc2)
10192 #define P_ENCL_VIDEO_FILT_CTRL                     (volatile uint32_t *)((0x1cc2  << 2) + 0xff900000)
10193 #define   ENCL_VIDEO_OFLD_VPEQ_OFST                (0x1cc3)
10194 #define P_ENCL_VIDEO_OFLD_VPEQ_OFST                (volatile uint32_t *)((0x1cc3  << 2) + 0xff900000)
10195 #define   ENCL_VIDEO_OFLD_VOAV_OFST                (0x1cc4)
10196 #define P_ENCL_VIDEO_OFLD_VOAV_OFST                (volatile uint32_t *)((0x1cc4  << 2) + 0xff900000)
10197 #define   ENCL_VIDEO_MATRIX_CB                     (0x1cc5)
10198 #define P_ENCL_VIDEO_MATRIX_CB                     (volatile uint32_t *)((0x1cc5  << 2) + 0xff900000)
10199 #define   ENCL_VIDEO_MATRIX_CR                     (0x1cc6)
10200 #define P_ENCL_VIDEO_MATRIX_CR                     (volatile uint32_t *)((0x1cc6  << 2) + 0xff900000)
10201 #define   ENCL_VIDEO_RGBIN_CTRL                    (0x1cc7)
10202 #define P_ENCL_VIDEO_RGBIN_CTRL                    (volatile uint32_t *)((0x1cc7  << 2) + 0xff900000)
10203 #define   ENCL_MAX_LINE_SWITCH_POINT               (0x1cc8)
10204 #define P_ENCL_MAX_LINE_SWITCH_POINT               (volatile uint32_t *)((0x1cc8  << 2) + 0xff900000)
10205 #define   ENCL_DACSEL_0                            (0x1cc9)
10206 #define P_ENCL_DACSEL_0                            (volatile uint32_t *)((0x1cc9  << 2) + 0xff900000)
10207 #define   ENCL_DACSEL_1                            (0x1cca)
10208 #define P_ENCL_DACSEL_1                            (volatile uint32_t *)((0x1cca  << 2) + 0xff900000)
10209 //
10210 // Closing file:  venc2_regs.h
10211 //
10212 //`define VPP_VCBUS_BASE                 8'h1d
10213 //
10214 // Reading file:  vpp_regs.h
10215 //
10216 // synopsys translate_off
10217 // synopsys translate_on
10218 // -----------------------------------------------
10219 // CBUS_BASE:  VPP_VCBUS_BASE = 0x1d
10220 // -----------------------------------------------
10221 //===========================================================================
10222 // Video postprocesing Registers
10223 //===========================================================================
10224 // dummy data used in the VPP preblend and scaler
10225 // Bit 23:16    Y
10226 // Bit 15:8     CB
10227 // Bit 7:0      CR
10228 #define   VPP_DUMMY_DATA                           (0x1d00)
10229 #define P_VPP_DUMMY_DATA                           (volatile uint32_t *)((0x1d00  << 2) + 0xff900000)
10230 //input line length used in VPP
10231 #define   VPP_LINE_IN_LENGTH                       (0x1d01)
10232 #define P_VPP_LINE_IN_LENGTH                       (volatile uint32_t *)((0x1d01  << 2) + 0xff900000)
10233 //input Picture height used in VPP
10234 #define   VPP_PIC_IN_HEIGHT                        (0x1d02)
10235 #define P_VPP_PIC_IN_HEIGHT                        (volatile uint32_t *)((0x1d02  << 2) + 0xff900000)
10236 //Because there are many coefficients used in the vertical filter and horizontal filters,
10237 //indirect access the coefficients of vertical filter and horizontal filter is used.
10238 //For vertical filter, there are 33x4 coefficients
10239 //For horizontal filter, there are 33x4 coefficients
10240 //Bit 15    index increment, if bit9 == 1  then (0: index increase 1, 1: index increase 2) else (index increase 2)
10241 //Bit 14    1: read coef through cbus enable, just for debug purpose in case when we wanna check the coef in ram in correct or not
10242 //Bit 13    if true, vertical separated coef enable
10243 //Bit 9     if true, use 9bit resolution coef, other use 8bit resolution coef
10244 //Bit 8:7   type of index, 00: vertical coef, 01: vertical chroma coef: 10: horizontal coef, 11: resevered
10245 //Bit 6:0   coef index
10246 #define   VPP_SCALE_COEF_IDX                       (0x1d03)
10247 #define P_VPP_SCALE_COEF_IDX                       (volatile uint32_t *)((0x1d03  << 2) + 0xff900000)
10248 //coefficients for vertical filter and horizontal filter
10249 #define   VPP_SCALE_COEF                           (0x1d04)
10250 #define P_VPP_SCALE_COEF                           (volatile uint32_t *)((0x1d04  << 2) + 0xff900000)
10251 //these following registers are the absolute line address pointer for output divided screen
10252 //The output divided screen is shown in the following:
10253 //
10254 //  --------------------------   <------ line zero
10255 //      .
10256 //      .
10257 //      .           region0        <---------- nonlinear region or nonscaling region
10258 //      .
10259 //  ---------------------------
10260 //  ---------------------------  <------ region1_startp
10261 //      .
10262 //      .           region1         <---------- nonlinear region
10263 //      .
10264 //      .
10265 //  ---------------------------
10266 //  ---------------------------  <------ region2_startp
10267 //      .
10268 //      .           region2         <---------- linear region
10269 //      .
10270 //      .
10271 //  ---------------------------
10272 //  ---------------------------  <------ region3_startp
10273 //      .
10274 //      .           region3         <---------- nonlinear region
10275 //      .
10276 //      .
10277 //  ---------------------------
10278 //  ---------------------------  <------ region4_startp
10279 //      .
10280 //      .           region4         <---------- nonlinear region or nonoscaling region
10281 //      .
10282 //      .
10283 //  ---------------------------  <------ region4_endp
10284 //Bit 28:16 region1 startp
10285 //Bit 12:0 region2 startp
10286 #define   VPP_VSC_REGION12_STARTP                  (0x1d05)
10287 #define P_VPP_VSC_REGION12_STARTP                  (volatile uint32_t *)((0x1d05  << 2) + 0xff900000)
10288 //Bit 28:16 region3 startp
10289 //Bit 12:0 region4 startp
10290 #define   VPP_VSC_REGION34_STARTP                  (0x1d06)
10291 #define P_VPP_VSC_REGION34_STARTP                  (volatile uint32_t *)((0x1d06  << 2) + 0xff900000)
10292 #define   VPP_VSC_REGION4_ENDP                     (0x1d07)
10293 #define P_VPP_VSC_REGION4_ENDP                     (volatile uint32_t *)((0x1d07  << 2) + 0xff900000)
10294 //vertical start phase step, (source/dest)*(2^24)
10295 //Bit 27:24 integer part
10296 //Bit 23:0  fraction part
10297 #define   VPP_VSC_START_PHASE_STEP                 (0x1d08)
10298 #define P_VPP_VSC_START_PHASE_STEP                 (volatile uint32_t *)((0x1d08  << 2) + 0xff900000)
10299 //vertical scaler region0 phase slope, Bit24 signed bit
10300 #define   VPP_VSC_REGION0_PHASE_SLOPE              (0x1d09)
10301 #define P_VPP_VSC_REGION0_PHASE_SLOPE              (volatile uint32_t *)((0x1d09  << 2) + 0xff900000)
10302 //vertical scaler region1 phase slope, Bit24 signed bit
10303 #define   VPP_VSC_REGION1_PHASE_SLOPE              (0x1d0a)
10304 #define P_VPP_VSC_REGION1_PHASE_SLOPE              (volatile uint32_t *)((0x1d0a  << 2) + 0xff900000)
10305 //vertical scaler region3 phase slope, Bit24 signed bit
10306 #define   VPP_VSC_REGION3_PHASE_SLOPE              (0x1d0b)
10307 #define P_VPP_VSC_REGION3_PHASE_SLOPE              (volatile uint32_t *)((0x1d0b  << 2) + 0xff900000)
10308 //vertical scaler region4 phase slope, Bit24 signed bit
10309 #define   VPP_VSC_REGION4_PHASE_SLOPE              (0x1d0c)
10310 #define P_VPP_VSC_REGION4_PHASE_SLOPE              (volatile uint32_t *)((0x1d0c  << 2) + 0xff900000)
10311 //Bit 18:17     double line mode, input/output line width of vscaler becomes 2X,
10312 //           so only 2 line buffer in this case, use for 3D line by line interleave scaling
10313 //           bit1 true, double the input width and half input height, bit0 true, change line buffer 2 lines instead of 4 lines
10314 //Bit 16     0: progressive output, 1: interlace output
10315 //Bit 15     vertical scaler output line0 in advance or not for bottom field
10316 //Bit 14:13  vertical scaler initial repeat line0 number for bottom field
10317 //Bit 11:8   vertical scaler initial receiving  number for bottom field
10318 //Bit 7      vertical scaler output line0 in advance or not for top field
10319 //Bit 6:5    vertical scaler initial repeat line0 number for top field
10320 //Bit 3:0    vertical scaler initial receiving  number for top field
10321 #define   VPP_VSC_PHASE_CTRL                       (0x1d0d)
10322 #define P_VPP_VSC_PHASE_CTRL                       (volatile uint32_t *)((0x1d0d  << 2) + 0xff900000)
10323 //Bit 31:16  vertical scaler field initial phase for bottom field
10324 //Bit 15:0  vertical scaler field initial phase for top field
10325 #define   VPP_VSC_INI_PHASE                        (0x1d0e)
10326 #define P_VPP_VSC_INI_PHASE                        (volatile uint32_t *)((0x1d0e  << 2) + 0xff900000)
10327 //Bit 28:16 region1 startp
10328 //Bit 12:0 region2 startp
10329 #define   VPP_HSC_REGION12_STARTP                  (0x1d10)
10330 #define P_VPP_HSC_REGION12_STARTP                  (volatile uint32_t *)((0x1d10  << 2) + 0xff900000)
10331 //Bit 28:16 region3 startp
10332 //Bit 12:0 region4 startp
10333 #define   VPP_HSC_REGION34_STARTP                  (0x1d11)
10334 #define P_VPP_HSC_REGION34_STARTP                  (volatile uint32_t *)((0x1d11  << 2) + 0xff900000)
10335 #define   VPP_HSC_REGION4_ENDP                     (0x1d12)
10336 #define P_VPP_HSC_REGION4_ENDP                     (volatile uint32_t *)((0x1d12  << 2) + 0xff900000)
10337 //horizontal start phase step, (source/dest)*(2^24)
10338 //Bit 27:24 integer part
10339 //Bit 23:0  fraction part
10340 #define   VPP_HSC_START_PHASE_STEP                 (0x1d13)
10341 #define P_VPP_HSC_START_PHASE_STEP                 (volatile uint32_t *)((0x1d13  << 2) + 0xff900000)
10342 //horizontal scaler region0 phase slope, Bit24 signed bit
10343 #define   VPP_HSC_REGION0_PHASE_SLOPE              (0x1d14)
10344 #define P_VPP_HSC_REGION0_PHASE_SLOPE              (volatile uint32_t *)((0x1d14  << 2) + 0xff900000)
10345 //horizontal scaler region1 phase slope, Bit24 signed bit
10346 #define   VPP_HSC_REGION1_PHASE_SLOPE              (0x1d15)
10347 #define P_VPP_HSC_REGION1_PHASE_SLOPE              (volatile uint32_t *)((0x1d15  << 2) + 0xff900000)
10348 //horizontal scaler region3 phase slope, Bit24 signed bit
10349 #define   VPP_HSC_REGION3_PHASE_SLOPE              (0x1d16)
10350 #define P_VPP_HSC_REGION3_PHASE_SLOPE              (volatile uint32_t *)((0x1d16  << 2) + 0xff900000)
10351 //horizontal scaler region4 phase slope, Bit24 signed bit
10352 #define   VPP_HSC_REGION4_PHASE_SLOPE              (0x1d17)
10353 #define P_VPP_HSC_REGION4_PHASE_SLOPE              (volatile uint32_t *)((0x1d17  << 2) + 0xff900000)
10354 //Bit 22:21   horizontal scaler initial repeat pixel0 number0
10355 //Bit 19:16   horizontal scaler initial receiving number0
10356 //Bit 15:0    horizontal scaler top field initial phase0
10357 #define   VPP_HSC_PHASE_CTRL                       (0x1d18)
10358 #define P_VPP_HSC_PHASE_CTRL                       (volatile uint32_t *)((0x1d18  << 2) + 0xff900000)
10359 // Bit 22 if true, divide VSC line length 2 as the HSC input length, othwise VSC length length is the same as the VSC line length,
10360 //                 just for special usage, more flexibility
10361 // Bit 21 if true, prevsc uses lin buffer, otherwise prevsc does not use line buffer, it should be same as prevsc_en
10362 // Bit 20 prehsc_en
10363 // Bit 19 prevsc_en
10364 // Bit 18 vsc_en
10365 // Bit 17 hsc_en
10366 // Bit 16 scale_top_en
10367 // Bit 15 video1 scale out enable
10368 // Bit 12 if true, region0,region4 are nonlinear regions, otherwise they are not scaling regions, for horizontal scaler
10369 // Bit 10:8 horizontal scaler bank length
10370 // Bit 5, vertical scaler phase field mode, if true, disable the opposite parity line output, more bandwith needed if output 1080i
10371 // Bit 4 if true, region0,region4 are nonlinear regions, otherwise they are not scaling regions, for vertical scaler
10372 // Bit 2:0 vertical scaler bank length
10373 #define   VPP_SC_MISC                              (0x1d19)
10374 #define P_VPP_SC_MISC                              (volatile uint32_t *)((0x1d19  << 2) + 0xff900000)
10375 // preblend video1 horizontal start and end
10376 //Bit 28:16 start
10377 //Bit 12:0 end
10378 #define   VPP_PREBLEND_VD1_H_START_END             (0x1d1a)
10379 #define P_VPP_PREBLEND_VD1_H_START_END             (volatile uint32_t *)((0x1d1a  << 2) + 0xff900000)
10380 // preblend video1 vertical start and end
10381 //Bit 28:16 start
10382 //Bit 12:0 end
10383 #define   VPP_PREBLEND_VD1_V_START_END             (0x1d1b)
10384 #define P_VPP_PREBLEND_VD1_V_START_END             (volatile uint32_t *)((0x1d1b  << 2) + 0xff900000)
10385 // postblend video1 horizontal start and end
10386 //Bit 28:16 start
10387 //Bit 12:0 end
10388 #define   VPP_POSTBLEND_VD1_H_START_END            (0x1d1c)
10389 #define P_VPP_POSTBLEND_VD1_H_START_END            (volatile uint32_t *)((0x1d1c  << 2) + 0xff900000)
10390 // postblend video1 vertical start and end
10391 //Bit 28:16 start
10392 //Bit 12:0 end
10393 #define   VPP_POSTBLEND_VD1_V_START_END            (0x1d1d)
10394 #define P_VPP_POSTBLEND_VD1_V_START_END            (volatile uint32_t *)((0x1d1d  << 2) + 0xff900000)
10395 // preblend/postblend video2 horizontal start and end
10396 //Bit 28:16 start
10397 //Bit 12:0 end
10398 #define   VPP_BLEND_VD2_H_START_END                (0x1d1e)
10399 #define P_VPP_BLEND_VD2_H_START_END                (volatile uint32_t *)((0x1d1e  << 2) + 0xff900000)
10400 // preblend/postblend video2 vertical start and end
10401 //Bit 28:16 start
10402 //Bit 12:0 end
10403 #define   VPP_BLEND_VD2_V_START_END                (0x1d1f)
10404 #define P_VPP_BLEND_VD2_V_START_END                (volatile uint32_t *)((0x1d1f  << 2) + 0xff900000)
10405 // preblend horizontal size
10406 #define   VPP_PREBLEND_H_SIZE                      (0x1d20)
10407 #define P_VPP_PREBLEND_H_SIZE                      (volatile uint32_t *)((0x1d20  << 2) + 0xff900000)
10408 // postblend horizontal size
10409 #define   VPP_POSTBLEND_H_SIZE                     (0x1d21)
10410 #define P_VPP_POSTBLEND_H_SIZE                     (volatile uint32_t *)((0x1d21  << 2) + 0xff900000)
10411 //VPP hold lines
10412 //Bit 29:24
10413 //Bit 21:16
10414 //Bit 15:8     preblend hold lines
10415 //Bit 7:0      postblend hold lines
10416 #define   VPP_HOLD_LINES                           (0x1d22)
10417 #define P_VPP_HOLD_LINES                           (volatile uint32_t *)((0x1d22  << 2) + 0xff900000)
10418 //Bit 26   if true, automatic change post blend output to one color if field ==1
10419 //Bit 25   if true, change screen to one color value for preblender
10420 //Bit 24   if true, change screen to one color value for postblender
10421 // Bit 23:16 one color Y
10422 // Bit 15:8 one color Cb
10423 // Bit  7:0 one color  Cr
10424 #define   VPP_BLEND_ONECOLOR_CTRL                  (0x1d23)
10425 #define P_VPP_BLEND_ONECOLOR_CTRL                  (volatile uint32_t *)((0x1d23  << 2) + 0xff900000)
10426 //Read Only, VPP preblend current_x, current_y
10427 //Bit 28:16 current_x
10428 //Bit 12:0 current_y
10429 #define   VPP_PREBLEND_CURRENT_XY                  (0x1d24)
10430 #define P_VPP_PREBLEND_CURRENT_XY                  (volatile uint32_t *)((0x1d24  << 2) + 0xff900000)
10431 //Read Only, VPP postblend current_x, current_y
10432 //Bit 28:16 current_x
10433 //Bit 12:0 current_y
10434 #define   VPP_POSTBLEND_CURRENT_XY                 (0x1d25)
10435 #define P_VPP_POSTBLEND_CURRENT_XY                 (volatile uint32_t *)((0x1d25  << 2) + 0xff900000)
10436 // Bit 31  vd1_bgosd_exchange_en for preblend
10437 // Bit 30  vd1_bgosd_exchange_en for postblend
10438 // Bit 28   color management enable
10439 // Bit 27,  if true, vd2 use viu2 output as the input, otherwise use normal vd2 from memory
10440 // Bit 26:18, vd2 alpha
10441 // Bit 17, osd2 enable for preblend
10442 // Bit 16, osd1 enable for preblend
10443 // Bit 15, vd2 enable for preblend
10444 // Bit 14, vd1 enable for preblend
10445 // Bit 13, osd2 enable for postblend
10446 // Bit 12, osd1 enable for postblend
10447 // Bit 11, vd2 enable for postblend
10448 // Bit 10, vd1 enable for postblend
10449 // Bit 9,  if true, osd1 is alpha premultipiled
10450 // Bit 8,  if true, osd2 is alpha premultipiled
10451 // Bit 7,  postblend module enable
10452 // Bit 6,  preblend module enable
10453 // Bit 5,  if true, osd2 foreground compared with osd1 in preblend
10454 // Bit 4,  if true, osd2 foreground compared with osd1 in postblend
10455 // Bit 3,
10456 // Bit 2,  if true, disable resetting async fifo every vsync, otherwise every vsync
10457 //           the aync fifo will be reseted.
10458 // Bit 1,
10459 // Bit 0    if true, the output result of VPP is saturated
10460 #define   VPP_MISC                                 (0x1d26)
10461 #define P_VPP_MISC                                 (volatile uint32_t *)((0x1d26  << 2) + 0xff900000)
10462 //Bit 31:20 ofifo line length minus 1
10463 //Bit 19  if true invert input vs
10464 //Bit 18  if true invert input hs
10465 //Bit 17  force top/bottom field, enable
10466 //Bit 16  force top/bottom field, 0: top, 1: bottom
10467 //Bit 15  force one go_field, one pluse, write only
10468 //Bit 14  force one go_line, one pluse, write only
10469 //Bit 12:0 ofifo size (actually only bit 10:1 is valid), always even number
10470 #define   VPP_OFIFO_SIZE                           (0x1d27)
10471 #define P_VPP_OFIFO_SIZE                           (volatile uint32_t *)((0x1d27  << 2) + 0xff900000)
10472 //Read only
10473 //Bit 28:18 current scale out fifo counter
10474 //Bit 17:13 current afifo counter
10475 //Bit 12:0 current ofifo counter
10476 #define   VPP_FIFO_STATUS                          (0x1d28)
10477 #define P_VPP_FIFO_STATUS                          (volatile uint32_t *)((0x1d28  << 2) + 0xff900000)
10478 // Bit 5 SMOKE3 postblend enable only when postblend vd2 is not enable
10479 // Bit 4 SMOKE3 preblend enable only when preblend vd2 is not enable
10480 // Bit 3 SMOKE2 postblend enable only when postblend osd2 is not enable
10481 // Bit 2 SMOKE2 preblend enable only when preblend osd2 is not enable
10482 // Bit 1 SMOKE1 postblend enable only when postblend osd1 is not enable
10483 // Bit 0 SMOKE1 preblend enable only when preblend osd1 is not enable
10484 #define   VPP_SMOKE_CTRL                           (0x1d29)
10485 #define P_VPP_SMOKE_CTRL                           (volatile uint32_t *)((0x1d29  << 2) + 0xff900000)
10486 //smoke can be used only when that blending is disable and then be used as smoke function
10487 //smoke1 for OSD1 chanel
10488 //smoke2 for OSD2 chanel
10489 //smoke3 for VD2 chanel
10490 //31:24 Y
10491 //23:16 Cb
10492 //15:8 Cr
10493 //7:0 Alpha
10494 #define   VPP_SMOKE1_VAL                           (0x1d2a)
10495 #define P_VPP_SMOKE1_VAL                           (volatile uint32_t *)((0x1d2a  << 2) + 0xff900000)
10496 #define   VPP_SMOKE2_VAL                           (0x1d2b)
10497 #define P_VPP_SMOKE2_VAL                           (volatile uint32_t *)((0x1d2b  << 2) + 0xff900000)
10498 #define   VPP_SMOKE3_VAL                           (0x1d2c)
10499 #define P_VPP_SMOKE3_VAL                           (volatile uint32_t *)((0x1d2c  << 2) + 0xff900000)
10500 //Bit 28:16 start
10501 //Bit 12:0 end
10502 #define   VPP_SMOKE1_H_START_END                   (0x1d2d)
10503 #define P_VPP_SMOKE1_H_START_END                   (volatile uint32_t *)((0x1d2d  << 2) + 0xff900000)
10504 //Bit 28:16 start
10505 //Bit 12:0 end
10506 #define   VPP_SMOKE1_V_START_END                   (0x1d2e)
10507 #define P_VPP_SMOKE1_V_START_END                   (volatile uint32_t *)((0x1d2e  << 2) + 0xff900000)
10508 //Bit 28:16 start
10509 //Bit 12:0 end
10510 #define   VPP_SMOKE2_H_START_END                   (0x1d2f)
10511 #define P_VPP_SMOKE2_H_START_END                   (volatile uint32_t *)((0x1d2f  << 2) + 0xff900000)
10512 //Bit 28:16 start
10513 //Bit 12:0 end
10514 #define   VPP_SMOKE2_V_START_END                   (0x1d30)
10515 #define P_VPP_SMOKE2_V_START_END                   (volatile uint32_t *)((0x1d30  << 2) + 0xff900000)
10516 //Bit 28:16 start
10517 //Bit 12:0 end
10518 #define   VPP_SMOKE3_H_START_END                   (0x1d31)
10519 #define P_VPP_SMOKE3_H_START_END                   (volatile uint32_t *)((0x1d31  << 2) + 0xff900000)
10520 //Bit 28:16 start
10521 //Bit 12:0 end
10522 #define   VPP_SMOKE3_V_START_END                   (0x1d32)
10523 #define P_VPP_SMOKE3_V_START_END                   (volatile uint32_t *)((0x1d32  << 2) + 0xff900000)
10524 //Bit 27:16 scale out fifo line length minus 1
10525 //Bit 12:0 scale out fifo size (actually only bit 11:1 is valid, 11:1, max 1024), always even number
10526 #define   VPP_SCO_FIFO_CTRL                        (0x1d33)
10527 #define P_VPP_SCO_FIFO_CTRL                        (volatile uint32_t *)((0x1d33  << 2) + 0xff900000)
10528 //for 3D quincunx sub-sampling and horizontal pixel by pixel 3D interleaving
10529 //Bit 27:24, prehsc_mode, bit 3:2, prehsc odd line interp mode, bit 1:0, prehsc even line interp mode,
10530 //           each 2bit, 00: pix0+pix1/2, average, 01: pix1, 10: pix0
10531 //Bit 23 horizontal scaler double pixel mode
10532 //Bit 22:21   horizontal scaler initial repeat pixel0 number1
10533 //Bit 19:16   horizontal scaler initial receiving number1
10534 //Bit 15:0    horizontal scaler top field initial phase1
10535 #define   VPP_HSC_PHASE_CTRL1                      (0x1d34)
10536 #define P_VPP_HSC_PHASE_CTRL1                      (volatile uint32_t *)((0x1d34  << 2) + 0xff900000)
10537 //for 3D quincunx sub-sampling
10538 //31:24  prehsc pattern, each patten 1 bit, from lsb -> msb
10539 //22:20  prehsc pattern start
10540 //18:16 prehsc pattern end
10541 //15:8 hsc pattern, each patten 1 bit, from lsb -> msb
10542 //6:4  hsc pattern start
10543 //2:0  hsc pattern end
10544 #define   VPP_HSC_INI_PAT_CTRL                     (0x1d35)
10545 #define P_VPP_HSC_INI_PAT_CTRL                     (volatile uint32_t *)((0x1d35  << 2) + 0xff900000)
10546 //Bit 3         minus black level enable for vadj2
10547 //Bit 2         Video adjustment enable for vadj2
10548 //Bit 1         minus black level enable for vadj1
10549 //Bit 0         Video adjustment enable for vadj1
10550 #define   VPP_VADJ_CTRL                            (0x1d40)
10551 #define P_VPP_VADJ_CTRL                            (volatile uint32_t *)((0x1d40  << 2) + 0xff900000)
10552 //Bit 16:8  brightness, signed value
10553 //Bit 7:0   contrast, unsigned value, contrast from  0 <= contrast <2
10554 #define   VPP_VADJ1_Y                              (0x1d41)
10555 #define P_VPP_VADJ1_Y                              (volatile uint32_t *)((0x1d41  << 2) + 0xff900000)
10556 //cb' = cb*ma + cr*mb
10557 //cr' = cb*mc + cr*md
10558 //all are bit 9:0, signed value, -2 < ma/mb/mc/md < 2
10559 #define   VPP_VADJ1_MA_MB                          (0x1d42)
10560 #define P_VPP_VADJ1_MA_MB                          (volatile uint32_t *)((0x1d42  << 2) + 0xff900000)
10561 #define   VPP_VADJ1_MC_MD                          (0x1d43)
10562 #define P_VPP_VADJ1_MC_MD                          (volatile uint32_t *)((0x1d43  << 2) + 0xff900000)
10563 //Bit 16:8  brightness, signed value
10564 //Bit 7:0   contrast, unsigned value, contrast from  0 <= contrast <2
10565 #define   VPP_VADJ2_Y                              (0x1d44)
10566 #define P_VPP_VADJ2_Y                              (volatile uint32_t *)((0x1d44  << 2) + 0xff900000)
10567 //cb' = cb*ma + cr*mb
10568 //cr' = cb*mc + cr*md
10569 //all are bit 9:0, signed value, -2 < ma/mb/mc/md < 2
10570 #define   VPP_VADJ2_MA_MB                          (0x1d45)
10571 #define P_VPP_VADJ2_MA_MB                          (volatile uint32_t *)((0x1d45  << 2) + 0xff900000)
10572 #define   VPP_VADJ2_MC_MD                          (0x1d46)
10573 #define P_VPP_VADJ2_MC_MD                          (volatile uint32_t *)((0x1d46  << 2) + 0xff900000)
10574 //Bit 2 horizontal chroma sharp/blur selection, 0:sharp, 1: blur
10575 //Bit 1 horizontal luma sharp/blur selection, 0:sharp, 1: blur
10576 //Bit 0 horizontal sharpness enable
10577 #define   VPP_HSHARP_CTRL                          (0x1d50)
10578 #define P_VPP_HSHARP_CTRL                          (volatile uint32_t *)((0x1d50  << 2) + 0xff900000)
10579 //{1'b0,threhsold} < diff
10580 //Bit 26:16  luma threshold0
10581 //Bit 10:0   luma threshold1
10582 #define   VPP_HSHARP_LUMA_THRESH01                 (0x1d51)
10583 #define P_VPP_HSHARP_LUMA_THRESH01                 (volatile uint32_t *)((0x1d51  << 2) + 0xff900000)
10584 //
10585 //Bit 26:16  luma threshold2
10586 //Bit 10:0   luma threshold3
10587 #define   VPP_HSHARP_LUMA_THRESH23                 (0x1d52)
10588 #define P_VPP_HSHARP_LUMA_THRESH23                 (volatile uint32_t *)((0x1d52  << 2) + 0xff900000)
10589 //Bit 26:16  chroma threshold0
10590 //Bit 10:0   chroma threshold1
10591 #define   VPP_HSHARP_CHROMA_THRESH01               (0x1d53)
10592 #define P_VPP_HSHARP_CHROMA_THRESH01               (volatile uint32_t *)((0x1d53  << 2) + 0xff900000)
10593 //Bit 26:16  chroma threshold2
10594 //Bit 10:0   chroma threshold3
10595 #define   VPP_HSHARP_CHROMA_THRESH23               (0x1d54)
10596 #define P_VPP_HSHARP_CHROMA_THRESH23               (volatile uint32_t *)((0x1d54  << 2) + 0xff900000)
10597 //Bit 23:16 luma gain2
10598 //Bit 15:8  luma gain1
10599 //Bit 7:0   luma gain0
10600 #define   VPP_HSHARP_LUMA_GAIN                     (0x1d55)
10601 #define P_VPP_HSHARP_LUMA_GAIN                     (volatile uint32_t *)((0x1d55  << 2) + 0xff900000)
10602 //
10603 //Bit 23:16 chroma gain2
10604 //Bit 15:8  chroma gain1
10605 //Bit 7:0   chroma gain0
10606 #define   VPP_HSHARP_CHROMA_GAIN                   (0x1d56)
10607 #define P_VPP_HSHARP_CHROMA_GAIN                   (volatile uint32_t *)((0x1d56  << 2) + 0xff900000)
10608 //Read only
10609 //Bit 31, if it is true, it means this probe is valid in the last field/frame
10610 //Bit 29:20 component 0
10611 //Bit 19:10 component 1
10612 //Bit 9:0 component 2
10613 #define   VPP_MATRIX_PROBE_COLOR                   (0x1d5c)
10614 #define P_VPP_MATRIX_PROBE_COLOR                   (volatile uint32_t *)((0x1d5c  << 2) + 0xff900000)
10615 #define   VPP_MATRIX_PROBE_COLOR1                  (0x1dd7)
10616 #define P_VPP_MATRIX_PROBE_COLOR1                  (volatile uint32_t *)((0x1dd7  << 2) + 0xff900000)
10617 //Bit 23:16 component 0
10618 //Bit 15:8  component 1
10619 //Bit 7:0 component 2
10620 #define   VPP_MATRIX_HL_COLOR                      (0x1d5d)
10621 #define P_VPP_MATRIX_HL_COLOR                      (volatile uint32_t *)((0x1d5d  << 2) + 0xff900000)
10622 //28:16 probe x, postion
10623 //12:0  probe y, position
10624 #define   VPP_MATRIX_PROBE_POS                     (0x1d5e)
10625 #define P_VPP_MATRIX_PROBE_POS                     (volatile uint32_t *)((0x1d5e  << 2) + 0xff900000)
10626 //Bit 16,  highlight_en
10627 //Bit 15   probe_post, if true, probe pixel data after matrix, otherwise probe pixel data before matrix
10628 //Bit 14:12 probe_sel, 000: select post matrix, 001: select vd1 matrix, 010: select vd2 matrix
10629 //Bit 9:8  matrix coef idx selection, 00: select post matrix, 01: select vd1 matrix, 10: select vd2 matrix
10630 //Bit 5    vd1 conversion matrix enable
10631 //Bit 4    vd2 conversion matrix enable
10632 //Bit 2    output y/cb/cr saturation enable, only for post matrix (y saturate to 16-235, cb/cr saturate to 16-240)
10633 //Bit 1    input y/cb/cr saturation enable, only for post matrix (y saturate to 16-235, cb/cr saturate to 16-240)
10634 //Bit 0    post conversion matrix enable
10635 #define   VPP_MATRIX_CTRL                          (0x1d5f)
10636 #define P_VPP_MATRIX_CTRL                          (volatile uint32_t *)((0x1d5f  << 2) + 0xff900000)
10637 //Bit 28:16 coef00
10638 //Bit 12:0  coef01
10639 #define   VPP_MATRIX_COEF00_01                     (0x1d60)
10640 #define P_VPP_MATRIX_COEF00_01                     (volatile uint32_t *)((0x1d60  << 2) + 0xff900000)
10641 //Bit 28:16 coef02
10642 //Bit 12:0  coef10
10643 #define   VPP_MATRIX_COEF02_10                     (0x1d61)
10644 #define P_VPP_MATRIX_COEF02_10                     (volatile uint32_t *)((0x1d61  << 2) + 0xff900000)
10645 //Bit 28:16 coef11
10646 //Bit 12:0  coef12
10647 #define   VPP_MATRIX_COEF11_12                     (0x1d62)
10648 #define P_VPP_MATRIX_COEF11_12                     (volatile uint32_t *)((0x1d62  << 2) + 0xff900000)
10649 //Bit 28:16 coef20
10650 //Bit 12:0  coef21
10651 #define   VPP_MATRIX_COEF20_21                     (0x1d63)
10652 #define P_VPP_MATRIX_COEF20_21                     (volatile uint32_t *)((0x1d63  << 2) + 0xff900000)
10653 #define   VPP_MATRIX_COEF22                        (0x1d64)
10654 #define P_VPP_MATRIX_COEF22                        (volatile uint32_t *)((0x1d64  << 2) + 0xff900000)
10655 //Bit 26:16 offset0
10656 //Bit 10:0  offset1
10657 #define   VPP_MATRIX_OFFSET0_1                     (0x1d65)
10658 #define P_VPP_MATRIX_OFFSET0_1                     (volatile uint32_t *)((0x1d65  << 2) + 0xff900000)
10659 //Bit 10:0  offset2
10660 #define   VPP_MATRIX_OFFSET2                       (0x1d66)
10661 #define P_VPP_MATRIX_OFFSET2                       (volatile uint32_t *)((0x1d66  << 2) + 0xff900000)
10662 //Bit 26:16 pre_offset0
10663 //Bit 10:0  pre_offset1
10664 #define   VPP_MATRIX_PRE_OFFSET0_1                 (0x1d67)
10665 #define P_VPP_MATRIX_PRE_OFFSET0_1                 (volatile uint32_t *)((0x1d67  << 2) + 0xff900000)
10666 //Bit 10:0  pre_offset2
10667 #define   VPP_MATRIX_PRE_OFFSET2                   (0x1d68)
10668 #define P_VPP_MATRIX_PRE_OFFSET2                   (volatile uint32_t *)((0x1d68  << 2) + 0xff900000)
10669 // dummy data used in the VPP postblend
10670 // Bit 23:16    Y
10671 // Bit 15:8     CB
10672 // Bit 7:0      CR
10673 #define   VPP_DUMMY_DATA1                          (0x1d69)
10674 #define P_VPP_DUMMY_DATA1                          (volatile uint32_t *)((0x1d69  << 2) + 0xff900000)
10675 //Bit 31 gainoff module enable
10676 //Bit 26:16 gain0, 1.10 unsigned data
10677 //Bit 10:0  gain1, 1.10 unsigned dat
10678 #define   VPP_GAINOFF_CTRL0                        (0x1d6a)
10679 #define P_VPP_GAINOFF_CTRL0                        (volatile uint32_t *)((0x1d6a  << 2) + 0xff900000)
10680 //Bit 26:16 gain2, 1.10 unsigned data
10681 //Bit 10:0, offset0, signed data
10682 #define   VPP_GAINOFF_CTRL1                        (0x1d6b)
10683 #define P_VPP_GAINOFF_CTRL1                        (volatile uint32_t *)((0x1d6b  << 2) + 0xff900000)
10684 //Bit 26:16, offset1, signed data
10685 //Bit 10:0, offset2, signed data
10686 #define   VPP_GAINOFF_CTRL2                        (0x1d6c)
10687 #define P_VPP_GAINOFF_CTRL2                        (volatile uint32_t *)((0x1d6c  << 2) + 0xff900000)
10688 //Bit 26:16, pre_offset0, signed data
10689 //Bit 10:0, pre_offset1, signed data
10690 #define   VPP_GAINOFF_CTRL3                        (0x1d6d)
10691 #define P_VPP_GAINOFF_CTRL3                        (volatile uint32_t *)((0x1d6d  << 2) + 0xff900000)
10692 //Bit 10:0, pre_offset2, signed data
10693 #define   VPP_GAINOFF_CTRL4                        (0x1d6e)
10694 #define P_VPP_GAINOFF_CTRL4                        (volatile uint32_t *)((0x1d6e  << 2) + 0xff900000)
10695 //only two registers used in the color management, which are defined in the chroma_reg.h
10696 //`define VPP_CHROMA_ADDR_PORT    8'h70
10697 //`define VPP_CHROMA_DATA_PORT    8'h71
10698 //
10699 // Reading file:  chroma_reg.h
10700 //
10701 //**********************************************************************************
10702 //* Copyright (c) 2008, AMLOGIC Inc.
10703 //* All rights reserved
10704 //**********************************************************************************
10705 //* File :  chroma_reg.v
10706 //* Author : Terrence Wang
10707 //* Date : Dec 2008
10708 //* Description :
10709 //*
10710 //**********************************************************************************
10711 //* Modification History:
10712 //* Date    Modified By         Reason
10713 //**********************************************************************************
10714 // synopsys translate_off
10715 // synopsys translate_on
10716 #define   VPP_CHROMA_ADDR_PORT                     (0x1d70)
10717 #define P_VPP_CHROMA_ADDR_PORT                     (volatile uint32_t *)((0x1d70  << 2) + 0xff900000)
10718 #define   VPP_CHROMA_DATA_PORT                     (0x1d71)
10719 #define P_VPP_CHROMA_DATA_PORT                     (volatile uint32_t *)((0x1d71  << 2) + 0xff900000)
10720 //`define CHROMA_ADDR_PORT        8'h67
10721 //`define CHROMA_DATA_PORT        8'h68
10722 
10723 //  CHROMA_GAIN_REG_XX(00-07)
10724 //  hue gain, sat gain function control
10725 //  Bit 31      reg_sat_en                  enable sat adjustment in current region
10726 //  Bit 27      reg_sat_increase            sat adjustment increase or decrease
10727 //                                          1'b1: increase  1'b0: decrease
10728 //  Bit 26:25   reg_sat_central_en          sat adjustment with central biggest or one side biggest
10729 //                                          2'b01 central biggest   2'b00 one side biggest
10730 //  Bit 24      reg_sat_shape               when sat adjustment one side biggest, define left or right
10731 //                                          1'b1: left side biggest 1'b0 right side biggest
10732 //  Bit 23:16   reg_sat_gain                define the sat gain when sat adjustment
10733 //                                          0x00-0xff
10734 //  Bit 15      reg_hue_en                  enable hue adjustment in current region
10735 //  Bit 11      reg_hue_clockwise           hue adjustment clockwise or anti-clockwise
10736 //                                          1'b1: clockwise 1'b0: anti-clockwise
10737 //  Bit 10:9    reg_hue_central_en          when hue adjustment, parabola curve or non-symmetry curve
10738 //                                          1'b1: parabola curve    1'b0: non-symmetry curve
10739 //  Bit 8       reg_hue_shape               when non-symmetry curve, define which side change more
10740 //                                          1'b1: right side change more    1'b0: left side change more
10741 //  Bit 7:0     reg_hue_gain                define the hue gain when hue adjustment
10742 //                                          0x00-0x80, note: should be no bigger than 0x80
10743 
10744     #define CHROMA_GAIN_REG00       0x00
10745 
10746 
10747 //  HUE_HUE_RANGE_REG_XX(00-07)
10748 //  hue range select
10749 //  Bit 31:24   no use now
10750 //  Bit 23:16   reg_hue_shift_range         define the angle of target region
10751 //                                          0x00-0xff,(0x100 means 120 degree though it can not be set)
10752 //                                          must be greater or equal than 8'd8
10753 //  Bit 15      reg_symmetry_en             this is used for create one symmetry region
10754 //                                          the symmetry region hue_shift_start = reg_hue_hue_shift_start + reg_hue_shift_range<<5
10755 //                                          the symmetry region hue_shift_range = reg_hue_shift_range
10756 //                                          in symmetry region, all the sat and hue setting will be same with original region,
10757 //                                          except reg_hue_shape, reg_sat_shape, reg_hue_clockwise will be reversed
10758 //  Bit 14:0    reg_hue_hue_shift_start     define the start angle of target region
10759 //                                          0x6000 means 360 degree
10760 //                                          only region 0 and 1 can exceed 360 degrees.
10761 
10762     #define HUE_HUE_RANGE_REG00     0x01
10763 
10764 
10765 //  HUE_RANGE_INV_REG_XX
10766 //  Calculation should be follow
10767 //  HUE_RANGE_INV_REG0X[15:0] = ((1<<20)/HUE_HUE_RANGE_REG0X[23:16]+1)>>1
10768 //  HUE_RANGE_INV_REG_XX is to used to save divider
10769 
10770     #define HUE_RANGE_INV_REG00     0x02
10771 
10772 
10773 
10774 //  for belowing each low, high, low_slope, high_slope group:
10775 //            a_____________b
10776 //            /             \               a = low  + 2^low_slope
10777 //           /               \              b = high - 2^high_slope
10778 //          /                 \             low_slope <= 7; high_slope <= 7
10779 //         /                   \            b >= a
10780 //  ______/_____________________\________
10781 //       low                    high
10782 //
10783 //
10784 //  HUE_LUM_RANGE_REG_XX(00-07)
10785 //  luma range selection for hue adjustment
10786 //  Bit 31:24   reg_sat_lum_low             define the low level of luma value for sat adjustment
10787 //                                          0x00-0xff
10788 //  Bit 23:20   reg_hue_lum_high_slope      define the slope area below high level of luma value for hue adjustment
10789 //                                          0x00-0x07
10790 //  Bit 19:16   reg_hue_lum_low_slope       define the slope area above low  level of luma value for hue adjustment
10791 //                                          0x00-0x07
10792 //  Bit 15:8    reg_hue_lum_high            define the high level of luma value for hue adjustment
10793 //                                          0x00-0xff
10794 //  Bit 7:0     reg_hue_lum_low             define the low  level of luma value for hue adjustment
10795 //                                          0x00-0xff
10796 
10797     #define HUE_LUM_RANGE_REG00     0x03
10798 
10799 //  HUE_SAT_RANGE_REG_XX(00-07)
10800 //  sat range selection for hue adjustment
10801 //  Bit 31:24   reg_sat_lum_high            define the high level of luma value for sat adjustment
10802 //                                          0x00-0xff
10803 //  Bit 23:20   reg_hue_sat_high_slope      define the slope area below high level of sat value for hue adjustment
10804 //                                          0x00-0x07
10805 //  Bit 19:16   reg_hue_sat_low_slope       define the slope area above low  level of sat value for hue adjustment
10806 //                                          0x00-0x07
10807 //  Bit 15:8    reg_hue_sat_high            define the high level of sat value for hue adjustment
10808 //                                          0x00-0xff
10809 //  Bit 7:0     reg_hue_sat_low             define the low  level of sat value for hue adjustment
10810 //                                          0x00-0xff
10811 
10812     #define HUE_SAT_RANGE_REG00     0x04
10813 
10814 //  SAT_SAT_RANGE_REG_XX(00-07)
10815 //  sat range selection for hue adjustment
10816 //  Bit 31:28   reg_sat_lum_high_slope      define the slope area below high level of luma value for sat adjustment
10817 //                                          0x00-0x07
10818 //  Bit 27:24   reg_sat_lum_low_slope       define the slope area above low  level of luma value for sat adjustment
10819 //                                          0x00-0x07
10820 //  Bit 23:20   reg_sat_sat_high_slope      define the slope area below high level of sat value for sat adjustment
10821 //                                          0x00-0x07
10822 //  Bit 19:16   reg_sat_sat_low_slope       define the slope area above low  level of sat value for sat adjustment
10823 //                                          0x00-0x07
10824 //  Bit 15:8    reg_sat_sat_high            define the high level of sat value for sat adjustment
10825 //                                          0x00-0xff
10826 //  Bit 7:0     reg_sat_sat_low             define the low  level of sat value for sat adjustment
10827 //                                          0x00-0xff
10828 
10829     #define SAT_SAT_RANGE_REG00     0x05
10830 
10831 
10832     #define CHROMA_GAIN_REG01       0x06
10833     #define HUE_HUE_RANGE_REG01     0x07
10834     #define HUE_RANGE_INV_REG01     0x08
10835     #define HUE_LUM_RANGE_REG01     0x09
10836     #define HUE_SAT_RANGE_REG01     0x0a
10837     #define SAT_SAT_RANGE_REG01     0x0b
10838 
10839     #define CHROMA_GAIN_REG02       0x0c
10840     #define HUE_HUE_RANGE_REG02     0x0d
10841     #define HUE_RANGE_INV_REG02     0x0e
10842     #define HUE_LUM_RANGE_REG02     0x0f
10843     #define HUE_SAT_RANGE_REG02     0x10
10844     #define SAT_SAT_RANGE_REG02     0x11
10845 
10846 
10847     #define CHROMA_GAIN_REG03       0x12
10848     #define HUE_HUE_RANGE_REG03     0x13
10849     #define HUE_RANGE_INV_REG03     0x14
10850     #define HUE_LUM_RANGE_REG03     0x15
10851     #define HUE_SAT_RANGE_REG03     0x16
10852     #define SAT_SAT_RANGE_REG03     0x17
10853 
10854     #define CHROMA_GAIN_REG04       0x18
10855     #define HUE_HUE_RANGE_REG04     0x19
10856     #define HUE_RANGE_INV_REG04     0x1a
10857     #define HUE_LUM_RANGE_REG04     0x1b
10858     #define HUE_SAT_RANGE_REG04     0x1c
10859     #define SAT_SAT_RANGE_REG04     0x1d
10860 
10861     #define CHROMA_GAIN_REG05       0x1e
10862     #define HUE_HUE_RANGE_REG05     0x1f
10863     #define HUE_RANGE_INV_REG05     0x20
10864     #define HUE_LUM_RANGE_REG05     0x21
10865     #define HUE_SAT_RANGE_REG05     0x22
10866     #define SAT_SAT_RANGE_REG05     0x23
10867 
10868     #define CHROMA_GAIN_REG06       0x24
10869     #define HUE_HUE_RANGE_REG06     0x25
10870     #define HUE_RANGE_INV_REG06     0x26
10871     #define HUE_LUM_RANGE_REG06     0x27
10872     #define HUE_SAT_RANGE_REG06     0x28
10873     #define SAT_SAT_RANGE_REG06     0x29
10874 
10875     #define CHROMA_GAIN_REG07       0x2a
10876     #define HUE_HUE_RANGE_REG07     0x2b
10877     #define HUE_RANGE_INV_REG07     0x2c
10878     #define HUE_LUM_RANGE_REG07     0x2d
10879     #define HUE_SAT_RANGE_REG07     0x2e
10880     #define SAT_SAT_RANGE_REG07     0x2f
10881 
10882 //  REG_CHROMA_CONTROL
10883 //  Bit 31      reg_chroma_en               enable color manage function
10884 //                                          1'b1: enable    1'b0: bypass
10885 //  Bit 6       sat_sel                     uv_max or u^2+v^2 selected as sat for reference
10886 //                                          1'b1: uv_max(default)   1'b0: u^2+v^2
10887 //  Bit 5       uv_adj_en                   final uv_adjust enable
10888 //                                          1'b1: enable    1'b0: bypass
10889 //  Bit 2       hue_en                      rgb to hue enable
10890 //                                          1'b1: enable(default)   1'b0: bypass
10891 //  Bit 1:0     csc_sel                     define input YUV with different color type
10892 //                                          2'b00: 601(16-235)  2'b01: 709(16-235)
10893 //                                          2'b10: 601(0-255)   2'b11: 709(0-255)
10894     #define REG_CHROMA_CONTROL      0x30   // default 32h'80000024
10895     #define REG_DEMO_CENTER_BAR     0x31   // default 32h'0
10896     #define REG_DEMO_HLIGHT_MODE    0x32   // default 32h'0
10897     #define REG_DEMO_OWR_DATA       0x33   // default 32h'0
10898 
10899 
10900 ////===========================================////
10901 //// CM2 ADDR
10902 ////===========================================////
10903 
10904     #define SAT_BYYB_NODE_REG0          0x200   // default 32'h0
10905 //Bit 31:24, sat_byyb_node3    the 4th node
10906 //Bit 23:16, sat_byyb_node2    the 3th node
10907 //Bit 15: 8, sat_byyb_node1    signed, the 2th node about saturation
10908 //Bit  7: 0, sat_byyb_node0    signed, the 1th node about saturation
10909 //gain offset along y coordinate,the gain normalized to 128 as "1"
10910 
10911     #define SAT_BYYB_NODE_REG1          0x201   // default 32'h0
10912 //Bit 31:24, sat_byyb_node7     the 8th node
10913 //Bit 23:16, sat_byyb_node6     the 7th node
10914 //Bit 15: 8, sat_byyb_node5     signed, the 6th node about saturation
10915 //Bit  7: 0, sat_byyb_node4     signed, the 5th node about saturation
10916 //gain offset along y coordinate,the gain normalized to 128 as "1"
10917 
10918     #define SAT_BYYB_NODE_REG2          0x202   // default 32'h0
10919 //Bit 31: 8, reserved
10920 //Bit  7: 0, sat_byyb_node4     signed, the 5th node about saturation
10921 
10922 
10923     #define SAT_SRC_NODE_REG            0x203   // default 32'h0
10924 //Bit 31:28, reserved
10925 //Bit 27:16, sat_src_node1
10926 //Bit 15:12, reserved
10927 //Bit 11: 0, sat_src_node0     usigned, threshold of input saturation for  first and second piece
10928 
10929     #define CM_ENH_SFT_MODE_REG         0x204   // default 32'h0
10930 //Bit 31: 9, reserved
10931 //Bit  8: 6, hue_lsft_mode        hue offset adjustments scale
10932 //Bit  5: 4, luma_lsft_mode       luma offset adjustments scale for reg_cm2_adj_luma_via_hue
10933 //Bit  3: 2, sat_byy_rsft_mode    saturation gain adjustments scale for reg_cm2_adj_sat_via_y
10934 //Bit  1: 0, sat_byhs_rsft_mode   saturation gain adjustments scale for reg_cm2_adj_sat_via_hs[:][:] 0:no scale up/down 1:dnscale by 2(-128,127)/2
10935 
10936     #define FRM_SIZE_REG                0x205   // default 32'h0
10937 //Bit 31:29, reserved
10938 //Bit 28:16, reg_frm_height       the frame height size
10939 //Bit 15:13, reserved
10940 //Bit 12: 0, reg_frm_width        the frame width size
10941 
10942     #define FITLER_CFG_REG              0x206   // default 32'h0
10943 //Bit 31: 5, reserved
10944 //Bit  4: 4, inteleav_mod         horizontal interleave filter(zero-padding) for 3D considerations 0:using non-zero padding lpf 1:using zero-padding lpf
10945 //Bit  3: 2, lpf_slt_uv           apply cm on lp portion or original video pixels options
10946 //Bit  1: 0, lpf_slt_y            apply cm on lp portion or original video pixels options
10947 
10948     #define CM_GLOBAL_GAIN_REG          0x207   // default 32'h0
10949 //Bit 31:28, reserved
10950 //Bit 27:16, cm2_global_sat     global saturation gain for general color adjustments(0~4095 <=> 0~8),512 normalized to "1"
10951 //Bit 15:12, reserved
10952 //Bit 11: 0, cm2_global_hue     global hue offsets for general color adjustments(0~4095 <=> 0~360 degree)
10953 
10954     #define CM_ENH_CTL_REG              0x208   // default 32'h0
10955 //Bit  31:7, reserved
10956 //Bit     6, hue_adj_en        cm2 hue adjustments
10957 //Bit     5, sat_adj_en        cm2 saturation adjustments
10958 //Bit     4, luma_adj_en       enable siganl for cm2 luma adjustments
10959 //Bit     3, reserved
10960 //Bit     2, cm2_filt_en       apply cm on lp portion enable
10961 //Bit     1, cm2_en            cm2 enable siganl
10962 //Bit     0, cm1_en
10963 
10964     #define ROI_X_SCOPE_REG             0x209   // default 32'h0
10965 //Bit 31:29, reserved
10966 //Bit 28:16, roi_x_end      ending col index of the region of interest
10967 //Bit 15:13, reserved
10968 //Bit 12: 0, roi_x_beg      start col index of the region of interest
10969 
10970    #define ROI_Y_SCOPE_REG             0x20a   // default 32'h0
10971 //Bit 31:29, reserved
10972 //Bit 28:16, roi_y_end      ending row index of the region of interest
10973 //Bit 15:13, reserved
10974 //Bit 12: 0, roi_y_beg      start row index of the region of interest
10975 
10976     #define POI_XY_DIR_REG              0x20b   // default 32'h0
10977 //Bit 31:29, reserved
10978 //Bit 28:16, poi_y_dir      ending row index of the region of interest
10979 //Bit 15:13, reserved
10980 //Bit 12: 0, poi_x_dir      start row index of the region of interest
10981 
10982     #define COI_Y_SCOPE_REG             0x20c   // default 32'h0
10983 //Bit 31:16, reserved
10984 //Bit 15: 8, coi_y_end
10985 //Bit  7: 0, coi_y_beg
10986 
10987     #define COI_H_SCOPE_REG             0x20d   // default 32'h0
10988 //Bit 31:28, reserved
10989 //Bit 27:16, coi_h_end
10990 //Bit 15:12, reserved
10991 //Bit 11: 0, coi_h_beg        lower bound of hue value for color of interest ,12 bits precision
10992 
10993     #define COI_S_SCOPE_REG             0x20e   // default 32'h0
10994 //Bit 31:28, reserved
10995 //Bit 27:16, coi_s_end
10996 //Bit 15:12, reserved
10997 //Bit 11: 0, coi_s_beg        lower bound of sat value for color of interest ,12 bits precision
10998     #define IFO_MODE_REG                0x20f   // default 32'h0
10999 //Bit 31:8, reserved
11000 //Bit  7:6, ifo_mode3
11001 //Bit  5:4, ifo_mode2
11002 //Bit  3:2, ifo_mode1
11003 //Bit  1:0, ifo_mode0
11004     #define POI_RPL_MODE_REG            0x210   // default 32'h0
11005 //Bit 31:4, reserved
11006 //Bit  3:0, poi_rpl_mode          enhance mode control of pixels inside and outside region of interest bit[3:2]control roi
11007     #define DEMO_OWR_YHS_REG            0x211   // default 32'h0
11008 //Bit 31: 0, demo_owr_yhs
11009 
11010     #define DEMO_POI_Y_REG              0x212   // default 32'h0
11011 //Bit 31: 8, reserved
11012 //Bit  7: 0, luma_data_poi_r       only get locked higher 8bits
11013     #define DEMO_POI_H_REG              0x213   // default 32'h0
11014 //Bit 31: 12, reserved
11015 //Bit 11: 0, hue_data_poi_r        only get locked higher 12bits
11016     #define DEMO_POI_S_REG              0x214   // default 32'h0
11017 //Bit 31: 12, reserved
11018 //Bit 11: 0, sat_data_poi_r         only get locked higher 12bits
11019     //#define LUMA_BYH_LIMT_REG           0x215   // default 32'h0
11020     #define LUMA_ADJ_LIMT_REG           0x215   // default 32'h0
11021 //Bit 31:24, reserved
11022 //Bit 23:16, luma_lmt_satslp         slope to do the luma adjustment degrade
11023 //Bit 15:12, reserved
11024 //Bit 11:0, luma_lmt_satth           threshold to saturation
11025     #define SAT_ADJ_LIMT_REG            0x216   // default 32'h0
11026 //Bit 31:24, reserved
11027 //Bit 23:16, sat_lmt_satslp        slope to do the adjustment degrade
11028 //Bit 15:12, reserved
11029 //Bit 11:0, sat_lmt_satth          threshold to saturation
11030     #define HUE_ADJ_LIMT_REG            0x217   // default 32'h0
11031 //Bit 31: 24, reserved
11032 //Bit 23: 16, hue_lmt_satslp        slope to do the adjustment degrade
11033 //Bit 15: 12, reserved
11034 //Bit 11: 0,  hue_lmt_satth          threshold to saturation
11035     #define UVHS_OFST_REG               0x218   // default 32'h0
11036 //Bit 31: 24, hs2uv_v_ofst
11037 //Bit 23: 16, hs2uv_u_ofst
11038 //Bit 15: 8,  uv2hs_v_ofst
11039 //Bit  7: 0,  uv2hs_u_ofst
11040     #define HUE_CFG_PARA_REG            0x219   // default 32'h0
11041 //Bit 31: 17, reserved
11042 //Bit     16, hue_protect_en
11043 //Bit 15: 13, cm2_hue_byhs_mode
11044 //Bit     12, cm2_hue_div_mode
11045 //Bit 11: 0, cm2_before_hue_ofst
11046     #define DEMO_SPLT_CFG_REG           0x21a   // default 32'h0
11047 //Bit 31: 22, reserved
11048 //Bit 21: 20, demo_split_mode
11049 //Bit 19: 16, demo_split_width        slope to do the adjustment degrade
11050 //Bit 15: 13, reserved
11051 //Bit 12: 0,  demo_split_post           threshold to saturation
11052     #define DEMO_SPLT_YHS_REG           0x21b   // default 32'h0
11053 //Bit 31: 0,  demo_splt_yhs             threshold to saturation
11054 
11055     #define XVYCC_YSCP_REG              0x21c   // default 32'h0
11056 //Bit 31: 28, reserved
11057 //Bit 27: 16, xvycc_y_max
11058 //Bit 15: 12, reserved
11059 //Bit 11: 0, xvycc_y_min
11060     #define XVYCC_USCP_REG              0x21d   // default 32'h0
11061 //Bit 31: 28, reserved
11062 //Bit 27: 16, xvycc_u_max
11063 //Bit 15: 12, reserved
11064 //Bit 11: 0, xvycc_u_min
11065     #define XVYCC_VSCP_REG              0x21e   // default 32'h0
11066 //Bit 31: 28, reserved
11067 //Bit 27: 16, xvycc_v_max
11068 //Bit 15: 12, reserved
11069 //Bit 11: 0, xvycc_v_min
11070 
11071 ////========= NODE 0 COEFFICIENT ==============////
11072 
11073     #define REG_CM2_ENH_COEFF0_H00      0x100   // default 32'H0
11074 //Bit 31: 24, reg_cm2_adj_sat_via_hs_2
11075 //Bit 23: 16, reg_cm2_adj_sat_via_hs_1
11076 //Bit 15: 8,  reg_cm2_adj_sat_via_hs_0
11077 //Bit  7: 0, reg_cm2_adj_luma_via_h
11078                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11079                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11080     #define REG_CM2_ENH_COEFF1_H00      0x101   // default 32'H0
11081                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11082                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11083     #define REG_CM2_ENH_COEFF2_H00      0x102   // default 32'H0
11084                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11085                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11086     #define REG_CM2_ENH_COEFF3_H00      0x103   // default 32'H0
11087                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11088                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11089     #define REG_CM2_ENH_COEFF4_H00      0x104   // default 32'H0
11090                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11091                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11092 
11093 ////========= NODE 1 COEFFICIENT ==============////
11094 
11095     #define REG_CM2_ENH_COEFF0_H01      0x108   // default 32'H0
11096                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11097                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11098     #define REG_CM2_ENH_COEFF1_H01      0x109   // default 32'H0
11099                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11100                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11101     #define REG_CM2_ENH_COEFF2_H01      0x10a   // default 32'H0
11102                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11103                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11104     #define REG_CM2_ENH_COEFF3_H01      0x10b   // default 32'H0
11105                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11106                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11107     #define REG_CM2_ENH_COEFF4_H01      0x10c   // default 32'H0
11108                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11109                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11110 
11111 ////========= NODE 2 COEFFICIENT ==============////
11112 
11113     #define REG_CM2_ENH_COEFF0_H02      0x110   // default 32'H0
11114                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11115                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11116     #define REG_CM2_ENH_COEFF1_H02      0x111   // default 32'H0
11117                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11118                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11119     #define REG_CM2_ENH_COEFF2_H02      0x112   // default 32'H0
11120                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11121                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11122     #define REG_CM2_ENH_COEFF3_H02      0x113   // default 32'H0
11123                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11124                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11125     #define REG_CM2_ENH_COEFF4_H02      0x114   // default 32'H0
11126                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11127                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11128 
11129 ////========= NODE 3 COEFFICIENT ==============////
11130 
11131     #define REG_CM2_ENH_COEFF0_H03      0x118   // default 32'H0
11132                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11133                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11134     #define REG_CM2_ENH_COEFF1_H03      0x119   // default 32'H0
11135                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11136                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11137     #define REG_CM2_ENH_COEFF2_H03      0x11a   // default 32'H0
11138                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11139                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11140     #define REG_CM2_ENH_COEFF3_H03      0x11b   // default 32'H0
11141                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11142                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11143     #define REG_CM2_ENH_COEFF4_H03      0x11c   // default 32'H0
11144                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11145                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11146 
11147 ////========= NODE 4 COEFFICIENT ==============////
11148 
11149     #define REG_CM2_ENH_COEFF0_H04      0x120   // default 32'H0
11150                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11151                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11152     #define REG_CM2_ENH_COEFF1_H04      0x121   // default 32'H0
11153                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11154                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11155     #define REG_CM2_ENH_COEFF2_H04      0x122   // default 32'H0
11156                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11157                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11158     #define REG_CM2_ENH_COEFF3_H04      0x123   // default 32'H0
11159                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11160                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11161     #define REG_CM2_ENH_COEFF4_H04      0x124   // default 32'H0
11162                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11163                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11164 
11165 ////========= NODE 5 COEFFICIENT ==============////
11166 
11167     #define REG_CM2_ENH_COEFF0_H05      0x128   // default 32'H0
11168                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11169                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11170     #define REG_CM2_ENH_COEFF1_H05      0x129   // default 32'H0
11171                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11172                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11173     #define REG_CM2_ENH_COEFF2_H05      0x12a   // default 32'H0
11174                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11175                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11176     #define REG_CM2_ENH_COEFF3_H05      0x12b   // default 32'H0
11177                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11178                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11179     #define REG_CM2_ENH_COEFF4_H05      0x12c   // default 32'H0
11180                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11181                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11182 
11183 ////========= NODE 6 COEFFICIENT ==============////
11184 
11185     #define REG_CM2_ENH_COEFF0_H06      0x130   // default 32'H0
11186                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11187                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11188     #define REG_CM2_ENH_COEFF1_H06      0x131   // default 32'H0
11189                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11190                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11191     #define REG_CM2_ENH_COEFF2_H06      0x132   // default 32'H0
11192                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11193                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11194     #define REG_CM2_ENH_COEFF3_H06      0x133   // default 32'H0
11195                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11196                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11197     #define REG_CM2_ENH_COEFF4_H06      0x134   // default 32'H0
11198                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11199                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11200 
11201 ////========= NODE 7 COEFFICIENT ==============////
11202 
11203     #define REG_CM2_ENH_COEFF0_H07      0x138   // default 32'H0
11204                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11205                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11206     #define REG_CM2_ENH_COEFF1_H07      0x139   // default 32'H0
11207                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11208                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11209     #define REG_CM2_ENH_COEFF2_H07      0x13a   // default 32'H0
11210                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11211                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11212     #define REG_CM2_ENH_COEFF3_H07      0x13b   // default 32'H0
11213                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11214                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11215     #define REG_CM2_ENH_COEFF4_H07      0x13c   // default 32'H0
11216                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11217                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11218 
11219 ////========= NODE 8 COEFFICIENT ==============////
11220 
11221     #define REG_CM2_ENH_COEFF0_H08      0x140   // default 32'H0
11222                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11223                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11224     #define REG_CM2_ENH_COEFF1_H08      0x141   // default 32'H0
11225                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11226                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11227     #define REG_CM2_ENH_COEFF2_H08      0x142   // default 32'H0
11228                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11229                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11230     #define REG_CM2_ENH_COEFF3_H08      0x143   // default 32'H0
11231                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11232                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11233     #define REG_CM2_ENH_COEFF4_H08      0x144   // default 32'H0
11234                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11235                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11236 
11237 ////========= NODE 9 COEFFICIENT ==============////
11238 
11239     #define REG_CM2_ENH_COEFF0_H09      0x148   // default 32'H0
11240                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11241                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11242     #define REG_CM2_ENH_COEFF1_H09      0x149   // default 32'H0
11243                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11244                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11245     #define REG_CM2_ENH_COEFF2_H09      0x14a   // default 32'H0
11246                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11247                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11248     #define REG_CM2_ENH_COEFF3_H09      0x14b   // default 32'H0
11249                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11250                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11251     #define REG_CM2_ENH_COEFF4_H09      0x14c   // default 32'H0
11252                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11253                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11254 
11255 ////========= NODE 10 COEFFICIENT ==============////
11256 
11257     #define REG_CM2_ENH_COEFF0_H10      0x150   // default 32'H0
11258                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11259                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11260     #define REG_CM2_ENH_COEFF1_H10      0x151   // default 32'H0
11261                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11262                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11263     #define REG_CM2_ENH_COEFF2_H10      0x152   // default 32'H0
11264                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11265                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11266     #define REG_CM2_ENH_COEFF3_H10      0x153   // default 32'H0
11267                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11268                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11269     #define REG_CM2_ENH_COEFF4_H10      0x154   // default 32'H0
11270                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11271                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11272 
11273 ////========= NODE 11 COEFFICIENT ==============////
11274 
11275     #define REG_CM2_ENH_COEFF0_H11      0x158   // default 32'H0
11276                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11277                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11278     #define REG_CM2_ENH_COEFF1_H11      0x159   // default 32'H0
11279                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11280                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11281     #define REG_CM2_ENH_COEFF2_H11      0x15a   // default 32'H0
11282                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11283                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11284     #define REG_CM2_ENH_COEFF3_H11      0x15b   // default 32'H0
11285                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11286                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11287     #define REG_CM2_ENH_COEFF4_H11      0x15c   // default 32'H0
11288                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11289                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11290 
11291 ////========= NODE 12 COEFFICIENT ==============////
11292 
11293     #define REG_CM2_ENH_COEFF0_H12      0x160   // default 32'H0
11294                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11295                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11296     #define REG_CM2_ENH_COEFF1_H12      0x161   // default 32'H0
11297                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11298                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11299     #define REG_CM2_ENH_COEFF2_H12      0x162   // default 32'H0
11300                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11301                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11302     #define REG_CM2_ENH_COEFF3_H12      0x163   // default 32'H0
11303                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11304                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11305     #define REG_CM2_ENH_COEFF4_H12      0x164   // default 32'H0
11306                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11307                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11308 
11309 ////========= NODE 13 COEFFICIENT ==============////
11310 
11311     #define REG_CM2_ENH_COEFF0_H13      0x168   // default 32'H0
11312                                                   // [ 7: 0] : luma_byh_hx   / [15: 8] : sat_byhs_s0hx
11313                                                   // [23:16] : sat_byhs_s0hx / [31:24] : sat_byhs_s2hx
11314     #define REG_CM2_ENH_COEFF1_H13      0x169   // default 32'H0
11315                                                   // [ 7: 0] : hue_byh_hx   / [15: 8] : hue_byy_y0hx
11316                                                   // [23:16] : hue_byy_y1hx / [31:24] : hue_byy_y2hx
11317     #define REG_CM2_ENH_COEFF2_H13      0x16a   // default 32'H0
11318                                                   // [ 7: 0] : hue_byy_y3hx / [15: 8] : hue_byy_y4hx
11319                                                   // [23:16] : hue_bys_s0hx / [31:24] : hue_bys_s1hx
11320     #define REG_CM2_ENH_COEFF3_H13      0x16b   // default 32'H0
11321                                                   // [ 7: 0] : hue_bys_s2hx / [15: 8] : hue_bys_s3hx
11322                                                   // [23:16] : hue_bys_s4hx / [31:24] : hue_byya_y0hx
11323     #define REG_CM2_ENH_COEFF4_H13      0x16c   // default 32'H0
11324                                                   // [ 7: 0] : hue_byya_y1hx / [15: 8] : hue_byya_y2hx
11325                                                   // [23:16] : hue_byya_y3hx / [31:24] : hue_byya_y4hx
11326 
11327 
11328 /* Constraints
11329 0)
11330   there are 16 regions totally. 8 regions are for hue adjustment, 8 regions are for sat adjustment.
11331   the hue range of the 16 regions can be set to overlap, but if overlap, the hue range(start and end) must be same.
11332   the 8 regions for hue adjustment should not overlap. if corresponding reg_hue_en_00 - 07 == 1
11333   the 8 regions for hue adjustment are defined by: (example are for region 0)
11334     a) hue:
11335         start: reg_hue_hue_shift_start_00[14:0]
11336         end:
11337         if reg_symmetry_en_00 == 0
11338         reg_hue_hue_shift_start_00[14:0] + (reg_hue_hue_shift_range_00[7:0]<<5)
11339         if reg_symmetry_en_00 == 1
11340         reg_hue_hue_shift_start_00[14:0] + (reg_hue_hue_shift_range_00[7:0]<<6)
11341     b) sat:
11342         start: reg_hue_sat_low_00
11343         end:   reg_hue_sat_high_00
11344 
11345   the 8 regions for sat adjustment should not overlap. if corresponding reg_sat_en_00 - 07 == 1
11346   the 8 regions for sat adjustment are defined by: (example are for region 0)
11347     a) hue: same as that for hue adjustment.
11348         start: reg_hue_hue_shift_start_00[14:0]
11349         end:
11350         if reg_symmetry_en_00 == 0
11351         reg_hue_hue_shift_start_00[14:0] + (reg_hue_hue_shift_range_00[7:0]<<5)
11352         if reg_symmetry_en_00 == 1
11353         reg_hue_hue_shift_start_00[14:0] + (reg_hue_hue_shift_range_00[7:0]<<6)
11354     b) sat:
11355         start: reg_sat_sat_low_00
11356         end:   reg_sat_sat_high_00
11357 
11358 1)
11359   reg_hue_hue_shift_range_00[7:0]:
11360   reg_hue_hue_shift_range_01[7:0]:
11361   reg_hue_hue_shift_range_02[7:0]:
11362   reg_hue_hue_shift_range_03[7:0]:
11363   reg_hue_hue_shift_range_04[7:0]:
11364   reg_hue_hue_shift_range_05[7:0]:
11365   reg_hue_hue_shift_range_06[7:0]:
11366   reg_hue_hue_shift_range_07[7:0]:
11367   must be greater or equal than 8'd8, so as reg_hue_range_inv_regxx can be represented by 0.0000_0000_xxxx_xxxx_xxxx_xxxx
11368 
11369 2)
11370   all regions of 0-7 should meet below requirement. below is just an example for region 7.
11371   (reg_hue_lum_high_07 - reg_hue_lum_low_07) >=
11372         (1<<reg_hue_lum_low_slope_07) + (1<<reg_hue_lum_high_slope_07)
11373 
11374   (reg_hue_sat_high_07 - reg_hue_sat_low_07) >=
11375         (1<<reg_hue_sat_low_slope_07) + (1<<reg_hue_sat_high_slope_07)
11376 
11377   (reg_sat_lum_high_07 - reg_sat_lum_low_07) >=
11378         (1<<reg_sat_lum_low_slope_07) + (1<<reg_sat_lum_high_slope_07)
11379 
11380   (reg_sat_sat_high_07 - reg_sat_sat_low_07) >=
11381         (1<<reg_sat_sat_low_slope_07) + (1<<reg_sat_sat_high_slope_07)
11382 
11383 3)
11384   all of reg_hue_hue_shift_start_00[14:0] ~ 07[14:0] < 0x6000.
11385   only region 0 and 1 can exceed 360 degrees. ie:
11386     reg_hue_hue_shift_start_00 + (reg_hue_hue_shift_range_00<<5) can greater than 0x6000.
11387     reg_hue_hue_shift_start_01 + (reg_hue_hue_shift_range_01<<5) can greater than 0x6000.
11388   but below should be met:
11389     reg_hue_hue_shift_start_00 + (reg_hue_hue_shift_range_00<<5) < 0x8000. if reg_symmetry_en_00 == 0
11390     reg_hue_hue_shift_start_01 + (reg_hue_hue_shift_range_00<<5) < 0x8000. if reg_symmetry_en_00 == 0
11391     reg_hue_hue_shift_start_00 + (reg_hue_hue_shift_range_00<<6) < 0x8000. if reg_symmetry_en_00 == 1
11392     reg_hue_hue_shift_start_01 + (reg_hue_hue_shift_range_00<<6) < 0x8000. if reg_symmetry_en_00 == 1
11393 
11394   others could not exceed 360 degrees. ie:
11395     reg_hue_hue_shift_start_02(to 7) + (reg_hue_hue_shift_range_02 (to 7) <<5) < 0x6000. if reg_symmetry_en_02 (to 7) == 0.
11396     reg_hue_hue_shift_start_02(to 7) + (reg_hue_hue_shift_range_02 (to 7) <<6) < 0x6000. if reg_symmetry_en_02 (to 7) == 1.
11397 
11398 4)
11399   reg_hue_gain_00[7:0] <= 0x80.
11400   reg_hue_gain_01[7:0] <= 0x80.
11401   reg_hue_gain_02[7:0] <= 0x80.
11402   reg_hue_gain_03[7:0] <= 0x80.
11403   reg_hue_gain_04[7:0] <= 0x80.
11404   reg_hue_gain_05[7:0] <= 0x80.
11405   reg_hue_gain_06[7:0] <= 0x80.
11406   reg_hue_gain_07[7:0] <= 0x80.
11407 
11408 5)
11409   below registers can only have two setting: 00 and 01.
11410     reg_hue_central_en_00[1:0]  .. _07[1:0]
11411     reg_sat_central_en_00[1:0]  .. _07[1:0]
11412 
11413 6)
11414   all reg_..._slope_00-07 should not be greater than 7, ie: maximum value is 7.
11415    for example: below is for region 0:
11416    reg_hue_lum_low_slope_00[3:0]  <= 7
11417    reg_hue_lum_high_slope_00[3:0] <= 7
11418    reg_hue_sat_low_slope_00[3:0]  <= 7
11419    reg_hue_sat_high_slope_00[3:0] <= 7
11420    reg_sat_lum_low_slope_00[3:0]  <= 7
11421    reg_sat_lum_high_slope_00[3:0] <= 7
11422    reg_sat_sat_low_slope_00[3:0]  <= 7
11423    reg_sat_sat_high_slope_00[3:0] <= 7
11424 */
11425 
11426 // synopsys translate_off
11427 // synopsys translate_on
11428 //
11429 // Closing file:  chroma_reg.h
11430 //
11431 //(hsvsharp), (blue), gainoff, mat_vd1,mat_vd2, mat_post, prebld, postbld,(hsharp),sco_ff, vadj1, vadj2, ofifo, (chroma1), clk0(free_clk) vpp_reg
11432 //each item 2bits, for each 2bits, if bit 2*i+1 == 1, free clk, else if bit 2*i == 1 no clk, else auto gated clock
11433 //bit1 is not used, because I can not turn off vpp_reg clk because I can not turn on again
11434 //because the register itself canot be set again without clk
11435 //Bit 31:0
11436 #define   VPP_GCLK_CTRL0                           (0x1d72)
11437 #define P_VPP_GCLK_CTRL0                           (volatile uint32_t *)((0x1d72  << 2) + 0xff900000)
11438 //(front_lti), (front_cti), Chroma2_filter, Chroma2, (Ccoring), (blackext), dnlp
11439 //Bit 13:0
11440 #define   VPP_GCLK_CTRL1                           (0x1d73)
11441 #define P_VPP_GCLK_CTRL1                           (volatile uint32_t *)((0x1d73  << 2) + 0xff900000)
11442 //prehsc_clk, line_buf, prevsc, vsc, hsc_clk, clk0(free_clk)
11443 //Bit 11:0
11444 #define   VPP_SC_GCLK_CTRL                         (0x1d74)
11445 #define P_VPP_SC_GCLK_CTRL                         (volatile uint32_t *)((0x1d74  << 2) + 0xff900000)
11446 //Bit 17:9 VD1 alpha for preblend
11447 //Bit 8:0 VD1 alpha for postblend
11448 #define   VPP_MISC1                                (0x1d76)
11449 #define P_VPP_MISC1                                (volatile uint32_t *)((0x1d76  << 2) + 0xff900000)
11450 //Bit 31:0 super scalar clock control
11451 #define   VPP_SRSCL_GCLK_CTRL                      (0x1d77)
11452 #define P_VPP_SRSCL_GCLK_CTRL                      (volatile uint32_t *)((0x1d77  << 2) + 0xff900000)
11453 //Bit 31:0 OSD super scalar clock control
11454 #define   VPP_OSDSR_GCLK_CTRL                      (0x1d78)
11455 #define P_VPP_OSDSR_GCLK_CTRL                      (volatile uint32_t *)((0x1d78  << 2) + 0xff900000)
11456 //Bit 31:0 vvycc clock control
11457 #define   VPP_XVYCC_GCLK_CTRL                      (0x1d79)
11458 #define P_VPP_XVYCC_GCLK_CTRL                      (volatile uint32_t *)((0x1d79  << 2) + 0xff900000)
11459 //Bit 31:24     blackext_start
11460 //Bit 23:16     blackext_slope1
11461 //Bit 15:8      blackext_midpt
11462 //Bit 7:0       blackext_slope2
11463 #define   VPP_BLACKEXT_CTRL                        (0x1d80)
11464 #define P_VPP_BLACKEXT_CTRL                        (volatile uint32_t *)((0x1d80  << 2) + 0xff900000)
11465 //Bit 31:24     bottom of region03 output value
11466 //Bit 23:16     bottom of region02 output value
11467 //Bit 15:8      bottom of region01 output value
11468 //Bit 7:0       bottom of region00 output value
11469 #define   VPP_DNLP_CTRL_00                         (0x1d81)
11470 #define P_VPP_DNLP_CTRL_00                         (volatile uint32_t *)((0x1d81  << 2) + 0xff900000)
11471 //Bit 31:24     bottom of region07 output value
11472 //Bit 23:16     bottom of region06 output value
11473 //Bit 15:8      bottom of region05 output value
11474 //Bit 7:0       bottom of region04 output value
11475 #define   VPP_DNLP_CTRL_01                         (0x1d82)
11476 #define P_VPP_DNLP_CTRL_01                         (volatile uint32_t *)((0x1d82  << 2) + 0xff900000)
11477 //Bit 31:24     bottom of region11 output value
11478 //Bit 23:16     bottom of region10 output value
11479 //Bit 15:8      bottom of region09 output value
11480 //Bit 7:0       bottom of region08 output value
11481 #define   VPP_DNLP_CTRL_02                         (0x1d83)
11482 #define P_VPP_DNLP_CTRL_02                         (volatile uint32_t *)((0x1d83  << 2) + 0xff900000)
11483 //Bit 31:24     bottom of region15 output value
11484 //Bit 23:16     bottom of region14 output value
11485 //Bit 15:8      bottom of region13 output value
11486 //Bit 7:0       bottom of region12 output value
11487 #define   VPP_DNLP_CTRL_03                         (0x1d84)
11488 #define P_VPP_DNLP_CTRL_03                         (volatile uint32_t *)((0x1d84  << 2) + 0xff900000)
11489 //Bit 31:24     bottom of region19 output value
11490 //Bit 23:16     bottom of region18 output value
11491 //Bit 15:8      bottom of region17 output value
11492 //Bit 7:0       bottom of region16 output value
11493 #define   VPP_DNLP_CTRL_04                         (0x1d85)
11494 #define P_VPP_DNLP_CTRL_04                         (volatile uint32_t *)((0x1d85  << 2) + 0xff900000)
11495 //Bit 31:24     bottom of region23 output value
11496 //Bit 23:16     bottom of region22 output value
11497 //Bit 15:8      bottom of region21 output value
11498 //Bit 7:0       bottom of region20 output value
11499 #define   VPP_DNLP_CTRL_05                         (0x1d86)
11500 #define P_VPP_DNLP_CTRL_05                         (volatile uint32_t *)((0x1d86  << 2) + 0xff900000)
11501 //Bit 31:24     bottom of region27 output value
11502 //Bit 23:16     bottom of region26 output value
11503 //Bit 15:8      bottom of region25 output value
11504 //Bit 7:0       bottom of region24 output value
11505 #define   VPP_DNLP_CTRL_06                         (0x1d87)
11506 #define P_VPP_DNLP_CTRL_06                         (volatile uint32_t *)((0x1d87  << 2) + 0xff900000)
11507 //Bit 31:24     bottom of region31 output value
11508 //Bit 23:16     bottom of region30 output value
11509 //Bit 15:8      bottom of region29 output value
11510 //Bit 7:0       bottom of region28 output value
11511 #define   VPP_DNLP_CTRL_07                         (0x1d88)
11512 #define P_VPP_DNLP_CTRL_07                         (volatile uint32_t *)((0x1d88  << 2) + 0xff900000)
11513 //Bit 31:24     bottom of region35 output value
11514 //Bit 23:16     bottom of region34 output value
11515 //Bit 15:8      bottom of region33 output value
11516 //Bit 7:0       bottom of region32 output value
11517 #define   VPP_DNLP_CTRL_08                         (0x1d89)
11518 #define P_VPP_DNLP_CTRL_08                         (volatile uint32_t *)((0x1d89  << 2) + 0xff900000)
11519 //Bit 31:24     bottom of region39 output value
11520 //Bit 23:16     bottom of region38 output value
11521 //Bit 15:8      bottom of region37 output value
11522 //Bit 7:0       bottom of region36 output value
11523 #define   VPP_DNLP_CTRL_09                         (0x1d8a)
11524 #define P_VPP_DNLP_CTRL_09                         (volatile uint32_t *)((0x1d8a  << 2) + 0xff900000)
11525 //Bit 31:24     bottom of region43 output value
11526 //Bit 23:16     bottom of region42 output value
11527 //Bit 15:8      bottom of region41 output value
11528 //Bit 7:0       bottom of region40 output value
11529 #define   VPP_DNLP_CTRL_10                         (0x1d8b)
11530 #define P_VPP_DNLP_CTRL_10                         (volatile uint32_t *)((0x1d8b  << 2) + 0xff900000)
11531 //Bit 31:24     bottom of region47 output value
11532 //Bit 23:16     bottom of region46 output value
11533 //Bit 15:8      bottom of region45 output value
11534 //Bit 7:0       bottom of region44 output value
11535 #define   VPP_DNLP_CTRL_11                         (0x1d8c)
11536 #define P_VPP_DNLP_CTRL_11                         (volatile uint32_t *)((0x1d8c  << 2) + 0xff900000)
11537 //Bit 31:24     bottom of region51 output value
11538 //Bit 23:16     bottom of region50 output value
11539 //Bit 15:8      bottom of region49 output value
11540 //Bit 7:0       bottom of region48 output value
11541 #define   VPP_DNLP_CTRL_12                         (0x1d8d)
11542 #define P_VPP_DNLP_CTRL_12                         (volatile uint32_t *)((0x1d8d  << 2) + 0xff900000)
11543 //Bit 31:24     bottom of region55 output value
11544 //Bit 23:16     bottom of region54 output value
11545 //Bit 15:8      bottom of region53 output value
11546 //Bit 7:0       bottom of region52 output value
11547 #define   VPP_DNLP_CTRL_13                         (0x1d8e)
11548 #define P_VPP_DNLP_CTRL_13                         (volatile uint32_t *)((0x1d8e  << 2) + 0xff900000)
11549 //Bit 31:24     bottom of region59 output value
11550 //Bit 23:16     bottom of region58 output value
11551 //Bit 15:8      bottom of region57 output value
11552 //Bit 7:0       bottom of region56 output value
11553 #define   VPP_DNLP_CTRL_14                         (0x1d8f)
11554 #define P_VPP_DNLP_CTRL_14                         (volatile uint32_t *)((0x1d8f  << 2) + 0xff900000)
11555 //Bit 31:24     bottom of region63 output value
11556 //Bit 23:16     bottom of region62 output value
11557 //Bit 15:8      bottom of region61 output value
11558 //Bit 7:0       bottom of region60 output value
11559 #define   VPP_DNLP_CTRL_15                         (0x1d90)
11560 #define P_VPP_DNLP_CTRL_15                         (volatile uint32_t *)((0x1d90  << 2) + 0xff900000)
11561 // `define VPP_PEAKING_HGAIN       8'h91   //32'h0
11562 // `define VPP_PEAKING_VGAIN       8'h92   //32'h0
11563 // `define VPP_PEAKING_NLP_1       8'h93   //32'h0
11564 // `define VPP_PEAKING_NLP_2       8'h94   //32'h0
11565 // `define VPP_PEAKING_NLP_3       8'h95   //32'h0
11566 // `define VPP_PEAKING_NLP_4       8'h96   //32'h0
11567 // `define VPP_PEAKING_NLP_5       8'h97   //32'h0
11568 // `define VPP_SHARP_LIMIT         8'h98   //32'h0
11569 // `define VPP_VLTI_CTRL           8'h99   //32'h0
11570 // `define VPP_HLTI_CTRL           8'h9a   //32'h0
11571 // `define VPP_CTI_CTRL            8'h9b   //32'h0
11572 #define   VPP_SRSHARP0_CTRL                        (0x1d91)
11573 #define P_VPP_SRSHARP0_CTRL                        (volatile uint32_t *)((0x1d91  << 2) + 0xff900000)
11574 //Bit 31:29  reserved
11575 //Bit 28:16  srsharp_demo_split_sz   srsharp demo top/bot left/right width
11576 //Bit 15:6   reserved
11577 //Bit 5:4    srsharp_demo_disp_post  srsharp demo display postion
11578 //Bit 3      srsharp_demo_en         srsharp demo enable
11579 //Bit 2      srsharp_c444to422_en    srsharp format444 convert 422 enable
11580 //Bit 1,     srsharp_buf_en          srsharp buffer enable
11581 //Bit 0,     srsharp_en              srsharp enable
11582 #define   VPP_SRSHARP1_CTRL                        (0x1d92)
11583 #define P_VPP_SRSHARP1_CTRL                        (volatile uint32_t *)((0x1d92  << 2) + 0xff900000)
11584 //Bit 31:29  reserved
11585 //Bit 28:16  srsharp_demo_split_sz   srsharp demo top/bot left/right width
11586 //Bit 15:6   reserved
11587 //Bit 5:4    srsharp_demo_disp_post  srsharp demo display postion
11588 //Bit 3      srsharp_demo_en         srsharp demo enable
11589 //Bit 2      srsharp_c444to422_en    srsharp format444 convert 422 enable
11590 //Bit 1,     srsharp_buf_en          srsharp buffer enable
11591 //Bit 0,     srsharp_en              srsharp enable
11592 #define   VPP_DOLBY_CTRL                           (0x1d93)
11593 #define P_VPP_DOLBY_CTRL                           (volatile uint32_t *)((0x1d93  << 2) + 0xff900000)
11594 //todo
11595 #define   VPP_DAT_CONV_PARA0                       (0x1d94)
11596 #define P_VPP_DAT_CONV_PARA0                       (volatile uint32_t *)((0x1d94  << 2) + 0xff900000)
11597 #define   VPP_DAT_CONV_PARA1                       (0x1d95)
11598 #define P_VPP_DAT_CONV_PARA1                       (volatile uint32_t *)((0x1d95  << 2) + 0xff900000)
11599 //todo
11600 #define   VPP_SYNC_SEL0                            (0x1d96)
11601 #define P_VPP_SYNC_SEL0                            (volatile uint32_t *)((0x1d96  << 2) + 0xff900000)
11602 #define   VPP_VADJ1_BLACK_VAL                      (0x1d97)
11603 #define P_VPP_VADJ1_BLACK_VAL                      (volatile uint32_t *)((0x1d97  << 2) + 0xff900000)
11604 #define   VPP_VADJ2_BLACK_VAL                      (0x1d98)
11605 #define P_VPP_VADJ2_BLACK_VAL                      (volatile uint32_t *)((0x1d98  << 2) + 0xff900000)
11606 //Bit 29        blue_stretch_cb_inc
11607 //Bit 28        blue_stretch_cr_inc
11608 //Bit 27        the MSB of blue_stretch_error_crp_inv[11:0]
11609 //Bit 26        the MSB of blue_stretch_error_crn_inv[11:0]
11610 //Bit 25        the MSB of blue_stretch_error_cbp_inv[11:0]
11611 //Bit 24        the MSB of blue_stretch_error_cbn_inv[11:0]
11612 //Bit 23:16     blue_stretch_gain
11613 //Bit 15:8      blue_stretch_gain_cb4cr
11614 //Bit 7:0       blue_stretch_luma_high
11615 #define   VPP_BLUE_STRETCH_1                       (0x1d9c)
11616 #define P_VPP_BLUE_STRETCH_1                       (volatile uint32_t *)((0x1d9c  << 2) + 0xff900000)
11617 //Bit 31:27     blue_stretch_error_crp
11618 //Bit 26:16     the 11 LSB of blue_stretch_error_crp_inv[11:0]
11619 //Bit 15:11     blue_stretch_error_crn
11620 //Bit 10:0      the 11 LSB of blue_stretch_error_crn_inv[11:0]
11621 #define   VPP_BLUE_STRETCH_2                       (0x1d9d)
11622 #define P_VPP_BLUE_STRETCH_2                       (volatile uint32_t *)((0x1d9d  << 2) + 0xff900000)
11623 //Bit 31:27     blue_stretch_error_cbp
11624 //Bit 26:16     the 11 LSB of blue_stretch_error_cbp_inv[11:0]
11625 //Bit 15:11     blue_stretch_error_cbn
11626 //Bit 10:0      the 11 LSB of blue_stretch_error_cbn_inv[11:0]
11627 #define   VPP_BLUE_STRETCH_3                       (0x1d9e)
11628 #define P_VPP_BLUE_STRETCH_3                       (volatile uint32_t *)((0x1d9e  << 2) + 0xff900000)
11629 //Bit 25:16 bypass_ccoring_ythd
11630 //Bit 15:8, Chroma coring threshold
11631 //Bit 3:0, Chroma coring slope
11632 #define   VPP_CCORING_CTRL                         (0x1da0)
11633 #define P_VPP_CCORING_CTRL                         (volatile uint32_t *)((0x1da0  << 2) + 0xff900000)
11634 //Bit 20 demo chroma coring enable
11635 //Bit 19 demo black enxtension enable
11636 //Bit 18 demo dynamic nonlinear luma processing enable
11637 //Bit 17 demo hsvsharp enable
11638 //Bit 16 demo bluestretch enable
11639 //Bit 15:14, 2'b00: demo adjust on top, 2'b01: demo adjust on bottom, 2'b10: demo adjust on left, 2'b11: demo adjust on right
11640 //Bit 4 chroma coring enable
11641 //Bit 3 black enxtension enable
11642 //Bit 2 dynamic nonlinear luma processing enable
11643 //Bit 1 hsvsharp enable
11644 //Bit 0 bluestretch enable
11645 #define   VPP_VE_ENABLE_CTRL                       (0x1da1)
11646 #define P_VPP_VE_ENABLE_CTRL                       (volatile uint32_t *)((0x1da1  << 2) + 0xff900000)
11647 //Bit 12:0, demo left or top screen width
11648 #define   VPP_VE_DEMO_LEFT_TOP_SCREEN_WIDTH        (0x1da2)
11649 #define P_VPP_VE_DEMO_LEFT_TOP_SCREEN_WIDTH        (volatile uint32_t *)((0x1da2  << 2) + 0xff900000)
11650 #define   VPP_VE_DEMO_CENTER_BAR                   (0x1da3)
11651 #define P_VPP_VE_DEMO_CENTER_BAR                   (volatile uint32_t *)((0x1da3  << 2) + 0xff900000)
11652 //28:16  ve_line_length
11653 //12:0   ve_pic_height
11654 #define   VPP_VE_H_V_SIZE                          (0x1da4)
11655 #define P_VPP_VE_H_V_SIZE                          (volatile uint32_t *)((0x1da4  << 2) + 0xff900000)
11656 //28:16  vppout_line_length
11657 //12:0   vppout_pic_height
11658 #define   VPP_OUT_H_V_SIZE                         (0x1da5)
11659 #define P_VPP_OUT_H_V_SIZE                         (volatile uint32_t *)((0x1da5  << 2) + 0xff900000)
11660 //28:16  vppin_line_length
11661 //12:0   vppin_pic_height
11662 #define   VPP_IN_H_V_SIZE                          (0x1da6)
11663 #define P_VPP_IN_H_V_SIZE                          (volatile uint32_t *)((0x1da6  << 2) + 0xff900000)
11664 //Bit 10   reset bit, high active
11665 //Bit 9    0: measuring rising edge, 1: measuring falling edge
11666 //Bit 8    if true, accumulate the counter number, otherwise not
11667 //Bit 7:0  vsync_span, define how many vsync span need to measure
11668 #define   VPP_VDO_MEAS_CTRL                        (0x1da8)
11669 #define P_VPP_VDO_MEAS_CTRL                        (volatile uint32_t *)((0x1da8  << 2) + 0xff900000)
11670 //Read only
11671 //19:16  ind_meas_count_n, every number of sync_span vsyncs, this counter add 1
11672 //15:0, high bit portion of counter
11673 #define   VPP_VDO_MEAS_VS_COUNT_HI                 (0x1da9)
11674 #define P_VPP_VDO_MEAS_VS_COUNT_HI                 (volatile uint32_t *)((0x1da9  << 2) + 0xff900000)
11675 //Read only
11676 //31:0, low bit portion of counter
11677 #define   VPP_VDO_MEAS_VS_COUNT_LO                 (0x1daa)
11678 #define P_VPP_VDO_MEAS_VS_COUNT_LO                 (volatile uint32_t *)((0x1daa  << 2) + 0xff900000)
11679 //bit 11:9 vd2_sel,  001: select vd1_din, 010: select vd2_din, 011: select d2d3_l_din, 100: d2d3_r_din, otherwise no selection
11680 //bit 8:6 vd1_l_sel, 001: select vd1_din, 010: select vd2_din, 011: select d2d3_l_din, 100: d2d3_r_din, otherwise no selection
11681 //bit 5:3 vd1_r_sel, 001: select vd1_din, 010: select vd2_din, 011: select d2d3_l_din, 100: d2d3_r_din, otherwise no selection
11682 //note: the source vd1_l_sel selected cannot be used as the source of vd1_r_sel or vd2_sel
11683 // vd1_r_sel is useful only vd1_interleave_mode is not 00. And the source vd1_r_sel used can not used for the vd2_sel any more.
11684 //bit 2:0 vd1_interleave_mode, 000: no interleave, 001: pixel interleaving, 010: line interleaving, 011: 2 pixel interleaving,
11685 // 100: 2 line interleaving
11686 #define   VPP_INPUT_CTRL                           (0x1dab)
11687 #define P_VPP_INPUT_CTRL                           (volatile uint32_t *)((0x1dab  << 2) + 0xff900000)
11688 //bit 25:24 cti_bpf_sel
11689 //bit 20:16 cti_blend_factor_gama
11690 //bit 12:8 cti_blend_factor_beta
11691 //bit 4:0 cti_blend_factor_alpha
11692 #define   VPP_CTI_CTRL2                            (0x1dac)
11693 #define P_VPP_CTI_CTRL2                            (volatile uint32_t *)((0x1dac  << 2) + 0xff900000)
11694 #define   VPP_PEAKING_SAT_THD1                     (0x1dad)
11695 #define P_VPP_PEAKING_SAT_THD1                     (volatile uint32_t *)((0x1dad  << 2) + 0xff900000)
11696 #define   VPP_PEAKING_SAT_THD2                     (0x1dae)
11697 #define P_VPP_PEAKING_SAT_THD2                     (volatile uint32_t *)((0x1dae  << 2) + 0xff900000)
11698 #define   VPP_PEAKING_SAT_THD3                     (0x1daf)
11699 #define P_VPP_PEAKING_SAT_THD3                     (volatile uint32_t *)((0x1daf  << 2) + 0xff900000)
11700 #define   VPP_PEAKING_SAT_THD4                     (0x1db0)
11701 #define P_VPP_PEAKING_SAT_THD4                     (volatile uint32_t *)((0x1db0  << 2) + 0xff900000)
11702 #define   VPP_PEAKING_SAT_THD5                     (0x1db1)
11703 #define P_VPP_PEAKING_SAT_THD5                     (volatile uint32_t *)((0x1db1  << 2) + 0xff900000)
11704 #define   VPP_PEAKING_SAT_THD6                     (0x1db2)
11705 #define P_VPP_PEAKING_SAT_THD6                     (volatile uint32_t *)((0x1db2  << 2) + 0xff900000)
11706 #define   VPP_PEAKING_SAT_THD7                     (0x1db3)
11707 #define P_VPP_PEAKING_SAT_THD7                     (volatile uint32_t *)((0x1db3  << 2) + 0xff900000)
11708 #define   VPP_PEAKING_SAT_THD8                     (0x1db4)
11709 #define P_VPP_PEAKING_SAT_THD8                     (volatile uint32_t *)((0x1db4  << 2) + 0xff900000)
11710 #define   VPP_PEAKING_SAT_THD9                     (0x1db5)
11711 #define P_VPP_PEAKING_SAT_THD9                     (volatile uint32_t *)((0x1db5  << 2) + 0xff900000)
11712 #define   VPP_PEAKING_GAIN_ADD1                    (0x1db6)
11713 #define P_VPP_PEAKING_GAIN_ADD1                    (volatile uint32_t *)((0x1db6  << 2) + 0xff900000)
11714 #define   VPP_PEAKING_GAIN_ADD2                    (0x1db7)
11715 #define P_VPP_PEAKING_GAIN_ADD2                    (volatile uint32_t *)((0x1db7  << 2) + 0xff900000)
11716 //bit 23:16 peaking_dnlp_gain, u5.3, DNLP effect
11717 //bit 15:8  peaking_factor
11718 //bit 5     peaking_dnlp_demo_en
11719 //bit 4     peaking_dnlp_en
11720 //bit 3:0   peaking_filter_sel
11721 #define   VPP_PEAKING_DNLP                         (0x1db8)
11722 #define P_VPP_PEAKING_DNLP                         (volatile uint32_t *)((0x1db8  << 2) + 0xff900000)
11723 //bit 24    sharp_demo_win_en
11724 //bit 23:12 sharp_demo_win_vend
11725 //bit 11:0  sharp_demo_win_vstart
11726 #define   VPP_SHARP_DEMO_WIN_CTRL1                 (0x1db9)
11727 #define P_VPP_SHARP_DEMO_WIN_CTRL1                 (volatile uint32_t *)((0x1db9  << 2) + 0xff900000)
11728 //bit 23:12 sharp_demo_win_hend
11729 //bit 11:0  sharp_demo_win_hstart
11730 #define   VPP_SHARP_DEMO_WIN_CTRL2                 (0x1dba)
11731 #define P_VPP_SHARP_DEMO_WIN_CTRL2                 (volatile uint32_t *)((0x1dba  << 2) + 0xff900000)
11732 //Bit 31:24     front_hlti_neg_gain
11733 //Bit 23:16     front_hlti_pos_gain
11734 //Bit 15:8      front_hlti_threshold
11735 //Bit 7:0       front_hlti_blend_factor
11736 #define   VPP_FRONT_HLTI_CTRL                      (0x1dbb)
11737 #define P_VPP_FRONT_HLTI_CTRL                      (volatile uint32_t *)((0x1dbb  << 2) + 0xff900000)
11738 //Bit 31        front_enable, enable the front LTI&CTI before scaler
11739 //Bit 26:24     front_cti_step2
11740 //Bit 23:21     front_cti_step
11741 //Bit 20:16     front_cti_blend_factor
11742 //Bit 15        front_cti_median_mode
11743 //Bit 14:8      front_cti_threshold
11744 //Bit 7:0       front_cti_gain
11745 #define   VPP_FRONT_CTI_CTRL                       (0x1dbc)
11746 #define P_VPP_FRONT_CTI_CTRL                       (volatile uint32_t *)((0x1dbc  << 2) + 0xff900000)
11747 //bit 29:28 front_hlti_step
11748 //bit 25:24 front_cti_bpf_sel
11749 //bit 20:16 front_cti_blend_factor_gama
11750 //bit 12:8  front_cti_blend_factor_beta
11751 //bit 4:0   front_cti_blend_factor_alpha
11752 #define   VPP_FRONT_CTI_CTRL2                      (0x1dbd)
11753 #define P_VPP_FRONT_CTI_CTRL2                      (volatile uint32_t *)((0x1dbd  << 2) + 0xff900000)
11754 //vertical scaler phase step
11755 //Bit 27:0,  4.24 format
11756 #define   VPP_OSD_VSC_PHASE_STEP                   (0x1dc0)
11757 #define P_VPP_OSD_VSC_PHASE_STEP                   (volatile uint32_t *)((0x1dc0  << 2) + 0xff900000)
11758 //Bit 31:16, botttom vertical scaler initial phase
11759 //Bit 15:0, top vertical scaler initial phase
11760 #define   VPP_OSD_VSC_INI_PHASE                    (0x1dc1)
11761 #define P_VPP_OSD_VSC_INI_PHASE                    (volatile uint32_t *)((0x1dc1  << 2) + 0xff900000)
11762 //Bit 24    osd vertical Scaler enable
11763 //Bit 23    osd_prog_interlace 0: current field is progressive, 1: current field is interlace
11764 //Bit 22:21 osd_vsc_double_line_mode, bit1, double input width and half input height, bit0, change line buffer becomes 2 lines
11765 //Bit 20    osd_vsc_phase0_always_en
11766 //Bit 19    osd_vsc_nearest_en
11767 //Bit 17:16 osd_vsc_bot_rpt_l0_num
11768 //Bit 14:11 osd_vsc_bot_ini_rcv_num
11769 //Bit 9:8   osd_vsc_top_rpt_l0_num
11770 //Bit 6:3   osd_vsc_top_ini_rcv_num
11771 //Bit 2:0   osd_vsc_bank_length
11772 #define   VPP_OSD_VSC_CTRL0                        (0x1dc2)
11773 #define P_VPP_OSD_VSC_CTRL0                        (volatile uint32_t *)((0x1dc2  << 2) + 0xff900000)
11774 //horizontal scaler phase step
11775 //Bit 27:0,  4.24 format
11776 #define   VPP_OSD_HSC_PHASE_STEP                   (0x1dc3)
11777 #define P_VPP_OSD_HSC_PHASE_STEP                   (volatile uint32_t *)((0x1dc3  << 2) + 0xff900000)
11778 //Bit 31:16, horizontal scaler initial phase1
11779 //Bit 15:0, horizontal scaler initial phase0
11780 #define   VPP_OSD_HSC_INI_PHASE                    (0x1dc4)
11781 #define P_VPP_OSD_HSC_INI_PHASE                    (volatile uint32_t *)((0x1dc4  << 2) + 0xff900000)
11782 //Bit 22   osd horizontal scaler enable
11783 //Bit 21   osd_hsc_double_pix_mode
11784 //Bit 20   osd_hsc_phase0_always_en
11785 //Bit 19   osd_hsc_nearest_en
11786 //Bit 17:16 osd_hsc_rpt_p0_num1
11787 //Bit 14:11 osd_hsc_ini_rcv_num1
11788 //Bit 9:8   osd_hsc_rpt_p0_num0
11789 //Bit 6:3   osd_hsc_ini_rcv_num0
11790 //Bit 2:0   osd_hsc_bank_length
11791 #define   VPP_OSD_HSC_CTRL0                        (0x1dc5)
11792 #define P_VPP_OSD_HSC_CTRL0                        (volatile uint32_t *)((0x1dc5  << 2) + 0xff900000)
11793 //for 3D quincunx sub-sampling
11794 //bit 15:8 pattern, each patten 1 bit, from lsb -> msb
11795 //bit 6:4  pattern start
11796 //bit 2:0  pattern end
11797 #define   VPP_OSD_HSC_INI_PAT_CTRL                 (0x1dc6)
11798 #define P_VPP_OSD_HSC_INI_PAT_CTRL                 (volatile uint32_t *)((0x1dc6  << 2) + 0xff900000)
11799 //bit 31:24, componet 0
11800 //bit 23:16, component 1
11801 //bit 15:8, component 2
11802 //bit 7:0 component 3, alpha
11803 #define   VPP_OSD_SC_DUMMY_DATA                    (0x1dc7)
11804 #define P_VPP_OSD_SC_DUMMY_DATA                    (volatile uint32_t *)((0x1dc7  << 2) + 0xff900000)
11805 //Bit 14 osc_sc_din_osd1_alpha_mode, 1: (alpha >= 128) ? alpha -1: alpha,  0: (alpha >=1) ? alpha - 1: alpha.
11806 //Bit 13 osc_sc_din_osd2_alpha_mode, 1: (alpha >= 128) ? alpha -1: alpha,  0: (alpha >=1) ? alpha - 1: alpha.
11807 //Bit 12 osc_sc_dout_alpha_mode, 1: (alpha >= 128) ? alpha + 1: alpha, 0: (alpha >=1) ? alpha + 1: alpha.
11808 //Bit 12 osc_sc_alpha_mode, 1: (alpha >= 128) ? alpha + 1: alpha, 0: (alpha >=1) ? alpha + 1: alpha.
11809 //Bit 11:4 default alpha for vd1 or vd2 if they are selected as the source
11810 //Bit 3 osd scaler path enable
11811 //Bit 1:0 osd_sc_sel, 00: select osd1 input, 01: select osd2 input, 10: select vd1 input, 11: select vd2 input after matrix
11812 #define   VPP_OSD_SC_CTRL0                         (0x1dc8)
11813 #define P_VPP_OSD_SC_CTRL0                         (volatile uint32_t *)((0x1dc8  << 2) + 0xff900000)
11814 //Bit 28:16 OSD scaler input width minus 1
11815 //Bit 12:0 OSD scaler input height minus 1
11816 #define   VPP_OSD_SCI_WH_M1                        (0x1dc9)
11817 #define P_VPP_OSD_SCI_WH_M1                        (volatile uint32_t *)((0x1dc9  << 2) + 0xff900000)
11818 //Bit 28:16 OSD scaler output horizontal start
11819 //Bit 12:0 OSD scaler output horizontal end
11820 #define   VPP_OSD_SCO_H_START_END                  (0x1dca)
11821 #define P_VPP_OSD_SCO_H_START_END                  (volatile uint32_t *)((0x1dca  << 2) + 0xff900000)
11822 //Bit 28:16 OSD scaler output vertical start
11823 //Bit 12:0 OSD scaler output vertical end
11824 #define   VPP_OSD_SCO_V_START_END                  (0x1dcb)
11825 #define P_VPP_OSD_SCO_V_START_END                  (volatile uint32_t *)((0x1dcb  << 2) + 0xff900000)
11826 //Because there are many coefficients used in the vertical filter and horizontal filters,
11827 //indirect access the coefficients of vertical filter and horizontal filter is used.
11828 //For vertical filter, there are 33x4 coefficients
11829 //For horizontal filter, there are 33x4 coefficients
11830 //Bit 15    index increment, if bit9 == 1  then (0: index increase 1, 1: index increase 2) else (index increase 2)
11831 //Bit 14    1: read coef through cbus enable, just for debug purpose in case when we wanna check the coef in ram in correct or not
11832 //Bit 9     if true, use 9bit resolution coef, other use 8bit resolution coef
11833 //Bit 8   type of index, 0: vertical coef,  1: horizontal coef
11834 //Bit 6:0   coef index
11835 #define   VPP_OSD_SCALE_COEF_IDX                   (0x1dcc)
11836 #define P_VPP_OSD_SCALE_COEF_IDX                   (volatile uint32_t *)((0x1dcc  << 2) + 0xff900000)
11837 //coefficients for vertical filter and horizontal filter
11838 #define   VPP_OSD_SCALE_COEF                       (0x1dcd)
11839 #define P_VPP_OSD_SCALE_COEF                       (volatile uint32_t *)((0x1dcd  << 2) + 0xff900000)
11840 //Bit 12:0 line number use to generate interrupt when line == this number
11841 #define   VPP_INT_LINE_NUM                         (0x1dce)
11842 #define P_VPP_INT_LINE_NUM                         (volatile uint32_t *)((0x1dce  << 2) + 0xff900000)
11843 #define   VPP_XVYCC_MISC                           (0x1dcf)
11844 #define P_VPP_XVYCC_MISC                           (volatile uint32_t *)((0x1dcf  << 2) + 0xff900000)
11845 // new add lti/cti in 120924
11846 //Bit  3: 0        //default== 0  reg_hlti_dn_flt_coe[0]
11847 //Bit  7: 4        //default== 0  reg_hlti_dn_flt_coe[1]
11848 //Bit 11: 8        //default== 0  reg_hlti_dn_flt_coe[2]
11849 //Bit 15:12        //default== 2  reg_hlti_dn_flt_coe[3]
11850 //Bit 19:16        //default== 4  reg_hlti_dn_flt_coe[4]
11851 //Bit 22:20        //default== 3  reg_hlti_dn_flt_nrm  u3: 3~7
11852 #define   VPP_HLTI_DN_FLT                          (0x1dd0)
11853 #define P_VPP_HLTI_DN_FLT                          (volatile uint32_t *)((0x1dd0  << 2) + 0xff900000)
11854 //Bit  7: 0        //default== 8  reg_hlti_bst_gain  u8, norm 16 as "1"
11855 //Bit 15: 8        //default== 20 reg_hlti_bst_core  u8, norm 32 as "1"
11856 //Bit 23:16        //default== 32 reg_hlti_oob_gain  u8, norm 32 as "1"
11857 //Bit 28:24        //default== 0  reg_hlti_oob_core  u5
11858 #define   VPP_HLTI_GAIN                            (0x1dd1)
11859 #define P_VPP_HLTI_GAIN                            (volatile uint32_t *)((0x1dd1  << 2) + 0xff900000)
11860 //Bit  7: 0        //default== 2  reg_hlti_clp_ofst  u8,
11861 //Bit     8        //default== 0  reg_hlti_clp_mode  u1,
11862 //Bit 11: 9        //default== 1  reg_hlti_clp_wind  u3,
11863 //Bit 14:12        //default== 1  reg_hlti_bst_fltr  u3,
11864 //Bit    15        //default== 1  reg_hlti_enable    u1,
11865 #define   VPP_HLTI_PARA                            (0x1dd2)
11866 #define P_VPP_HLTI_PARA                            (volatile uint32_t *)((0x1dd2  << 2) + 0xff900000)
11867 //Bit  3: 0        //default== 0  reg_hcti_dn_flt_coe[0]
11868 //Bit  7: 4        //default== 0  reg_hcti_dn_flt_coe[1]
11869 //Bit 11: 8        //default== 1  reg_hcti_dn_flt_coe[2]
11870 //Bit 15:12        //default== 2  reg_hcti_dn_flt_coe[3]
11871 //Bit 19:16        //default== 2  reg_hcti_dn_flt_coe[4]
11872 //Bit 22:20        //default== 3  reg_hcti_dn_flt_nrm   u3: 3~7
11873 #define   VPP_HCTI_DN_FLT                          (0x1dd3)
11874 #define P_VPP_HCTI_DN_FLT                          (volatile uint32_t *)((0x1dd3  << 2) + 0xff900000)
11875 //Bit 7: 0        //default== 48 reg_hcti_bst_gain  u8, norm 16 as "1"
11876 //Bit15: 8        //default== 17 reg_hcti_bst_core  u8, norm 32 as "1"
11877 //Bit23:16        //default== 16 reg_hcti_oob_gain  u8, norm 32 as "1"
11878 //Bit28:24        //default==  0 reg_hcti_oob_core  u5
11879 #define   VPP_HCTI_GAIN                            (0x1dd4)
11880 #define P_VPP_HCTI_GAIN                            (volatile uint32_t *)((0x1dd4  << 2) + 0xff900000)
11881 //Bit  7: 0        //default==  0 reg_hcti_clp_ofst  u8,
11882 //Bit     8        //default==  1 reg_hcti_clp_mode  u1,
11883 //Bit 11: 9        //default==  3 reg_hcti_clp_wind  u3,
11884 //Bit 14:12        //default==  6 reg_hcti_bst_fltr  u3,
11885 //Bit    15        //default==  1 reg_hcti_enable    u1,
11886 #define   VPP_HCTI_PARA                            (0x1dd5)
11887 #define P_VPP_HCTI_PARA                            (volatile uint32_t *)((0x1dd5  << 2) + 0xff900000)
11888 //Bit  7: 0        //default== 48 reg_vcti_bst_gain  u8, normalize 16 as "1"
11889 //Bit 15: 8        //default== 10 reg_vcti_bst_core  u8
11890 //Bit 19:16        //default== 10 reg_vcti_clp_ofst  u4
11891 //Bit    20        //default==  1 reg_vcti_clp_wind  u1, 0: wind 3, 1: wind5
11892 #define   VPP_VCTI_PARA                            (0x1dd6)
11893 #define P_VPP_VCTI_PARA                            (volatile uint32_t *)((0x1dd6  << 2) + 0xff900000)
11894 //`define VPP_MATRIX_PROBE_COLOR1 8'hd7  //defined before
11895 //Bit 31          //default== 0, urgent fifo hold enable
11896 //Bit 28:12       //default== 0, urgent fifo hold line threshold
11897 //Bit 15          //default== 0, urgent_ctrl_en
11898 //Bit 14          //default== 0, urgent_wr, if true for write buffer
11899 //Bit 13          //default== 0, out_inv_en
11900 //Bit 12          //default == 0, urgent_ini_value
11901 //Bit 11:6        //default == 0, up_th  up threshold
11902 //Bit 5:0         //default == 0, dn_th  dn threshold
11903 #define   VPP_OFIFO_URG_CTRL                       (0x1dd8)
11904 #define P_VPP_OFIFO_URG_CTRL                       (volatile uint32_t *)((0x1dd8  << 2) + 0xff900000)
11905 #define   VPP_CLIP_MISC0                           (0x1dd9)
11906 #define P_VPP_CLIP_MISC0                           (volatile uint32_t *)((0x1dd9  << 2) + 0xff900000)
11907 //Bit 29:20       // default == 1023, final clip r channel top
11908 //Bit 19:10       // default == 1023, final clip g channel top
11909 //Bit  9: 0       // default == 1023, final clip b channel top
11910 #define   VPP_CLIP_MISC1                           (0x1dda)
11911 #define P_VPP_CLIP_MISC1                           (volatile uint32_t *)((0x1dda  << 2) + 0xff900000)
11912 //Bit 29:20       // default ==    0, final clip r channel bottom
11913 //Bit 19:10       // default ==    0, final clip g channel bottom
11914 //Bit  9: 0       // default ==    0, final clip b channel bottom
11915 #define   VPP_MATRIX_COEF13_14                     (0x1ddb)
11916 #define P_VPP_MATRIX_COEF13_14                     (volatile uint32_t *)((0x1ddb  << 2) + 0xff900000)
11917 //Bit 28:16       // default == 0, matrix coef13
11918 //Bit 12:0        // default == 0, matrix coef14
11919 #define   VPP_MATRIX_COEF23_24                     (0x1ddc)
11920 #define P_VPP_MATRIX_COEF23_24                     (volatile uint32_t *)((0x1ddc  << 2) + 0xff900000)
11921 //Bit 28:16       // default == 0, matrix coef23
11922 //Bit 12:0        // default == 0, matrix coef24
11923 #define   VPP_MATRIX_COEF15_25                     (0x1ddd)
11924 #define P_VPP_MATRIX_COEF15_25                     (volatile uint32_t *)((0x1ddd  << 2) + 0xff900000)
11925 //Bit 28:16       // default == 0, matrix coef15
11926 //Bit 12:0        // default == 0, matrix coef25
11927 #define   VPP_MATRIX_CLIP                          (0x1dde)
11928 #define P_VPP_MATRIX_CLIP                          (volatile uint32_t *)((0x1dde  << 2) + 0xff900000)
11929 //Bit 7:5         //  default == 0,   mat rs
11930 //Bit 4:3         //  default == 0,   mat clmod
11931 //Bit 2:0         //  default == 0,   mat clip enable
11932 #define   VPP_XVYCC_MISC0                          (0x1ddf)
11933 #define P_VPP_XVYCC_MISC0                          (volatile uint32_t *)((0x1ddf  << 2) + 0xff900000)
11934 //Bit 29:20       // default == 1023, xvycc clip r channel top
11935 //Bit 19:10       // default == 1023, xvycc clip g channel top
11936 //Bit  9: 0       // default == 1023, xvycc clip b channel top
11937 #define   VPP_XVYCC_MISC1                          (0x1de0)
11938 #define P_VPP_XVYCC_MISC1                          (volatile uint32_t *)((0x1de0  << 2) + 0xff900000)
11939 //Bit 29:20       // default ==    0, xvycc clip r channel bottom
11940 //Bit 19:10       // default ==    0, xvycc clip g channel bottom
11941 //Bit  9: 0       // default ==    0, xvycc clip b channel bottom
11942 #define   VPP_VD1_CLIP_MISC0                       (0x1de1)
11943 #define P_VPP_VD1_CLIP_MISC0                       (volatile uint32_t *)((0x1de1  << 2) + 0xff900000)
11944 //Bit 29:20       // default == 1023, vd1 clip r channel top
11945 //Bit 19:10       // default == 1023, vd1 clip g channel top
11946 //Bit  9: 0       // default == 1023, vd1 clip b channel top
11947 #define   VPP_VD1_CLIP_MISC1                       (0x1de2)
11948 #define P_VPP_VD1_CLIP_MISC1                       (volatile uint32_t *)((0x1de2  << 2) + 0xff900000)
11949 //Bit 29:20       // default ==    0, vd1 clip r channel bottom
11950 //Bit 19:10       // default ==    0, vd1 clip g channel bottom
11951 //Bit  9: 0       // default ==    0, vd1 clip b channel bottom
11952 #define   VPP_VD2_CLIP_MISC0                       (0x1de3)
11953 #define P_VPP_VD2_CLIP_MISC0                       (volatile uint32_t *)((0x1de3  << 2) + 0xff900000)
11954 //Bit 29:20       // default == 1023, vd2 clip r channel top
11955 //Bit 19:10       // default == 1023, vd2 clip g channel top
11956 //Bit  9: 0       // default == 1023, vd2 clip b channel top
11957 #define   VPP_VD2_CLIP_MISC1                       (0x1de4)
11958 #define P_VPP_VD2_CLIP_MISC1                       (volatile uint32_t *)((0x1de4  << 2) + 0xff900000)
11959 //Bit 29:20       // default ==    0, vd2 clip r channel bottom
11960 //Bit 19:10       // default ==    0, vd2 clip g channel bottom
11961 //Bit  9: 0       // default ==    0, vd2 clip b channel bottom
11962 // synopsys translate_off
11963 // synopsys translate_on
11964 //
11965 // Closing file:  vpp_regs.h
11966 //
11967 //`define VIU2_VCBUS_BASE                8'h1e
11968 //
11969 // Reading file:  v2regs.h
11970 //
11971 // synopsys translate_off
11972 // synopsys translate_on
11973 //===========================================================================
11974 // Video Interface 2 Registers    0xe00 - 0xeff
11975 //===========================================================================
11976 // -----------------------------------------------
11977 // CBUS_BASE:  VIU2_VCBUS_BASE = 0x1e
11978 // -----------------------------------------------
11979 #define   VIU2_ADDR_START                          (0x1e00)
11980 #define P_VIU2_ADDR_START                          (volatile uint32_t *)((0x1e00  << 2) + 0xff900000)
11981 #define   VIU2_ADDR_END                            (0x1eff)
11982 #define P_VIU2_ADDR_END                            (volatile uint32_t *)((0x1eff  << 2) + 0xff900000)
11983 //------------------------------------------------------------------------------
11984 // VIU2 top-level registers
11985 //------------------------------------------------------------------------------
11986 // Bit  0 RW, osd1_reset
11987 // Bit  1 RW, osd2_reset
11988 // Bit  2 RW, vd1_reset
11989 // Bit  3 RW, vd1_fmt_reset
11990 // Bit  7 RW, vpp_reset
11991 #define   VIU2_SW_RESET                            (0x1e01)
11992 #define P_VIU2_SW_RESET                            (volatile uint32_t *)((0x1e01  << 2) + 0xff900000)
11993 #define   VIU2_SW_RESET0                           (0x1e02)
11994 #define P_VIU2_SW_RESET0                           (volatile uint32_t *)((0x1e02  << 2) + 0xff900000)
11995 // Bit 0 RW, software reset for mcvecrd_mif
11996 // Bit 1 RW, software reset for mcinfowr_mif
11997 // Bit 2 RW, software reset for mcinford_mif
11998 //bit 8 if true, vsync interrup is generate only field == 0
11999 //bit 7:0 fix_disable
12000 #define   VIU2_MISC_CTRL0                          (0x1e06)
12001 #define P_VIU2_MISC_CTRL0                          (volatile uint32_t *)((0x1e06  << 2) + 0xff900000)
12002 //------------------------------------------------------------------------------
12003 // OSD1 registers
12004 //------------------------------------------------------------------------------
12005 // Bit    31 Reserved
12006 // Bit    30 RW, enable_free_clk: 1=use free-running clock to drive logics;
12007 //                                0=use gated clock for low power.
12008 // Bit    29 R, test_rd_dsr
12009 // Bit    28 R, osd_done
12010 // Bit 27:24 R, osd_blk_mode
12011 // Bit 23:22 R, osd_blk_ptr
12012 // Bit    21 R, osd_enable
12013 //
12014 // Bit 20:12 RW, global_alpha
12015 // Bit    11 RW, test_rd_en
12016 // Bit 10: 9 Reserved for control signals
12017 // Bit  8: 5 RW, ctrl_mtch_y
12018 // Bit     4 RW, ctrl_422to444
12019 // Bit  3: 0 RW, osd_blk_enable. Bit 0 to enable block 0: 1=enable, 0=disable;
12020 //                               Bit 1 to enable block 1, and so on.
12021 #define   VIU2_OSD1_CTRL_STAT                      (0x1e10)
12022 #define P_VIU2_OSD1_CTRL_STAT                      (volatile uint32_t *)((0x1e10  << 2) + 0xff900000)
12023 // Bit 31:26 Reserved
12024 // Bit 25:16 R, fifo_count
12025 // Bit 15: 6 Reserved
12026 // Bit  5: 4 RW, hold_fifo_lines[6:5]
12027 // Bit     3 RW, rgb2yuv_full_range
12028 // Bit     2 RW, alpha_9b_mode
12029 // Bit     1 RW, reserved
12030 // Bit     0 RW, color_expand_mode
12031 #define   VIU2_OSD1_CTRL_STAT2                     (0x1e2d)
12032 #define P_VIU2_OSD1_CTRL_STAT2                     (volatile uint32_t *)((0x1e2d  << 2) + 0xff900000)
12033 // Bit 31: 9 Reserved
12034 // Bit     8 RW, 0 = Write LUT, 1 = Read LUT
12035 // Bit  7: 0 RW, lut_addr
12036 #define   VIU2_OSD1_COLOR_ADDR                     (0x1e11)
12037 #define P_VIU2_OSD1_COLOR_ADDR                     (volatile uint32_t *)((0x1e11  << 2) + 0xff900000)
12038 // Bit 31:24 RW, Y or R
12039 // Bit 23:16 RW, Cb or G
12040 // Bit 15: 8 RW, Cr or B
12041 // Bit  7: 0 RW, Alpha
12042 #define   VIU2_OSD1_COLOR                          (0x1e12)
12043 #define P_VIU2_OSD1_COLOR                          (volatile uint32_t *)((0x1e12  << 2) + 0xff900000)
12044 // Bit 31:24 RW, Y or R
12045 // Bit 23:16 RW, Cb or G
12046 // Bit 15: 8 RW, Cr or B
12047 // Bit  7: 0 RW, Alpha
12048 #define   VIU2_OSD1_TCOLOR_AG0                     (0x1e17)
12049 #define P_VIU2_OSD1_TCOLOR_AG0                     (volatile uint32_t *)((0x1e17  << 2) + 0xff900000)
12050 #define   VIU2_OSD1_TCOLOR_AG1                     (0x1e18)
12051 #define P_VIU2_OSD1_TCOLOR_AG1                     (volatile uint32_t *)((0x1e18  << 2) + 0xff900000)
12052 #define   VIU2_OSD1_TCOLOR_AG2                     (0x1e19)
12053 #define P_VIU2_OSD1_TCOLOR_AG2                     (volatile uint32_t *)((0x1e19  << 2) + 0xff900000)
12054 #define   VIU2_OSD1_TCOLOR_AG3                     (0x1e1a)
12055 #define P_VIU2_OSD1_TCOLOR_AG3                     (volatile uint32_t *)((0x1e1a  << 2) + 0xff900000)
12056 // Bit 31:30 Reserved
12057 // Bit    29 RW, y_rev: 0=normal read, 1=reverse read in Y direction
12058 // Bit    28 RW, x_rev: 0=normal read, 1=reverse read in X direction
12059 // Bit 27:24 Reserved
12060 // Bit 23:16 RW, tbl_addr
12061 // Bit    15 RW, little_endian: 0=big endian, 1=little endian
12062 // Bit    14 RW, rpt_y
12063 // Bit 13:12 RW, interp_ctrl. 0x=No interpolation; 10=Interpolate with previous
12064 //                            pixel; 11=Interpolate with the average value
12065 //                            between previous and next pixel.
12066 // Bit 11: 8 RW, osd_blk_mode
12067 // Bit     7 RW, rgb_en
12068 // Bit     6 RW, tc_alpha_en
12069 // Bit  5: 2 RW, color_matrix
12070 // Bit     1 RW, interlace_en
12071 // Bit     0 RW, interlace_sel_odd
12072 #define   VIU2_OSD1_BLK0_CFG_W0                    (0x1e1b)
12073 #define P_VIU2_OSD1_BLK0_CFG_W0                    (volatile uint32_t *)((0x1e1b  << 2) + 0xff900000)
12074 #define   VIU2_OSD1_BLK1_CFG_W0                    (0x1e1f)
12075 #define P_VIU2_OSD1_BLK1_CFG_W0                    (volatile uint32_t *)((0x1e1f  << 2) + 0xff900000)
12076 #define   VIU2_OSD1_BLK2_CFG_W0                    (0x1e23)
12077 #define P_VIU2_OSD1_BLK2_CFG_W0                    (volatile uint32_t *)((0x1e23  << 2) + 0xff900000)
12078 #define   VIU2_OSD1_BLK3_CFG_W0                    (0x1e27)
12079 #define P_VIU2_OSD1_BLK3_CFG_W0                    (volatile uint32_t *)((0x1e27  << 2) + 0xff900000)
12080 // Bit 31:29 Reserved
12081 // Bit 28:16 RW, x_end
12082 // Bit 15:13 Reserved
12083 // Bit 12: 0 RW, x_start
12084 #define   VIU2_OSD1_BLK0_CFG_W1                    (0x1e1c)
12085 #define P_VIU2_OSD1_BLK0_CFG_W1                    (volatile uint32_t *)((0x1e1c  << 2) + 0xff900000)
12086 #define   VIU2_OSD1_BLK1_CFG_W1                    (0x1e20)
12087 #define P_VIU2_OSD1_BLK1_CFG_W1                    (volatile uint32_t *)((0x1e20  << 2) + 0xff900000)
12088 #define   VIU2_OSD1_BLK2_CFG_W1                    (0x1e24)
12089 #define P_VIU2_OSD1_BLK2_CFG_W1                    (volatile uint32_t *)((0x1e24  << 2) + 0xff900000)
12090 #define   VIU2_OSD1_BLK3_CFG_W1                    (0x1e28)
12091 #define P_VIU2_OSD1_BLK3_CFG_W1                    (volatile uint32_t *)((0x1e28  << 2) + 0xff900000)
12092 // Bit 31:29 Reserved
12093 // Bit 28:16 RW, y_end
12094 // Bit 15:13 Reserved
12095 // Bit 12: 0 RW, y_start
12096 #define   VIU2_OSD1_BLK0_CFG_W2                    (0x1e1d)
12097 #define P_VIU2_OSD1_BLK0_CFG_W2                    (volatile uint32_t *)((0x1e1d  << 2) + 0xff900000)
12098 #define   VIU2_OSD1_BLK1_CFG_W2                    (0x1e21)
12099 #define P_VIU2_OSD1_BLK1_CFG_W2                    (volatile uint32_t *)((0x1e21  << 2) + 0xff900000)
12100 #define   VIU2_OSD1_BLK2_CFG_W2                    (0x1e25)
12101 #define P_VIU2_OSD1_BLK2_CFG_W2                    (volatile uint32_t *)((0x1e25  << 2) + 0xff900000)
12102 #define   VIU2_OSD1_BLK3_CFG_W2                    (0x1e29)
12103 #define P_VIU2_OSD1_BLK3_CFG_W2                    (volatile uint32_t *)((0x1e29  << 2) + 0xff900000)
12104 // Bit 31:28 Reserved
12105 // Bit 27:16 RW, h_end
12106 // Bit 15:12 Reserved
12107 // Bit 11: 0 RW, h_start
12108 #define   VIU2_OSD1_BLK0_CFG_W3                    (0x1e1e)
12109 #define P_VIU2_OSD1_BLK0_CFG_W3                    (volatile uint32_t *)((0x1e1e  << 2) + 0xff900000)
12110 #define   VIU2_OSD1_BLK1_CFG_W3                    (0x1e22)
12111 #define P_VIU2_OSD1_BLK1_CFG_W3                    (volatile uint32_t *)((0x1e22  << 2) + 0xff900000)
12112 #define   VIU2_OSD1_BLK2_CFG_W3                    (0x1e26)
12113 #define P_VIU2_OSD1_BLK2_CFG_W3                    (volatile uint32_t *)((0x1e26  << 2) + 0xff900000)
12114 #define   VIU2_OSD1_BLK3_CFG_W3                    (0x1e2a)
12115 #define P_VIU2_OSD1_BLK3_CFG_W3                    (volatile uint32_t *)((0x1e2a  << 2) + 0xff900000)
12116 // Bit 31:28 Reserved
12117 // Bit 27:16 RW, v_end
12118 // Bit 15:12 Reserved
12119 // Bit 11: 0 RW, v_start
12120 #define   VIU2_OSD1_BLK0_CFG_W4                    (0x1e13)
12121 #define P_VIU2_OSD1_BLK0_CFG_W4                    (volatile uint32_t *)((0x1e13  << 2) + 0xff900000)
12122 #define   VIU2_OSD1_BLK1_CFG_W4                    (0x1e14)
12123 #define P_VIU2_OSD1_BLK1_CFG_W4                    (volatile uint32_t *)((0x1e14  << 2) + 0xff900000)
12124 #define   VIU2_OSD1_BLK2_CFG_W4                    (0x1e15)
12125 #define P_VIU2_OSD1_BLK2_CFG_W4                    (volatile uint32_t *)((0x1e15  << 2) + 0xff900000)
12126 #define   VIU2_OSD1_BLK3_CFG_W4                    (0x1e16)
12127 #define P_VIU2_OSD1_BLK3_CFG_W4                    (volatile uint32_t *)((0x1e16  << 2) + 0xff900000)
12128 // Bit    31 RW, burst_len_sel[2] of [2:0]
12129 // Bit    30 RW, byte_swap: In addition to endian control, further define
12130 //               whether to swap upper and lower byte within a 16-bit mem word.
12131 //               0=No swap; 1=Swap data[15:0] to be {data[7:0], data[15:8]}
12132 // Bit    29 RW, div_swap : swap the 2 64bits words in 128 bit word
12133 // Bit 28:24 RW, fifo_lim : when osd fifo is small than the fifo_lim*16, closed the rq port of osd_rd_mif
12134 // Bit 23:22 RW, fifo_ctrl: 00 : for 1 word in 1 burst , 01 : for  2words in 1burst, 10: for 4words in 1burst, 11: reserved
12135 // Bit 21:20 R,  fifo_st. 0=IDLE, 1=FILL, 2=ABORT
12136 // Bit    19 R,  fifo_overflow
12137 //
12138 // Bit 18:12 RW, fifo_depth_val, max value=64: set actual fifo depth to fifo_depth_val*8.
12139 // Bit 11:10 RW, burst_len_sel[1:0] of [2:0]. 0=24(default), 1=32, 2=48, 3=64, 4=96, 5=128.
12140 // Bit  9: 5 RW, hold_fifo_lines[4:0]
12141 // Bit     4 RW, clear_err: one pulse to clear fifo_overflow
12142 // Bit     3 RW, fifo_sync_rst
12143 // Bit  2: 1 RW, endian
12144 // Bit     0 RW, urgent
12145 #define   VIU2_OSD1_FIFO_CTRL_STAT                 (0x1e2b)
12146 #define P_VIU2_OSD1_FIFO_CTRL_STAT                 (volatile uint32_t *)((0x1e2b  << 2) + 0xff900000)
12147 // Bit 31:24 R, Y or R
12148 // Bit 23:16 R, Cb or G
12149 // Bit 15: 8 R, Cr or B
12150 // Bit  7: 0 R, Output Alpha[8:1]
12151 #define   VIU2_OSD1_TEST_RDDATA                    (0x1e2c)
12152 #define P_VIU2_OSD1_TEST_RDDATA                    (volatile uint32_t *)((0x1e2c  << 2) + 0xff900000)
12153 // Bit    15 RW, prot_en: 1=Borrow PROT's FIFO storage, either for rotate or non-rotate.
12154 // Bit 12: 0 RW, effective FIFO size when prot_en=1.
12155 #define   VIU2_OSD1_PROT_CTRL                      (0x1e2e)
12156 #define P_VIU2_OSD1_PROT_CTRL                      (volatile uint32_t *)((0x1e2e  << 2) + 0xff900000)
12157 //------------------------------------------------------------------------------
12158 // OSD2 registers
12159 //------------------------------------------------------------------------------
12160 // Bit    31 Reserved
12161 // Bit    30 RW, enable_free_clk: 1=use free-running clock to drive logics;
12162 //                                0=use gated clock for low power.
12163 // Bit    29 R, test_rd_dsr
12164 // Bit    28 R, osd_done
12165 // Bit 27:24 R, osd_blk_mode
12166 // Bit 23:22 R, osd_blk_ptr
12167 // Bit    21 R, osd_enable
12168 //
12169 // Bit 20:12 RW, global_alpha
12170 // Bit    11 RW, test_rd_en
12171 // Bit    10 RW, hl2_en
12172 // Bit     9 RW, hl1_en
12173 // Bit  8: 5 RW, ctrl_mtch_y
12174 // Bit     4 RW, ctrl_422to444
12175 // Bit  3: 0 RW, osd_blk_enable. Bit 0 to enable block 0: 1=enable, 0=disable;
12176 //                               Bit 1 to enable block 1, and so on.
12177 #define   VIU2_OSD2_CTRL_STAT                      (0x1e30)
12178 #define P_VIU2_OSD2_CTRL_STAT                      (volatile uint32_t *)((0x1e30  << 2) + 0xff900000)
12179 // Bit 31:26 Reserved
12180 // Bit 25:16 R, fifo_count
12181 // Bit 15: 6 Reserved
12182 // Bit  5: 4 RW, hold_fifo_lines[6:5]
12183 // Bit     3 RW, rgb2yuv_full_range
12184 // Bit     2 RW, alpha_9b_mode
12185 // Bit     1 RW, reserved
12186 // Bit     0 RW, color_expand_mode
12187 #define   VIU2_OSD2_CTRL_STAT2                     (0x1e4d)
12188 #define P_VIU2_OSD2_CTRL_STAT2                     (volatile uint32_t *)((0x1e4d  << 2) + 0xff900000)
12189 // Bit 31: 9 Reserved
12190 // Bit     8 RW, 0 = Write LUT, 1 = Read LUT
12191 // Bit  7: 0 RW, lut_addr
12192 #define   VIU2_OSD2_COLOR_ADDR                     (0x1e31)
12193 #define P_VIU2_OSD2_COLOR_ADDR                     (volatile uint32_t *)((0x1e31  << 2) + 0xff900000)
12194 // Bit 31:24 RW, Y or R
12195 // Bit 23:16 RW, Cb or G
12196 // Bit 15: 8 RW, Cr or B
12197 // Bit  7: 0 RW, Alpha
12198 #define   VIU2_OSD2_COLOR                          (0x1e32)
12199 #define P_VIU2_OSD2_COLOR                          (volatile uint32_t *)((0x1e32  << 2) + 0xff900000)
12200 // Bit 31:28 Reserved
12201 // Bit 27:16 RW, hl[1-2]_h/v_start
12202 // Bit 15:12 Reserved
12203 // Bit 11: 0 RW, hl[1-2]_h/v_end
12204 #define   VIU2_OSD2_HL1_H_START_END                (0x1e33)
12205 #define P_VIU2_OSD2_HL1_H_START_END                (volatile uint32_t *)((0x1e33  << 2) + 0xff900000)
12206 #define   VIU2_OSD2_HL1_V_START_END                (0x1e34)
12207 #define P_VIU2_OSD2_HL1_V_START_END                (volatile uint32_t *)((0x1e34  << 2) + 0xff900000)
12208 #define   VIU2_OSD2_HL2_H_START_END                (0x1e35)
12209 #define P_VIU2_OSD2_HL2_H_START_END                (volatile uint32_t *)((0x1e35  << 2) + 0xff900000)
12210 #define   VIU2_OSD2_HL2_V_START_END                (0x1e36)
12211 #define P_VIU2_OSD2_HL2_V_START_END                (volatile uint32_t *)((0x1e36  << 2) + 0xff900000)
12212 // Bit 31:24 RW, Y or R
12213 // Bit 23:16 RW, Cb or G
12214 // Bit 15: 8 RW, Cr or B
12215 // Bit  7: 0 RW, Alpha
12216 #define   VIU2_OSD2_TCOLOR_AG0                     (0x1e37)
12217 #define P_VIU2_OSD2_TCOLOR_AG0                     (volatile uint32_t *)((0x1e37  << 2) + 0xff900000)
12218 #define   VIU2_OSD2_TCOLOR_AG1                     (0x1e38)
12219 #define P_VIU2_OSD2_TCOLOR_AG1                     (volatile uint32_t *)((0x1e38  << 2) + 0xff900000)
12220 #define   VIU2_OSD2_TCOLOR_AG2                     (0x1e39)
12221 #define P_VIU2_OSD2_TCOLOR_AG2                     (volatile uint32_t *)((0x1e39  << 2) + 0xff900000)
12222 #define   VIU2_OSD2_TCOLOR_AG3                     (0x1e3a)
12223 #define P_VIU2_OSD2_TCOLOR_AG3                     (volatile uint32_t *)((0x1e3a  << 2) + 0xff900000)
12224 // Bit 31:24 Reserved
12225 // Bit 23:16 RW, tbl_addr
12226 // Bit    15 RW, little_endian: 0=big endian, 1=little endian
12227 // Bit    14 RW, rpt_y
12228 // Bit 13:12 RW, interp_ctrl. 0x=No interpolation; 10=Interpolate with previous
12229 //                            pixel; 11=Interpolate with the average value
12230 //                            between previous and next pixel.
12231 // Bit 11: 8 RW, osd_blk_mode
12232 // Bit     7 RW, rgb_en
12233 // Bit     6 RW, tc_alpha_en
12234 // Bit  5: 2 RW, color_matrix
12235 // Bit     1 RW, interlace_en
12236 // Bit     0 RW, interlace_sel_odd
12237 #define   VIU2_OSD2_BLK0_CFG_W0                    (0x1e3b)
12238 #define P_VIU2_OSD2_BLK0_CFG_W0                    (volatile uint32_t *)((0x1e3b  << 2) + 0xff900000)
12239 #define   VIU2_OSD2_BLK1_CFG_W0                    (0x1e3f)
12240 #define P_VIU2_OSD2_BLK1_CFG_W0                    (volatile uint32_t *)((0x1e3f  << 2) + 0xff900000)
12241 #define   VIU2_OSD2_BLK2_CFG_W0                    (0x1e43)
12242 #define P_VIU2_OSD2_BLK2_CFG_W0                    (volatile uint32_t *)((0x1e43  << 2) + 0xff900000)
12243 #define   VIU2_OSD2_BLK3_CFG_W0                    (0x1e47)
12244 #define P_VIU2_OSD2_BLK3_CFG_W0                    (volatile uint32_t *)((0x1e47  << 2) + 0xff900000)
12245 // Bit 31:29 Reserved
12246 // Bit 28:16 RW, x_end
12247 // Bit 15:13 Reserved
12248 // Bit 12: 0 RW, x_start
12249 #define   VIU2_OSD2_BLK0_CFG_W1                    (0x1e3c)
12250 #define P_VIU2_OSD2_BLK0_CFG_W1                    (volatile uint32_t *)((0x1e3c  << 2) + 0xff900000)
12251 #define   VIU2_OSD2_BLK1_CFG_W1                    (0x1e40)
12252 #define P_VIU2_OSD2_BLK1_CFG_W1                    (volatile uint32_t *)((0x1e40  << 2) + 0xff900000)
12253 #define   VIU2_OSD2_BLK2_CFG_W1                    (0x1e44)
12254 #define P_VIU2_OSD2_BLK2_CFG_W1                    (volatile uint32_t *)((0x1e44  << 2) + 0xff900000)
12255 #define   VIU2_OSD2_BLK3_CFG_W1                    (0x1e48)
12256 #define P_VIU2_OSD2_BLK3_CFG_W1                    (volatile uint32_t *)((0x1e48  << 2) + 0xff900000)
12257 // Bit 31:29 Reserved
12258 // Bit 28:16 RW, y_end
12259 // Bit 15:13 Reserved
12260 // Bit 12: 0 RW, y_start
12261 #define   VIU2_OSD2_BLK0_CFG_W2                    (0x1e3d)
12262 #define P_VIU2_OSD2_BLK0_CFG_W2                    (volatile uint32_t *)((0x1e3d  << 2) + 0xff900000)
12263 #define   VIU2_OSD2_BLK1_CFG_W2                    (0x1e41)
12264 #define P_VIU2_OSD2_BLK1_CFG_W2                    (volatile uint32_t *)((0x1e41  << 2) + 0xff900000)
12265 #define   VIU2_OSD2_BLK2_CFG_W2                    (0x1e45)
12266 #define P_VIU2_OSD2_BLK2_CFG_W2                    (volatile uint32_t *)((0x1e45  << 2) + 0xff900000)
12267 #define   VIU2_OSD2_BLK3_CFG_W2                    (0x1e49)
12268 #define P_VIU2_OSD2_BLK3_CFG_W2                    (volatile uint32_t *)((0x1e49  << 2) + 0xff900000)
12269 // Bit 31:28 Reserved
12270 // Bit 27:16 RW, h_end
12271 // Bit 15:12 Reserved
12272 // Bit 11: 0 RW, h_start
12273 #define   VIU2_OSD2_BLK0_CFG_W3                    (0x1e3e)
12274 #define P_VIU2_OSD2_BLK0_CFG_W3                    (volatile uint32_t *)((0x1e3e  << 2) + 0xff900000)
12275 #define   VIU2_OSD2_BLK1_CFG_W3                    (0x1e42)
12276 #define P_VIU2_OSD2_BLK1_CFG_W3                    (volatile uint32_t *)((0x1e42  << 2) + 0xff900000)
12277 #define   VIU2_OSD2_BLK2_CFG_W3                    (0x1e46)
12278 #define P_VIU2_OSD2_BLK2_CFG_W3                    (volatile uint32_t *)((0x1e46  << 2) + 0xff900000)
12279 #define   VIU2_OSD2_BLK3_CFG_W3                    (0x1e4a)
12280 #define P_VIU2_OSD2_BLK3_CFG_W3                    (volatile uint32_t *)((0x1e4a  << 2) + 0xff900000)
12281 // Bit 31:28 Reserved
12282 // Bit 27:16 RW, v_end
12283 // Bit 15:12 Reserved
12284 // Bit 11: 0 RW, v_start
12285 #define   VIU2_OSD2_BLK0_CFG_W4                    (0x1e64)
12286 #define P_VIU2_OSD2_BLK0_CFG_W4                    (volatile uint32_t *)((0x1e64  << 2) + 0xff900000)
12287 #define   VIU2_OSD2_BLK1_CFG_W4                    (0x1e65)
12288 #define P_VIU2_OSD2_BLK1_CFG_W4                    (volatile uint32_t *)((0x1e65  << 2) + 0xff900000)
12289 #define   VIU2_OSD2_BLK2_CFG_W4                    (0x1e66)
12290 #define P_VIU2_OSD2_BLK2_CFG_W4                    (volatile uint32_t *)((0x1e66  << 2) + 0xff900000)
12291 #define   VIU2_OSD2_BLK3_CFG_W4                    (0x1e67)
12292 #define P_VIU2_OSD2_BLK3_CFG_W4                    (volatile uint32_t *)((0x1e67  << 2) + 0xff900000)
12293 // Bit    31 RW, burst_len_sel[2] of [2:0]
12294 // Bit    30 RW, byte_swap: In addition to endian control, further define
12295 //               whether to swap upper and lower byte within a 16-bit mem word.
12296 //               0=No swap; 1=Swap data[15:0] to be {data[7:0], data[15:8]}
12297 // Bit    29 RW, div_swap : swap the 2 64bits words in 128 bit word
12298 // Bit 28:24 RW, fifo_lim : when osd fifo is small than the fifo_lim*16, closed the rq port of osd_rd_mif
12299 // Bit 23:22 RW, fifo_ctrl: 00 : for 1 word in 1 burst , 01 : for  2words in 1burst, 10: for 4words in 1burst, 11: reserved
12300 // Bit 21:20 R,  fifo_st. 0=IDLE, 1=FILL, 2=ABORT
12301 // Bit    19 R,  fifo_overflow
12302 // Bit 18:12 RW, fifo_depth_val, max value=64: set actual fifo depth to fifo_depth_val*8.
12303 // Bit 11:10 RW, burst_len_sel[1:0] of [2:0]. 0=24(default), 1=32, 2=48, 3=64, 4=96, 5=128.
12304 // Bit  9: 5 RW, hold_fifo_lines[4:0]
12305 // Bit     4 RW, clear_err: one pulse to clear fifo_overflow
12306 // Bit     3 RW, fifo_sync_rst
12307 // Bit  2: 1 RW, endian
12308 // Bit     0 RW, urgent
12309 #define   VIU2_OSD2_FIFO_CTRL_STAT                 (0x1e4b)
12310 #define P_VIU2_OSD2_FIFO_CTRL_STAT                 (volatile uint32_t *)((0x1e4b  << 2) + 0xff900000)
12311 // Bit 31:24 R, Y or R
12312 // Bit 23:16 R, Cb or G
12313 // Bit 15: 8 R, Cr or B
12314 // Bit  7: 0 R, Output Alpha[8:1]
12315 #define   VIU2_OSD2_TEST_RDDATA                    (0x1e4c)
12316 #define P_VIU2_OSD2_TEST_RDDATA                    (volatile uint32_t *)((0x1e4c  << 2) + 0xff900000)
12317 // Bit    15 RW, prot_en: 1=Borrow PROT's FIFO storage, either for rotate or non-rotate.
12318 // Bit 12: 0 RW, effective FIFO size when prot_en=1.
12319 #define   VIU2_OSD2_PROT_CTRL                      (0x1e4e)
12320 #define P_VIU2_OSD2_PROT_CTRL                      (volatile uint32_t *)((0x1e4e  << 2) + 0xff900000)
12321 //------------------------------------------------------------------------------
12322 // VD1 path
12323 //------------------------------------------------------------------------------
12324 #define   VIU2_VD1_IF0_GEN_REG                     (0x1e50)
12325 #define P_VIU2_VD1_IF0_GEN_REG                     (volatile uint32_t *)((0x1e50  << 2) + 0xff900000)
12326 #define   VIU2_VD1_IF0_CANVAS0                     (0x1e51)
12327 #define P_VIU2_VD1_IF0_CANVAS0                     (volatile uint32_t *)((0x1e51  << 2) + 0xff900000)
12328 #define   VIU2_VD1_IF0_CANVAS1                     (0x1e52)
12329 #define P_VIU2_VD1_IF0_CANVAS1                     (volatile uint32_t *)((0x1e52  << 2) + 0xff900000)
12330 #define   VIU2_VD1_IF0_LUMA_X0                     (0x1e53)
12331 #define P_VIU2_VD1_IF0_LUMA_X0                     (volatile uint32_t *)((0x1e53  << 2) + 0xff900000)
12332 #define   VIU2_VD1_IF0_LUMA_Y0                     (0x1e54)
12333 #define P_VIU2_VD1_IF0_LUMA_Y0                     (volatile uint32_t *)((0x1e54  << 2) + 0xff900000)
12334 #define   VIU2_VD1_IF0_CHROMA_X0                   (0x1e55)
12335 #define P_VIU2_VD1_IF0_CHROMA_X0                   (volatile uint32_t *)((0x1e55  << 2) + 0xff900000)
12336 #define   VIU2_VD1_IF0_CHROMA_Y0                   (0x1e56)
12337 #define P_VIU2_VD1_IF0_CHROMA_Y0                   (volatile uint32_t *)((0x1e56  << 2) + 0xff900000)
12338 #define   VIU2_VD1_IF0_LUMA_X1                     (0x1e57)
12339 #define P_VIU2_VD1_IF0_LUMA_X1                     (volatile uint32_t *)((0x1e57  << 2) + 0xff900000)
12340 #define   VIU2_VD1_IF0_LUMA_Y1                     (0x1e58)
12341 #define P_VIU2_VD1_IF0_LUMA_Y1                     (volatile uint32_t *)((0x1e58  << 2) + 0xff900000)
12342 #define   VIU2_VD1_IF0_CHROMA_X1                   (0x1e59)
12343 #define P_VIU2_VD1_IF0_CHROMA_X1                   (volatile uint32_t *)((0x1e59  << 2) + 0xff900000)
12344 #define   VIU2_VD1_IF0_CHROMA_Y1                   (0x1e5a)
12345 #define P_VIU2_VD1_IF0_CHROMA_Y1                   (volatile uint32_t *)((0x1e5a  << 2) + 0xff900000)
12346 #define   VIU2_VD1_IF0_RPT_LOOP                    (0x1e5b)
12347 #define P_VIU2_VD1_IF0_RPT_LOOP                    (volatile uint32_t *)((0x1e5b  << 2) + 0xff900000)
12348 #define   VIU2_VD1_IF0_LUMA0_RPT_PAT               (0x1e5c)
12349 #define P_VIU2_VD1_IF0_LUMA0_RPT_PAT               (volatile uint32_t *)((0x1e5c  << 2) + 0xff900000)
12350 #define   VIU2_VD1_IF0_CHROMA0_RPT_PAT             (0x1e5d)
12351 #define P_VIU2_VD1_IF0_CHROMA0_RPT_PAT             (volatile uint32_t *)((0x1e5d  << 2) + 0xff900000)
12352 #define   VIU2_VD1_IF0_LUMA1_RPT_PAT               (0x1e5e)
12353 #define P_VIU2_VD1_IF0_LUMA1_RPT_PAT               (volatile uint32_t *)((0x1e5e  << 2) + 0xff900000)
12354 #define   VIU2_VD1_IF0_CHROMA1_RPT_PAT             (0x1e5f)
12355 #define P_VIU2_VD1_IF0_CHROMA1_RPT_PAT             (volatile uint32_t *)((0x1e5f  << 2) + 0xff900000)
12356 #define   VIU2_VD1_IF0_LUMA_PSEL                   (0x1e60)
12357 #define P_VIU2_VD1_IF0_LUMA_PSEL                   (volatile uint32_t *)((0x1e60  << 2) + 0xff900000)
12358 #define   VIU2_VD1_IF0_CHROMA_PSEL                 (0x1e61)
12359 #define P_VIU2_VD1_IF0_CHROMA_PSEL                 (volatile uint32_t *)((0x1e61  << 2) + 0xff900000)
12360 #define   VIU2_VD1_IF0_DUMMY_PIXEL                 (0x1e62)
12361 #define P_VIU2_VD1_IF0_DUMMY_PIXEL                 (volatile uint32_t *)((0x1e62  << 2) + 0xff900000)
12362 #define   VIU2_VD1_IF0_LUMA_FIFO_SIZE              (0x1e63)
12363 #define P_VIU2_VD1_IF0_LUMA_FIFO_SIZE              (volatile uint32_t *)((0x1e63  << 2) + 0xff900000)
12364 #define   VIU2_VD1_IF0_RANGE_MAP_Y                 (0x1e6a)
12365 #define P_VIU2_VD1_IF0_RANGE_MAP_Y                 (volatile uint32_t *)((0x1e6a  << 2) + 0xff900000)
12366 #define   VIU2_VD1_IF0_RANGE_MAP_CB                (0x1e6b)
12367 #define P_VIU2_VD1_IF0_RANGE_MAP_CB                (volatile uint32_t *)((0x1e6b  << 2) + 0xff900000)
12368 #define   VIU2_VD1_IF0_RANGE_MAP_CR                (0x1e6c)
12369 #define P_VIU2_VD1_IF0_RANGE_MAP_CR                (volatile uint32_t *)((0x1e6c  << 2) + 0xff900000)
12370 #define   VIU2_VD1_IF0_GEN_REG2                    (0x1e6d)
12371 #define P_VIU2_VD1_IF0_GEN_REG2                    (volatile uint32_t *)((0x1e6d  << 2) + 0xff900000)
12372 #define   VIU2_VD1_IF0_PROT_CNTL                   (0x1e6e)
12373 #define P_VIU2_VD1_IF0_PROT_CNTL                   (volatile uint32_t *)((0x1e6e  << 2) + 0xff900000)
12374 #define   VIU2_VD1_IF0_URGENT_CTRL                 (0x1e6f)
12375 #define P_VIU2_VD1_IF0_URGENT_CTRL                 (volatile uint32_t *)((0x1e6f  << 2) + 0xff900000)
12376 //Bit 31    it true, disable clock, otherwise enable clock
12377 //Bit 30    soft rst bit
12378 //Bit 28    if true, horizontal formatter use repeating to generete pixel, otherwise use bilinear interpolation
12379 //Bit 27:24 horizontal formatter initial phase
12380 //Bit 23    horizontal formatter repeat pixel 0 enable
12381 //Bit 22:21 horizontal Y/C ratio, 00: 1:1, 01: 2:1, 10: 4:1
12382 //Bit 20    horizontal formatter enable
12383 //Bit 19    if true, always use phase0 while vertical formater, meaning always
12384 //          repeat data, no interpolation
12385 //Bit 18    if true, disable vertical formatter chroma repeat last line
12386 //Bit 17    veritcal formatter dont need repeat line on phase0, 1: enable, 0: disable
12387 //Bit 16    veritcal formatter repeat line 0 enable
12388 //Bit 15:12 vertical formatter skip line num at the beginning
12389 //Bit 11:8  vertical formatter initial phase
12390 //Bit 7:1   vertical formatter phase step (3.4)
12391 //Bit 0     vertical formatter enable
12392 #define   VIU2_VD1_FMT_CTRL                        (0x1e68)
12393 #define P_VIU2_VD1_FMT_CTRL                        (volatile uint32_t *)((0x1e68  << 2) + 0xff900000)
12394 //Bit 27:16  horizontal formatter width
12395 //Bit 11:0   vertical formatter width
12396 #define   VIU2_VD1_FMT_W                           (0x1e69)
12397 #define P_VIU2_VD1_FMT_W                           (volatile uint32_t *)((0x1e69  << 2) + 0xff900000)
12398 #define   VIU2_VD1_IF0_GEN_REG3                    (0x1e70)
12399 #define P_VIU2_VD1_IF0_GEN_REG3                    (volatile uint32_t *)((0x1e70  << 2) + 0xff900000)
12400 //bit 31:1,  reversed
12401 //bit 0,     cntl_64bit_rev
12402 // synopsys translate_off
12403 // synopsys translate_on
12404 //
12405 // Closing file:  v2regs.h
12406 //
12407 //`define VIUB_VCBUS_BASE                8'h20
12408 //
12409 // Reading file:  vregs_clk1.h
12410 //
12411 //===========================================================================
12412 // Video Interface Registers    0xa00 - 0xaff
12413 //===========================================================================
12414 // -----------------------------------------------
12415 // CBUS_BASE:  VIUB_VCBUS_BASE = 0x20
12416 // -----------------------------------------------
12417 #define   VIUB_ADDR_START                          (0x2000)
12418 #define P_VIUB_ADDR_START                          (volatile uint32_t *)((0x2000  << 2) + 0xff900000)
12419 #define   VIUB_ADDR_END                            (0x20ff)
12420 #define P_VIUB_ADDR_END                            (volatile uint32_t *)((0x20ff  << 2) + 0xff900000)
12421 //`define TRACE_REG 8'ff
12422 //------------------------------------------------------------------------------
12423 // VIU top-level registers
12424 //------------------------------------------------------------------------------
12425 // Bit  0 RW, osd1_reset
12426 // Bit  1 RW, osd2_reset
12427 // Bit  2 RW, vd1_reset
12428 // Bit  3 RW, vd1_fmt_reset
12429 // Bit  4 RW, vd2_reset
12430 // Bit  5 RW, vd2_fmt_reset
12431 // Bit  6 RW, di_dsr1to2_reset
12432 // Bit  7 RW, vpp_reset
12433 // Bit  8 RW, di_if1_reset
12434 // Bit  9 RW, di_if1_fmt_reset
12435 // Bit 10 RW, di_inp_reset
12436 // Bit 11 RW, di_inp_fmt_reset
12437 // Bit 12 RW, di_mem_reset
12438 // Bit 13 RW, di_mem_fmt_reset
12439 // Bit 14 RW, di_nr_wr_mif_reset
12440 // Bit 15 RW, dein_wr_mif_reset
12441 // Bit 16 RW, di_chan2_mif_reset
12442 // Bit 17 RW, di_mtn_wr_mif_reset
12443 // Bit 18 RW, di_mtn_rd_mif_reset
12444 // Bit 19 RW, di_mad_reset
12445 // Bit 20 RW, vdin0_reset
12446 // Bit 21 RW, vdin1_reset
12447 // Bit 22 RW, nrin_mux_reset
12448 // Bit 23 RW, vdin0_wr_reset
12449 // Bit 24 RW, vdin1_wr_reset
12450 // Bit 25 RW, reserved
12451 // Bit 26 RW, d2d3_reset
12452 // Bit 27 RW, di_cont_wr_mif_reset
12453 // Bit 28 RW, di_cont_rd_mif_reset
12454 #define   VIUB_SW_RESET                            (0x2001)
12455 #define P_VIUB_SW_RESET                            (volatile uint32_t *)((0x2001  << 2) + 0xff900000)
12456 #define   VIUB_SW_RESET0                           (0x2002)
12457 #define P_VIUB_SW_RESET0                           (volatile uint32_t *)((0x2002  << 2) + 0xff900000)
12458 // Bit 0 RW, software reset for mcvecrd_mif
12459 // Bit 1 RW, software reset for mcinfowr_mif
12460 // Bit 2 RW, software reset for mcinford_mif
12461 //bit 8 if true, vsync interrup is generate only field == 0
12462 //bit 7:0 fix_disable
12463 #define   VIUB_MISC_CTRL0                          (0x2006)
12464 #define P_VIUB_MISC_CTRL0                          (volatile uint32_t *)((0x2006  << 2) + 0xff900000)
12465 #define   VIUB_GCLK_CTRL0                          (0x2007)
12466 #define P_VIUB_GCLK_CTRL0                          (volatile uint32_t *)((0x2007  << 2) + 0xff900000)
12467 //// gclk_ctrl0_gl[ 0] : def=1 di_top_wrap clk enable
12468 ////
12469 //// gclk_ctrl0_gl[ 8] : def=0 mad pre clock enable, from mad clock
12470 //// gclk_ctrl0_gl[ 9] : def=0 mad post clock enable, from mad clock
12471 //// gclk_ctrl0_gl[10] : def=0 div clock enable, di slow clock including di&mcdi
12472 //// gclk_ctrl0_gl[11] : def=0 mcdi clock enable, from div clock
12473 //// gclk_ctrl0_gl[12] : def=0 di post clock enable, from div clock
12474 //// gclk_ctrl0_gl[13] : def=0 reserved
12475 //// gclk_ctrl0_gl[14] : def=1 di_no_clk_gate, for old di
12476 //// gclk_ctrl0_gl[15] : def=0 di_gate_all, for old di
12477 #define   VIUB_GCLK_CTRL1                          (0x2008)
12478 #define P_VIUB_GCLK_CTRL1                          (volatile uint32_t *)((0x2008  << 2) + 0xff900000)
12479 //// gclk_ctrl1_gl[ 1: 0] : def=2'b00 mif-sub-arb clock gate ctrl [1]: clock valid, [0]: clock close
12480 //// gclk_ctrl1_gl[ 3: 2] : def=2'b00 if1 rdmif clock gate ctrl [1]: clock valid, [0]: clock close
12481 //// gclk_ctrl1_gl[ 5: 4] : def=2'b00 if2 rdmif clock gate ctrl [1]: clock valid, [0]: clock close
12482 //// gclk_ctrl1_gl[ 7: 6] : def=2'b00 de wrmif clock gate ctrl [1]: clock valid, [0]: clock close
12483 //// gclk_ctrl1_gl[ 9: 8] : def=2'b00 mtnrd post mif clock gate ctrl [1]: clock valid, [0]: clock close
12484 //// gclk_ctrl1_gl[11:10] : def=2'b00 mcdi post mif clock gate ctrl [1]: clock valid, [0]: clock close
12485 //// gclk_ctrl1_gl[17:16] : def=2'b00 inp rdmif clock gate ctrl [1]: clock valid, [0]: clock close
12486 //// gclk_ctrl1_gl[19:18] : def=2'b00 mem rdmif clock gate ctrl [1]: clock valid, [0]: clock close
12487 //// gclk_ctrl1_gl[21:20] : def=2'b00 chan rdmif clock gate ctrl [1]: clock valid, [0]: clock close
12488 //// gclk_ctrl1_gl[23:22] : def=2'b00 nr wrmif clock gate ctrl [1]: clock valid, [0]: clock close
12489 //// gclk_ctrl1_gl[25:24] : def=2'b00 mtn mif clock gate ctrl [1]: clock valid, [0]: clock close
12490 //// gclk_ctrl1_gl[27:26] : def=2'b00 mcdi pre mif clock gate ctrl [1]: clock valid, [0]: clock close
12491 ////
12492 #define   VIUB_GCLK_CTRL2                          (0x2009)
12493 #define P_VIUB_GCLK_CTRL2                          (volatile uint32_t *)((0x2009  << 2) + 0xff900000)
12494 //// gclk_ctrl_pre[ 1: 0] : def=2'b00 nr clock gate ctrl [1]: clock valid, [0]: clock close
12495 //// gclk_ctrl_pre[ 3: 2] : def=2'b00 pd clock gate ctrl [1]: clock valid, [0]: clock close
12496 //// gclk_ctrl_pre[ 5: 4] : def=2'b00 mtn det clock gate ctrl [1]: clock valid, [0]: clock close
12497 //// gclk_ctrl_pre[ 7: 6] : def=2'b00 debanding clock gate ctrl [1]: clock valid, [0]: clock close
12498 //// gclk_ctrl_pre[ 9: 8] : def=2'b00 dnr clock gate ctrl [1]: clock valid, [0]: clock close
12499 //// gclk_ctrl_pre[11:10] : def=2'b00 nr&dnr blend clock gate ctrl [1]: clock valid, [0]: clock close
12500 //// gclk_ctrl_pre[13:12] : def=2'b00 mcdi clock gate ctrl [1]: clock valid, [0]: clock close
12501 #define   VIUB_GCLK_CTRL3                          (0x200a)
12502 #define P_VIUB_GCLK_CTRL3                          (volatile uint32_t *)((0x200a  << 2) + 0xff900000)
12503 //// gclk_ctrl_post[ 1: 0] : def=2'b00 di blend clock gate ctrl [1]: clock valid, [0]: clock close
12504 //// gclk_ctrl_post[ 3: 2] : def=2'b00 ei clock gate ctrl [1]: clock valid, [0]: clock close
12505 //// gclk_ctrl_post[ 5: 4] : def=2'b00 ei_0 clock gate ctrl [1]: clock valid, [0]: clock close
12506 #define   DI_IF2_GEN_REG                           (0x2010)
12507 #define P_DI_IF2_GEN_REG                           (volatile uint32_t *)((0x2010  << 2) + 0xff900000)
12508 #define   DI_IF2_CANVAS0                           (0x2011)
12509 #define P_DI_IF2_CANVAS0                           (volatile uint32_t *)((0x2011  << 2) + 0xff900000)
12510 #define   DI_IF2_LUMA_X0                           (0x2012)
12511 #define P_DI_IF2_LUMA_X0                           (volatile uint32_t *)((0x2012  << 2) + 0xff900000)
12512 #define   DI_IF2_LUMA_Y0                           (0x2013)
12513 #define P_DI_IF2_LUMA_Y0                           (volatile uint32_t *)((0x2013  << 2) + 0xff900000)
12514 #define   DI_IF2_CHROMA_X0                         (0x2014)
12515 #define P_DI_IF2_CHROMA_X0                         (volatile uint32_t *)((0x2014  << 2) + 0xff900000)
12516 #define   DI_IF2_CHROMA_Y0                         (0x2015)
12517 #define P_DI_IF2_CHROMA_Y0                         (volatile uint32_t *)((0x2015  << 2) + 0xff900000)
12518 #define   DI_IF2_RPT_LOOP                          (0x2016)
12519 #define P_DI_IF2_RPT_LOOP                          (volatile uint32_t *)((0x2016  << 2) + 0xff900000)
12520 #define   DI_IF2_LUMA0_RPT_PAT                     (0x2017)
12521 #define P_DI_IF2_LUMA0_RPT_PAT                     (volatile uint32_t *)((0x2017  << 2) + 0xff900000)
12522 #define   DI_IF2_CHROMA0_RPT_PAT                   (0x2018)
12523 #define P_DI_IF2_CHROMA0_RPT_PAT                   (volatile uint32_t *)((0x2018  << 2) + 0xff900000)
12524 #define   DI_IF2_DUMMY_PIXEL                       (0x2019)
12525 #define P_DI_IF2_DUMMY_PIXEL                       (volatile uint32_t *)((0x2019  << 2) + 0xff900000)
12526 #define   DI_IF2_LUMA_FIFO_SIZE                    (0x201a)
12527 #define P_DI_IF2_LUMA_FIFO_SIZE                    (volatile uint32_t *)((0x201a  << 2) + 0xff900000)
12528 #define   DI_IF2_RANGE_MAP_Y                       (0x201b)
12529 #define P_DI_IF2_RANGE_MAP_Y                       (volatile uint32_t *)((0x201b  << 2) + 0xff900000)
12530 #define   DI_IF2_RANGE_MAP_CB                      (0x201c)
12531 #define P_DI_IF2_RANGE_MAP_CB                      (volatile uint32_t *)((0x201c  << 2) + 0xff900000)
12532 #define   DI_IF2_RANGE_MAP_CR                      (0x201d)
12533 #define P_DI_IF2_RANGE_MAP_CR                      (volatile uint32_t *)((0x201d  << 2) + 0xff900000)
12534 #define   DI_IF2_GEN_REG2                          (0x201e)
12535 #define P_DI_IF2_GEN_REG2                          (volatile uint32_t *)((0x201e  << 2) + 0xff900000)
12536 #define   DI_IF2_FMT_CTRL                          (0x201f)
12537 #define P_DI_IF2_FMT_CTRL                          (volatile uint32_t *)((0x201f  << 2) + 0xff900000)
12538 #define   DI_IF2_FMT_W                             (0x2020)
12539 #define P_DI_IF2_FMT_W                             (volatile uint32_t *)((0x2020  << 2) + 0xff900000)
12540 #define   DI_IF2_URGENT_CTRL                       (0x2021)
12541 #define P_DI_IF2_URGENT_CTRL                       (volatile uint32_t *)((0x2021  << 2) + 0xff900000)
12542 //bit15, auto enable; bit14, canvas write mode ;7:4, high threshold ;3:0 , low threshold  for di inp chroma path
12543 //bit31, auto enable; bit30, canvas write mode ;23:20, high threshold ;19:16 , low threshold  for di inp luma path
12544 #define   DI_IF2_GEN_REG3                          (0x2022)
12545 #define P_DI_IF2_GEN_REG3                          (volatile uint32_t *)((0x2022  << 2) + 0xff900000)
12546 //bit 31:1,  reversed
12547 //bit 0,     cntl_64bit_rev
12548 #define   DI_IF1_URGENT_CTRL                       (0x20a3)
12549 #define P_DI_IF1_URGENT_CTRL                       (volatile uint32_t *)((0x20a3  << 2) + 0xff900000)
12550 //bit15, auto enable; bit14, canvas write mode ;7:4, high threshold ;3:0 , low threshold  for di inp chroma path
12551 //bit31, auto enable; bit30, canvas write mode ;23:20, high threshold ;19:16 , low threshold  for di inp luma path
12552 #define   DI_INP_URGENT_CTRL                       (0x20a4)
12553 #define P_DI_INP_URGENT_CTRL                       (volatile uint32_t *)((0x20a4  << 2) + 0xff900000)
12554 //bit15, auto enable; bit14, canvas write mode ;7:4, high threshold ;3:0 , low threshold  for di mem chroma path
12555 //bit31, auto enable; bit30, canvas write mode ;23:20, high threshold ;19:16 , low threshold  for di mem luma path
12556 #define   DI_MEM_URGENT_CTRL                       (0x20a5)
12557 #define P_DI_MEM_URGENT_CTRL                       (volatile uint32_t *)((0x20a5  << 2) + 0xff900000)
12558 //bit15, auto enable; bit14, canvas write mode ;7:4, high threshold ;3:0 , low threshold  for di chan2 chroma path
12559 //bit31, auto enable; bit30, canvas write mode ;23:20, high threshold ;19:16 , low threshold  for di chan2 luma path
12560 #define   DI_CHAN2_URGENT_CTRL                     (0x20a6)
12561 #define P_DI_CHAN2_URGENT_CTRL                     (volatile uint32_t *)((0x20a6  << 2) + 0xff900000)
12562 #define   DI_IF1_GEN_REG3                          (0x20a7)
12563 #define P_DI_IF1_GEN_REG3                          (volatile uint32_t *)((0x20a7  << 2) + 0xff900000)
12564 //bit 31:1,  reversed
12565 //bit 0,     cntl_64bit_rev
12566 #define   DI_INP_GEN_REG3                          (0x20a8)
12567 #define P_DI_INP_GEN_REG3                          (volatile uint32_t *)((0x20a8  << 2) + 0xff900000)
12568 //bit 31:1,  reversed
12569 //bit 0,     cntl_64bit_rev
12570 #define   DI_MEM_GEN_REG3                          (0x20a9)
12571 #define P_DI_MEM_GEN_REG3                          (volatile uint32_t *)((0x20a9  << 2) + 0xff900000)
12572 //bit 31:1,  reversed
12573 //bit 0,     cntl_64bit_rev
12574 #define   DI_CHAN2_GEN_REG3                        (0x20aa)
12575 #define P_DI_CHAN2_GEN_REG3                        (volatile uint32_t *)((0x20aa  << 2) + 0xff900000)
12576 //bit 31:1,  reversed
12577 //bit 0,     cntl_64bit_rev
12578 //
12579 // Closing file:  vregs_clk1.h
12580 //
12581 //======================================================================
12582 //   vpu  register.
12583 //======================================================================
12584 // -----------------------------------------------
12585 // CBUS_BASE:  VPU_VCBUS_BASE = 0x27
12586 // -----------------------------------------------
12587 #define   VPU_OSD1_MMC_CTRL                        (0x2701)
12588 #define P_VPU_OSD1_MMC_CTRL                        (volatile uint32_t *)((0x2701  << 2) + 0xff900000)
12589 #define   VPU_OSD2_MMC_CTRL                        (0x2702)
12590 #define P_VPU_OSD2_MMC_CTRL                        (volatile uint32_t *)((0x2702  << 2) + 0xff900000)
12591 #define   VPU_VD1_MMC_CTRL                         (0x2703)
12592 #define P_VPU_VD1_MMC_CTRL                         (volatile uint32_t *)((0x2703  << 2) + 0xff900000)
12593 #define   VPU_VD2_MMC_CTRL                         (0x2704)
12594 #define P_VPU_VD2_MMC_CTRL                         (volatile uint32_t *)((0x2704  << 2) + 0xff900000)
12595 #define   VPU_DI_IF1_MMC_CTRL                      (0x2705)
12596 #define P_VPU_DI_IF1_MMC_CTRL                      (volatile uint32_t *)((0x2705  << 2) + 0xff900000)
12597 #define   VPU_DI_MEM_MMC_CTRL                      (0x2706)
12598 #define P_VPU_DI_MEM_MMC_CTRL                      (volatile uint32_t *)((0x2706  << 2) + 0xff900000)
12599 #define   VPU_DI_INP_MMC_CTRL                      (0x2707)
12600 #define P_VPU_DI_INP_MMC_CTRL                      (volatile uint32_t *)((0x2707  << 2) + 0xff900000)
12601 #define   VPU_DI_MTNRD_MMC_CTRL                    (0x2708)
12602 #define P_VPU_DI_MTNRD_MMC_CTRL                    (volatile uint32_t *)((0x2708  << 2) + 0xff900000)
12603 #define   VPU_DI_CHAN2_MMC_CTRL                    (0x2709)
12604 #define P_VPU_DI_CHAN2_MMC_CTRL                    (volatile uint32_t *)((0x2709  << 2) + 0xff900000)
12605 #define   VPU_DI_MTNWR_MMC_CTRL                    (0x270a)
12606 #define P_VPU_DI_MTNWR_MMC_CTRL                    (volatile uint32_t *)((0x270a  << 2) + 0xff900000)
12607 #define   VPU_DI_NRWR_MMC_CTRL                     (0x270b)
12608 #define P_VPU_DI_NRWR_MMC_CTRL                     (volatile uint32_t *)((0x270b  << 2) + 0xff900000)
12609 #define   VPU_DI_DIWR_MMC_CTRL                     (0x270c)
12610 #define P_VPU_DI_DIWR_MMC_CTRL                     (volatile uint32_t *)((0x270c  << 2) + 0xff900000)
12611 #define   VPU_VDIN0_MMC_CTRL                       (0x270d)
12612 #define P_VPU_VDIN0_MMC_CTRL                       (volatile uint32_t *)((0x270d  << 2) + 0xff900000)
12613 #define   VPU_VDIN1_MMC_CTRL                       (0x270e)
12614 #define P_VPU_VDIN1_MMC_CTRL                       (volatile uint32_t *)((0x270e  << 2) + 0xff900000)
12615 #define   VPU_BT656_MMC_CTRL                       (0x270f)
12616 #define P_VPU_BT656_MMC_CTRL                       (volatile uint32_t *)((0x270f  << 2) + 0xff900000)
12617 #define   VPU_TVD3D_MMC_CTRL                       (0x2710)
12618 #define P_VPU_TVD3D_MMC_CTRL                       (volatile uint32_t *)((0x2710  << 2) + 0xff900000)
12619 #define   VPU_TVDVBI_MMC_CTRL                      (0x2711)
12620 #define P_VPU_TVDVBI_MMC_CTRL                      (volatile uint32_t *)((0x2711  << 2) + 0xff900000)
12621 //Read only
12622 //`define     VPU_TVDVBI_VSLATCH_ADDR   8'h12
12623 //Read only
12624 //`define     VPU_TVDVBI_WRRSP_ADDR 8'h13
12625 #define   VPU_VDIN_PRE_ARB_CTRL                    (0x2714)
12626 #define P_VPU_VDIN_PRE_ARB_CTRL                    (volatile uint32_t *)((0x2714  << 2) + 0xff900000)
12627 #define   VPU_VDISP_PRE_ARB_CTRL                   (0x2715)
12628 #define P_VPU_VDISP_PRE_ARB_CTRL                   (volatile uint32_t *)((0x2715  << 2) + 0xff900000)
12629 #define   VPU_VPUARB2_PRE_ARB_CTRL                 (0x2716)
12630 #define P_VPU_VPUARB2_PRE_ARB_CTRL                 (volatile uint32_t *)((0x2716  << 2) + 0xff900000)
12631 #define   VPU_OSD3_MMC_CTRL                        (0x2717)
12632 #define P_VPU_OSD3_MMC_CTRL                        (volatile uint32_t *)((0x2717  << 2) + 0xff900000)
12633 #define   VPU_OSD4_MMC_CTRL                        (0x2718)
12634 #define P_VPU_OSD4_MMC_CTRL                        (volatile uint32_t *)((0x2718  << 2) + 0xff900000)
12635 #define   VPU_VD3_MMC_CTRL                         (0x2719)
12636 #define P_VPU_VD3_MMC_CTRL                         (volatile uint32_t *)((0x2719  << 2) + 0xff900000)
12637 // [31:11] Reserved.
12638 // [10: 8] cntl_viu_vdin_sel_data. Select VIU to VDIN data path, must clear it first before changing the path selection:
12639 //          3'b000=Disable VIU to VDIN path;
12640 //          3'b001=Enable VIU of ENC_I domain to VDIN;
12641 //          3'b010=Enable VIU of ENC_P domain to VDIN;
12642 //          3'b100=Enable VIU of ENC_T domain to VDIN;
12643 // [ 6: 4] cntl_viu_vdin_sel_clk. Select which clock to VDIN path, must clear it first before changing the clock:
12644 //          3'b000=Disable VIU to VDIN clock;
12645 //          3'b001=Select encI clock to VDIN;
12646 //          3'b010=Select encP clock to VDIN;
12647 //          3'b100=Select encT clock to VDIN;
12648 // [ 3: 2] cntl_viu2_sel_venc. Select which one of the encI/P/T that VIU2 connects to:
12649 //         0=No connection, 1=ENCI, 2=ENCP, 3=ENCT.
12650 // [ 1: 0] cntl_viu1_sel_venc. Select which one of the encI/P/T that VIU1 connects to:
12651 //         0=No connection, 1=ENCI, 2=ENCP, 3=ENCT.
12652 #define   VPU_VIU_VENC_MUX_CTRL                    (0x271a)
12653 #define P_VPU_VIU_VENC_MUX_CTRL                    (volatile uint32_t *)((0x271a  << 2) + 0xff900000)
12654 // [15:12] rd_rate. 0=A read every clk2; 1=A read every 2 clk2; ...; 15=A read every 16 clk2.
12655 // [11: 8] wr_rate. 0=A write every clk1; 1=A write every 2 clk1; ...; 15=A write every 16 clk1.
12656 // [ 7: 5] data_comp_map. Input data is CrYCb(BRG), map the output data to desired format:
12657 //                          0=output CrYCb(BRG);
12658 //                          1=output YCbCr(RGB);
12659 //                          2=output YCrCb(RBG);
12660 //                          3=output CbCrY(GBR);
12661 //                          4=output CbYCr(GRB);
12662 //                          5=output CrCbY(BGR);
12663 //                          6,7=Rsrv.
12664 // [    4] inv_dvi_clk. 1=Invert clock to external DVI, (clock invertion exists at internal HDMI).
12665 // [    3] inv_vsync. 1=Invert Vsync polarity.
12666 // [    2] inv_hsync. 1=Invert Hsync polarity.
12667 // [ 1: 0] src_sel. 0=Disable output to HDMI; 1=Select VENC_I output to HDMI; 2=Select VENC_P output.
12668 #define   VPU_HDMI_SETTING                         (0x271b)
12669 #define P_VPU_HDMI_SETTING                         (volatile uint32_t *)((0x271b  << 2) + 0xff900000)
12670 #define   ENCI_INFO_READ                           (0x271c)
12671 #define P_ENCI_INFO_READ                           (volatile uint32_t *)((0x271c  << 2) + 0xff900000)
12672 #define   ENCP_INFO_READ                           (0x271d)
12673 #define P_ENCP_INFO_READ                           (volatile uint32_t *)((0x271d  << 2) + 0xff900000)
12674 #define   ENCT_INFO_READ                           (0x271e)
12675 #define P_ENCT_INFO_READ                           (volatile uint32_t *)((0x271e  << 2) + 0xff900000)
12676 #define   ENCL_INFO_READ                           (0x271f)
12677 #define P_ENCL_INFO_READ                           (volatile uint32_t *)((0x271f  << 2) + 0xff900000)
12678 // Bit  0 RW, viu_rst_n
12679 // Bit  1 RW, vdin_mmc_arb_rst_n
12680 // Bit  2 RW, vdisp_mmc_arb_rst_n
12681 // Bit  3 RW, vpuarb2_mmc_arb_rst_n
12682 #define   VPU_SW_RESET                             (0x2720)
12683 #define P_VPU_SW_RESET                             (volatile uint32_t *)((0x2720  << 2) + 0xff900000)
12684 //Bit 30     d2d3_depr_req_sel,  0:vdisp_pre_arb, 1: vpuarb2_pre_arb
12685 //Bit 27:22  d2d3_depr_brst_num
12686 //Bit 21:16  d2d3_depr_id
12687 //Bit 14     d2d3_depw_req_sel, 0: vdin_pre_arb, 1: vdisp_pre_arb
12688 //Bit 11:6   d2d3_depw_brst_num
12689 //Bit 5:0    d2d3_depw_id
12690 #define   VPU_D2D3_MMC_CTRL                        (0x2721)
12691 #define P_VPU_D2D3_MMC_CTRL                        (volatile uint32_t *)((0x2721  << 2) + 0xff900000)
12692 //Bit 30     mtn_contrd_req_pre,  0:disp1_arb, 1: vdin_pre_arb
12693 //Bit 27:22  mtn_contrd_brst_num
12694 //Bit 21:16  mtn_contrd_id
12695 //Bit 14     mtn_contwr_req_pre, 0: vdisp1_arb, 1: vdin_pre_arb
12696 //Bit 11:6   mtn_contwr_brst_num
12697 //Bit 5:0    mtn_contwr_id
12698 #define   VPU_CONT_MMC_CTRL                        (0x2722)
12699 #define P_VPU_CONT_MMC_CTRL                        (volatile uint32_t *)((0x2722  << 2) + 0xff900000)
12700 // Bit  6 RW, gclk_mpeg_vpu_misc
12701 // Bit  5 RW, gclk_mpeg_venc_l_top
12702 // Bit  4 RW, gclk_mpeg_vencl_int
12703 // Bit  3 RW, gclk_mpeg_vencp_int
12704 // Bit  2 RW, gclk_mpeg_vi2_top
12705 // Bit  1 RW, gclk_mpeg_vi_top
12706 // Bit  0 RW, gclk_mpeg_venc_p_top
12707 #define   VPU_CLK_GATE                             (0x2723)
12708 #define P_VPU_CLK_GATE                             (volatile uint32_t *)((0x2723  << 2) + 0xff900000)
12709 //Bit    12 RW, rdma_pre
12710 //Bit 11: 6 RW, rdma_num
12711 //Bit  5: 0 RW, rdma_id
12712 #define   VPU_RDMA_MMC_CTRL                        (0x2724)
12713 #define P_VPU_RDMA_MMC_CTRL                        (volatile uint32_t *)((0x2724  << 2) + 0xff900000)
12714 #define   VPU_MEM_PD_REG0                          (0x2725)
12715 #define P_VPU_MEM_PD_REG0                          (volatile uint32_t *)((0x2725  << 2) + 0xff900000)
12716 #define   VPU_MEM_PD_REG1                          (0x2726)
12717 #define P_VPU_MEM_PD_REG1                          (volatile uint32_t *)((0x2726  << 2) + 0xff900000)
12718 // [   31] hdmi_data_ovr_en: 1=Enable overriding data input to HDMI TX with hdmi_data_ovr[29:0]. 0=No override. Default 0.
12719 // [   30] Reserved.                                                                                            Default 0
12720 // [29: 0] hdmi_data_ovr.                                                                                       Default 0.
12721 #define   VPU_HDMI_DATA_OVR                        (0x2727)
12722 #define P_VPU_HDMI_DATA_OVR                        (volatile uint32_t *)((0x2727  << 2) + 0xff900000)
12723 //Bit    15 RW, prot1_sel_osd4
12724 //Bit    14 RW, prot1_sel_osd3
12725 //Bit    13 RW, prot1_sel_osd2
12726 //Bit    12 RW, prot1_sel_osd1
12727 //Bit 11: 6 RW, prot1_brst_num
12728 //Bit  5: 0 RW, prot1_id
12729 #define   VPU_PROT1_MMC_CTRL                       (0x2728)
12730 #define P_VPU_PROT1_MMC_CTRL                       (volatile uint32_t *)((0x2728  << 2) + 0xff900000)
12731 //Bit    14 RW, prot2_sel_vd3
12732 //Bit    13 RW, prot2_sel_vd2
12733 //Bit    12 RW, prot2_sel_vd1
12734 //Bit 11: 6 RW, prot2_brst_num
12735 //Bit  5: 0 RW, prot2_id
12736 #define   VPU_PROT2_MMC_CTRL                       (0x2729)
12737 #define P_VPU_PROT2_MMC_CTRL                       (volatile uint32_t *)((0x2729  << 2) + 0xff900000)
12738 //Bit    14 RW, prot3_sel_vd3
12739 //Bit    13 RW, prot3_sel_vd2
12740 //Bit    12 RW, prot3_sel_vd1
12741 //Bit 11: 6 RW, prot3_brst_num
12742 //Bit  5: 0 RW, prot3_id
12743 #define   VPU_PROT3_MMC_CTRL                       (0x272a)
12744 #define P_VPU_PROT3_MMC_CTRL                       (volatile uint32_t *)((0x272a  << 2) + 0xff900000)
12745 //Bit 29:24 RW, s3_brst_num
12746 //Bit 21:16 RW, s2_brst_num
12747 //Bit 13: 8 RW, s1_brst_num
12748 //Bit  5: 0 RW, s0_brst_num
12749 #define   VPU_ARB4_V1_MMC_CTRL                     (0x272b)
12750 #define P_VPU_ARB4_V1_MMC_CTRL                     (volatile uint32_t *)((0x272b  << 2) + 0xff900000)
12751 //Bit 29:24 RW, s3_brst_num
12752 //Bit 21:16 RW, s2_brst_num
12753 //Bit 13: 8 RW, s1_brst_num
12754 //Bit  5: 0 RW, s0_brst_num
12755 #define   VPU_ARB4_V2_MMC_CTRL                     (0x272c)
12756 #define P_VPU_ARB4_V2_MMC_CTRL                     (volatile uint32_t *)((0x272c  << 2) + 0xff900000)
12757 //Bit 27:22 RW, mcvecwr_num
12758 //Bit 21:16 RW, mcvecwr_id
12759 //Bit 11:6  RW, mcvecrd_num
12760 //Bit 5:0   RW, mcvecrd_id
12761 #define   VPU_MCVEC_MMC_CTRL                       (0x272d)
12762 #define P_VPU_MCVEC_MMC_CTRL                       (volatile uint32_t *)((0x272d  << 2) + 0xff900000)
12763 //Bit 27:22 RW, mcinfwr_num
12764 //Bit 21:16 RW, mcinfwr_id
12765 //Bit 11:6  RW, mcinfrd_num
12766 //Bit 5:0   RW, mcinfrd_id
12767 #define   VPU_MCINF_MMC_CTRL                       (0x272e)
12768 #define P_VPU_MCINF_MMC_CTRL                       (volatile uint32_t *)((0x272e  << 2) + 0xff900000)
12769 //Bit 31    reg_vpu_pwm_inv, 1: invert the pwm signal, active low
12770 //Bit 30:29 reg_vpu_pwm_src_sel, 00: encl, enct, encp
12771 //Bit 28:16 reg_vpu_pwm_v_end0
12772 //Bit 12:0  reg_vpu_pwm_v_start0
12773 #define   VPU_VPU_PWM_V0                           (0x2730)
12774 #define P_VPU_VPU_PWM_V0                           (volatile uint32_t *)((0x2730  << 2) + 0xff900000)
12775 //Bit 28:16 reg_vpu_pwm_v_end1
12776 //Bit 12:0  reg_vpu_pwm_v_start1
12777 #define   VPU_VPU_PWM_V1                           (0x2731)
12778 #define P_VPU_VPU_PWM_V1                           (volatile uint32_t *)((0x2731  << 2) + 0xff900000)
12779 //Bit 28:16 reg_vpu_pwm_v_end2
12780 //Bit 12:0  reg_vpu_pwm_v_start2
12781 #define   VPU_VPU_PWM_V2                           (0x2732)
12782 #define P_VPU_VPU_PWM_V2                           (volatile uint32_t *)((0x2732  << 2) + 0xff900000)
12783 //Bit 28:16 reg_vpu_pwm_v_end3
12784 //Bit 12:0  reg_vpu_pwm_v_start3
12785 #define   VPU_VPU_PWM_V3                           (0x2733)
12786 #define P_VPU_VPU_PWM_V3                           (volatile uint32_t *)((0x2733  << 2) + 0xff900000)
12787 //Bit 28:16 reg_vpu_pwm_h_end0
12788 //Bit 12:0  reg_vpu_pwm_h_start0
12789 #define   VPU_VPU_PWM_H0                           (0x2734)
12790 #define P_VPU_VPU_PWM_H0                           (volatile uint32_t *)((0x2734  << 2) + 0xff900000)
12791 //Bit 28:16 reg_vpu_pwm_h_end1
12792 //Bit 12:0  reg_vpu_pwm_h_start1
12793 #define   VPU_VPU_PWM_H1                           (0x2735)
12794 #define P_VPU_VPU_PWM_H1                           (volatile uint32_t *)((0x2735  << 2) + 0xff900000)
12795 //Bit 28:16 reg_vpu_pwm_h_end2
12796 //Bit 12:0  reg_vpu_pwm_h_start2
12797 #define   VPU_VPU_PWM_H2                           (0x2736)
12798 #define P_VPU_VPU_PWM_H2                           (volatile uint32_t *)((0x2736  << 2) + 0xff900000)
12799 //Bit 28:16 reg_vpu_pwm_h_end3
12800 //Bit 12:0  reg_vpu_pwm_h_start3
12801 #define   VPU_VPU_PWM_H3                           (0x2737)
12802 #define P_VPU_VPU_PWM_H3                           (volatile uint32_t *)((0x2737  << 2) + 0xff900000)
12803 //Bit 18   reg_vpu_3d_go_high_fld_pol: 0: go high at field 0, 1: go high at field 1
12804 //Bit 17   reg_vpu_3d_sync_setting_vsync_latch
12805 //Bit 16   reg_vpu_3d_sync_enable
12806 //Bit 14:8 reg_vpu_3d_sync_v_end
12807 //Bit 6:0  reg_vpu_3d_sync_v_start
12808 #define   VPU_VPU_3D_SYNC1                         (0x2738)
12809 #define P_VPU_VPU_3D_SYNC1                         (volatile uint32_t *)((0x2738  << 2) + 0xff900000)
12810 //Bit 28:16 reg_vpu_3d_sync_h_end
12811 //Bit 12:0  reg_vpu_3d_sync_h_start
12812 #define   VPU_VPU_3D_SYNC2                         (0x2739)
12813 #define P_VPU_VPU_3D_SYNC2                         (volatile uint32_t *)((0x2739  << 2) + 0xff900000)
12814 //Bit 0,   if true, force vencl clk enable, otherwise, it might auto turn off by mipi DSI
12815 #define   VPU_MISC_CTRL                            (0x2740)
12816 #define P_VPU_MISC_CTRL                            (volatile uint32_t *)((0x2740  << 2) + 0xff900000)
12817 #define   VPU_ISP_GCLK_CTRL0                       (0x2741)
12818 #define P_VPU_ISP_GCLK_CTRL0                       (volatile uint32_t *)((0x2741  << 2) + 0xff900000)
12819 #define   VPU_ISP_GCLK_CTRL1                       (0x2742)
12820 #define P_VPU_ISP_GCLK_CTRL1                       (volatile uint32_t *)((0x2742  << 2) + 0xff900000)
12821 #define   VPU_HDMI_FMT_CTRL                        (0x2743)
12822 #define P_VPU_HDMI_FMT_CTRL                        (volatile uint32_t *)((0x2743  << 2) + 0xff900000)
12823 #define   VPU_VDIN_ASYNC_HOLD_CTRL                 (0x2744)
12824 #define P_VPU_VDIN_ASYNC_HOLD_CTRL                 (volatile uint32_t *)((0x2744  << 2) + 0xff900000)
12825 #define   VPU_VDISP_ASYNC_HOLD_CTRL                (0x2745)
12826 #define P_VPU_VDISP_ASYNC_HOLD_CTRL                (volatile uint32_t *)((0x2745  << 2) + 0xff900000)
12827 #define   VPU_VPUARB2_ASYNC_HOLD_CTRL              (0x2746)
12828 #define P_VPU_VPUARB2_ASYNC_HOLD_CTRL              (volatile uint32_t *)((0x2746  << 2) + 0xff900000)
12829 //    arb0_rd_urg_ctrl_o <=  vpp_off_urg_ctrl &  vpu_arb_urg_ctrl[0] |
12830 //                        rdma_ddr_req_busy_sync_d1 & vpu_arb_urg_ctrl[1]
12831 //                        ;
12832 //
12833 //    arb1_rd_urg_ctrl_o <=  vpp_off_urg_ctrl &  vpu_arb_urg_ctrl[2] |
12834 //                        rdma_ddr_req_busy_sync_d1 & vpu_arb_urg_ctrl[3]
12835 //                        ;
12836 //
12837 //    arb2_rd_urg_ctrl_o <=  vpp_off_urg_ctrl &  vpu_arb_urg_ctrl[4] |
12838 //                        rdma_ddr_req_busy_sync_d1 & vpu_arb_urg_ctrl[5]
12839 //                        ;
12840 //
12841 //    arb0_wr_urg_ctrl_o <=  vdin0_lff_urg_ctrl_sync_d1 & vpu_arb_urg_ctrl[6] |
12842 //                        vdin1_lff_urg_ctrl_sync_d1 & vpu_arb_urg_ctrl[7]
12843 //                        ;
12844 //
12845 //    arb1_wr_urg_ctrl_o <=  vdin0_lff_urg_ctrl_sync_d1 & vpu_arb_urg_ctrl[8] |
12846 //                        vdin1_lff_urg_ctrl_sync_d1 & vpu_arb_urg_ctrl[9]
12847 //
12848 #define   VPU_ARB_URG_CTRL                         (0x2747)
12849 #define P_VPU_ARB_URG_CTRL                         (volatile uint32_t *)((0x2747  << 2) + 0xff900000)
12850 #define   VPU_SECURE_DUMMY                         (0x2748)
12851 #define P_VPU_SECURE_DUMMY                         (volatile uint32_t *)((0x2748  << 2) + 0xff900000)
12852 #define   VPU_VENCL_DITH_EN                        (0x2749)
12853 #define P_VPU_VENCL_DITH_EN                        (volatile uint32_t *)((0x2749  << 2) + 0xff900000)
12854 // todo :
12855 #define   VPU_422TO444_RST                         (0x274a)
12856 #define P_VPU_422TO444_RST                         (volatile uint32_t *)((0x274a  << 2) + 0xff900000)
12857 // todo :
12858 #define   VPU_422TO444_CTRL0                       (0x274b)
12859 #define P_VPU_422TO444_CTRL0                       (volatile uint32_t *)((0x274b  << 2) + 0xff900000)
12860 // todo :
12861 #define   VPU_422TO444_CTRL1                       (0x274c)
12862 #define P_VPU_422TO444_CTRL1                       (volatile uint32_t *)((0x274c  << 2) + 0xff900000)
12863 // todo :
12864 // Picture Rotate (PROT) module 1 (for OSD) registers:
12865 #define   VPU_PROT1_CLK_GATE                       (0x2750)
12866 #define P_VPU_PROT1_CLK_GATE                       (volatile uint32_t *)((0x2750  << 2) + 0xff900000)
12867 #define   VPU_PROT1_GEN_CNTL                       (0x2751)
12868 #define P_VPU_PROT1_GEN_CNTL                       (volatile uint32_t *)((0x2751  << 2) + 0xff900000)
12869 #define   VPU_PROT1_X_START_END                    (0x2752)
12870 #define P_VPU_PROT1_X_START_END                    (volatile uint32_t *)((0x2752  << 2) + 0xff900000)
12871 #define   VPU_PROT1_Y_START_END                    (0x2753)
12872 #define P_VPU_PROT1_Y_START_END                    (volatile uint32_t *)((0x2753  << 2) + 0xff900000)
12873 #define   VPU_PROT1_Y_LEN_STEP                     (0x2754)
12874 #define P_VPU_PROT1_Y_LEN_STEP                     (volatile uint32_t *)((0x2754  << 2) + 0xff900000)
12875 #define   VPU_PROT1_RPT_LOOP                       (0x2755)
12876 #define P_VPU_PROT1_RPT_LOOP                       (volatile uint32_t *)((0x2755  << 2) + 0xff900000)
12877 #define   VPU_PROT1_RPT_PAT                        (0x2756)
12878 #define P_VPU_PROT1_RPT_PAT                        (volatile uint32_t *)((0x2756  << 2) + 0xff900000)
12879 #define   VPU_PROT1_DDR                            (0x2757)
12880 #define P_VPU_PROT1_DDR                            (volatile uint32_t *)((0x2757  << 2) + 0xff900000)
12881 #define   VPU_PROT1_RBUF_ROOM                      (0x2758)
12882 #define P_VPU_PROT1_RBUF_ROOM                      (volatile uint32_t *)((0x2758  << 2) + 0xff900000)
12883 #define   VPU_PROT1_STAT_0                         (0x2759)
12884 #define P_VPU_PROT1_STAT_0                         (volatile uint32_t *)((0x2759  << 2) + 0xff900000)
12885 #define   VPU_PROT1_STAT_1                         (0x275a)
12886 #define P_VPU_PROT1_STAT_1                         (volatile uint32_t *)((0x275a  << 2) + 0xff900000)
12887 #define   VPU_PROT1_STAT_2                         (0x275b)
12888 #define P_VPU_PROT1_STAT_2                         (volatile uint32_t *)((0x275b  << 2) + 0xff900000)
12889 #define   VPU_PROT1_REQ_ONOFF                      (0x275c)
12890 #define P_VPU_PROT1_REQ_ONOFF                      (volatile uint32_t *)((0x275c  << 2) + 0xff900000)
12891 // Picture Rotate (PROT) module 2 (for VD) registers:
12892 #define   VPU_PROT2_CLK_GATE                       (0x2760)
12893 #define P_VPU_PROT2_CLK_GATE                       (volatile uint32_t *)((0x2760  << 2) + 0xff900000)
12894 #define   VPU_PROT2_GEN_CNTL                       (0x2761)
12895 #define P_VPU_PROT2_GEN_CNTL                       (volatile uint32_t *)((0x2761  << 2) + 0xff900000)
12896 #define   VPU_PROT2_X_START_END                    (0x2762)
12897 #define P_VPU_PROT2_X_START_END                    (volatile uint32_t *)((0x2762  << 2) + 0xff900000)
12898 #define   VPU_PROT2_Y_START_END                    (0x2763)
12899 #define P_VPU_PROT2_Y_START_END                    (volatile uint32_t *)((0x2763  << 2) + 0xff900000)
12900 #define   VPU_PROT2_Y_LEN_STEP                     (0x2764)
12901 #define P_VPU_PROT2_Y_LEN_STEP                     (volatile uint32_t *)((0x2764  << 2) + 0xff900000)
12902 #define   VPU_PROT2_RPT_LOOP                       (0x2765)
12903 #define P_VPU_PROT2_RPT_LOOP                       (volatile uint32_t *)((0x2765  << 2) + 0xff900000)
12904 #define   VPU_PROT2_RPT_PAT                        (0x2766)
12905 #define P_VPU_PROT2_RPT_PAT                        (volatile uint32_t *)((0x2766  << 2) + 0xff900000)
12906 #define   VPU_PROT2_DDR                            (0x2767)
12907 #define P_VPU_PROT2_DDR                            (volatile uint32_t *)((0x2767  << 2) + 0xff900000)
12908 #define   VPU_PROT2_RBUF_ROOM                      (0x2768)
12909 #define P_VPU_PROT2_RBUF_ROOM                      (volatile uint32_t *)((0x2768  << 2) + 0xff900000)
12910 #define   VPU_PROT2_STAT_0                         (0x2769)
12911 #define P_VPU_PROT2_STAT_0                         (volatile uint32_t *)((0x2769  << 2) + 0xff900000)
12912 #define   VPU_PROT2_STAT_1                         (0x276a)
12913 #define P_VPU_PROT2_STAT_1                         (volatile uint32_t *)((0x276a  << 2) + 0xff900000)
12914 #define   VPU_PROT2_STAT_2                         (0x276b)
12915 #define P_VPU_PROT2_STAT_2                         (volatile uint32_t *)((0x276b  << 2) + 0xff900000)
12916 #define   VPU_PROT2_REQ_ONOFF                      (0x276c)
12917 #define P_VPU_PROT2_REQ_ONOFF                      (volatile uint32_t *)((0x276c  << 2) + 0xff900000)
12918 // Picture Rotate (PROT) module 3 (for VD) registers:
12919 #define   VPU_PROT3_CLK_GATE                       (0x2770)
12920 #define P_VPU_PROT3_CLK_GATE                       (volatile uint32_t *)((0x2770  << 2) + 0xff900000)
12921 #define   VPU_PROT3_GEN_CNTL                       (0x2771)
12922 #define P_VPU_PROT3_GEN_CNTL                       (volatile uint32_t *)((0x2771  << 2) + 0xff900000)
12923 #define   VPU_PROT3_X_START_END                    (0x2772)
12924 #define P_VPU_PROT3_X_START_END                    (volatile uint32_t *)((0x2772  << 2) + 0xff900000)
12925 #define   VPU_PROT3_Y_START_END                    (0x2773)
12926 #define P_VPU_PROT3_Y_START_END                    (volatile uint32_t *)((0x2773  << 2) + 0xff900000)
12927 #define   VPU_PROT3_Y_LEN_STEP                     (0x2774)
12928 #define P_VPU_PROT3_Y_LEN_STEP                     (volatile uint32_t *)((0x2774  << 2) + 0xff900000)
12929 #define   VPU_PROT3_RPT_LOOP                       (0x2775)
12930 #define P_VPU_PROT3_RPT_LOOP                       (volatile uint32_t *)((0x2775  << 2) + 0xff900000)
12931 #define   VPU_PROT3_RPT_PAT                        (0x2776)
12932 #define P_VPU_PROT3_RPT_PAT                        (volatile uint32_t *)((0x2776  << 2) + 0xff900000)
12933 #define   VPU_PROT3_DDR                            (0x2777)
12934 #define P_VPU_PROT3_DDR                            (volatile uint32_t *)((0x2777  << 2) + 0xff900000)
12935 #define   VPU_PROT3_RBUF_ROOM                      (0x2778)
12936 #define P_VPU_PROT3_RBUF_ROOM                      (volatile uint32_t *)((0x2778  << 2) + 0xff900000)
12937 #define   VPU_PROT3_STAT_0                         (0x2779)
12938 #define P_VPU_PROT3_STAT_0                         (volatile uint32_t *)((0x2779  << 2) + 0xff900000)
12939 #define   VPU_PROT3_STAT_1                         (0x277a)
12940 #define P_VPU_PROT3_STAT_1                         (volatile uint32_t *)((0x277a  << 2) + 0xff900000)
12941 #define   VPU_PROT3_STAT_2                         (0x277b)
12942 #define P_VPU_PROT3_STAT_2                         (volatile uint32_t *)((0x277b  << 2) + 0xff900000)
12943 #define   VPU_PROT3_REQ_ONOFF                      (0x277c)
12944 #define P_VPU_PROT3_REQ_ONOFF                      (volatile uint32_t *)((0x277c  << 2) + 0xff900000)
12945 //Bit 20    reg_viu2vdin_sw_reset:   software reset
12946 //Bit 19:18 reg_viu2vdin_dn_ratio:   down-scale ratio; 0: no scale; 1: 1/2;  2:1/4; 3: reserved
12947 //Bit 17:16 reg_viu2vdin_flt_mode:   filter mode; 0: no filter; 1:[0 2 2 0]/4; 2:[1 1 1 1]/4; 3:[1 3 3 1]/8
12948 //Bit 15:14 reversed
12949 //Bit 13:0  reg_viu2vdin_hsize:      source horizontal size
12950 #define   VPU_VIU2VDIN_HDN_CTRL                    (0x2780)
12951 #define P_VPU_VIU2VDIN_HDN_CTRL                    (volatile uint32_t *)((0x2780  << 2) + 0xff900000)
12952 #define   VPU_VIU_ASYNC_MASK                       (0x2781)
12953 #define P_VPU_VIU_ASYNC_MASK                       (volatile uint32_t *)((0x2781  << 2) + 0xff900000)
12954 #define   VDIN_MISC_CTRL                           (0x2782)
12955 #define P_VDIN_MISC_CTRL                           (volatile uint32_t *)((0x2782  << 2) + 0xff900000)
12956 // vpu arbtration :
12957 // the segment is 8'h90-8'hc8
12958 //
12959 // Reading file:  vpu_arb_axi_regs.h
12960 //
12961 // synopsys translate_off
12962 // synopsys translate_on
12963 ////===============================////
12964 //// reg
12965 ////===============================////
12966 #define   VPU_RDARB_MODE_L1C1                      (0x2790)
12967 #define P_VPU_RDARB_MODE_L1C1                      (volatile uint32_t *)((0x2790  << 2) + 0xff900000)
12968 //Bit   31:22,    reserved
12969 //Bit   21:16,    rdarb_sel           uns, default = 0 ,
12970 //                                    rdarb_sel[0]==0 slave dc0 connect master port0 rdarb_sel[0]==1 slave dc0 connect master port1
12971 //                                    rdarb_sel[1]==0 slave dc1 connect master port0 rdarb_sel[1]==1 slave dc1 connect master port1
12972 //                                    rdarb_sel[2]==0 slave dc2 connect master port0 rdarb_sel[2]==1 slave dc2 connect master port1
12973 //                                    rdarb_sel[3]==0 slave dc3 connect master port0 rdarb_sel[3]==1 slave dc3 connect master port1
12974 //                                    rdarb_sel[4]==0 slave dc4 connect master port0 rdarb_sel[4]==1 slave dc4 connect master port1
12975 //                                    rdarb_sel[5]==0 slave dc5 connect master port0 rdarb_sel[5]==1 slave dc5 connect master port1
12976 //Bit   15:10,    reserved
12977 //Bit   9:8,      rdarb_arb_mode      uns, default = 0 ,
12978 //                                    rdarb_arb_mode[0] master port0 arb way,
12979 //                                    rdarb_arb_mode[1] master port1 arb way,
12980 //Bit   7:4,      reserved
12981 //Bit   3:0,      rdarb_gate_clk_ctrl uns, default = 0 ,
12982 //                                    rdarb_gate_clk_ctrl[1:0] master port0 clk gate control
12983 //                                    rdarb_gate_clk_ctrl[3:2] master port1 clk gate control
12984 #define   VPU_RDARB_REQEN_SLV_L1C1                 (0x2791)
12985 #define P_VPU_RDARB_REQEN_SLV_L1C1                 (volatile uint32_t *)((0x2791  << 2) + 0xff900000)
12986 //Bit   31:12,     reserved
12987 //Bit   11:0,     rdarb_dc_req_en     unsigned  , default = 12'hfff
12988 //                                    rdarb_dc_req_en[0]: the slv0 req to mst port0 enable,
12989 //                                    rdarb_dc_req_en[1]: the slv1 req to mst port0 enable,
12990 //                                    rdarb_dc_req_en[2]: the slv2 req to mst port0 enable,
12991 //                                    rdarb_dc_req_en[3]: the slv3 req to mst port0 enable,
12992 //                                    rdarb_dc_req_en[4]: the slv4 req to mst port0 enable,
12993 //                                    rdarb_dc_req_en[5]: the slv5 req to mst port0 enable,
12994 //                                    rdarb_dc_req_en[6]: the slv0 req to mst port1 enable,
12995 //                                    rdarb_dc_req_en[7]: the slv1 req to mst port1 enable,
12996 //                                    rdarb_dc_req_en[8]: the slv2 req to mst port1 enable,
12997 //                                    rdarb_dc_req_en[9]: the slv3 req to mst port1 enable,
12998 //                                    rdarb_dc_req_en[10]: the slv4 req to mst port1 enable,
12999 //                                    rdarb_dc_req_en[11]: the slv5 req to mst port1 enable,
13000 #define   VPU_RDARB_WEIGH0_SLV_L1C1                (0x2792)
13001 #define P_VPU_RDARB_WEIGH0_SLV_L1C1                (volatile uint32_t *)((0x2792  << 2) + 0xff900000)
13002 //Bit   31:30,    reserved
13003 //Bit   29:0,     rddc_weigh_sxn     unsigned  , default = 0
13004 //                                    rddc_weigh_sxn[0*6+:6]: the slv0 req weigh number
13005 //                                    rddc_weigh_sxn[1*6+:6]: the slv1 req weigh number
13006 //                                    rddc_weigh_sxn[2*6+:6]: the slv2 req weigh number
13007 //                                    rddc_weigh_sxn[3*6+:6]: the slv3 req weigh number
13008 //                                    rddc_weigh_sxn[4*6+:6]: the slv4 req weigh number
13009 #define   VPU_RDARB_WEIGH1_SLV_L1C1                (0x2793)
13010 #define P_VPU_RDARB_WEIGH1_SLV_L1C1                (volatile uint32_t *)((0x2793  << 2) + 0xff900000)
13011 //Bit   31:6,    reserved
13012 //Bit   5:0,     rddc_weigh_sxn     unsigned  , default = 0
13013 //                                    rddc_weigh_sxn[5*6+:6]: the slv5 req weigh number
13014 #define   VPU_WRARB_MODE_L1C1                      (0x2794)
13015 #define P_VPU_WRARB_MODE_L1C1                      (volatile uint32_t *)((0x2794  << 2) + 0xff900000)
13016 //Bit   31:22,    reserved
13017 //Bit   21:16,    wrarb_sel           uns, default = 0 ,
13018 //                                    wrarb_sel[0]==0 slave dc0 connect master port0 wrarb_sel[0]==1 slave dc0 connect master port1
13019 //                                    wrarb_sel[1]==0 slave dc1 connect master port0 wrarb_sel[1]==1 slave dc1 connect master port1
13020 //                                    wrarb_sel[2]==0 slave dc2 connect master port0 wrarb_sel[2]==1 slave dc2 connect master port1
13021 //                                    wrarb_sel[3]==0 slave dc3 connect master port0 wrarb_sel[3]==1 slave dc3 connect master port1
13022 //                                    wrarb_sel[4]==0 slave dc4 connect master port0 wrarb_sel[4]==1 slave dc4 connect master port1
13023 //                                    wrarb_sel[5]==0 slave dc5 connect master port0 wrarb_sel[5]==1 slave dc5 connect master port1
13024 //Bit   15:10,    reserved
13025 //Bit   9:8,      wrarb_arb_mode      uns, default = 0 ,
13026 //                                    wrarb_arb_mode[0] master port0 arb way,
13027 //                                    wrarb_arb_mode[1] master port1 arb way,
13028 //Bit   7:4,      reserved
13029 //Bit   3:0,      wrarb_gate_clk_ctrl uns, default = 0 ,
13030 //                                    wrarb_gate_clk_ctrl[1:0] master port0 clk gate control
13031 //                                    wrarb_gate_clk_ctrl[3:2] master port1 clk gate control
13032 #define   VPU_WRARB_REQEN_SLV_L1C1                 (0x2795)
13033 #define P_VPU_WRARB_REQEN_SLV_L1C1                 (volatile uint32_t *)((0x2795  << 2) + 0xff900000)
13034 //Bit   31:12,     reserved
13035 //Bit   11:0,     wrarb_dc_req_en     unsigned  , default = 0
13036 //                                    wrarb_dc_req_en[0]: the slv0 req to mst port0 enable,
13037 //                                    wrarb_dc_req_en[1]: the slv1 req to mst port0 enable,
13038 //                                    wrarb_dc_req_en[2]: the slv2 req to mst port0 enable,
13039 //                                    wrarb_dc_req_en[3]: the slv3 req to mst port0 enable,
13040 //                                    wrarb_dc_req_en[4]: the slv4 req to mst port0 enable,
13041 //                                    wrarb_dc_req_en[5]: the slv5 req to mst port0 enable,
13042 //                                    wrarb_dc_req_en[0]: the slv0 req to mst port1 enable,
13043 //                                    wrarb_dc_req_en[1]: the slv1 req to mst port1 enable,
13044 //                                    wrarb_dc_req_en[2]: the slv2 req to mst port1 enable,
13045 //                                    wrarb_dc_req_en[3]: the slv3 req to mst port1 enable,
13046 //                                    wrarb_dc_req_en[4]: the slv4 req to mst port1 enable,
13047 //                                    wrarb_dc_req_en[5]: the slv5 req to mst port1 enable,
13048 #define   VPU_WRARB_WEIGH0_SLV_L1C1                (0x2796)
13049 #define P_VPU_WRARB_WEIGH0_SLV_L1C1                (volatile uint32_t *)((0x2796  << 2) + 0xff900000)
13050 //Bit   31:30,    reserved
13051 //Bit   29:0,     wrdc_weigh_sxn     unsigned  , default = 0
13052 //                                    wrdc_weigh_sxn[0*6+:6]: the slv0 req weigh number
13053 //                                    wrdc_weigh_sxn[1*6+:6]: the slv1 req weigh number
13054 //                                    wrdc_weigh_sxn[2*6+:6]: the slv2 req weigh number
13055 //                                    wrdc_weigh_sxn[3*6+:6]: the slv3 req weigh number
13056 //                                    wrdc_weigh_sxn[4*6+:6]: the slv4 req weigh number
13057 #define   VPU_WRARB_WEIGH1_SLV_L1C1                (0x2797)
13058 #define P_VPU_WRARB_WEIGH1_SLV_L1C1                (volatile uint32_t *)((0x2797  << 2) + 0xff900000)
13059 //Bit   31:6,    reserved
13060 //Bit   5:0,     wrdc_weigh_sxn     unsigned  , default = 0
13061 //                                    wrdc_weigh_sxn[5*6+:6]: the slv5 req weigh number
13062 #define   VPU_RDWR_ARB_STATUS_L1C1                 (0x2798)
13063 #define P_VPU_RDWR_ARB_STATUS_L1C1                 (volatile uint32_t *)((0x2798  << 2) + 0xff900000)
13064 //Bit   31:4,    reserved
13065 //Bit    3:2,    wrarb_arb_busy     unsigned  , default = 0
13066 //Bit    1:0,    rdarb_arb_busy     unsigned  , default = 0
13067 #define   VPU_RDARB_MODE_L1C2                      (0x2799)
13068 #define P_VPU_RDARB_MODE_L1C2                      (volatile uint32_t *)((0x2799  << 2) + 0xff900000)
13069 //Bit   31:21,    reserved
13070 //Bit   20:16,    rdarb_sel           uns, default = 0 ,
13071 //                                    rdarb_sel[0]==0 slave dc0 connect master port0 rdarb_sel[0]==1 slave dc0 connect master port1
13072 //                                    rdarb_sel[1]==0 slave dc1 connect master port0 rdarb_sel[1]==1 slave dc1 connect master port1
13073 //                                    rdarb_sel[2]==0 slave dc2 connect master port0 rdarb_sel[2]==1 slave dc2 connect master port1
13074 //                                    rdarb_sel[3]==0 slave dc3 connect master port0 rdarb_sel[3]==1 slave dc3 connect master port1
13075 //                                    rdarb_sel[4]==0 slave dc4 connect master port0 rdarb_sel[4]==1 slave dc4 connect master port1
13076 //Bit   15:10,    reserved
13077 //Bit   9:8,      rdarb_arb_mode      uns, default = 0 ,
13078 //                                    rdarb_arb_mode[0] master port0 arb way,
13079 //                                    rdarb_arb_mode[1] master port1 arb way,
13080 //Bit   7:4,      reserved
13081 //Bit   3:0,      rdarb_gate_clk_ctrl uns, default = 0 ,
13082 //                                    rdarb_gate_clk_ctrl[1:0] master port0 clk gate control
13083 //                                    rdarb_gate_clk_ctrl[3:2] master port0 clk gate control
13084 #define   VPU_RDARB_REQEN_SLV_L1C2                 (0x279a)
13085 #define P_VPU_RDARB_REQEN_SLV_L1C2                 (volatile uint32_t *)((0x279a  << 2) + 0xff900000)
13086 //Bit   31:10,     reserved
13087 //Bit    9:0,     rdarb_dc_req_en     unsigned  , default = 0
13088 //                                    rdarb_dc_req_en[0]: the slv0 req to mst port0 enable,
13089 //                                    rdarb_dc_req_en[1]: the slv1 req to mst port0 enable,
13090 //                                    rdarb_dc_req_en[2]: the slv2 req to mst port0 enable,
13091 //                                    rdarb_dc_req_en[3]: the slv3 req to mst port0 enable,
13092 //                                    rdarb_dc_req_en[4]: the slv4 req to mst port0 enable,
13093 //                                    rdarb_dc_req_en[5]: the slv0 req to mst port1 enable,
13094 //                                    rdarb_dc_req_en[6]: the slv1 req to mst port1 enable,
13095 //                                    rdarb_dc_req_en[7]: the slv2 req to mst port1 enable,
13096 //                                    rdarb_dc_req_en[8]: the slv3 req to mst port1 enable,
13097 //                                    rdarb_dc_req_en[9]: the slv4 req to mst port1 enable,
13098 #define   VPU_RDARB_WEIGH0_SLV_L1C2                (0x279b)
13099 #define P_VPU_RDARB_WEIGH0_SLV_L1C2                (volatile uint32_t *)((0x279b  << 2) + 0xff900000)
13100 //Bit   31:30,    reserved
13101 //Bit   29:0,     rddc_weigh_sxn     unsigned  , default = 0
13102 //                                    rddc_weigh_sxn[0*6+:6]: the slv0 req weigh number
13103 //                                    rddc_weigh_sxn[1*6+:6]: the slv1 req weigh number
13104 //                                    rddc_weigh_sxn[2*6+:6]: the slv2 req weigh number
13105 //                                    rddc_weigh_sxn[3*6+:6]: the slv3 req weigh number
13106 //                                    rddc_weigh_sxn[4*6+:6]: the slv4 req weigh number
13107 #define   VPU_RDWR_ARB_STATUS_L1C2                 (0x279c)
13108 #define P_VPU_RDWR_ARB_STATUS_L1C2                 (volatile uint32_t *)((0x279c  << 2) + 0xff900000)
13109 //Bit   31:3,    reserved
13110 //Bit      2,    wrarb_arb_busy     unsigned  , default = 0
13111 //Bit    1:0,    rdarb_arb_busy     unsigned  , default = 0
13112 #define   VPU_RDARB_MODE_L2C1                      (0x279d)
13113 #define P_VPU_RDARB_MODE_L2C1                      (volatile uint32_t *)((0x279d  << 2) + 0xff900000)
13114 //Bit   31:28,    reserved
13115 //Bit   27:16,    rdarb_sel           uns, default = 0 ,
13116 //                                    rdarb_sel[0]==0 slave dc0 connect master port0 rdarb_sel[0]==1 slave dc0 connect master port1
13117 //                                    rdarb_sel[1]==0 slave dc1 connect master port0 rdarb_sel[1]==1 slave dc1 connect master port1
13118 //                                    rdarb_sel[2]==0 slave dc2 connect master port0 rdarb_sel[2]==1 slave dc2 connect master port1
13119 //                                    rdarb_sel[3]==0 slave dc3 connect master port0 rdarb_sel[3]==1 slave dc3 connect master port1
13120 //                                    rdarb_sel[4]==0 slave dc4 connect master port0 rdarb_sel[4]==1 slave dc4 connect master port1
13121 //                                    rdarb_sel[5]==0 slave dc5 connect master port0 rdarb_sel[5]==1 slave dc5 connect master port1
13122 //Bit   15:11,    reserved
13123 //Bit   10:8,      rdarb_arb_mode      uns, default = 0 ,
13124 //                                    rdarb_arb_mode[0] master port0 arb way,
13125 //                                    rdarb_arb_mode[1] master port1 arb way,
13126 //Bit   7:6,      reserved
13127 //Bit   5:0,      rdarb_gate_clk_ctrl uns, default = 0 ,
13128 //                                    rdarb_gate_clk_ctrl[1:0] master port0 clk gate control
13129 //                                    rdarb_gate_clk_ctrl[3:2] master port1 clk gate control
13130 //                                    rdarb_gate_clk_ctrl[5:4] master port2 clk gate control
13131 #define   VPU_RDARB_REQEN_SLV_L2C1                 (0x279e)
13132 #define P_VPU_RDARB_REQEN_SLV_L2C1                 (volatile uint32_t *)((0x279e  << 2) + 0xff900000)
13133 //Bit   31:18,     reserved
13134 //Bit   17:0,     rdarb_dc_req_en     unsigned  , default = 0
13135 //                                    rdarb_dc_req_en[0]: the slv0 req to mst port0 enable,
13136 //                                    rdarb_dc_req_en[1]: the slv1 req to mst port0 enable,
13137 //                                    rdarb_dc_req_en[2]: the slv2 req to mst port0 enable,
13138 //                                    rdarb_dc_req_en[3]: the slv3 req to mst port0 enable,
13139 //                                    rdarb_dc_req_en[4]: the slv4 req to mst port0 enable,
13140 //                                    rdarb_dc_req_en[5]: the slv5 req to mst port0 enable,
13141 //                                    rdarb_dc_req_en[0]: the slv0 req to mst port1 enable,
13142 //                                    rdarb_dc_req_en[1]: the slv1 req to mst port1 enable,
13143 //                                    rdarb_dc_req_en[2]: the slv2 req to mst port1 enable,
13144 //                                    rdarb_dc_req_en[3]: the slv3 req to mst port1 enable,
13145 //                                    rdarb_dc_req_en[4]: the slv4 req to mst port1 enable,
13146 //                                    rdarb_dc_req_en[5]: the slv5 req to mst port1 enable,
13147 #define   VPU_RDARB_WEIGH0_SLV_L2C1                (0x279f)
13148 #define P_VPU_RDARB_WEIGH0_SLV_L2C1                (volatile uint32_t *)((0x279f  << 2) + 0xff900000)
13149 //Bit   31:30,    reserved
13150 //Bit   29:0,     rddc_weigh_sxn     unsigned  , default = 0
13151 //                                    rddc_weigh_sxn[0*6+:6]: the slv0 req weigh number
13152 //                                    rddc_weigh_sxn[1*6+:6]: the slv1 req weigh number
13153 //                                    rddc_weigh_sxn[2*6+:6]: the slv2 req weigh number
13154 //                                    rddc_weigh_sxn[3*6+:6]: the slv3 req weigh number
13155 //                                    rddc_weigh_sxn[4*6+:6]: the slv4 req weigh number
13156 #define   VPU_RDARB_WEIGH1_SLV_L2C1                (0x27a0)
13157 #define P_VPU_RDARB_WEIGH1_SLV_L2C1                (volatile uint32_t *)((0x27a0  << 2) + 0xff900000)
13158 //Bit   31:6,    reserved
13159 //Bit   5:0,     rddc_weigh_sxn     unsigned  , default = 0
13160 //                                    rddc_weigh_sxn[5*6+:6]: the slv5 req weigh number
13161 #define   VPU_RDWR_ARB_STATUS_L2C1                 (0x27a1)
13162 #define P_VPU_RDWR_ARB_STATUS_L2C1                 (volatile uint32_t *)((0x27a1  << 2) + 0xff900000)
13163 //Bit   31:4,    reserved
13164 //Bit    3:2,    wrarb_arb_busy     unsigned  , default = 0
13165 //Bit    1:0,    rdarb_arb_busy     unsigned  , default = 0
13166 #define   VPU_WRARB_MODE_L2C1                      (0x27a2)
13167 #define P_VPU_WRARB_MODE_L2C1                      (volatile uint32_t *)((0x27a2  << 2) + 0xff900000)
13168 //Bit   31:20,    reserved
13169 //Bit   19:16,    wrarb_sel           uns, default = 0 ,
13170 //                                    wrarb_sel[0]==0 slave dc0 connect master port0 wrarb_sel[0]==1 slave dc0 connect master port1
13171 //                                    wrarb_sel[1]==0 slave dc1 connect master port0 wrarb_sel[1]==1 slave dc1 connect master port1
13172 //                                    wrarb_sel[2]==0 slave dc2 connect master port0 wrarb_sel[2]==1 slave dc2 connect master port1
13173 //                                    wrarb_sel[3]==0 slave dc3 connect master port0 wrarb_sel[3]==1 slave dc3 connect master port1
13174 //Bit   15:10,    reserved
13175 //Bit   9:8,      wrarb_arb_mode      uns, default = 0 ,
13176 //                                    wrarb_arb_mode[0] master port0 arb way,
13177 //                                    wrarb_arb_mode[1] master port1 arb way,
13178 //Bit   7:4,      reserved
13179 //Bit   3:0,      wrarb_gate_clk_ctrl uns, default = 0 ,
13180 //                                    wrarb_gate_clk_ctrl[1:0] master port0 clk gate control
13181 //                                    wrarb_gate_clk_ctrl[3:2] master port0 clk gate control
13182 #define   VPU_WRARB_REQEN_SLV_L2C1                 (0x27a3)
13183 #define P_VPU_WRARB_REQEN_SLV_L2C1                 (volatile uint32_t *)((0x27a3  << 2) + 0xff900000)
13184 //Bit   31:8,     reserved
13185 //Bit    7:0,     wrarb_dc_req_en     unsigned  , default = 0
13186 //                                    wrarb_dc_req_en[0]: the slv0 req to mst port0 enable,
13187 //                                    wrarb_dc_req_en[1]: the slv1 req to mst port0 enable,
13188 //                                    wrarb_dc_req_en[2]: the slv2 req to mst port0 enable,
13189 //                                    wrarb_dc_req_en[3]: the slv3 req to mst port0 enable,
13190 //                                    wrarb_dc_req_en[0]: the slv0 req to mst port1 enable,
13191 //                                    wrarb_dc_req_en[1]: the slv1 req to mst port1 enable,
13192 //                                    wrarb_dc_req_en[2]: the slv2 req to mst port1 enable,
13193 //                                    wrarb_dc_req_en[3]: the slv3 req to mst port1 enable,
13194 #define   VPU_WRARB_WEIGH0_SLV_L2C1                (0x27a4)
13195 #define P_VPU_WRARB_WEIGH0_SLV_L2C1                (volatile uint32_t *)((0x27a4  << 2) + 0xff900000)
13196 //Bit   31:24,    reserved
13197 //Bit   23:0,     wrdc_weigh_sxn     unsigned  , default = 0
13198 //                                    wrdc_weigh_sxn[0*6+:6]: the slv0 req weigh number
13199 //                                    wrdc_weigh_sxn[1*6+:6]: the slv1 req weigh number
13200 //                                    wrdc_weigh_sxn[2*6+:6]: the slv2 req weigh number
13201 //                                    wrdc_weigh_sxn[3*6+:6]: the slv3 req weigh number
13202 #define   VPU_ASYNC_RD_MODE0                       (0x27a5)
13203 #define P_VPU_ASYNC_RD_MODE0                       (volatile uint32_t *)((0x27a5  << 2) + 0xff900000)
13204 //Bit   31:19,    reserved
13205 //Bit   18,       req_en            unsigned  , default = 0  async enable
13206 //Bit   17:16,    clk_gate_ctrl     unsigned  , default = 0  async clock gate control
13207 //Bit   15:12,    auto_arugt_weight unsigned  , default = 4
13208 //Bit   11,       reserved
13209 //Bit   10:9,     arugt_sel         unsigned  , default = 0
13210 //                                  00 : use auto fifo arugt generate the output arugt.
13211 //                                  01 : use the register bit control
13212 //                                  00 : use the input arguent
13213 //Bit   8,        arguent_cfg       unsigned  , default = 0  register arguent control bit
13214 //Bit   7:4,      rd_hold_num       unsigned  , default = 4  hold the read command threshold
13215 //Bit   3:0,      rd_rel_num        unsigned  , default = 0  release the read command threshold
13216 #define   VPU_ASYNC_RD_MODE1                       (0x27a6)
13217 #define P_VPU_ASYNC_RD_MODE1                       (volatile uint32_t *)((0x27a6  << 2) + 0xff900000)
13218 //Bit   31:19,    reserved
13219 //Bit   18,       req_en            unsigned  , default = 0  async enable
13220 //Bit   17:16,    clk_gate_ctrl     unsigned  , default = 0  async clock gate control
13221 //Bit   15:12,    auto_arugt_weight unsigned  , default = 4
13222 //Bit   11,       reserved
13223 //Bit   10:9,     arugt_sel         unsigned  , default = 0
13224 //                                  00 : use auto fifo arugt generate the output arugt.
13225 //                                  01 : use the register bit control
13226 //                                  00 : use the input arguent
13227 //Bit   8,        arguent_cfg       unsigned  , default = 0  register arguent control bit
13228 //Bit   7:4,      rd_hold_num       unsigned  , default = 4  hold the read command threshold
13229 //Bit   3:0,      rd_rel_num        unsigned  , default = 0  release the read command threshold
13230 #define   VPU_ASYNC_RD_MODE2                       (0x27a7)
13231 #define P_VPU_ASYNC_RD_MODE2                       (volatile uint32_t *)((0x27a7  << 2) + 0xff900000)
13232 //Bit   31:19,    reserved
13233 //Bit   18,       req_en            unsigned  , default = 0  async enable
13234 //Bit   17:16,    clk_gate_ctrl     unsigned  , default = 0  async clock gate control
13235 //Bit   15:12,    auto_arugt_weight unsigned  , default = 4
13236 //Bit   11,       reserved
13237 //Bit   10:9,     arugt_sel         unsigned  , default = 0
13238 //                                  00 : use auto fifo arugt generate the output arugt.
13239 //                                  01 : use the register bit control
13240 //                                  00 : use the input arguent
13241 //Bit   8,        arguent_cfg       unsigned  , default = 0  register arguent control bit
13242 //Bit   7:4,      rd_hold_num       unsigned  , default = 4  hold the read command threshold
13243 //Bit   3:0,      rd_rel_num        unsigned  , default = 0  release the read command threshold
13244 #define   VPU_ASYNC_RD_MODE3                       (0x27a8)
13245 #define P_VPU_ASYNC_RD_MODE3                       (volatile uint32_t *)((0x27a8  << 2) + 0xff900000)
13246 //Bit   31:19,    reserved
13247 //Bit   18,       req_en            unsigned  , default = 0  async enable
13248 //Bit   17:16,    clk_gate_ctrl     unsigned  , default = 0  async clock gate control
13249 //Bit   15:12,    auto_arugt_weight unsigned  , default = 4
13250 //Bit   11,       reserved
13251 //Bit   10:9,     arugt_sel         unsigned  , default = 0
13252 //                                  00 : use auto fifo arugt generate the output arugt.
13253 //                                  01 : use the register bit control
13254 //                                  00 : use the input arguent
13255 //Bit   8,        arguent_cfg       unsigned  , default = 0  register arguent control bit
13256 //Bit   7:4,      rd_hold_num       unsigned  , default = 4  hold the read command threshold
13257 //Bit   3:0,      rd_rel_num        unsigned  , default = 0  release the read command threshold
13258 #define   VPU_ASYNC_RD_MODE4                       (0x27a9)
13259 #define P_VPU_ASYNC_RD_MODE4                       (volatile uint32_t *)((0x27a9  << 2) + 0xff900000)
13260 //Bit   31:19,    reserved
13261 //Bit   18,       req_en            unsigned  , default = 0  async enable
13262 //Bit   17:16,    clk_gate_ctrl     unsigned  , default = 0  async clock gate control
13263 //Bit   15:12,    auto_arugt_weight unsigned  , default = 4
13264 //Bit   11,       reserved
13265 //Bit   10:9,     arugt_sel         unsigned  , default = 0
13266 //                                  00 : use auto fifo arugt generate the output arugt.
13267 //                                  01 : use the register bit control
13268 //                                  00 : use the input arguent
13269 //Bit   8,        arguent_cfg       unsigned  , default = 0  register arguent control bit
13270 //Bit   7:4,      rd_hold_num       unsigned  , default = 4  hold the read command threshold
13271 //Bit   3:0,      rd_rel_num        unsigned  , default = 0  release the read command threshold
13272 #define   VPU_ASYNC_WR_MODE0                       (0x27aa)
13273 #define P_VPU_ASYNC_WR_MODE0                       (volatile uint32_t *)((0x27aa  << 2) + 0xff900000)
13274 //Bit   31:19,    reserved
13275 //Bit   18,       req_en            unsigned  , default = 0  async enable
13276 //Bit   17:16,    clk_gate_ctrl     unsigned  , default = 0  async clock gate control
13277 //Bit   15:12,    auto_arugt_weight unsigned  , default = 4
13278 //Bit   11,       reserved
13279 //Bit   10:9,     arugt_sel         unsigned  , default = 0
13280 //                                  00 : use auto fifo arugt generate the output arugt.
13281 //                                  01 : use the register bit control
13282 //                                  00 : use the input arguent
13283 //Bit   8,        arguent_cfg       unsigned  , default = 0  register arguent control bit
13284 //Bit   7:4,      wr_hold_num       unsigned  , default = 4  hold the read command threshold
13285 //Bit   3:0,      wr_rel_num        unsigned  , default = 0  release the write command threshold
13286 #define   VPU_ASYNC_WR_MODE1                       (0x27ab)
13287 #define P_VPU_ASYNC_WR_MODE1                       (volatile uint32_t *)((0x27ab  << 2) + 0xff900000)
13288 //Bit   31:19,    reserved
13289 //Bit   18,       req_en            unsigned  , default = 0  async enable
13290 //Bit   17:16,    clk_gate_ctrl     unsigned  , default = 0  async clock gate control
13291 //Bit   15:12,    auto_arugt_weight unsigned  , default = 4
13292 //Bit   11,       reserved
13293 //Bit   10:9,     arugt_sel         unsigned  , default = 0
13294 //                                  00 : use auto fifo arugt generate the output arugt.
13295 //                                  01 : use the register bit control
13296 //                                  00 : use the input arguent
13297 //Bit   8,        arguent_cfg       unsigned  , default = 0  register arguent control bit
13298 //Bit   7:4,      wr_hold_num       unsigned  , default = 4  hold the read command threshold
13299 //Bit   3:0,      wr_rel_num        unsigned  , default = 0  release the write command threshold
13300 #define   VPU_ASYNC_WR_MODE2                       (0x27ac)
13301 #define P_VPU_ASYNC_WR_MODE2                       (volatile uint32_t *)((0x27ac  << 2) + 0xff900000)
13302 //Bit   31:19,    reserved
13303 //Bit   18,       req_en            unsigned  , default = 0  async enable
13304 //Bit   17:16,    clk_gate_ctrl     unsigned  , default = 0  async clock gate control
13305 //Bit   15:12,    auto_arugt_weight unsigned  , default = 4
13306 //Bit   11,       reserved
13307 //Bit   10:9,     arugt_sel         unsigned  , default = 0
13308 //                                  00 : use auto fifo arugt generate the output arugt.
13309 //                                  01 : use the register bit control
13310 //                                  00 : use the input arguent
13311 //Bit   8,        arguent_cfg       unsigned  , default = 0  register arguent control bit
13312 //Bit   7:4,      wr_hold_num       unsigned  , default = 4  hold the read command threshold
13313 //Bit   3:0,      wr_rel_num        unsigned  , default = 0  release the write command threshold
13314 #define   VPU_ASYNC_STAT                           (0x27ad)
13315 #define P_VPU_ASYNC_STAT                           (volatile uint32_t *)((0x27ad  << 2) + 0xff900000)
13316 //Bit   31:19,    reserved
13317 //Bit   18,       axiwr2_chan_idle  unsigned  , RO, axi write channel2 idle state
13318 //Bit   17,       axiwr1_chan_idle  unsigned  , RO, axi write channel1 idle state
13319 //Bit   16,       axiwr0_chan_idle  unsigned  , RO, axi write channel0 idle state
13320 //Bit   15:5,     reserved
13321 //Bit   4,        axird4_chan_idle  unsigned  , RO, axi read channel4 idle state
13322 //Bit   3,        axird3_chan_idle  unsigned  , RO, axi read channel3 idle state
13323 //Bit   2,        axird2_chan_idle  unsigned  , RO, axi read channel2 idle state
13324 //Bit   1,        axird1_chan_idle  unsigned  , RO, axi read channel1 idle state
13325 //Bit   0,        axird0_chan_idle  unsigned  , RO, axi read channel0 idle state
13326 #define   VPU_WRARB_MODE_L1C2                      (0x27ae)
13327 #define P_VPU_WRARB_MODE_L1C2                      (volatile uint32_t *)((0x27ae  << 2) + 0xff900000)
13328 //Bit   31:18,    reserved
13329 //Bit   17:16,    wrarb_sel           uns, default = 0 ,
13330 //                                    wrarb_sel[0]==0 slave dc0 connect master port0 wrarb_sel[0]==1 slave dc0 connect master port1
13331 //                                    wrarb_sel[1]==0 slave dc1 connect master port0 wrarb_sel[1]==1 slave dc1 connect master port1
13332 //Bit   15:9,     reserved
13333 //Bit   8,        wrarb_arb_mode      uns, default = 0 ,
13334 //                                    wrarb_arb_mode[0] master port0 arb way,
13335 //Bit   7:2,      reserved
13336 //Bit   1:0,      wrarb_gate_clk_ctrl uns, default = 0 ,
13337 //                                    wrarb_gate_clk_ctrl[1:0] master port0 clk gate control
13338 #define   VPU_WRARB_REQEN_SLV_L1C2                 (0x27af)
13339 #define P_VPU_WRARB_REQEN_SLV_L1C2                 (volatile uint32_t *)((0x27af  << 2) + 0xff900000)
13340 //Bit   31:2,     reserved
13341 //Bit    1:0,     wrarb_dc_req_en     unsigned  , default = 0
13342 //                                    wrarb_dc_req_en[0]: the slv0 req to mst port0 enable,
13343 //                                    wrarb_dc_req_en[1]: the slv1 req to mst port0 enable,
13344 #define   VPU_WRARB_WEIGH0_SLV_L1C2                (0x27b0)
13345 #define P_VPU_WRARB_WEIGH0_SLV_L1C2                (volatile uint32_t *)((0x27b0  << 2) + 0xff900000)
13346 //Bit   31:30,    reserved
13347 //Bit   29:0,     wrdc_weigh_sxn     unsigned  , default = 0
13348 //                                    wrdc_weigh_sxn[0*6+:6]: the slv0 req weigh number
13349 //                                    wrdc_weigh_sxn[1*6+:6]: the slv1 req weigh number
13350 //                                    wrdc_weigh_sxn[2*6+:6]: the slv1 req weigh number
13351 //                                    wrdc_weigh_sxn[3*6+:6]: the slv1 req weigh number
13352 //                                    wrdc_weigh_sxn[4*6+:6]: the slv1 req weigh number
13353 #define   VPU_WRARB_WEIGH1_SLV_L1C2                (0x27b1)
13354 #define P_VPU_WRARB_WEIGH1_SLV_L1C2                (volatile uint32_t *)((0x27b1  << 2) + 0xff900000)
13355 //Bit   31:18,    reserved
13356 //Bit   17:0,     wrdc_weigh_sxn     unsigned  , default = 0
13357 //                                    wrdc_weigh_sxn[5*6+:6]: the slv0 req weigh number
13358 //                                    wrdc_weigh_sxn[6*6+:6]: the slv1 req weigh number
13359 //                                    wrdc_weigh_sxn[7*6+:6]: the slv1 req weigh number
13360 #define   VPU_RDARB_WEIGH1_SLV_L1C2                (0x27b2)
13361 #define P_VPU_RDARB_WEIGH1_SLV_L1C2                (volatile uint32_t *)((0x27b2  << 2) + 0xff900000)
13362 //Bit   31:18,    reserved
13363 //Bit   17:0,     rddc_weigh_sxn     unsigned  , default = 0
13364 //                                    rddc_weigh_sxn[5*6+:6]: the slv0 req weigh number
13365 //                                    rddc_weigh_sxn[6*6+:6]: the slv1 req weigh number
13366 //                                    rddc_weigh_sxn[7*6+:6]: the slv2 req weigh number
13367 #define   VPU_ARB_DBG_CTRL_L1C1                    (0x27b3)
13368 #define P_VPU_ARB_DBG_CTRL_L1C1                    (volatile uint32_t *)((0x27b3  << 2) + 0xff900000)
13369 #define   VPU_ARB_DBG_STAT_L1C1                    (0x27b4)
13370 #define P_VPU_ARB_DBG_STAT_L1C1                    (volatile uint32_t *)((0x27b4  << 2) + 0xff900000)
13371 #define   VPU_ARB_DBG_CTRL_L1C2                    (0x27b5)
13372 #define P_VPU_ARB_DBG_CTRL_L1C2                    (volatile uint32_t *)((0x27b5  << 2) + 0xff900000)
13373 #define   VPU_ARB_DBG_STAT_L1C2                    (0x27b6)
13374 #define P_VPU_ARB_DBG_STAT_L1C2                    (volatile uint32_t *)((0x27b6  << 2) + 0xff900000)
13375 #define   VPU_ARB_DBG_CTRL_L2C1                    (0x27b7)
13376 #define P_VPU_ARB_DBG_CTRL_L2C1                    (volatile uint32_t *)((0x27b7  << 2) + 0xff900000)
13377 #define   VPU_ARB_DBG_STAT_L2C1                    (0x27b8)
13378 #define P_VPU_ARB_DBG_STAT_L2C1                    (volatile uint32_t *)((0x27b8  << 2) + 0xff900000)
13379 #define   VPU_ARB_PATH_CTRL                        (0x27b9)
13380 #define P_VPU_ARB_PATH_CTRL                        (volatile uint32_t *)((0x27b9  << 2) + 0xff900000)
13381 #define   VPU_ARB_PATH_MAP00                       (0x27ba)
13382 #define P_VPU_ARB_PATH_MAP00                       (volatile uint32_t *)((0x27ba  << 2) + 0xff900000)
13383 #define   VPU_ARB_PATH_MAP01                       (0x27bb)
13384 #define P_VPU_ARB_PATH_MAP01                       (volatile uint32_t *)((0x27bb  << 2) + 0xff900000)
13385 #define   VPU_ARB_PATH_MAP02                       (0x27bc)
13386 #define P_VPU_ARB_PATH_MAP02                       (volatile uint32_t *)((0x27bc  << 2) + 0xff900000)
13387 #define   VPU_ARB_PATH_MAP03                       (0x27bd)
13388 #define P_VPU_ARB_PATH_MAP03                       (volatile uint32_t *)((0x27bd  << 2) + 0xff900000)
13389 #define   VPU_ARB_PATH_MAP10                       (0x27be)
13390 #define P_VPU_ARB_PATH_MAP10                       (volatile uint32_t *)((0x27be  << 2) + 0xff900000)
13391 #define   VPU_ARB_PATH_MAP11                       (0x27bf)
13392 #define P_VPU_ARB_PATH_MAP11                       (volatile uint32_t *)((0x27bf  << 2) + 0xff900000)
13393 #define   VPU_ARB_PATH_MAP12                       (0x27c0)
13394 #define P_VPU_ARB_PATH_MAP12                       (volatile uint32_t *)((0x27c0  << 2) + 0xff900000)
13395 #define   VPU_ARB_PATH_MAP13                       (0x27c1)
13396 #define P_VPU_ARB_PATH_MAP13                       (volatile uint32_t *)((0x27c1  << 2) + 0xff900000)
13397 // synopsys translate_off
13398 // synopsys translate_on
13399 //
13400 // Closing file:  vpu_arb_axi_regs.h
13401 //
13402 // the segment is 8'he0-8'hef
13403 #define   VPU_VENCL_DITH_CTRL                      (0x27e0)
13404 #define P_VPU_VENCL_DITH_CTRL                      (volatile uint32_t *)((0x27e0  << 2) + 0xff900000)
13405 #define   VPU_VENCL_DITH_LUT_1                     (0x27e1)
13406 #define P_VPU_VENCL_DITH_LUT_1                     (volatile uint32_t *)((0x27e1  << 2) + 0xff900000)
13407 #define   VPU_VENCL_DITH_LUT_2                     (0x27e2)
13408 #define P_VPU_VENCL_DITH_LUT_2                     (volatile uint32_t *)((0x27e2  << 2) + 0xff900000)
13409 #define   VPU_VENCL_DITH_LUT_3                     (0x27e3)
13410 #define P_VPU_VENCL_DITH_LUT_3                     (volatile uint32_t *)((0x27e3  << 2) + 0xff900000)
13411 #define   VPU_VENCL_DITH_LUT_4                     (0x27e4)
13412 #define P_VPU_VENCL_DITH_LUT_4                     (volatile uint32_t *)((0x27e4  << 2) + 0xff900000)
13413 #define   VPU_VENCL_DITH_LUT_5                     (0x27e5)
13414 #define P_VPU_VENCL_DITH_LUT_5                     (volatile uint32_t *)((0x27e5  << 2) + 0xff900000)
13415 #define   VPU_VENCL_DITH_LUT_6                     (0x27e6)
13416 #define P_VPU_VENCL_DITH_LUT_6                     (volatile uint32_t *)((0x27e6  << 2) + 0xff900000)
13417 #define   VPU_VENCL_DITH_LUT_7                     (0x27e7)
13418 #define P_VPU_VENCL_DITH_LUT_7                     (volatile uint32_t *)((0x27e7  << 2) + 0xff900000)
13419 #define   VPU_VENCL_DITH_LUT_8                     (0x27e8)
13420 #define P_VPU_VENCL_DITH_LUT_8                     (volatile uint32_t *)((0x27e8  << 2) + 0xff900000)
13421 #define   VPU_VENCL_DITH_LUT_9                     (0x27e9)
13422 #define P_VPU_VENCL_DITH_LUT_9                     (volatile uint32_t *)((0x27e9  << 2) + 0xff900000)
13423 #define   VPU_VENCL_DITH_LUT_10                    (0x27ea)
13424 #define P_VPU_VENCL_DITH_LUT_10                    (volatile uint32_t *)((0x27ea  << 2) + 0xff900000)
13425 #define   VPU_VENCL_DITH_LUT_11                    (0x27eb)
13426 #define P_VPU_VENCL_DITH_LUT_11                    (volatile uint32_t *)((0x27eb  << 2) + 0xff900000)
13427 #define   VPU_VENCL_DITH_LUT_12                    (0x27ec)
13428 #define P_VPU_VENCL_DITH_LUT_12                    (volatile uint32_t *)((0x27ec  << 2) + 0xff900000)
13429 //new added 4x4 dither
13430 // the segment is 8'hf0
13431 #define   VPU_HDMI_DITH_01_04                      (0x27f0)
13432 #define P_VPU_HDMI_DITH_01_04                      (volatile uint32_t *)((0x27f0  << 2) + 0xff900000)
13433 #define   VPU_HDMI_DITH_01_15                      (0x27f1)
13434 #define P_VPU_HDMI_DITH_01_15                      (volatile uint32_t *)((0x27f1  << 2) + 0xff900000)
13435 #define   VPU_HDMI_DITH_01_26                      (0x27f2)
13436 #define P_VPU_HDMI_DITH_01_26                      (volatile uint32_t *)((0x27f2  << 2) + 0xff900000)
13437 #define   VPU_HDMI_DITH_01_37                      (0x27f3)
13438 #define P_VPU_HDMI_DITH_01_37                      (volatile uint32_t *)((0x27f3  << 2) + 0xff900000)
13439 #define   VPU_HDMI_DITH_10_04                      (0x27f4)
13440 #define P_VPU_HDMI_DITH_10_04                      (volatile uint32_t *)((0x27f4  << 2) + 0xff900000)
13441 #define   VPU_HDMI_DITH_10_15                      (0x27f5)
13442 #define P_VPU_HDMI_DITH_10_15                      (volatile uint32_t *)((0x27f5  << 2) + 0xff900000)
13443 #define   VPU_HDMI_DITH_10_26                      (0x27f6)
13444 #define P_VPU_HDMI_DITH_10_26                      (volatile uint32_t *)((0x27f6  << 2) + 0xff900000)
13445 #define   VPU_HDMI_DITH_10_37                      (0x27f7)
13446 #define P_VPU_HDMI_DITH_10_37                      (volatile uint32_t *)((0x27f7  << 2) + 0xff900000)
13447 #define   VPU_HDMI_DITH_11_04                      (0x27f8)
13448 #define P_VPU_HDMI_DITH_11_04                      (volatile uint32_t *)((0x27f8  << 2) + 0xff900000)
13449 #define   VPU_HDMI_DITH_11_15                      (0x27f9)
13450 #define P_VPU_HDMI_DITH_11_15                      (volatile uint32_t *)((0x27f9  << 2) + 0xff900000)
13451 #define   VPU_HDMI_DITH_11_26                      (0x27fa)
13452 #define P_VPU_HDMI_DITH_11_26                      (volatile uint32_t *)((0x27fa  << 2) + 0xff900000)
13453 #define   VPU_HDMI_DITH_11_37                      (0x27fb)
13454 #define P_VPU_HDMI_DITH_11_37                      (volatile uint32_t *)((0x27fb  << 2) + 0xff900000)
13455 #define   VPU_HDMI_DITH_CNTL                       (0x27fc)
13456 #define P_VPU_HDMI_DITH_CNTL                       (volatile uint32_t *)((0x27fc  << 2) + 0xff900000)
13457 //========================================================================
13458 //  MIPI CSI2 Controller Adaptor    (16'h2a00 - 16'h2aff)
13459 //
13460 //========================================================================
13461 //`define  CSI2_VCBUS_BASE            8'h2a
13462 //`include "csi2_regs.h"
13463 //======================================================================
13464 // D2D3 registers
13465 //======================================================================
13466 //`define     D2D3_VCBUS_BASE         8'h2b
13467 //
13468 // Reading file:  d2d3_regs.h
13469 //
13470 //===========================================================================
13471 // D2D3 Registers    0x - 0x
13472 //===========================================================================
13473 // -----------------------------------------------
13474 // CBUS_BASE:  D2D3_VCBUS_BASE = 0x2b
13475 // -----------------------------------------------
13476 //------------------------------------------------------------------------------
13477 // D2D3 top-level registers
13478 //------------------------------------------------------------------------------
13479 // Bit 31    RW, rd_lock_en,     1 to allow update some read-only registers based on filed
13480 // Bit 30    RW, sw_rst_nobuf,   1 to reset the whole d2d3 unit
13481 // Bit 29:28 RW, clk_auto_dis,   [29] DBR clock disable
13482 //                               [28] DPG clock disable
13483 // Bit 27:16 RW, clk_ctrl,       [27:26] gated clock control for register unit
13484 //                               [25:24] gated clock control for DBR unit
13485 //                               [23:22] gated clock control for LBDG unit
13486 //                               [21:20] gated clock control for MBDG unit
13487 //                               [19:18] gated clock control for CBDG unit
13488 //                               [17:16] gated clock control for DBLD unit and SCD81 unit
13489 // Bit 15:12 Reserved
13490 // Bit 11    RW, lo_chroma_sign, 0: negate the u/v component of DBR left channel video output, 1: bypass
13491 // Bit 10    RW, ro_chroma_sign, 0: negate the u/v component of DBR right channel video output, 1: bypass
13492 // Bit 9     RW, vi0_chroma_sign, 0: negate the u/v component of DPG video input, 1: bypass
13493 // Bit 8     RW, vi1_chroma_sign, 0: negate the u/v component of DBR video input, 1: bypass
13494 // Bit 7:5   Reserved
13495 // Bit 4     RW, lg_en,          Enable the LBDG unit and LBDG clock
13496 // Bit 3     RW, mg_en,          Enable the MBDG unit and MBDG clock
13497 // Bit 2     RW, cg_en,          Enable the CBDG unit and CBDG clock
13498 // Bit 1     RW, dbr_en,         Enable the DBR unit and DBR clock
13499 // Bit 0     RW, dpg_en,         Enable the DPG unit and clock except sub-unit CBDG, MBDG and LBDG
13500 #define   D2D3_GLB_CTRL                            (0x2b00)
13501 #define P_D2D3_GLB_CTRL                            (volatile uint32_t *)((0x2b00  << 2) + 0xff900000)
13502 // Indicate the input picture size in DPG unit
13503 // Bit 31:16 RW, szx_vi_m1,      The horizontal size minus 1
13504 // Bit 15:0  RW, szy_vi_m1,      The vertical size minus 1
13505 #define   D2D3_DPG_INPIC_SIZE                      (0x2b01)
13506 #define P_D2D3_DPG_INPIC_SIZE                      (volatile uint32_t *)((0x2b01  << 2) + 0xff900000)
13507 // Indicate the output picture size in DBR unit
13508 // Bit 31:16 RW, szx_vo_m1,      The horizontal size minus 1
13509 // Bit 15:0  RW, szy_vo_m1,      The vertical size minus 1
13510 #define   D2D3_DBR_OUTPIC_SIZE                     (0x2b02)
13511 #define P_D2D3_DBR_OUTPIC_SIZE                     (volatile uint32_t *)((0x2b02  << 2) + 0xff900000)
13512 // Indicate the rectangular window to generate the "depth" in DPG unit
13513 // Bit 31:16 RW, dg_win_x_start, Horizontal start position, count from 0
13514 // Bit 15:0  RW, dg_win_x_end,   Horizontal end position, count from 0
13515 #define   D2D3_DGEN_WIN_HOR                        (0x2b03)
13516 #define P_D2D3_DGEN_WIN_HOR                        (volatile uint32_t *)((0x2b03  << 2) + 0xff900000)
13517 // Indicate the rectangular window to generate the "depth" in DPG unit
13518 // Bit 31:16 RW, dg_win_y_start, Vertical start position, count from 0
13519 // Bit 15:0  RW, dg_win_y_end,   Vertical end position, count from 0
13520 #define   D2D3_DGEN_WIN_VER                        (0x2b04)
13521 #define P_D2D3_DGEN_WIN_VER                        (volatile uint32_t *)((0x2b04  << 2) + 0xff900000)
13522 //------------------------------------------------------------------------------
13523 // CBDG SCU18 SCD81 SCD81_PRE registers
13524 // cg: color based depth generate module
13525 // scu18: scale up module
13526 // scd81: scale down module
13527 // scd81_pre: scd81 pre-scale-down module
13528 //------------------------------------------------------------------------------
13529 // Indicate parameters of pre-scale-down unit
13530 // Bit 31:16 RW, scd81_hphs_step, horizontal step
13531 // Bit 15:0  RW, scd81_hphs_ini, horizontal initial phase
13532 #define   D2D3_PRE_SCD_H                           (0x2b05)
13533 #define P_D2D3_PRE_SCD_H                           (volatile uint32_t *)((0x2b05  << 2) + 0xff900000)
13534 // Bit 31:16 RW, scu18_iniph,    initial phase in SCU18,
13535 //                               [23:16] indicate the horizontal phase offset from the first data of every line
13536 //                               [31:24] indicate the vertical phase offset from the first line of every frame
13537 // Bit 15:12 Reserved
13538 // Bit 11    RW, scd81_predrop_en, 1 to enable scd81 pre-scale-down function
13539 // Bit 10:9  RW, cg_csc_sel,     Color Space Conversion(CSC) matrix mode selector in CBDG
13540 //                               0: BT.601 (16-235/240)
13541 //                               1: BT.709 (16-235/240)
13542 //                               2: BT.601 (0-255)
13543 //                               3: BT.709 (0-255)
13544 // Bit 8     RW, scu18_rep_en,   1 to double each line of the SCU18 output
13545 // Bit 7:4   RW, scu18_factor,   up-scale factor in SCU18 on DBR input depth data
13546 //                               [7:6] for vertical, 0->1:1, 1->1:2, 2->1:4, 3->1:8
13547 //                               [5:4] for horizontal, 0->1:1, 1->1:2, 2->1:4, 3->1:8
13548 // Bit 3:0   RW, scd81_factor,   down-scale factor in SCD81 on DPG source video
13549 //                               [3:2] for vertical, 0->1:1, 1->2:1, 2->4:1, 3->8:1
13550 //                               [1:0] for horizontal, 0->1:1, 1->2:1, 2->4:1, 3->8:1
13551 #define   D2D3_SCALER_CTRL                         (0x2b06)
13552 #define P_D2D3_SCALER_CTRL                         (volatile uint32_t *)((0x2b06  << 2) + 0xff900000)
13553 // Bit 31:24 RW, cg_rpg_dth,     the down |r-g| threshold for sky detect
13554 // Bit 23:16 RW, cg_rpg_uth,     the up |r-g| threshold for sky detect
13555 // Bit 15:8  RW, cg_lum_dth,     the down Y threshold for sky detect
13556 // Bit 7:0   RW, cg_lum_uth,     the up Y threshold for sky detect
13557 #define   D2D3_CG_THRESHOLD_1                      (0x2b07)
13558 #define P_D2D3_CG_THRESHOLD_1                      (volatile uint32_t *)((0x2b07  << 2) + 0xff900000)
13559 // Bit 31:24 RW, cg_rpb_dth,     the down |r-b| threshold for sky detect
13560 // Bit 23:16 RW, cg_rpb_uth,     the up |r-b| threshold for sky detect
13561 // Bit 15:8  RW, cg_bpg_dth,     the down |b-g| threshold for sky detect
13562 // Bit 7:0   RW, cg_bpg_uth,     the up |b-g| threshold for sky detect
13563 #define   D2D3_CG_THRESHOLD_2                      (0x2b08)
13564 #define P_D2D3_CG_THRESHOLD_2                      (volatile uint32_t *)((0x2b08  << 2) + 0xff900000)
13565 // Bit 31:24 RW, cg_vp_rel_k,    parameter to calculate vanish point reliability
13566 // Bit 23:16 RW, cg_vp_y_thr,    the max limitation to calculate the vanish-point's vertical position
13567 // Bit 15:8  RW, cg_meet_dval,   signed depth value in the sky-bitmap
13568 // Bit 7:0   RW, cg_unmt_dval,   signed depth value not in the sky-bitmap
13569 #define   D2D3_CG_PARAM_1                          (0x2b09)
13570 #define P_D2D3_CG_PARAM_1                          (volatile uint32_t *)((0x2b09  << 2) + 0xff900000)
13571 // Bit 31:16 RW, cg_vpos_thr,    Maximal vertical limitation for sky-bit map when cg_vpos_en=1 and cg_vpos_adpt_en=0
13572 // Bit 15:8  Reserved
13573 // Bit 7     RW, cg_vpos_en,     1 to enable the max vertical limitation for sky-bitmap
13574 // Bit 6     RW, cg_vpos_adpt_en, 1 to enable the adaptive max vertical limitation for sky-bitmap.
13575 //                               It is only valid when cg_vpos_en=1.
13576 //                               The max vertical limitation is the previous field's vanish-point (vertical position) if cg_vpos_adpt_en=1.
13577 // Bit 5:4   RW, cg_lpf_bypass,  bypass of low pass filter
13578 //                               [5]:Vertical bypass, 1: bypass the vertical LPF on the CBDG depth
13579 //                               [4]:Horizontal bypass, 1: bypass the horizontal LPF on the CBDG depth
13580 // Bit 3:0   RW, cg_vp_rel_s,    parameter to calculate vanish point reliability
13581 #define   D2D3_CG_PARAM_2                          (0x2b0a)
13582 #define P_D2D3_CG_PARAM_2                          (volatile uint32_t *)((0x2b0a  << 2) + 0xff900000)
13583 // Indicate parameters of pre-scale-down unit
13584 // Bit 31:16 RW, scd81_vphs_step, vertical step
13585 // Bit 15:0  RW, scd81_vphs_ini, vertical initial phase
13586 #define   D2D3_PRE_SCD_V                           (0x2b0b)
13587 #define P_D2D3_PRE_SCD_V                           (volatile uint32_t *)((0x2b0b  << 2) + 0xff900000)
13588 //------------------------------------------------------------------------------
13589 // D2P registers
13590 // d2p: depth to parallax transform module
13591 //------------------------------------------------------------------------------
13592 // Bit 31:24 RW, d2p_brdwid,     Horizontal boundary width for parallax, the parallax value would be forced to 0 in boundary,
13593 //                               the d2p_brdwid should not 0 when D2P_WRAP is enabled
13594 // Bit 23:22 Reserved
13595 // Bit 21:20 RW, d2p_lomode,     line output mode,
13596 //                               0:whole line is left or right;  1:whole line is left or right;
13597 //                               2:left/right pixel interleaved;  3:left/right half-line interleaved
13598 // Bit 19    RW, d2p_neg,        1 to exchange the left and right parallax value
13599 // Bit 18    Reserved
13600 // Bit 17    RW, d2p_wrap_en,    1 to enable D2P_WRAP unit
13601 // Bit 16    RW, d2p_lar,        Indicate the first output for left or right, 0: left; 1: right
13602 // Bit 15    RW, d2p_lr_switch,  enable left/right flag filed switch automatically, only valid when parallax output mode is field interleaved
13603 // Bit 14    RW, d2p_1dtolr,     enable to generate 2 parallax data (left and right) from one depth
13604 // Bit 13:12 RW, d2p_out_mode,   Parallax output mode
13605 //                               0:left/right pixel interleaved; 1:line or half line interleaved; 2:field interleaved
13606 // Bit 11:8  RW, d2p_smode,      Shift mode,
13607 //                               0: no shift; 1: enable left shift;
13608 //                               2: enable right shift; 3: both left and right shift are enabled
13609 // Bit 7:0   RW, d2p_offset,     depth offset, signed,
13610 #define   D2D3_D2P_PARAM_1                         (0x2b0c)
13611 #define P_D2D3_D2P_PARAM_1                         (volatile uint32_t *)((0x2b0c  << 2) + 0xff900000)
13612 // Bit 31:24 RW, d2p_pg0,        positive parallax gain when Parallax value < pt
13613 // Bit 23:16 RW, d2p_pg1,        positive parallax gain when Parallax value >= pt
13614 // Bit 15:8  RW, d2p_pt,         unsigned value used to separate the positive parallax range
13615 // Bit 7:0   RW, d2p_plimit,     The limitation for positive parallax
13616 #define   D2D3_D2P_PARAM_2                         (0x2b0d)
13617 #define P_D2D3_D2P_PARAM_2                         (volatile uint32_t *)((0x2b0d  << 2) + 0xff900000)
13618 // Bit 31:24 RW, d2p_ng0,        negative parallax gain when Parallax value > -nt
13619 // Bit 23:16 RW, d2p_ng1,        negative parallax gain when Parallax value <= -nt
13620 // Bit 15:8  RW, d2p_nt,         unsigned value used to separate the negative parallax range
13621 // Bit 7:0   RW, d2p_nlimit,     The limitation for negative parallax
13622 #define   D2D3_D2P_PARAM_3                         (0x2b0e)
13623 #define P_D2D3_D2P_PARAM_3                         (volatile uint32_t *)((0x2b0e  << 2) + 0xff900000)
13624 // Indicate step parameters of SCU18 unit
13625 // Bit 31:17 Reserved
13626 // Bit 16    RW, scu18_step_en,   step set enable in SCU18
13627 // Bit 15:8  RW, scu18_hphs_step, horizontal step in SCU18
13628 // Bit 7:0   RW, scu18_vphs_step, vertical step in SCU18
13629 #define   D2D3_SCU18_STEP                          (0x2b0f)
13630 #define P_D2D3_SCU18_STEP                          (volatile uint32_t *)((0x2b0f  << 2) + 0xff900000)
13631 //------------------------------------------------------------------------------
13632 // LBDG and DBLD registers
13633 // lg: luma based depth generate module
13634 // db: depth blending module
13635 //------------------------------------------------------------------------------
13636 // Bit 31:22 Reserved
13637 // Bit 21:20 RW, db_lpf_bpcoeff, [21]:Vertical factor of low pass filter,
13638 //                               1: Vfactor = 0/0/64/0/0, 0: Vfactor = {db_vf_a,db_vf_b,db_vf_c,db_vf_b,db_vf_a}, see D2D3_CTRL_15
13639 //                               [20]:Horizontal factor of low pass filter,
13640 //                               1: Hfactor = 0/0/64/0/0, 0: Hfactor = {db_hf_a,db_hf_b,db_hf_c,db_hf_b,db_hf_a}, see D2D3_CTRL_14
13641 // Bit 19:18 RW, lg_lpf_bpcoeff, [19]:Vertical factor of low pass filter, 1: Vfactor = 0/64/0, 0: Vfactor = 20/24/20
13642 //                               [18]:Horizontal factor of low pass filter, 1: Hfactor = 0/64/0, 0: Hfactor = 16/32/16
13643 // Bit 17:16 RW, cg_lpf_bpcoeff, [17]:Vertical factor of low pass filter, 1: Vfactor = 0/64/0, 0: Vfactor = 20/24/20
13644 //                               [16]:Horizontal factor of low pass filter, 1: Hfactor = 0/64/0, 0: Hfactor = 16/32/16
13645 // Bit 15:10 Reserved
13646 // Bit 9:8   RW, db_lpf_bypass,  [9] 1 to bypass the vertical LPF on the DBLD depth
13647 //                               [8] 1 to bypass the horizontal LPF on the DBLD depth
13648 // Bit 7:6   RW, lg_lpf_bypass,  [7] 1 to bypass the vertical LPF on the LBDG depth
13649 //                               [6] 1 to bypass the horizontal LPF on the LBDG depth
13650 // Bit 5:0   RW, lg_kc,          gain of CPL(v-u+256-y) to calculate the depth in LBDG
13651 #define   D2D3_DPF_LPF_CTRL                        (0x2b10)
13652 #define P_D2D3_DPF_LPF_CTRL                        (volatile uint32_t *)((0x2b10  << 2) + 0xff900000)
13653 //------------------------------------------------------------------------------
13654 // DBLD registers
13655 // db: depth blending module
13656 //------------------------------------------------------------------------------
13657 // Bit 31:24 RW, db_g2_cg,       gain of CBDG depth in DBLD
13658 // Bit 23:16 RW, db_o2_cg,       offset of CBDG depth in DBLD
13659 // Bit 15:8  RW, db_g1_cg,       gain of CBDG depth using for summary in DBLD
13660 // Bit 7:0   RW, db_o1_cg,       offset of CBDG depth using for summary in DBLD
13661 #define   D2D3_DBLD_CG_PARAM                       (0x2b11)
13662 #define P_D2D3_DBLD_CG_PARAM                       (volatile uint32_t *)((0x2b11  << 2) + 0xff900000)
13663 // Bit 31:24 RW, db_g2_mg,       gain of MBDG depth in DBLD
13664 // Bit 23:16 RW, db_o2_mg,       offset of MBDG depth in DBLD
13665 // Bit 15:8  RW, db_g1_mg,       gain of MBDG depth using for summary in DBLD
13666 // Bit 7:0   RW, db_o1_mg,       offset of MBDG depth using for summary in DBLD
13667 #define   D2D3_DBLD_MG_PARAM                       (0x2b12)
13668 #define P_D2D3_DBLD_MG_PARAM                       (volatile uint32_t *)((0x2b12  << 2) + 0xff900000)
13669 // Bit 31:24 RW, db_g2_lg,       gain of LBDG depth in DBLD
13670 // Bit 23:16 RW, db_o2_lg,       offset of LBDG depth in DBLD
13671 // Bit 15:8  RW, db_g1_lg,       gain of LBDG depth using for summary in DBLD
13672 // Bit 7:0   RW, db_o1_lg,       offset of LBDG depth using for summary in DBLD
13673 #define   D2D3_DBLD_LG_PARAM                       (0x2b13)
13674 #define P_D2D3_DBLD_LG_PARAM                       (volatile uint32_t *)((0x2b13  << 2) + 0xff900000)
13675 // Bit 31:24 RW, db_factor,      unsigned gain of difference in DBLD
13676 // Bit 23:16 RW, db_hf_a,        see register DPF_LPF_CTRL:db_lpf_bpcoeff, sign
13677 // Bit 15:8  RW, db_hf_b,        see register DPF_LPF_CTRL:db_lpf_bpcoeff, sign
13678 // Bit 7:0   RW, db_hf_c,        see register DPF_LPF_CTRL:db_lpf_bpcoeff, sign
13679 #define   D2D3_DBLD_LPF_HCOEFF                     (0x2b14)
13680 #define P_D2D3_DBLD_LPF_HCOEFF                     (volatile uint32_t *)((0x2b14  << 2) + 0xff900000)
13681 // Bit 31:24 RW, db_owin_fill,   signed depth value outside the rectangular window defined in register DGEN_WIN_HOR and DGEN_WIN_VER
13682 // Bit 23:16 RW, db_vf_a,        see register DPF_LPF_CTRL:db_lpf_bpcoeff, sign
13683 // Bit 15:8  RW, db_vf_b,        see register DPF_LPF_CTRL:db_lpf_bpcoeff, sign
13684 // Bit 7:0   RW, db_vf_c,        see register DPF_LPF_CTRL:db_lpf_bpcoeff, sign
13685 #define   D2D3_DBLD_LPF_VCOEFF                     (0x2b15)
13686 #define P_D2D3_DBLD_LPF_VCOEFF                     (volatile uint32_t *)((0x2b15  << 2) + 0xff900000)
13687 // Bit 31:28 RW, hist_depth_idx,
13688 // Bit 27:26 Reserved
13689 // Bit 25    RW, mbdg_dep_neg,   1 to negate the output data of MBDG
13690 // Bit 24    RW, lbdg_dep_neg,   1 to negate the output data of LBDG
13691 // Bit 23:16 RW, db_f1_ctrl,     MUX1 selector
13692 //                               [1:0] MUX1 path1 selector, 0:summary, 1:CBDG, 2:MBDG, 3:LBDG
13693 //                               [3:2] MUX1 path2 selector, 0:summary, 1:CBDG, 2:MBDG, 3:LBDG
13694 //                               [6:4] MUX1 out1 selector, 1:CBDG, 2:MBDG, 3:LBDG, 4:summary, 5:MUX1out0, others:summary
13695 //                               [7] MUX1OUT0 selector, 0:MIN (MUX1PATH1,MUX1Path2), 1:MAX (MUX1Path1,MUX1Path2)
13696 // Bit 15:8  RW, db_f2_ctrl,     MUX2 selector
13697 //                               [1:0] MUX2 path1 selector, 0:MUX1OUT1, 1:CBDG, 2:MBDG, 3:LBDG
13698 //                               [3:2] MUX2 path2 selector, 0:MUX1OUT1, 1:CBDG, 2:MBDG, 3:LBDG
13699 //                               [6:4] MUX2 out1 selector, 1:CBDG, 2:MBDG, 3:LBDG, 4:summary, 5:MUX2out0, others:MUX2out0
13700 //                               [7] MUX2OUT0 selector, 0:MIN (MUX2PATH1,MUX2Path2), 1:MAX (MUX2Path1,MUX2Path2)
13701 // Bit 7:4   RW, db_fifo0_sel,   the source input of FIFO0
13702 //                               0: no use; 1:from CBDG; 2:from MBDG; 3:from LBDG others:reserved
13703 // Bit 3:0   RW, db_fifo1_sel,   the source input of FIFO1
13704 //                               0: no use; 1:from CBDG; 2:from MBDG; 3:from LBDG 4: from FIFO0; others:reserved
13705 #define   D2D3_DBLD_PATH_CTRL                      (0x2b16)
13706 #define P_D2D3_DBLD_PATH_CTRL                      (volatile uint32_t *)((0x2b16  << 2) + 0xff900000)
13707 // Indicate the input picture size in SCU18 unit
13708 // Bit 31:16 RW, szy_scui,       The vertical size
13709 // Bit 15:0  RW, szx_scui,       The horizontal size
13710 #define   D2D3_SCU18_INPIC_SIZE                    (0x2b17)
13711 #define P_D2D3_SCU18_INPIC_SIZE                    (volatile uint32_t *)((0x2b17  << 2) + 0xff900000)
13712 //------------------------------------------------------------------------------
13713 // MBDG registers
13714 // mg: model based depth generate module
13715 //------------------------------------------------------------------------------
13716 // Bit 31:18 Reserved
13717 // Bit 17    RW, mg_vp_en,       mdg vanish point enable, not used
13718 // Bit 16    RW, mg_sw_en,       1 to use the software forced parameter for the point D, U and C in MBDG
13719 // Bit 15:8  RW, mg_owin_fill,   Signed depth value outside the rectangular window defined in register DGEN_WIN_HOR and DGEN_WIN_VER
13720 // Bit 7     RW, mg_iir_en,      1 to enable the 2-taps IIR filter in MBDG
13721 // Bit 6:0   RW, mg_iir,         [6]: 1 to bypass the 2-taps IIR filter in MBDG
13722 //                               [5:0]:Unsigned coefficient of the 2-taps IIR filter in MBDG
13723 //                               [6]:bypass, 1:bypass, 0:not bypass
13724 #define   D2D3_MBDG_CTRL                           (0x2b18)
13725 #define P_D2D3_MBDG_CTRL                           (volatile uint32_t *)((0x2b18  << 2) + 0xff900000)
13726 // Bit 31:28 RW, mg_dtl_pxl_left, Max pixel number (1<< mg_dtl_pxl_left) using in the left window for activities in MBDG
13727 // Bit 27:24 RW, mg_dtl_pxl_right, Max pixel number (1<< mg_dtl_pxl_right) using in the right window for activities in MBDG
13728 // Bit 23:16 RW, mg_cx_sw,       Depth of point C in horizontal curve in MBDG for software forced
13729 // Bit 15:8  RW, mg_ux_sw,       Depth of point U in horizontal curve in MBDG for software forced
13730 // Bit 7:0   RW, mg_dx_sw,       Depth of point D in horizontal curve in MBDG for software forced
13731 #define   D2D3_MBDG_PARAM_0                        (0x2b19)
13732 #define P_D2D3_MBDG_PARAM_0                        (volatile uint32_t *)((0x2b19  << 2) + 0xff900000)
13733 // Bit 31:28 RW, mg_dtl_pxl_up,  Max pixel number (1<< mg_dtl_pxl_up) using in the top window for activities in MBDG
13734 // Bit 27:24 RW, mg_dtl_pxl_dn,  Max pixel number (1<< mg_dtl_pxl_dn) using in the bottom window for activities in MBDG
13735 // Bit 23:16 RW, mg_cy_sw,       Depth of point C in vertical curve in MBDG for software forced
13736 // Bit 15:8  RW, mg_uy_sw,       Depth of point U in vertical curve in MBDG for software forced
13737 // Bit 7:0   RW, mg_dy_sw,       Depth of point D in vertical curve in MBDG for software forced
13738 #define   D2D3_MBDG_PARAM_1                        (0x2b1a)
13739 #define P_D2D3_MBDG_PARAM_1                        (volatile uint32_t *)((0x2b1a  << 2) + 0xff900000)
13740 // Bit 31:24 RW, mg_dtl_ln_up,   Line number in the top window for activities in MBDG
13741 // Bit 23:16 RW, mg_dtl_ln_dn,   Line number in the bottom window for activities in MBDG
13742 // Bit 15:8  RW, mg_dtl_ln_left, Column number in the left window for activities in MBDG
13743 // Bit 7:0   RW, mg_dtl_ln_right,Column number in the right window for activities in MBDG
13744 #define   D2D3_MBDG_PARAM_2                        (0x2b1b)
13745 #define P_D2D3_MBDG_PARAM_2                        (volatile uint32_t *)((0x2b1b  << 2) + 0xff900000)
13746 // Bit 31:24 RW, mg_y_max,       Software initial depth of point D and U in vertical curve
13747 // Bit 23:16 RW, mg_y_min,       Software initial depth of point C in vertical curve
13748 // Bit 15:8  RW, mg_x_max,       Software initial depth of point D and U in horizontal curve
13749 // Bit 7:0   RW, mg_x_min,       Software initial depth of point C in horizontal curve
13750 #define   D2D3_MBDG_PARAM_3                        (0x2b1c)
13751 #define P_D2D3_MBDG_PARAM_3                        (volatile uint32_t *)((0x2b1c  << 2) + 0xff900000)
13752 // Bit 31:27 Reserved
13753 // Bit 26    RW, mg_y_adapt_en,  1 to enable the adaptive mode for point U/D in vertical curve calculation
13754 // Bit 25    RW, mg_xmm_adapt_en, 1 to enable the XMM adaptive mode for point U/D in horizontal curve calculation
13755 // Bit 24    RW, mg_x_adapt_en,  1 to enable the adaptive mode for point U/D in horizontal curve calculation
13756 // Bit 23:20 RW, mg_ytrans_1,    Shifter controller in vertical curve calculation, if mg_xtrans_1<0, right shift abs(mg_xtrans_1) bits, others left shift abs(mg_xtrans_1) bits
13757 // Bit 19:16 RW, mg_xtrans_1,    Shifter controller in horizontal curve calculation, if mg_xtrans_1<0, right shift abs(mg_xtrans_1) bits, others left shift abs(mg_xtrans_1) bits
13758 // Bit 15:8  RW, mg_yk_0,        The based activities value of the ACT for vertical curve
13759 // Bit 7:0   RW, mg_xk_0,        The based activities value of the ACT for horizontal curve
13760 #define   D2D3_MBDG_PARAM_4                        (0x2b1d)
13761 #define P_D2D3_MBDG_PARAM_4                        (volatile uint32_t *)((0x2b1d  << 2) + 0xff900000)
13762 // Bit 31:24 RW, mg_ysu3,        Quantized value 3 in vertical curve adaptive calculation
13763 // Bit 23:16 RW, mg_ysu2,        Quantized value 2 in vertical curve adaptive calculation
13764 // Bit 15:8  RW, mg_ysu1,        Quantized value 1 in vertical curve adaptive calculation
13765 // Bit 7:0   RW, mg_ysu0,        Quantized value 0 in vertical curve adaptive calculation
13766 #define   D2D3_MBDG_PARAM_5                        (0x2b1e)
13767 #define P_D2D3_MBDG_PARAM_5                        (volatile uint32_t *)((0x2b1e  << 2) + 0xff900000)
13768 // Bit 31:24 RW, mg_xsu3,        Quantized value 3 in horizontal curve adaptive calculation
13769 // Bit 23:16 RW, mg_xsu2,        Quantized value 2 in horizontal curve adaptive calculation
13770 // Bit 15:8  RW, mg_xsu1,        Quantized value 1 in horizontal curve adaptive calculation
13771 // Bit 7:0   RW, mg_xsu0,        Quantized value 0 in horizontal curve adaptive calculation
13772 #define   D2D3_MBDG_PARAM_6                        (0x2b1f)
13773 #define P_D2D3_MBDG_PARAM_6                        (volatile uint32_t *)((0x2b1f  << 2) + 0xff900000)
13774 // Bit 31:16 Reserved
13775 // Bit 15:8  RW, mg_xsu4,        Quantized value 4 in horizontal curve adaptive calculation
13776 // Bit 7:0   RW, mg_ysu4,        Quantized value 4 in vertical curve adaptive calculation
13777 #define   D2D3_MBDG_PARAM_7                        (0x2b20)
13778 #define P_D2D3_MBDG_PARAM_7                        (volatile uint32_t *)((0x2b20  << 2) + 0xff900000)
13779 // Bit 31:28 RW, dbg_hscnt_sel   see DBG_STATUS_2
13780 // Bit 27:25 Reserved
13781 // Bit 24    RW, dbg_dbr_en,     1 to enable debug mode in DBR
13782 // Bit 23:16 RW, dbg_force_data, Forced data in debug mode
13783 // Bit 15:12 RW, dbg_bld_ctrl,   debug controller for DBLD
13784 //                               [12]:enable;  [13]: 0 for passive mode, 0 for handshake mode
13785 //                               [15:14]: 0 for constant mode, 1 for step1 mode
13786 // Bit 11:8  RW, dbg_mg_ctrl,    debug controller for MBDG
13787 //                               [8]:enable;  [9]: 0 for passive mode, 0 for handshake mode
13788 //                               [11:10]: 0 for constant mode, 1 for step1 mode
13789 // Bit 7:4   RW, dbg_cg_ctrl,    debug controller for CBDG
13790 //                               [4]:enable;  [5]: 0 for passive mode, 0 for handshake mode
13791 //                               [7:6]: 0 for constant mode, 1 for step1 mode
13792 // Bit 3:0   RW, dbg_lg_ctrl,    debug controller for LBDG
13793 //                               [0]:enable;  [1]: 0 for passive mode, 0 for handshake mode
13794 //                               [3:2]: 0 for constant mode, 1 for step1 mode
13795 #define   D2D3_DBG_CTRL                            (0x2b23)
13796 #define P_D2D3_DBG_CTRL                            (volatile uint32_t *)((0x2b23  << 2) + 0xff900000)
13797 //------------------------------------------------------------------------------
13798 // DWMIF registers
13799 //------------------------------------------------------------------------------
13800 // Bit 31:18 Reserved
13801 // Bit 17    RW, dw_x_rev        0: Normal write data from left to right in horizontal
13802 //                               1: Reversed write data from left to right in horizontal
13803 // Bit 16    RW, dw_y_rev        0: Normal write data from top to bottom in horizontal
13804 //                               1: Reversed write data from bottom to top in horizontal
13805 // Bit 15    RW, dw_done_clr     1 to clear register depw_done (DWMIF_STATUS)
13806 // Bit 14    RW, dw_little_endian, 0: data is ordered in big-endian, 1: little endian
13807 // Bit 13:12 RW, dw_pic_struct,  0:read every line, 1:reserved, 2:read even line, 3:read odd line
13808 // Bit 11    RW, dw_urgent,      urgent index
13809 // Bit 10    RW, dw_clr_wrrsp,   1:clear the write fifo counter
13810 // Bit 9     RW, dw_canvas_wr,   canvas write initialization again
13811 // Bit 8     RW, dw_req_en,      1 to enable write request
13812 // Bit 7:0   RW, dw_canvas_index,Canvas index for the MSB of memory address for memory write
13813 #define   D2D3_DWMIF_CTRL                          (0x2b24)
13814 #define P_D2D3_DWMIF_CTRL                          (volatile uint32_t *)((0x2b24  << 2) + 0xff900000)
13815 // Bit 31    Reserved
13816 // Bit 30:16 RW, dw_end_x,       Horizontal end position for memory write, count by BYTE
13817 // Bit 15    Reserved
13818 // Bit 14:0  RW, dw_start_x,     Horizontal start position for memory write, count by BYTE
13819 #define   D2D3_DWMIF_HPOS                          (0x2b25)
13820 #define P_D2D3_DWMIF_HPOS                          (volatile uint32_t *)((0x2b25  << 2) + 0xff900000)
13821 // Bit 31:29 Reserved
13822 // Bit 28:16 RW, dw_end_y,       Vertical end position for memory write, count by BYTE
13823 // Bit 15:13 Reserved
13824 // Bit 12:0  RW, dw_start_y,     Vertical start position for memory write, count by BYTE
13825 #define   D2D3_DWMIF_VPOS                          (0x2b26)
13826 #define P_D2D3_DWMIF_VPOS                          (volatile uint32_t *)((0x2b26  << 2) + 0xff900000)
13827 // Bit 31:28 Reserved
13828 // Bit 27:16 RW, dw_vsizem1,     Vertical size for memory write, equal the size minus 1
13829 // Bit 15:12 Reserved
13830 // Bit 11:0  RW, dw_hsizem1,     Horizontal size for memory write, equal the size minus 1
13831 #define   D2D3_DWMIF_SIZE                          (0x2b27)
13832 #define P_D2D3_DWMIF_SIZE                          (volatile uint32_t *)((0x2b27  << 2) + 0xff900000)
13833 //------------------------------------------------------------------------------
13834 // DRMIF registers
13835 //------------------------------------------------------------------------------
13836 // Bit 31:18 Reserved
13837 // Bit 17    RW, dr_y_rev,       0: Normal Read data from top to bottom in horizontal
13838 //                               1: Reversed read data from bottom to top in horizontal
13839 // Bit 16    RW, dr_x_rev,       0: Normal Read data from left to right in horizontal
13840 //                               1: Reversed read data from right to left in horizontal
13841 // Bit 15    RW, dr_clr_fifo_error, 1 to clear the overflow flag of the sticky FIFO
13842 // Bit 14    RW, dr_little_endian, 0: data is ordered in big-endian; 1: little-endian
13843 // Bit 13:12 RW, dr_pic_struct,  0: progressive;  1: Reserved;
13844 //                               2: interlaced, even line;  3: interlaced, odd line
13845 // Bit 11    RW, dr_urgent,      urgent index, no use in this system
13846 // Bit 10:9  RW, dr_burst_size,  Burst read length for each request; 0=24,1=32,2=48,3=64
13847 // Bit 8     RW, dr_req_en,      1 to enable read request
13848 // Bit 7:0   RW, dr_canvas_index, Canvas index for the MSB of memory address for memory read
13849 #define   D2D3_DRMIF_CTRL                          (0x2b28)
13850 #define P_D2D3_DRMIF_CTRL                          (volatile uint32_t *)((0x2b28  << 2) + 0xff900000)
13851 // Bit 31    Reserved
13852 // Bit 30:16 RW, dr_end_x,       Horizontal end position for memory read, count by BYTE
13853 // Bit 15    Reserved
13854 // Bit 14:0  RW, dr_start_x,     Horizontal start position for memory read, count by BYTE
13855 #define   D2D3_DRMIF_HPOS                          (0x2b29)
13856 #define P_D2D3_DRMIF_HPOS                          (volatile uint32_t *)((0x2b29  << 2) + 0xff900000)
13857 // Bit 31:29 Reserved
13858 // Bit 28:16 RW, dr_end_y,       Vertical end position for memory read, count by BYTE
13859 // Bit 15:13 Reserved
13860 // Bit 12:0  RW, dr_start_y,     Vertical start position for memory read, count by BYTE
13861 #define   D2D3_DRMIF_VPOS                          (0x2b2a)
13862 #define P_D2D3_DRMIF_VPOS                          (volatile uint32_t *)((0x2b2a  << 2) + 0xff900000)
13863 //------------------------------------------------------------------------------
13864 // PDR registers
13865 // ddd: parallax based render
13866 //------------------------------------------------------------------------------
13867 // Bit 31:8  Reserved
13868 // Bit 7     RW, ddd_brdlpf_en,  1 to enable the smooth filter on the depth around the boundary
13869 // Bit 6     RW, ddd_extn_black, 1 to enable the function to fill black colour when interpolated pixels is outside the picture in DBR
13870 // Bit 5     RW, ddd_wrap_en,    Reserved
13871 // Bit 4     RW, ddd_hhalf,      1 to indicate the left/right line length is a half of original line.
13872 // Bit 3:2   RW, ddd_out_mode,   Reserved
13873 // Bit 1:0   RW, ddd_lomode,     wrap & pbr interleave mode:
13874 //                               2'b0x: whole line is left or right;
13875 //                               2'b10: d2p_lar=1(D2P_PARAM_1), rlrlrlrl inteleave in one line,
13876 //                                      d2p_lar=0(D2P_PARAM_1), lrlrlrlr inteleave in one line,
13877 //                               2'b11: d2p_lar=1(D2P_PARAM_1), rrrrrç’´llll, half line is right, another half is left,
13878 //                                      d2p_lar=0(D2P_PARAM_1), lllllç’»rrrr, half line is left, another half is right,
13879 #define   D2D3_DBR_DDD_CTRL                        (0x2b2c)
13880 #define P_D2D3_DBR_DDD_CTRL                        (volatile uint32_t *)((0x2b2c  << 2) + 0xff900000)
13881 // Bit 31:0  RW, ddd_dbg_ctrl,   no use
13882 #define   D2D3_DBR_DDD_DBG                         (0x2b2d)
13883 #define P_D2D3_DBR_DDD_DBG                         (volatile uint32_t *)((0x2b2d  << 2) + 0xff900000)
13884 //------------------------------------------------------------------------------
13885 // LRDMX registers
13886 //------------------------------------------------------------------------------
13887 // Bit 31:9  Reserved
13888 // Bit 8     RW, lr_merge,       1: all the left/right input go to the left channel output
13889 // Bit 7:6   RW, lrd_ff0_sel,    FF0 source selector
13890 //                               0:from left input; 1:from right input; 2:from FF0; 3:no used
13891 // Bit 5:4   RW, lrd_ff1_sel,    FF1 source selector
13892 //                               0:from left input; 1:from right input; 2:from FF0; 3:no used
13893 // Bit 3:2   RW, lrd_lout_sel,   left channel DEMUX
13894 //                               00: ff0  01:ff1   10: left input  11:right input
13895 // Bit 1:0   RW, lrd_rout_sel,   right channel DEMUX
13896 //                               00: ff1  01:ff0   10: left input  11:right input
13897 #define   D2D3_DBR_LRDMX_CTRL                      (0x2b2f)
13898 #define P_D2D3_DBR_LRDMX_CTRL                      (volatile uint32_t *)((0x2b2f  << 2) + 0xff900000)
13899 //------------------------------------------------------------------------------
13900 // Read Only registers
13901 //------------------------------------------------------------------------------
13902 // Bit 31:24 RO, ro_cg_vprel,    vanish point's reliability in CBDG
13903 // Bit 23:12 RO, ro_cg_vpx,      vanish point's X-Axis in CBDG
13904 // Bit 11:0  RO, ro_cg_vpy,      vanish point's Y-Axis in CBDG
13905 #define   D2D3_CBDG_STATUS_1                       (0x2b30)
13906 #define P_D2D3_CBDG_STATUS_1                       (volatile uint32_t *)((0x2b30  << 2) + 0xff900000)
13907 // Bit 31:24 RO, ro_mg_cx[7:0],  X-Axis of point C in horizontal curve in MBDG
13908 // Bit 23:16 RO, ro_mg_ux,       Depth value of point U in horizontal curve in MBDG
13909 // Bit 15:8  RO, ro_mg_dx,       Depth value of point D in horizontal curve in MBDG
13910 // Bit 7:0   RO, ro_mg_minx,     Depth value of point C in horizontal curve in MBDG
13911 #define   D2D3_MBDG_STATUS_1                       (0x2b31)
13912 #define P_D2D3_MBDG_STATUS_1                       (volatile uint32_t *)((0x2b31  << 2) + 0xff900000)
13913 // Bit 31:24 RO, ro_mg_cy[7:0],  X-Axis of point C in vertical curve in MBDG
13914 // Bit 23:16 RO, ro_mg_uy,       Depth value of point U in vertical curve in MBDG
13915 // Bit 15:8  RO, ro_mg_dy,       Depth value of point D in vertical curve in MBDG
13916 // Bit 7:0   RO, ro_mg_miny,     Depth value of point C in vertical curve in MBDG
13917 #define   D2D3_MBDG_STATUS_2                       (0x2b32)
13918 #define P_D2D3_MBDG_STATUS_2                       (volatile uint32_t *)((0x2b32  << 2) + 0xff900000)
13919 // Bit 31    RO, ro_wrap_status, 1 indicate the D2P_WRAP is busy to perform the initialization
13920 // Bit 30:8  Reserved
13921 // Bit 7:4   RO, ro_mg_cy[11:8], X-Axis of point C in vertical curve in MBDG
13922 // Bit 3:0   RO, ro_mg_cx[11:8], X-Axis of point C in horizontal curve in MBDG
13923 #define   D2D3_MBDG_STATUS_3                       (0x2b33)
13924 #define P_D2D3_MBDG_STATUS_3                       (volatile uint32_t *)((0x2b33  << 2) + 0xff900000)
13925 // Bit 31:21 Reserved
13926 // Bit 20:0  RO, ro_mg_sum_u,    ACT(top): activities of the top part
13927 #define   D2D3_MBDG_STATUS_4                       (0x2b34)
13928 #define P_D2D3_MBDG_STATUS_4                       (volatile uint32_t *)((0x2b34  << 2) + 0xff900000)
13929 // Bit 31:21 Reserved
13930 // Bit 20:0  RO, ro_mg_sum_d,    ACT(bottom): activities of the bottom part
13931 #define   D2D3_MBDG_STATUS_5                       (0x2b35)
13932 #define P_D2D3_MBDG_STATUS_5                       (volatile uint32_t *)((0x2b35  << 2) + 0xff900000)
13933 // Bit 31:21 Reserved
13934 // Bit 20:0  RO, ro_mg_sum_l,    ACT(left): activities of the left part
13935 #define   D2D3_MBDG_STATUS_6                       (0x2b36)
13936 #define P_D2D3_MBDG_STATUS_6                       (volatile uint32_t *)((0x2b36  << 2) + 0xff900000)
13937 // Bit 31:21 Reserved
13938 // Bit 20:0  RO, ro_mg_sum_r,    ACT(right): activities of the right part
13939 #define   D2D3_MBDG_STATUS_7                       (0x2b37)
13940 #define P_D2D3_MBDG_STATUS_7                       (volatile uint32_t *)((0x2b37  << 2) + 0xff900000)
13941 // Bit 31:0 dbg_handshake_ro0,   handshake signal for debug, internal srdy and rrdy
13942 #define   D2D3_DBG_STATUS_1                        (0x2b38)
13943 #define P_D2D3_DBG_STATUS_1                        (volatile uint32_t *)((0x2b38  << 2) + 0xff900000)
13944 // Bit 31:0 dbg_hscnt,           dbg_hscnt_sel == 4'h0, output lg hscnt
13945 //                               dbg_hscnt_sel == 4'h1, output cg hscnt
13946 //                               dbg_hscnt_sel == 4'h2, output mg hscnt
13947 //                               dbg_hscnt_sel == 4'h3, output bld hscnt
13948 //                               dbg_hscnt_sel == other value, output 32'h0
13949 #define   D2D3_DBG_STATUS_2                        (0x2b39)
13950 #define P_D2D3_DBG_STATUS_2                        (volatile uint32_t *)((0x2b39  << 2) + 0xff900000)
13951 // Bit 31:0 RO, drmif_status,    drmif module internal status
13952 #define   D2D3_DRMIF_STATUS                        (0x2b3a)
13953 #define P_D2D3_DRMIF_STATUS                        (volatile uint32_t *)((0x2b3a  << 2) + 0xff900000)
13954 // Bit 31:2 RO, Reserved
13955 // Bit 1:0  RO, d2d3_status0,    [1]: depw_done, one field depth write to ddr has done
13956 //                               [0]: dwmif_pending_ddr_wrrsp, 1 to indicate write response from ddr
13957 #define   D2D3_DWMIF_STATUS                        (0x2b3b)
13958 #define P_D2D3_DWMIF_STATUS                        (volatile uint32_t *)((0x2b3b  << 2) + 0xff900000)
13959 // Bit 31:24 Reserved
13960 // Bit 23:0  RO, ro_meet_sum,    register sumxy_sum_dbg in CBDG
13961 #define   D2D3_CBDG_STATUS_2                       (0x2b3c)
13962 #define P_D2D3_CBDG_STATUS_2                       (volatile uint32_t *)((0x2b3c  << 2) + 0xff900000)
13963 // Bit 31:20 Reserved
13964 // Bit 19:0  RO, ro_hist_depth,
13965 #define   D2D3_DBLD_STATUS                         (0x2b3d)
13966 #define P_D2D3_DBLD_STATUS                         (volatile uint32_t *)((0x2b3d  << 2) + 0xff900000)
13967 // Bit 31:0 Reserved
13968 #define   D2D3_RESEV_STATUS1                       (0x2b3e)
13969 #define P_D2D3_RESEV_STATUS1                       (volatile uint32_t *)((0x2b3e  << 2) + 0xff900000)
13970 // Bit 31:0  Reserved
13971 #define   D2D3_RESEV_STATUS2                       (0x2b3f)
13972 #define P_D2D3_RESEV_STATUS2                       (volatile uint32_t *)((0x2b3f  << 2) + 0xff900000)
13973 //
13974 // Closing file:  d2d3_regs.h
13975 //
13976 //========================================================================
13977 //  MIPI DSI Host Controller        (16'h2c00 - 16'h2cff)
13978 //
13979 //========================================================================
13980 //`define  DSI_VCBUS_BASE             8'h2c
13981 //`include "dsi_regs.h"
13982 //========================================================================
13983 //  ISP register    (16'h2d00 - 16'h2dff)
13984 //========================================================================
13985 //`define ISP_VCBUS_BASE                   8'h2d
13986 //`include "isp_reg.h"
13987 //`define MADB_VCBUS_BASE                8'h2d
13988 //
13989 // Reading file:  dnr_regs.h
13990 //
13991 // synopsys translate_off
13992 // synopsys translate_on
13993 // -----------------------------------------------
13994 // CBUS_BASE:  MADB_VCBUS_BASE = 0x2d
13995 // -----------------------------------------------
13996 #define   DNR_CTRL                                 (0x2d00)
13997 #define P_DNR_CTRL                                 (volatile uint32_t *)((0x2d00  << 2) + 0xff900000)
13998 //Bit 31:17,        reserved
13999 //Bit 16,            reg_dnr_en                                     , dnr enable                  . unsigned  , default = 1
14000 //Bit 15,            reg_dnr_db_vdbstep                          , vdb step, 0: 4, 1: 8        . unsigned  , default = 1
14001 //Bit 14,            reg_dnr_db_vdbprten                         , vdb protectoin enable       . unsigned  , default = 1
14002 //Bit 13,            reg_dnr_gbs_difen                           , enable dif (between LR and LL/RR) condition for gbs stat.. unsigned  , default = 0
14003 //Bit 12,            reg_dnr_luma_en                             , enable ycbcr2luma module    . unsigned  , default = 1
14004 //Bit 11:10,        reg_dnr_db_mod                              , deblocking mode, 0: disable, 1: horizontal deblocking, 2: vertical deblocking, 3: horizontal & vertical deblocking. unsigned  , default = 3
14005 //Bit  9,            reg_dnr_db_chrmen                           , enable chroma deblocking    . unsigned  , default = 1
14006 //Bit  8,            reg_dnr_hvdif_mod                           , 0: calc. difs by original Y, 1: by new luma. unsigned  , default = 1
14007 //Bit  7,            reserved
14008 //Bit  6: 4,        reg_dnr_demo_lften                          , b0: Y b1:U b2:V             . unsigned  , default = 7
14009 //Bit  3,            reserved
14010 //Bit  2: 0,        reg_dnr_demo_rgten                          , b0: Y b1:U b2:V             . unsigned  , default = 7
14011 #define   DNR_HVSIZE                               (0x2d01)
14012 #define P_DNR_HVSIZE                               (volatile uint32_t *)((0x2d01  << 2) + 0xff900000)
14013 //Bit 31:29,        reserved
14014 //Bit 28:16,        reg_dnr_hsize                               , hsize                       . unsigned  , default = 0
14015 //Bit 15:13,        reserved
14016 //Bit 12: 0,        reg_dnr_vsize                               , vsize                       . unsigned  , default = 0
14017 #define   DNR_DBLK_BLANK_NUM                       (0x2d02)
14018 #define P_DNR_DBLK_BLANK_NUM                       (volatile uint32_t *)((0x2d02  << 2) + 0xff900000)
14019 //Bit 31:16,        reserved
14020 //Bit 15: 8,        reg_dblk_hblank_num                         , deblock hor blank num       . unsigned  , default = 16
14021 //Bit  7: 0,        reg_dblk_vblank_num                         , deblock ver blank num       . unsigned  , default = 45
14022 #define   DNR_BLK_OFFST                            (0x2d03)
14023 #define P_DNR_BLK_OFFST                            (volatile uint32_t *)((0x2d03  << 2) + 0xff900000)
14024 //Bit 31: 7,        reserved
14025 //Bit  6: 4,        reg_dnr_hbofst                              , horizontal block offset may provide by software calc.. unsigned  , default = 0
14026 //Bit  3,            reserved
14027 //Bit  2: 0,        reg_dnr_vbofst                              , vertical block offset may provide by software calc.. unsigned  , default = 0
14028 #define   DNR_GBS                                  (0x2d04)
14029 #define P_DNR_GBS                                  (volatile uint32_t *)((0x2d04  << 2) + 0xff900000)
14030 //Bit 31: 2,        reserved
14031 //Bit  1: 0,        reg_dnr_gbs                                 , global block strength may update by software calc.. unsigned  , default = 0
14032 #define   DNR_HBOFFST_STAT                         (0x2d05)
14033 #define P_DNR_HBOFFST_STAT                         (volatile uint32_t *)((0x2d05  << 2) + 0xff900000)
14034 //Bit 31:24,        reg_dnr_hbof_difthd                         , dif threshold (>=) between LR and LL/RR. unsigned  , default = 2
14035 //Bit 23:16,        reg_dnr_hbof_edgethd                        , edge threshold (<=) for LR  . unsigned  , default = 32
14036 //Bit 15: 8,        reg_dnr_hbof_flatthd                        , flat threshold (>=) for LR  . unsigned  , default = 0
14037 //Bit  7,            reserved
14038 //Bit  6: 4,        reg_dnr_hbof_delta                          , delta for weighted bin accumulator. unsigned  , default = 1
14039 //Bit  3,            reserved
14040 //Bit  2: 0,        reg_dnr_hbof_statmod                        , statistic mode for horizontal block offset, 0: count flags for 8-bin, 1: count LRs for 8-bin, 2: count difs for 8-bin, 3: count weighted flags for 8-bin, 4: count flags for first 32-bin, 5: count LRs for first 32-bin, 6 or 7: count difs for first 32-bin. unsigned  , default = 2
14041 #define   DNR_VBOFFST_STAT                         (0x2d06)
14042 #define P_DNR_VBOFFST_STAT                         (volatile uint32_t *)((0x2d06  << 2) + 0xff900000)
14043 //Bit 31:24,        reg_dnr_vbof_difthd                         , dif threshold (>=) between Up and Dw. unsigned  , default = 1
14044 //Bit 23:16,        reg_dnr_vbof_edgethd                        , edge threshold (<=) for Up/Dw. unsigned  , default = 16
14045 //Bit 15: 8,        reg_dnr_vbof_flatthd                        , flat threshold (>=) for Up/Dw. unsigned  , default = 0
14046 //Bit  7,            reserved
14047 //Bit  6: 4,        reg_dnr_vbof_delta                          , delta for weighted bin accumulator. unsigned  , default = 1
14048 //Bit  3,            reserved
14049 //Bit  2: 0,        reg_dnr_vbof_statmod                        , statistic mode for vertical block offset, 0: count flags for 8-bin, 1: count Ups for 8-bin, 2: count difs for 8-bin, 3: count weighted flags for 8-bin, 4: count flags for first 32-bin, 5: count Ups for first 32-bin, 6 or 7: count difs for first 32-bin. unsigned  , default = 2
14050 #define   DNR_GBS_STAT                             (0x2d07)
14051 #define P_DNR_GBS_STAT                             (volatile uint32_t *)((0x2d07  << 2) + 0xff900000)
14052 //Bit 31:24,        reg_dnr_gbs_edgethd                         , edge threshold (<=) for LR  . unsigned  , default = 32
14053 //Bit 23:16,        reg_dnr_gbs_flatthd                         , flat threshold (>=) for LR  . unsigned  , default = 0
14054 //Bit 15: 8,        reg_dnr_gbs_varthd                          , variation threshold (<=) for Lvar/Rvar. unsigned  , default = 16
14055 //Bit  7: 0,        reg_dnr_gbs_difthd                          , dif threshold (>=) between LR and LL/RR. unsigned  , default = 2
14056 #define   DNR_STAT_X_START_END                     (0x2d08)
14057 #define P_DNR_STAT_X_START_END                     (volatile uint32_t *)((0x2d08  << 2) + 0xff900000)
14058 //Bit 31:30,        reserved
14059 //Bit 29:16,        reg_dnr_stat_xst                                                          . unsigned  , default = 24
14060 //Bit 15:14,        reserved
14061 //Bit 13: 0,        reg_dnr_stat_xed                                                          . unsigned  , default = HSIZE - 25
14062 #define   DNR_STAT_Y_START_END                     (0x2d09)
14063 #define P_DNR_STAT_Y_START_END                     (volatile uint32_t *)((0x2d09  << 2) + 0xff900000)
14064 //Bit 31:30,        reserved
14065 //Bit 29:16,        reg_dnr_stat_yst                                                          . unsigned  , default = 24
14066 //Bit 15:14,        reserved
14067 //Bit 13: 0,        reg_dnr_stat_yed                                                          . unsigned  , default = VSIZE - 25
14068 #define   DNR_LUMA                                 (0x2d0a)
14069 #define P_DNR_LUMA                                 (volatile uint32_t *)((0x2d0a  << 2) + 0xff900000)
14070 //Bit 31:27,        reserved
14071 //Bit 26:24,        reg_dnr_luma_sqrtshft                       , left shift for fast squart of chroma, [0, 4]. unsigned  , default = 2
14072 //Bit 23:21,        reserved
14073 //Bit 20:16,        reg_dnr_luma_sqrtoffst                      , offset for fast squart of chroma. signed    , default = 0
14074 //Bit 15,            reserved
14075 //Bit 14:12,        reg_dnr_luma_wcmod                          , theta related to warm/cool segment line, 0: 0, 1: 45, 2: 90, 3: 135, 4: 180, 5: 225, 6: 270, 7: 315. . unsigned  , default = 3
14076 //Bit 11: 8,        reg_dnr_luma_cshft                          , shift for calc. delta part, 0~8,  . unsigned  , default = 8
14077 //Bit  7: 6,        reserved
14078 //Bit  5: 0,        reg_dnr_luma_cgain                          , final gain for delta part, 32 normalized to "1". unsigned  , default = 4
14079 #define   DNR_DB_YEDGE_THD                         (0x2d0b)
14080 #define P_DNR_DB_YEDGE_THD                         (volatile uint32_t *)((0x2d0b  << 2) + 0xff900000)
14081 //Bit 31:24,        reg_dnr_db_yedgethd0                        , edge threshold0 for luma    . unsigned  , default = 12
14082 //Bit 23:16,        reg_dnr_db_yedgethd1                        , edge threshold1 for luma    . unsigned  , default = 15
14083 //Bit 15: 8,        reg_dnr_db_yedgethd2                        , edge threshold2 for luma    . unsigned  , default = 18
14084 //Bit  7: 0,        reg_dnr_db_yedgethd3                        , edge threshold3 for luma    . unsigned  , default = 25
14085 #define   DNR_DB_CEDGE_THD                         (0x2d0c)
14086 #define P_DNR_DB_CEDGE_THD                         (volatile uint32_t *)((0x2d0c  << 2) + 0xff900000)
14087 //Bit 31:24,        reg_dnr_db_cedgethd0                        , edge threshold0 for chroma  . unsigned  , default = 12
14088 //Bit 23:16,        reg_dnr_db_cedgethd1                        , edge threshold1 for chroma  . unsigned  , default = 15
14089 //Bit 15: 8,        reg_dnr_db_cedgethd2                        , edge threshold2 for chroma  . unsigned  , default = 18
14090 //Bit  7: 0,        reg_dnr_db_cedgethd3                        , edge threshold3 for chroma  . unsigned  , default = 25
14091 #define   DNR_DB_HGAP                              (0x2d0d)
14092 #define P_DNR_DB_HGAP                              (volatile uint32_t *)((0x2d0d  << 2) + 0xff900000)
14093 //Bit 31:24,        reserved
14094 //Bit 23:16,        reg_dnr_db_hgapthd                          , horizontal gap thd (<=) for very sure blockiness . unsigned  , default = 8
14095 //Bit 15: 8,        reg_dnr_db_hgapdifthd                       , dif thd between hgap and lft/rgt hdifs. unsigned  , default = 1
14096 //Bit  7: 1,        reserved
14097 //Bit  0,            reg_dnr_db_hgapmod                          , horizontal gap calc. mode, 0: just use current col x, 1: find max between (x-1, x, x+1) . unsigned  , default = 0
14098 #define   DNR_DB_HBS                               (0x2d0e)
14099 #define P_DNR_DB_HBS                               (volatile uint32_t *)((0x2d0e  << 2) + 0xff900000)
14100 //Bit 31: 6,        reserved
14101 //Bit  5: 4,        reg_dnr_db_hbsup                            , horizontal bs up value      . unsigned  , default = 1
14102 //Bit  3: 2,        reg_dnr_db_hbsmax                           , max value of hbs for global control. unsigned  , default = 3
14103 //Bit  1: 0,        reg_dnr_db_hgbsthd                          , gbs thd (>=) for hbs calc.  . unsigned  , default = 1
14104 #define   DNR_DB_HACT                              (0x2d0f)
14105 #define P_DNR_DB_HACT                              (volatile uint32_t *)((0x2d0f  << 2) + 0xff900000)
14106 //Bit 31:16,        reserved
14107 //Bit 15: 8,        reg_dnr_db_hactthd0                         , thd0 of hact, for block classification. unsigned  , default = 10
14108 //Bit  7: 0,        reg_dnr_db_hactthd1                         , thd1 of hact, for block classification. unsigned  , default = 32
14109 #define   DNR_DB_YHDELTA_GAIN                      (0x2d10)
14110 #define P_DNR_DB_YHDELTA_GAIN                      (volatile uint32_t *)((0x2d10  << 2) + 0xff900000)
14111 //Bit 31:27,        reserved
14112 //Bit 26:24,        reg_dnr_db_yhdeltagain1                     , (p1-q1) gain for Y's delta calc. when bs=1, normalized 8 as "1" . unsigned  , default = 2
14113 //Bit 23,            reserved
14114 //Bit 22:20,        reg_dnr_db_yhdeltagain2                     , (p1-q1) gain for Y's delta calc. when bs=2, normalized 8 as "1" . unsigned  , default = 0
14115 //Bit 19,            reserved
14116 //Bit 18:16,        reg_dnr_db_yhdeltagain3                     , (p1-q1) gain for Y's delta calc. when bs=3, normalized 8 as "1" . unsigned  , default = 0
14117 //Bit 15,            reserved
14118 //Bit 14: 8,        reg_dnr_db_yhdeltaadjoffst                  , offset for adjust Y's hdelta (-64, 63). signed    , default = 0
14119 //Bit  7: 6,        reserved
14120 //Bit  5: 0,        reg_dnr_db_yhdeltaadjgain                   , gain for adjust Y's hdelta, normalized 32 as "1" . unsigned  , default = 32
14121 #define   DNR_DB_YHDELTA2_GAIN                     (0x2d11)
14122 #define P_DNR_DB_YHDELTA2_GAIN                     (volatile uint32_t *)((0x2d11  << 2) + 0xff900000)
14123 //Bit 31:30,        reserved
14124 //Bit 29:24,        reg_dnr_db_yhdelta2gain2                    , gain for bs=2's adjust Y's hdelta2, normalized 64 as "1" . unsigned  , default = 8
14125 //Bit 23:21,        reserved
14126 //Bit 20:16,        reg_dnr_db_yhdelta2offst2                   , offset for bs=2's adjust Y's hdelta2 (-16, 15). signed    , default = 0
14127 //Bit 15:14,        reserved
14128 //Bit 13: 8,        reg_dnr_db_yhdelta2gain3                    , gain for bs=3's adjust Y's hdelta2, normalized 64 as "1" . unsigned  , default = 4
14129 //Bit  7: 5,        reserved
14130 //Bit  4: 0,        reg_dnr_db_yhdelta2offst3                   , offset for bs=3's adjust Y's hdelta2 (-16, 15). signed    , default = 0
14131 #define   DNR_DB_CHDELTA_GAIN                      (0x2d12)
14132 #define P_DNR_DB_CHDELTA_GAIN                      (volatile uint32_t *)((0x2d12  << 2) + 0xff900000)
14133 //Bit 31:27,        reserved
14134 //Bit 26:24,        reg_dnr_db_chdeltagain1                     , (p1-q1) gain for UV's delta calc. when bs=1, normalized 8 as "1". unsigned  , default = 2
14135 //Bit 23,            reserved
14136 //Bit 22:20,        reg_dnr_db_chdeltagain2                     , (p1-q1) gain for UV's delta calc. when bs=2, normalized 8 as "1". unsigned  , default = 0
14137 //Bit 19,            reserved
14138 //Bit 18:16,        reg_dnr_db_chdeltagain3                     , (p1-q1) gain for UV's delta calc. when bs=3, normalized 8 as "1". unsigned  , default = 0
14139 //Bit 15,            reserved
14140 //Bit 14: 8,        reg_dnr_db_chdeltaadjoffst                  , offset for adjust UV's hdelta (-64, 63). signed    , default = 0
14141 //Bit  7: 6,        reserved
14142 //Bit  5: 0,        reg_dnr_db_chdeltaadjgain                   , gain for adjust UV's hdelta, normalized 32 as "1". unsigned  , default = 32
14143 #define   DNR_DB_CHDELTA2_GAIN                     (0x2d13)
14144 #define P_DNR_DB_CHDELTA2_GAIN                     (volatile uint32_t *)((0x2d13  << 2) + 0xff900000)
14145 //Bit 31:30,        reserved
14146 //Bit 29:24,        reg_dnr_db_chdelta2gain2                    , gain for bs=2's adjust UV's hdelta2, normalized 64 as "1" . unsigned  , default = 8
14147 //Bit 23:21,        reserved
14148 //Bit 20:16,        reg_dnr_db_chdelta2offst2                   , offset for bs=2's adjust UV's hdelta2 (-16, 15). signed    , default = 0
14149 //Bit 15:14,        reserved
14150 //Bit 13: 8,        reg_dnr_db_chdelta2gain3                    , gain for bs=2's adjust UV's hdelta2, normalized 64 as "1" . unsigned  , default = 4
14151 //Bit  7: 5,        reserved
14152 //Bit  4: 0,        reg_dnr_db_chdelta2offst3                   , offset for bs=2's adjust UV's hdelta2 (-16, 15). signed    , default = 0
14153 #define   DNR_DB_YC_VEDGE_THD                      (0x2d14)
14154 #define P_DNR_DB_YC_VEDGE_THD                      (volatile uint32_t *)((0x2d14  << 2) + 0xff900000)
14155 //Bit 31:16,        reserved
14156 //Bit 15: 8,        reg_dnr_db_yvedgethd                        , special Y's edge thd for vdb. unsigned  , default = 12
14157 //Bit  7: 0,        reg_dnr_db_cvedgethd                        , special UV's edge thd for vdb. unsigned  , default = 12
14158 #define   DNR_DB_VBS_MISC                          (0x2d15)
14159 #define P_DNR_DB_VBS_MISC                          (volatile uint32_t *)((0x2d15  << 2) + 0xff900000)
14160 //Bit 31:24,        reg_dnr_db_vgapthd                          , vertical gap thd (<=) for very sure blockiness . unsigned  , default = 8
14161 //Bit 23:16,        reg_dnr_db_vactthd                          , thd of vact, for block classification . unsigned  , default = 10
14162 //Bit 15: 8,        reg_dnr_db_vgapdifthd                       , dif thd between vgap and vact. unsigned  , default = 4
14163 //Bit  7: 4,        reserved
14164 //Bit  3: 2,        reg_dnr_db_vbsmax                           , max value of vbs for global control. unsigned  , default = 2
14165 //Bit  1: 0,        reg_dnr_db_vgbsthd                          , gbs thd (>=) for vbs calc.  . unsigned  , default = 1
14166 #define   DNR_DB_YVDELTA_GAIN                      (0x2d16)
14167 #define P_DNR_DB_YVDELTA_GAIN                      (volatile uint32_t *)((0x2d16  << 2) + 0xff900000)
14168 //Bit 31:30,        reserved
14169 //Bit 29:24,        reg_dnr_db_yvdeltaadjgain                   , gain for adjust Y's vdelta, normalized 32 as "1". unsigned  , default = 32
14170 //Bit 23,            reserved
14171 //Bit 22:16,        reg_dnr_db_yvdeltaadjoffst                  , offset for adjust Y's vdelta (-64, 63). signed    , default = 0
14172 //Bit 15:14,        reserved
14173 //Bit 13: 8,        reg_dnr_db_yvdelta2gain                     , gain for adjust Y's vdelta2, normalized 64 as "1". unsigned  , default = 8
14174 //Bit  7: 5,        reserved
14175 //Bit  4: 0,        reg_dnr_db_yvdelta2offst                    , offset for adjust Y's vdelta2 (-16, 15). signed    , default = 0
14176 #define   DNR_DB_CVDELTA_GAIN                      (0x2d17)
14177 #define P_DNR_DB_CVDELTA_GAIN                      (volatile uint32_t *)((0x2d17  << 2) + 0xff900000)
14178 //Bit 31:30,        reserved
14179 //Bit 29:24,        reg_dnr_db_cvdeltaadjgain                   , gain for adjust UV's vdelta, normalized 32 as "1". unsigned  , default = 32
14180 //Bit 23,            reserved
14181 //Bit 22:16,        reg_dnr_db_cvdeltaadjoffst                  , offset for adjust UV's vdelta (-64, 63). signed    , default = 0
14182 //Bit 15:14,        reserved
14183 //Bit 13: 8,        reg_dnr_db_cvdelta2gain                     , gain for adjust UV's vdelta2, normalized 64 as "1". unsigned  , default = 8
14184 //Bit  7: 5,        reserved
14185 //Bit  4: 0,        reg_dnr_db_cvdelta2offst                    , offset for adjust UV's vdelta2 (-16, 15). signed    , default = 0
14186 #define   DNR_RO_GBS_STAT_LR                       (0x2d18)
14187 #define P_DNR_RO_GBS_STAT_LR                       (volatile uint32_t *)((0x2d18  << 2) + 0xff900000)
14188 //Bit 31: 0,        ro_gbs_stat_lr                                                            . unsigned  , default = 0
14189 #define   DNR_RO_GBS_STAT_LL                       (0x2d19)
14190 #define P_DNR_RO_GBS_STAT_LL                       (volatile uint32_t *)((0x2d19  << 2) + 0xff900000)
14191 //Bit 31: 0,        ro_gbs_stat_ll                                                            . unsigned  , default = 0
14192 #define   DNR_RO_GBS_STAT_RR                       (0x2d1a)
14193 #define P_DNR_RO_GBS_STAT_RR                       (volatile uint32_t *)((0x2d1a  << 2) + 0xff900000)
14194 //Bit 31: 0,        ro_gbs_stat_rr                                                            . unsigned  , default = 0
14195 #define   DNR_RO_GBS_STAT_DIF                      (0x2d1b)
14196 #define P_DNR_RO_GBS_STAT_DIF                      (volatile uint32_t *)((0x2d1b  << 2) + 0xff900000)
14197 //Bit 31: 0,        ro_gbs_stat_dif                                                           . unsigned  , default = 0
14198 #define   DNR_RO_GBS_STAT_CNT                      (0x2d1c)
14199 #define P_DNR_RO_GBS_STAT_CNT                      (volatile uint32_t *)((0x2d1c  << 2) + 0xff900000)
14200 //Bit 31: 0,        ro_gbs_stat_cnt                                                           . unsigned  , default = 0
14201 #define   DNR_RO_HBOF_STAT_CNT_0                   (0x2d1d)
14202 #define P_DNR_RO_HBOF_STAT_CNT_0                   (volatile uint32_t *)((0x2d1d  << 2) + 0xff900000)
14203 //Bit 31: 0,        ro_hbof_stat_cnt0                                                         . unsigned  , default = 0
14204 #define   DNR_RO_HBOF_STAT_CNT_1                   (0x2d1e)
14205 #define P_DNR_RO_HBOF_STAT_CNT_1                   (volatile uint32_t *)((0x2d1e  << 2) + 0xff900000)
14206 //Bit 31: 0,        ro_hbof_stat_cnt1                                                         . unsigned  , default = 0
14207 #define   DNR_RO_HBOF_STAT_CNT_2                   (0x2d1f)
14208 #define P_DNR_RO_HBOF_STAT_CNT_2                   (volatile uint32_t *)((0x2d1f  << 2) + 0xff900000)
14209 //Bit 31: 0,        ro_hbof_stat_cnt2                                                         . unsigned  , default = 0
14210 #define   DNR_RO_HBOF_STAT_CNT_3                   (0x2d20)
14211 #define P_DNR_RO_HBOF_STAT_CNT_3                   (volatile uint32_t *)((0x2d20  << 2) + 0xff900000)
14212 //Bit 31: 0,        ro_hbof_stat_cnt3                                                         . unsigned  , default = 0
14213 #define   DNR_RO_HBOF_STAT_CNT_4                   (0x2d21)
14214 #define P_DNR_RO_HBOF_STAT_CNT_4                   (volatile uint32_t *)((0x2d21  << 2) + 0xff900000)
14215 //Bit 31: 0,        ro_hbof_stat_cnt4                                                         . unsigned  , default = 0
14216 #define   DNR_RO_HBOF_STAT_CNT_5                   (0x2d22)
14217 #define P_DNR_RO_HBOF_STAT_CNT_5                   (volatile uint32_t *)((0x2d22  << 2) + 0xff900000)
14218 //Bit 31: 0,        ro_hbof_stat_cnt5                                                         . unsigned  , default = 0
14219 #define   DNR_RO_HBOF_STAT_CNT_6                   (0x2d23)
14220 #define P_DNR_RO_HBOF_STAT_CNT_6                   (volatile uint32_t *)((0x2d23  << 2) + 0xff900000)
14221 //Bit 31: 0,        ro_hbof_stat_cnt6                                                         . unsigned  , default = 0
14222 #define   DNR_RO_HBOF_STAT_CNT_7                   (0x2d24)
14223 #define P_DNR_RO_HBOF_STAT_CNT_7                   (volatile uint32_t *)((0x2d24  << 2) + 0xff900000)
14224 //Bit 31: 0,        ro_hbof_stat_cnt7                                                         . unsigned  , default = 0
14225 #define   DNR_RO_HBOF_STAT_CNT_8                   (0x2d25)
14226 #define P_DNR_RO_HBOF_STAT_CNT_8                   (volatile uint32_t *)((0x2d25  << 2) + 0xff900000)
14227 //Bit 31: 0,        ro_hbof_stat_cnt8                                                         . unsigned  , default = 0
14228 #define   DNR_RO_HBOF_STAT_CNT_9                   (0x2d26)
14229 #define P_DNR_RO_HBOF_STAT_CNT_9                   (volatile uint32_t *)((0x2d26  << 2) + 0xff900000)
14230 //Bit 31: 0,        ro_hbof_stat_cnt9                                                         . unsigned  , default = 0
14231 #define   DNR_RO_HBOF_STAT_CNT_10                  (0x2d27)
14232 #define P_DNR_RO_HBOF_STAT_CNT_10                  (volatile uint32_t *)((0x2d27  << 2) + 0xff900000)
14233 //Bit 31: 0,        ro_hbof_stat_cnt10                                                        . unsigned  , default = 0
14234 #define   DNR_RO_HBOF_STAT_CNT_11                  (0x2d28)
14235 #define P_DNR_RO_HBOF_STAT_CNT_11                  (volatile uint32_t *)((0x2d28  << 2) + 0xff900000)
14236 //Bit 31: 0,        ro_hbof_stat_cnt11                                                        . unsigned  , default = 0
14237 #define   DNR_RO_HBOF_STAT_CNT_12                  (0x2d29)
14238 #define P_DNR_RO_HBOF_STAT_CNT_12                  (volatile uint32_t *)((0x2d29  << 2) + 0xff900000)
14239 //Bit 31: 0,        ro_hbof_stat_cnt12                                                        . unsigned  , default = 0
14240 #define   DNR_RO_HBOF_STAT_CNT_13                  (0x2d2a)
14241 #define P_DNR_RO_HBOF_STAT_CNT_13                  (volatile uint32_t *)((0x2d2a  << 2) + 0xff900000)
14242 //Bit 31: 0,        ro_hbof_stat_cnt13                                                        . unsigned  , default = 0
14243 #define   DNR_RO_HBOF_STAT_CNT_14                  (0x2d2b)
14244 #define P_DNR_RO_HBOF_STAT_CNT_14                  (volatile uint32_t *)((0x2d2b  << 2) + 0xff900000)
14245 //Bit 31: 0,        ro_hbof_stat_cnt14                                                        . unsigned  , default = 0
14246 #define   DNR_RO_HBOF_STAT_CNT_15                  (0x2d2c)
14247 #define P_DNR_RO_HBOF_STAT_CNT_15                  (volatile uint32_t *)((0x2d2c  << 2) + 0xff900000)
14248 //Bit 31: 0,        ro_hbof_stat_cnt15                                                        . unsigned  , default = 0
14249 #define   DNR_RO_HBOF_STAT_CNT_16                  (0x2d2d)
14250 #define P_DNR_RO_HBOF_STAT_CNT_16                  (volatile uint32_t *)((0x2d2d  << 2) + 0xff900000)
14251 //Bit 31: 0,        ro_hbof_stat_cnt16                                                        . unsigned  , default = 0
14252 #define   DNR_RO_HBOF_STAT_CNT_17                  (0x2d2e)
14253 #define P_DNR_RO_HBOF_STAT_CNT_17                  (volatile uint32_t *)((0x2d2e  << 2) + 0xff900000)
14254 //Bit 31: 0,        ro_hbof_stat_cnt17                                                        . unsigned  , default = 0
14255 #define   DNR_RO_HBOF_STAT_CNT_18                  (0x2d2f)
14256 #define P_DNR_RO_HBOF_STAT_CNT_18                  (volatile uint32_t *)((0x2d2f  << 2) + 0xff900000)
14257 //Bit 31: 0,        ro_hbof_stat_cnt18                                                        . unsigned  , default = 0
14258 #define   DNR_RO_HBOF_STAT_CNT_19                  (0x2d30)
14259 #define P_DNR_RO_HBOF_STAT_CNT_19                  (volatile uint32_t *)((0x2d30  << 2) + 0xff900000)
14260 //Bit 31: 0,        ro_hbof_stat_cnt19                                                        . unsigned  , default = 0
14261 #define   DNR_RO_HBOF_STAT_CNT_20                  (0x2d31)
14262 #define P_DNR_RO_HBOF_STAT_CNT_20                  (volatile uint32_t *)((0x2d31  << 2) + 0xff900000)
14263 //Bit 31: 0,        ro_hbof_stat_cnt20                                                        . unsigned  , default = 0
14264 #define   DNR_RO_HBOF_STAT_CNT_21                  (0x2d32)
14265 #define P_DNR_RO_HBOF_STAT_CNT_21                  (volatile uint32_t *)((0x2d32  << 2) + 0xff900000)
14266 //Bit 31: 0,        ro_hbof_stat_cnt21                                                        . unsigned  , default = 0
14267 #define   DNR_RO_HBOF_STAT_CNT_22                  (0x2d33)
14268 #define P_DNR_RO_HBOF_STAT_CNT_22                  (volatile uint32_t *)((0x2d33  << 2) + 0xff900000)
14269 //Bit 31: 0,        ro_hbof_stat_cnt22                                                        . unsigned  , default = 0
14270 #define   DNR_RO_HBOF_STAT_CNT_23                  (0x2d34)
14271 #define P_DNR_RO_HBOF_STAT_CNT_23                  (volatile uint32_t *)((0x2d34  << 2) + 0xff900000)
14272 //Bit 31: 0,        ro_hbof_stat_cnt23                                                        . unsigned  , default = 0
14273 #define   DNR_RO_HBOF_STAT_CNT_24                  (0x2d35)
14274 #define P_DNR_RO_HBOF_STAT_CNT_24                  (volatile uint32_t *)((0x2d35  << 2) + 0xff900000)
14275 //Bit 31: 0,        ro_hbof_stat_cnt24                                                        . unsigned  , default = 0
14276 #define   DNR_RO_HBOF_STAT_CNT_25                  (0x2d36)
14277 #define P_DNR_RO_HBOF_STAT_CNT_25                  (volatile uint32_t *)((0x2d36  << 2) + 0xff900000)
14278 //Bit 31: 0,        ro_hbof_stat_cnt25                                                        . unsigned  , default = 0
14279 #define   DNR_RO_HBOF_STAT_CNT_26                  (0x2d37)
14280 #define P_DNR_RO_HBOF_STAT_CNT_26                  (volatile uint32_t *)((0x2d37  << 2) + 0xff900000)
14281 //Bit 31: 0,        ro_hbof_stat_cnt26                                                        . unsigned  , default = 0
14282 #define   DNR_RO_HBOF_STAT_CNT_27                  (0x2d38)
14283 #define P_DNR_RO_HBOF_STAT_CNT_27                  (volatile uint32_t *)((0x2d38  << 2) + 0xff900000)
14284 //Bit 31: 0,        ro_hbof_stat_cnt27                                                        . unsigned  , default = 0
14285 #define   DNR_RO_HBOF_STAT_CNT_28                  (0x2d39)
14286 #define P_DNR_RO_HBOF_STAT_CNT_28                  (volatile uint32_t *)((0x2d39  << 2) + 0xff900000)
14287 //Bit 31: 0,        ro_hbof_stat_cnt28                                                        . unsigned  , default = 0
14288 #define   DNR_RO_HBOF_STAT_CNT_29                  (0x2d3a)
14289 #define P_DNR_RO_HBOF_STAT_CNT_29                  (volatile uint32_t *)((0x2d3a  << 2) + 0xff900000)
14290 //Bit 31: 0,        ro_hbof_stat_cnt29                                                        . unsigned  , default = 0
14291 #define   DNR_RO_HBOF_STAT_CNT_30                  (0x2d3b)
14292 #define P_DNR_RO_HBOF_STAT_CNT_30                  (volatile uint32_t *)((0x2d3b  << 2) + 0xff900000)
14293 //Bit 31: 0,        ro_hbof_stat_cnt30                                                        . unsigned  , default = 0
14294 #define   DNR_RO_HBOF_STAT_CNT_31                  (0x2d3c)
14295 #define P_DNR_RO_HBOF_STAT_CNT_31                  (volatile uint32_t *)((0x2d3c  << 2) + 0xff900000)
14296 //Bit 31: 0,        ro_hbof_stat_cnt31                                                        . unsigned  , default = 0
14297 #define   DNR_RO_VBOF_STAT_CNT_0                   (0x2d3d)
14298 #define P_DNR_RO_VBOF_STAT_CNT_0                   (volatile uint32_t *)((0x2d3d  << 2) + 0xff900000)
14299 //Bit 31: 0,        ro_vbof_stat_cnt0                                                         . unsigned  , default = 0
14300 #define   DNR_RO_VBOF_STAT_CNT_1                   (0x2d3e)
14301 #define P_DNR_RO_VBOF_STAT_CNT_1                   (volatile uint32_t *)((0x2d3e  << 2) + 0xff900000)
14302 //Bit 31: 0,        ro_vbof_stat_cnt1                                                         . unsigned  , default = 0
14303 #define   DNR_RO_VBOF_STAT_CNT_2                   (0x2d3f)
14304 #define P_DNR_RO_VBOF_STAT_CNT_2                   (volatile uint32_t *)((0x2d3f  << 2) + 0xff900000)
14305 //Bit 31: 0,        ro_vbof_stat_cnt2                                                         . unsigned  , default = 0
14306 #define   DNR_RO_VBOF_STAT_CNT_3                   (0x2d40)
14307 #define P_DNR_RO_VBOF_STAT_CNT_3                   (volatile uint32_t *)((0x2d40  << 2) + 0xff900000)
14308 //Bit 31: 0,        ro_vbof_stat_cnt3                                                         . unsigned  , default = 0
14309 #define   DNR_RO_VBOF_STAT_CNT_4                   (0x2d41)
14310 #define P_DNR_RO_VBOF_STAT_CNT_4                   (volatile uint32_t *)((0x2d41  << 2) + 0xff900000)
14311 //Bit 31: 0,        ro_vbof_stat_cnt4                                                         . unsigned  , default = 0
14312 #define   DNR_RO_VBOF_STAT_CNT_5                   (0x2d42)
14313 #define P_DNR_RO_VBOF_STAT_CNT_5                   (volatile uint32_t *)((0x2d42  << 2) + 0xff900000)
14314 //Bit 31: 0,        ro_vbof_stat_cnt5                                                         . unsigned  , default = 0
14315 #define   DNR_RO_VBOF_STAT_CNT_6                   (0x2d43)
14316 #define P_DNR_RO_VBOF_STAT_CNT_6                   (volatile uint32_t *)((0x2d43  << 2) + 0xff900000)
14317 //Bit 31: 0,        ro_vbof_stat_cnt6                                                         . unsigned  , default = 0
14318 #define   DNR_RO_VBOF_STAT_CNT_7                   (0x2d44)
14319 #define P_DNR_RO_VBOF_STAT_CNT_7                   (volatile uint32_t *)((0x2d44  << 2) + 0xff900000)
14320 //Bit 31: 0,        ro_vbof_stat_cnt7                                                         . unsigned  , default = 0
14321 #define   DNR_RO_VBOF_STAT_CNT_8                   (0x2d45)
14322 #define P_DNR_RO_VBOF_STAT_CNT_8                   (volatile uint32_t *)((0x2d45  << 2) + 0xff900000)
14323 //Bit 31: 0,        ro_vbof_stat_cnt8                                                         . unsigned  , default = 0
14324 #define   DNR_RO_VBOF_STAT_CNT_9                   (0x2d46)
14325 #define P_DNR_RO_VBOF_STAT_CNT_9                   (volatile uint32_t *)((0x2d46  << 2) + 0xff900000)
14326 //Bit 31: 0,        ro_vbof_stat_cnt9                                                         . unsigned  , default = 0
14327 #define   DNR_RO_VBOF_STAT_CNT_10                  (0x2d47)
14328 #define P_DNR_RO_VBOF_STAT_CNT_10                  (volatile uint32_t *)((0x2d47  << 2) + 0xff900000)
14329 //Bit 31: 0,        ro_vbof_stat_cnt10                                                        . unsigned  , default = 0
14330 #define   DNR_RO_VBOF_STAT_CNT_11                  (0x2d48)
14331 #define P_DNR_RO_VBOF_STAT_CNT_11                  (volatile uint32_t *)((0x2d48  << 2) + 0xff900000)
14332 //Bit 31: 0,        ro_vbof_stat_cnt11                                                        . unsigned  , default = 0
14333 #define   DNR_RO_VBOF_STAT_CNT_12                  (0x2d49)
14334 #define P_DNR_RO_VBOF_STAT_CNT_12                  (volatile uint32_t *)((0x2d49  << 2) + 0xff900000)
14335 //Bit 31: 0,        ro_vbof_stat_cnt12                                                        . unsigned  , default = 0
14336 #define   DNR_RO_VBOF_STAT_CNT_13                  (0x2d4a)
14337 #define P_DNR_RO_VBOF_STAT_CNT_13                  (volatile uint32_t *)((0x2d4a  << 2) + 0xff900000)
14338 //Bit 31: 0,        ro_vbof_stat_cnt13                                                        . unsigned  , default = 0
14339 #define   DNR_RO_VBOF_STAT_CNT_14                  (0x2d4b)
14340 #define P_DNR_RO_VBOF_STAT_CNT_14                  (volatile uint32_t *)((0x2d4b  << 2) + 0xff900000)
14341 //Bit 31: 0,        ro_vbof_stat_cnt14                                                        . unsigned  , default = 0
14342 #define   DNR_RO_VBOF_STAT_CNT_15                  (0x2d4c)
14343 #define P_DNR_RO_VBOF_STAT_CNT_15                  (volatile uint32_t *)((0x2d4c  << 2) + 0xff900000)
14344 //Bit 31: 0,        ro_vbof_stat_cnt15                                                        . unsigned  , default = 0
14345 #define   DNR_RO_VBOF_STAT_CNT_16                  (0x2d4d)
14346 #define P_DNR_RO_VBOF_STAT_CNT_16                  (volatile uint32_t *)((0x2d4d  << 2) + 0xff900000)
14347 //Bit 31: 0,        ro_vbof_stat_cnt16                                                        . unsigned  , default = 0
14348 #define   DNR_RO_VBOF_STAT_CNT_17                  (0x2d4e)
14349 #define P_DNR_RO_VBOF_STAT_CNT_17                  (volatile uint32_t *)((0x2d4e  << 2) + 0xff900000)
14350 //Bit 31: 0,        ro_vbof_stat_cnt17                                                        . unsigned  , default = 0
14351 #define   DNR_RO_VBOF_STAT_CNT_18                  (0x2d4f)
14352 #define P_DNR_RO_VBOF_STAT_CNT_18                  (volatile uint32_t *)((0x2d4f  << 2) + 0xff900000)
14353 //Bit 31: 0,        ro_vbof_stat_cnt18                                                        . unsigned  , default = 0
14354 #define   DNR_RO_VBOF_STAT_CNT_19                  (0x2d50)
14355 #define P_DNR_RO_VBOF_STAT_CNT_19                  (volatile uint32_t *)((0x2d50  << 2) + 0xff900000)
14356 //Bit 31: 0,        ro_vbof_stat_cnt19                                                        . unsigned  , default = 0
14357 #define   DNR_RO_VBOF_STAT_CNT_20                  (0x2d51)
14358 #define P_DNR_RO_VBOF_STAT_CNT_20                  (volatile uint32_t *)((0x2d51  << 2) + 0xff900000)
14359 //Bit 31: 0,        ro_vbof_stat_cnt20                                                        . unsigned  , default = 0
14360 #define   DNR_RO_VBOF_STAT_CNT_21                  (0x2d52)
14361 #define P_DNR_RO_VBOF_STAT_CNT_21                  (volatile uint32_t *)((0x2d52  << 2) + 0xff900000)
14362 //Bit 31: 0,        ro_vbof_stat_cnt21                                                        . unsigned  , default = 0
14363 #define   DNR_RO_VBOF_STAT_CNT_22                  (0x2d53)
14364 #define P_DNR_RO_VBOF_STAT_CNT_22                  (volatile uint32_t *)((0x2d53  << 2) + 0xff900000)
14365 //Bit 31: 0,        ro_vbof_stat_cnt22                                                        . unsigned  , default = 0
14366 #define   DNR_RO_VBOF_STAT_CNT_23                  (0x2d54)
14367 #define P_DNR_RO_VBOF_STAT_CNT_23                  (volatile uint32_t *)((0x2d54  << 2) + 0xff900000)
14368 //Bit 31: 0,        ro_vbof_stat_cnt23                                                        . unsigned  , default = 0
14369 #define   DNR_RO_VBOF_STAT_CNT_24                  (0x2d55)
14370 #define P_DNR_RO_VBOF_STAT_CNT_24                  (volatile uint32_t *)((0x2d55  << 2) + 0xff900000)
14371 //Bit 31: 0,        ro_vbof_stat_cnt24                                                        . unsigned  , default = 0
14372 #define   DNR_RO_VBOF_STAT_CNT_25                  (0x2d56)
14373 #define P_DNR_RO_VBOF_STAT_CNT_25                  (volatile uint32_t *)((0x2d56  << 2) + 0xff900000)
14374 //Bit 31: 0,        ro_vbof_stat_cnt25                                                        . unsigned  , default = 0
14375 #define   DNR_RO_VBOF_STAT_CNT_26                  (0x2d57)
14376 #define P_DNR_RO_VBOF_STAT_CNT_26                  (volatile uint32_t *)((0x2d57  << 2) + 0xff900000)
14377 //Bit 31: 0,        ro_vbof_stat_cnt26                                                        . unsigned  , default = 0
14378 #define   DNR_RO_VBOF_STAT_CNT_27                  (0x2d58)
14379 #define P_DNR_RO_VBOF_STAT_CNT_27                  (volatile uint32_t *)((0x2d58  << 2) + 0xff900000)
14380 //Bit 31: 0,        ro_vbof_stat_cnt27                                                        . unsigned  , default = 0
14381 #define   DNR_RO_VBOF_STAT_CNT_28                  (0x2d59)
14382 #define P_DNR_RO_VBOF_STAT_CNT_28                  (volatile uint32_t *)((0x2d59  << 2) + 0xff900000)
14383 //Bit 31: 0,        ro_vbof_stat_cnt28                                                        . unsigned  , default = 0
14384 #define   DNR_RO_VBOF_STAT_CNT_29                  (0x2d5a)
14385 #define P_DNR_RO_VBOF_STAT_CNT_29                  (volatile uint32_t *)((0x2d5a  << 2) + 0xff900000)
14386 //Bit 31: 0,        ro_vbof_stat_cnt29                                                        . unsigned  , default = 0
14387 #define   DNR_RO_VBOF_STAT_CNT_30                  (0x2d5b)
14388 #define P_DNR_RO_VBOF_STAT_CNT_30                  (volatile uint32_t *)((0x2d5b  << 2) + 0xff900000)
14389 //Bit 31: 0,        ro_vbof_stat_cnt30                                                        . unsigned  , default = 0
14390 #define   DNR_RO_VBOF_STAT_CNT_31                  (0x2d5c)
14391 #define P_DNR_RO_VBOF_STAT_CNT_31                  (volatile uint32_t *)((0x2d5c  << 2) + 0xff900000)
14392 //Bit 31: 0,        ro_vbof_stat_cnt31                                                        . unsigned  , default = 0
14393 #define   DNR_DM_CTRL                              (0x2d60)
14394 #define P_DNR_DM_CTRL                              (volatile uint32_t *)((0x2d60  << 2) + 0xff900000)
14395 //Bit 31:13,        reserved
14396 //Bit 12,            reg_dnr_dm_fedgeflg_en                      , enable edge flag calc. of each frame. unsigned  , default = 1
14397 //Bit 11,            reg_dnr_dm_fedgeflg_cl                      , clear frame edge flag if needed. unsigned  , default = 1
14398 //Bit 10,            reg_dnr_dm_fedgeflg_df                      , user defined edge when reg_dnr_dm_fedgeflg_en=0, default = 1
14399 //Bit  9,            reg_dnr_dm_en                               , enable demosquito function  . unsigned  , default = 1
14400 //Bit  8,            reg_dnr_dm_chrmen                           , enable chrome processing for demosquito. unsigned  , default = 1
14401 //Bit  7: 6,        reg_dnr_dm_level                            , demosquito level            . unsigned  , default = 3
14402 //Bit  5: 4,        reg_dnr_dm_leveldw0                         , level down when gbs is small. unsigned  , default = 1
14403 //Bit  3: 2,        reg_dnr_dm_leveldw1                         , level down for no edge/flat blocks. unsigned  , default = 1
14404 //Bit  1: 0,        reg_dnr_dm_gbsthd                           , small/large threshold for gbs (<=). unsigned  , default = 0
14405 #define   DNR_DM_NR_BLND                           (0x2d61)
14406 #define P_DNR_DM_NR_BLND                           (volatile uint32_t *)((0x2d61  << 2) + 0xff900000)
14407 //Bit 31:25,        reserved
14408 //Bit 24,            reg_dnr_dm_defalpen                         , enable user define alpha for dm & nr blend. unsigned  , default = 0
14409 //Bit 23:16,        reg_dnr_dm_defalp                           , user define alpha for dm & nr blend if enable. unsigned  , default = 0
14410 //Bit 15:14,        reserved
14411 //Bit 13: 8,        reg_dnr_dm_alpgain                          , gain for nr/dm alpha, normalized 32 as "1". unsigned  , default = 32
14412 //Bit  7: 0,        reg_dnr_dm_alpoffst                         , (-128, 127), offset for nr/dm alpha. signed    , default = 0
14413 #define   DNR_DM_RNG_THD                           (0x2d62)
14414 #define P_DNR_DM_RNG_THD                           (volatile uint32_t *)((0x2d62  << 2) + 0xff900000)
14415 //Bit 31:24,        reserved
14416 //Bit 23:16,        reg_dnr_dm_rngminthd                                                      . unsigned  , default = 2
14417 //Bit 15: 8,        reg_dnr_dm_rngmaxthd                                                      . unsigned  , default = 64
14418 //Bit  7: 0,        reg_dnr_dm_rngdifthd                                                      . unsigned  , default = 4
14419 #define   DNR_DM_RNG_GAIN_OFST                     (0x2d63)
14420 #define P_DNR_DM_RNG_GAIN_OFST                     (volatile uint32_t *)((0x2d63  << 2) + 0xff900000)
14421 //Bit 31:14,        reserved
14422 //Bit 13: 8,        reg_dnr_dm_rnggain                          , normalized 16 as "1"        . unsigned  , default = 16
14423 //Bit  7: 6,        reserved
14424 //Bit  5: 0,        reg_dnr_dm_rngofst                                                        . unsigned  , default = 0
14425 #define   DNR_DM_DIR_MISC                          (0x2d64)
14426 #define P_DNR_DM_DIR_MISC                          (volatile uint32_t *)((0x2d64  << 2) + 0xff900000)
14427 //Bit 31:30,        reserved
14428 //Bit 29,            reg_dnr_dm_diralpen                                                       . unsigned  , default = 1
14429 //Bit 28:24,        reg_dnr_dm_diralpgain                                                     . unsigned  , default = 0
14430 //Bit 23:22,        reserved
14431 //Bit 21:16,        reg_dnr_dm_diralpofst                                                     . unsigned  , default = 0
14432 //Bit 15:13,        reserved
14433 //Bit 12: 8,        reg_dnr_dm_diralpmin                                                      . unsigned  , default = 0
14434 //Bit  7: 5,        reserved
14435 //Bit  4: 0,        reg_dnr_dm_diralpmax                                                      . unsigned  , default = 31
14436 #define   DNR_DM_COR_DIF                           (0x2d65)
14437 #define P_DNR_DM_COR_DIF                           (volatile uint32_t *)((0x2d65  << 2) + 0xff900000)
14438 //Bit 31: 4,        reserved
14439 //Bit  3: 1,        reg_dnr_dm_cordifshft                                                     . unsigned  , default = 3
14440 //Bit  0,            reg_dnr_dm_cordifmod                        , 0:use max dir dif as cordif, 1: use max3x3 - min3x3 as cordif. unsigned  , default = 1
14441 #define   DNR_DM_FLT_THD                           (0x2d66)
14442 #define P_DNR_DM_FLT_THD                           (volatile uint32_t *)((0x2d66  << 2) + 0xff900000)
14443 //Bit 31:24,        reg_dnr_dm_fltthd00                         , block flat threshold0 for block average difference when gbs is small, for flat block detection. unsigned  , default = 4
14444 //Bit 23:16,        reg_dnr_dm_fltthd01                         , block flat threshold1 for block average difference when gbs is small, for flat block detection. unsigned  , default = 6
14445 //Bit 15: 8,        reg_dnr_dm_fltthd10                         , block flat threshold0 for block average difference when gbs is large, for flat block detection. unsigned  , default = 9
14446 //Bit  7: 0,        reg_dnr_dm_fltthd11                         , block flat threshold1 for block average difference when gbs is large, for flat block detection. unsigned  , default = 12
14447 #define   DNR_DM_VAR_THD                           (0x2d67)
14448 #define P_DNR_DM_VAR_THD                           (volatile uint32_t *)((0x2d67  << 2) + 0xff900000)
14449 //Bit 31:24,        reg_dnr_dm_varthd00                         , block variance threshold0 (>=) when gbs is small, for flat block detection. unsigned  , default = 2
14450 //Bit 23:16,        reg_dnr_dm_varthd01                         , block variance threshold1 (<=) when gbs is small, for flat block detection. unsigned  , default = 15
14451 //Bit 15: 8,        reg_dnr_dm_varthd10                         , block variance threshold0 (>=) when gbs is large, for flat block detection. unsigned  , default = 3
14452 //Bit  7: 0,        reg_dnr_dm_varthd11                         , block variance threshold1 (<=) when gbs is large, for flat block detection. unsigned  , default = 24
14453 #define   DNR_DM_EDGE_DIF_THD                      (0x2d68)
14454 #define P_DNR_DM_EDGE_DIF_THD                      (volatile uint32_t *)((0x2d68  << 2) + 0xff900000)
14455 //Bit 31:24,        reg_dnr_dm_edgethd0                         , block edge threshold (<=) when gbs is small, for flat block detection. unsigned  , default = 32
14456 //Bit 23:16,        reg_dnr_dm_edgethd1                         , block edge threshold (<=) when gbs is large, for flat block detection. unsigned  , default = 48
14457 //Bit 15: 8,        reg_dnr_dm_difthd0                          , block dif threshold (<=) when gbs is small, for flat block detection. unsigned  , default = 48
14458 //Bit  7: 0,        reg_dnr_dm_difthd1                          , block dif threshold (<=) when gbs is large, for flat block detection. unsigned  , default = 64
14459 #define   DNR_DM_AVG_THD                           (0x2d69)
14460 #define P_DNR_DM_AVG_THD                           (volatile uint32_t *)((0x2d69  << 2) + 0xff900000)
14461 //Bit 31:16,        reserved
14462 //Bit 15: 8,        reg_dnr_dm_avgthd0                          , block average threshold (>=), for flat block detection. unsigned  , default = 160
14463 //Bit  7: 0,        reg_dnr_dm_avgthd1                          , block average threshold (<=), for flat block detection. unsigned  , default = 128
14464 #define   DNR_DM_AVG_VAR_DIF_THD                   (0x2d6a)
14465 #define P_DNR_DM_AVG_VAR_DIF_THD                   (volatile uint32_t *)((0x2d6a  << 2) + 0xff900000)
14466 //Bit 31:16,        reserved
14467 //Bit 15: 8,        reg_dnr_dm_avgdifthd                        , block average dif threshold (<) between cur and up block, for flat block detection. unsigned  , default = 12
14468 //Bit  7: 0,        reg_dnr_dm_vardifthd                        , block variance dif threshold (>=) between cur and up block, for flat block detection. unsigned  , default = 1
14469 #define   DNR_DM_VAR_EDGE_DIF_THD2                 (0x2d6b)
14470 #define P_DNR_DM_VAR_EDGE_DIF_THD2                 (volatile uint32_t *)((0x2d6b  << 2) + 0xff900000)
14471 //Bit 31:24,        reserved
14472 //Bit 23:16,        reg_dnr_dm_varthd2                          , block variance threshold (>=), for edge block detection. unsigned  , default = 24
14473 //Bit 15: 8,        reg_dnr_dm_edgethd2                         , block edge threshold (>=), for edge block detection. unsigned  , default = 40
14474 //Bit  7: 0,        reg_dnr_dm_difthd2                          , block dif threshold (>=), for edge block detection. unsigned  , default = 80
14475 #define   DNR_DM_DIF_FLT_MISC                      (0x2d6c)
14476 #define P_DNR_DM_DIF_FLT_MISC                      (volatile uint32_t *)((0x2d6c  << 2) + 0xff900000)
14477 //Bit 31:28,        reg_dnr_dm_ldifoob                          , pre-defined large dif when pixel out of blocks. unsigned  , default = 0
14478 //Bit 27:24,        reg_dnr_dm_bdifoob                          , pre-defined block dif when pixel out of blocks;. unsigned  , default = 0
14479 //Bit 23:16,        reg_dnr_dm_fltalp                           , pre-defined alpha for dm and nr blending, when block is flat with mos.. unsigned  , default = 200
14480 //Bit 15:12,        reserved
14481 //Bit 11: 8,        reg_dnr_dm_fltminbdif                       , pre-defined min block dif for dm filter, when block is flat with mos.. unsigned  , default = 12
14482 //Bit  7,            reserved
14483 //Bit  6: 2,        reg_dnr_dm_difnormgain                      , gain for pixel dif normalization for dm filter, normalized 16 as "1". unsigned  , default = 16
14484 //Bit  1,            reg_dnr_dm_difnormen                        , enable pixel dif normalization for dm filter. unsigned  , default = 1
14485 //Bit  0,            reg_dnr_dm_difupden                         , enable block dif update using max of left, cur, right difs. unsigned  , default = 0
14486 #define   DNR_DM_SDIF_LUT0_2                       (0x2d6d)
14487 #define P_DNR_DM_SDIF_LUT0_2                       (volatile uint32_t *)((0x2d6d  << 2) + 0xff900000)
14488 //Bit 31:21,        reserved
14489 //Bit 20:16,        reg_dnr_dm_sdiflut0                         , normally 0-16               . unsigned  , default = 16
14490 //Bit 15:13,        reserved
14491 //Bit 12: 8,        reg_dnr_dm_sdiflut1                         , normally 0-16               . unsigned  , default = 14
14492 //Bit  7: 5,        reserved
14493 //Bit  4: 0,        reg_dnr_dm_sdiflut2                         , normally 0-16               . unsigned  , default = 13
14494 #define   DNR_DM_SDIF_LUT3_5                       (0x2d6e)
14495 #define P_DNR_DM_SDIF_LUT3_5                       (volatile uint32_t *)((0x2d6e  << 2) + 0xff900000)
14496 //Bit 31:21,        reserved
14497 //Bit 20:16,        reg_dnr_dm_sdiflut3                         , normally 0-16               . unsigned  , default = 10
14498 //Bit 15:13,        reserved
14499 //Bit 12: 8,        reg_dnr_dm_sdiflut4                         , normally 0-16               . unsigned  , default = 7
14500 //Bit  7: 5,        reserved
14501 //Bit  4: 0,        reg_dnr_dm_sdiflut5                         , normally 0-16               . unsigned  , default = 5
14502 #define   DNR_DM_SDIF_LUT6_8                       (0x2d6f)
14503 #define P_DNR_DM_SDIF_LUT6_8                       (volatile uint32_t *)((0x2d6f  << 2) + 0xff900000)
14504 //Bit 31:21,        reserved
14505 //Bit 20:16,        reg_dnr_dm_sdiflut6                         , normally 0-16               . unsigned  , default = 3
14506 //Bit 15:13,        reserved
14507 //Bit 12: 8,        reg_dnr_dm_sdiflut7                         , normally 0-16               . unsigned  , default = 1
14508 //Bit  7: 5,        reserved
14509 //Bit  4: 0,        reg_dnr_dm_sdiflut8                         , normally 0-16               . unsigned  , default = 0
14510 #define   DNR_DM_LDIF_LUT0_2                       (0x2d70)
14511 #define P_DNR_DM_LDIF_LUT0_2                       (volatile uint32_t *)((0x2d70  << 2) + 0xff900000)
14512 //Bit 31:21,        reserved
14513 //Bit 20:16,        reg_dnr_dm_ldiflut0                         , normally 0-16               . unsigned  , default = 0
14514 //Bit 15:13,        reserved
14515 //Bit 12: 8,        reg_dnr_dm_ldiflut1                         , normally 0-16               . unsigned  , default = 4
14516 //Bit  7: 5,        reserved
14517 //Bit  4: 0,        reg_dnr_dm_ldiflut2                         , normally 0-16               . unsigned  , default = 12
14518 #define   DNR_DM_LDIF_LUT3_5                       (0x2d71)
14519 #define P_DNR_DM_LDIF_LUT3_5                       (volatile uint32_t *)((0x2d71  << 2) + 0xff900000)
14520 //Bit 31:21,        reserved
14521 //Bit 20:16,        reg_dnr_dm_ldiflut3                         , normally 0-16               . unsigned  , default = 14
14522 //Bit 15:13,        reserved
14523 //Bit 12: 8,        reg_dnr_dm_ldiflut4                         , normally 0-16               . unsigned  , default = 15
14524 //Bit  7: 5,        reserved
14525 //Bit  4: 0,        reg_dnr_dm_ldiflut5                         , normally 0-16               . unsigned  , default = 16
14526 #define   DNR_DM_LDIF_LUT6_8                       (0x2d72)
14527 #define P_DNR_DM_LDIF_LUT6_8                       (volatile uint32_t *)((0x2d72  << 2) + 0xff900000)
14528 //Bit 31:21,        reserved
14529 //Bit 20:16,        reg_dnr_dm_ldiflut6                         , normally 0-16               . unsigned  , default = 16
14530 //Bit 15:13,        reserved
14531 //Bit 12: 8,        reg_dnr_dm_ldiflut7                         , normally 0-16               . unsigned  , default = 16
14532 //Bit  7: 5,        reserved
14533 //Bit  4: 0,        reg_dnr_dm_ldiflut8                         , normally 0-16               . unsigned  , default = 16
14534 #define   DNR_DM_DIF2NORM_LUT0_2                   (0x2d73)
14535 #define P_DNR_DM_DIF2NORM_LUT0_2                   (volatile uint32_t *)((0x2d73  << 2) + 0xff900000)
14536 //Bit 31:21,        reserved
14537 //Bit 20:16,        reg_dnr_dm_dif2normlut0                     , normally 0-16               . unsigned  , default = 16
14538 //Bit 15:13,        reserved
14539 //Bit 12: 8,        reg_dnr_dm_dif2normlut1                     , normally 0-16               . unsigned  , default = 5
14540 //Bit  7: 5,        reserved
14541 //Bit  4: 0,        reg_dnr_dm_dif2normlut2                     , normally 0-16               . unsigned  , default = 3
14542 #define   DNR_DM_DIF2NORM_LUT3_5                   (0x2d74)
14543 #define P_DNR_DM_DIF2NORM_LUT3_5                   (volatile uint32_t *)((0x2d74  << 2) + 0xff900000)
14544 //Bit 31:21,        reserved
14545 //Bit 20:16,        reg_dnr_dm_dif2normlut3                     , normally 0-16               . unsigned  , default = 2
14546 //Bit 15:13,        reserved
14547 //Bit 12: 8,        reg_dnr_dm_dif2normlut4                     , normally 0-16               . unsigned  , default = 2
14548 //Bit  7: 5,        reserved
14549 //Bit  4: 0,        reg_dnr_dm_dif2normlut5                     , normally 0-16               . unsigned  , default = 1
14550 #define   DNR_DM_DIF2NORM_LUT6_8                   (0x2d75)
14551 #define P_DNR_DM_DIF2NORM_LUT6_8                   (volatile uint32_t *)((0x2d75  << 2) + 0xff900000)
14552 //Bit 31:21,        reserved
14553 //Bit 20:16,        reg_dnr_dm_dif2normlut6                     , normally 0-16               . unsigned  , default = 1
14554 //Bit 15:13,        reserved
14555 //Bit 12: 8,        reg_dnr_dm_dif2normlut7                     , normally 0-16               . unsigned  , default = 1
14556 //Bit  7: 5,        reserved
14557 //Bit  4: 0,        reg_dnr_dm_dif2normlut8                     , normally 0-16               . unsigned  , default = 1
14558 #define   DNR_DM_GMS_THD                           (0x2d76)
14559 #define P_DNR_DM_GMS_THD                           (volatile uint32_t *)((0x2d76  << 2) + 0xff900000)
14560 //Bit 31:16,        reserved
14561 //Bit 15: 8,        reg_gms_stat_thd0                                                         . unsigned  , default = 0
14562 //Bit  7: 0,        reg_gms_stat_thd1                                                         . unsigned  , default = 128
14563 #define   DNR_RO_DM_GMS_STAT_CNT                   (0x2d77)
14564 #define P_DNR_RO_DM_GMS_STAT_CNT                   (volatile uint32_t *)((0x2d77  << 2) + 0xff900000)
14565 //Bit 31: 0,        ro_dm_gms_stat_cnt                                                        . unsigned  , default = 0
14566 #define   DNR_RO_DM_GMS_STAT_MS                    (0x2d78)
14567 #define P_DNR_RO_DM_GMS_STAT_MS                    (volatile uint32_t *)((0x2d78  << 2) + 0xff900000)
14568 //Bit 31: 0,        ro_dm_gms_stat_ms                                                        . unsigned  , default = 0
14569 // 0x80-0x90
14570 //
14571 // Reading file:  decomb_regs.h
14572 //
14573 #define   DECOMB_DET_VERT_CON0                     (0x2d80)
14574 #define P_DECOMB_DET_VERT_CON0                     (volatile uint32_t *)((0x2d80  << 2) + 0xff900000)
14575 //Bit  31:24   reg_di_dcmb_det_vcon_thd0      default = 60  // u8
14576 //Bit  23:16   reg_di_dcmb_det_vcon_thd1      default = 80  // u8
14577 //Bit  15: 8   reg_di_dcmb_det_valp_lmt0      default = 63  // u8
14578 //Bit   7: 0   reg_di_dcmb_det_valp_lmt1      default = 4   // u8
14579 #define   DECOMB_DET_VERT_CON1                     (0x2d81)
14580 #define P_DECOMB_DET_VERT_CON1                     (volatile uint32_t *)((0x2d81  << 2) + 0xff900000)
14581 //Bit  23:16   reg_di_dcmb_det_valp_lmt2      default = 0   // u8
14582 //Bit  15: 8   reg_di_dcmb_det_vrate0         default = 32  // u8
14583 //Bit   7: 0   reg_di_dcmb_det_vrate1         default = 4   // u8
14584 #define   DECOMB_DET_EDGE_CON0                     (0x2d82)
14585 #define P_DECOMB_DET_EDGE_CON0                     (volatile uint32_t *)((0x2d82  << 2) + 0xff900000)
14586 //Bit  31:24   reg_di_dcmb_det_econ_thd0      default = 60  // u8
14587 //Bit  23:16   reg_di_dcmb_det_econ_thd1      default = 80  // u8
14588 //Bit  15: 8   reg_di_dcmb_det_ealp_lmt0      default = 63  // u8
14589 //Bit   7: 0   reg_di_dcmb_det_ealp_lmt1      default = 4   // u8
14590 #define   DECOMB_DET_EDGE_CON1                     (0x2d83)
14591 #define P_DECOMB_DET_EDGE_CON1                     (volatile uint32_t *)((0x2d83  << 2) + 0xff900000)
14592 //Bit  23:16   reg_di_dcmb_det_ealp_lmt2      default = 0   // u8
14593 //Bit  15: 8   reg_di_dcmb_det_erate0         default = 32  // u8
14594 //Bit   7: 0   reg_di_dcmb_det_erate1         default = 4  // u8
14595 #define   DECOMB_PARA                              (0x2d84)
14596 #define P_DECOMB_PARA                              (volatile uint32_t *)((0x2d84  << 2) + 0xff900000)
14597 //Bit  31:30   reserved
14598 //Bit  29:28   reg_di_dcmb_cmb_lpf            default = 1  // u2, 0:no lpf, 1:[1 2 1], 2,3: [1 2 2 2 1]
14599 //Bit  27:26   reg_di_dcmb_vedge_chk          default = 0  // u2, vertical edge check, 0: no check, 1: vrt!=0, 2: vrt==3
14600 //Bit  25:24   reg_di_dcmb_nedge_chk          default = 0  // u2, no idea edge check, 0, no check, 1, check
14601 //Bit  23:20   reg_di_dcmb_edge_min           default = 0   // u4, min edge for edge cmb
14602 //Bit  19:16   reg_di_dcmb_edge_max           default = 15  // u4, min edge for edge cmb
14603 //Bit   15:8   reg_di_dcmb_bld_alp            default = 255  // u8, user defined alpha for di & decmb blend
14604 //Bit    7:0   reg_di_dcmb_bld_alp_beta       default = 40  // u8, beta for mtn & cmb blend, for bld alpha calc.
14605 #define   DECOMB_BLND_CON0                         (0x2d85)
14606 #define P_DECOMB_BLND_CON0                         (volatile uint32_t *)((0x2d85  << 2) + 0xff900000)
14607 //Bit  31:24   reg_di_dcmb_bld_con_thd0       default = 100  // u8
14608 //Bit  23:16   reg_di_dcmb_bld_con_thd1       default = 120  // u8
14609 //Bit  15: 8   reg_di_dcmb_bld_alp_lmt0       default = 0  // u8
14610 //Bit   7: 0   reg_di_dcmb_bld_alp_lmt1       default = 128   // u8
14611 #define   DECOMB_BLND_CON1                         (0x2d86)
14612 #define P_DECOMB_BLND_CON1                         (volatile uint32_t *)((0x2d86  << 2) + 0xff900000)
14613 //Bit  23:16   reg_di_dcmb_bld_alp_lmt2       default = 255   // u8
14614 //Bit  15: 8   reg_di_dcmb_bld_rate0          default = 32 // u8
14615 //Bit   7: 0   reg_di_dcmb_bld_rate1          default = 32  // u8
14616 #define   DECOMB_YC_THRD                           (0x2d87)
14617 #define P_DECOMB_YC_THRD                           (volatile uint32_t *)((0x2d87  << 2) + 0xff900000)
14618 //Bit  31:16   reserved
14619 //Bit  15: 8   reg_di_dcmb_ythd               default = 2 // u8, default = 2
14620 //Bit   7: 0   reg_di_dcmb_cthd               default = 2 // u8, default = 2
14621 #define   DECOMB_MTN_GAIN_OFST                     (0x2d88)
14622 #define P_DECOMB_MTN_GAIN_OFST                     (volatile uint32_t *)((0x2d88  << 2) + 0xff900000)
14623 //Bit  31:22   reserved
14624 //Bit  21:16   reg_di_dcmb_mtn_alp_gain       default = 16  // u6, 16 is normalized to '1'
14625 //Bit   15:9   reserved
14626 //Bit    8:0   reg_di_dcmb_mtn_alp_ofst       default = 0  // s9, [-256, 255]
14627 #define   DECOMB_CMB_SEL_GAIN_OFST                 (0x2d89)
14628 #define P_DECOMB_CMB_SEL_GAIN_OFST                 (volatile uint32_t *)((0x2d89  << 2) + 0xff900000)
14629 //Bit  31:22   reserved
14630 //Bit  21:16   reg_di_dcmb_cmb_sel_gain       default = 48  // u6, 16 is normalized to '1'
14631 //Bit   15:9   reserved
14632 //Bit    8:0   reg_di_dcmb_cmb_sel_ofst       default = 0  // s9, [-256, 255]
14633 #define   DECOMB_WIND00                            (0x2d8a)
14634 #define P_DECOMB_WIND00                            (volatile uint32_t *)((0x2d8a  << 2) + 0xff900000)
14635 //Bit  31:29   reserved
14636 //Bit  28:16   reg_di_dcmb_wnd00              default = 0 // u13, x0 for window 0, software control
14637 //Bit  15:13   reserved
14638 //Bit   12:0   reg_di_dcmb_wnd01              default = 719 // u13, x1 for window 0, HSIZE-1, software control
14639 #define   DECOMB_WIND01                            (0x2d8b)
14640 #define P_DECOMB_WIND01                            (volatile uint32_t *)((0x2d8b  << 2) + 0xff900000)
14641 //Bit  31:29   reserved
14642 //Bit  28:16   reg_di_dcmb_wnd02              default = 0 // u13, y0 for window 0, software control
14643 //Bit  15:13   reserved
14644 //Bit   12:0   reg_di_dcmb_wnd03              default = 39 // u13, y1 for window 0, software control
14645 #define   DECOMB_WIND10                            (0x2d8c)
14646 #define P_DECOMB_WIND10                            (volatile uint32_t *)((0x2d8c  << 2) + 0xff900000)
14647 //Bit  31:29   reserved
14648 //Bit  28:16   reg_di_dcmb_wnd10              default = 0 // u13, x0 for window 1, software control
14649 //Bit  15:13   reserved
14650 //Bit   12:0   reg_di_dcmb_wnd11              default = 719 // u13, x1 for window 1, HSIZE-1, software control
14651 #define   DECOMB_WIND11                            (0x2d8d)
14652 #define P_DECOMB_WIND11                            (volatile uint32_t *)((0x2d8d  << 2) + 0xff900000)
14653 //Bit  31:29   reserved
14654 //Bit  28:16   reg_di_dcmb_wnd12              default = 40 // u13, y0 for window 1, software control
14655 //Bit  15:13   reserved
14656 //Bit   12:0   reg_di_dcmb_wnd13              default = 239 // u13, y1 for window 1, VSIZE-1-40, software control
14657 #define   DECOMB_MODE                              (0x2d8e)
14658 #define P_DECOMB_MODE                              (volatile uint32_t *)((0x2d8e  << 2) + 0xff900000)
14659 //Bit  31:16   reserved
14660 //Bit     15   reg_di_dcmb_is_cmb_bef         default = 1  // u1, 1: decide is_cmb before cmbing refine, 0: decide is_cmb after cmbing refine
14661 //Bit     14   reg_di_dcmb_en0                default = 1 // u1, enable decmobing for wind0
14662 //Bit     13   reg_di_dcmb_en1                default = 1 // u1, enable decmobing for wind1
14663 //Bit     12   reg_di_dcmb_en2                default = 1 // u1, enable decmobing for wind2
14664 //Bit  11:10   reg_di_dcmb_lpf_mod0           default = 2  // u2, get combing free pixels of wind0 by: 0, vertical lpf, 1, edge lpf, 2,3, ei data
14665 //Bit    9:8   reg_di_dcmb_lpf_mod1           default = 2  // u2, get combing free pixels of wind1 by: 0, vertical lpf, 1, edge lpf, 2,3, ei data
14666 //Bit    7:6   reg_di_dcmb_lpf_mod2           default = 0  // u2, get combing free pixels of wind2 by: 0, vertical lpf, 1, edge lpf, 2,3, ei data
14667 //Bit      5   reg_di_dcmb_cmb_sel0           default = 1  // u1, wind0 decmb based on: 0, vert cmb, 1, edge cmb
14668 //Bit      4   reg_di_dcmb_cmb_sel1           default = 1  // u1, wind1 decmb based on: 0, vert cmb, 1, edge cmb
14669 //Bit      3   reg_di_dcmb_cmb_sel2           default = 0  // u1, wind2 decmb based on: 0, vert cmb, 1, edge cmb
14670 //Bit      2   reg_di_dcmb_alp_mod0           default = 1  // u1, wind0 decmb alpha based on: 0, user-defined, 1, motion adaptive
14671 //Bit      1   reg_di_dcmb_alp_mod1           default = 1  // u1, wind1 decmb alpha based on: 0, user-defined, 1, motion adaptive
14672 //Bit      0   reg_di_dcmb_alp_mod2           default = 1  // u1, wind2 decmb alpha based on: 0, user-defined, 1, motion adaptive
14673 #define   DECOMB_FRM_SIZE                          (0x2d8f)
14674 #define P_DECOMB_FRM_SIZE                          (volatile uint32_t *)((0x2d8f  << 2) + 0xff900000)
14675 //Bit  31:29   reserved
14676 //Bit  28:16   hsize_in                       default = 1920  // u13, pic horz size in  unit: pixel
14677 //Bit  15:13   reserved
14678 //Bit   12:0   vsize_in                       default = 1080  // u13, pic vert size in  unit: pixel
14679 #define   DECOMB_HV_BLANK                          (0x2d90)
14680 #define P_DECOMB_HV_BLANK                          (volatile uint32_t *)((0x2d90  << 2) + 0xff900000)
14681 //Bit  31:16   reserved
14682 //Bit   15:8   hblank_num                     default = 20  // u8, hor blank time
14683 //Bit    7:0   vblank_num                     default = 50  // u8, ver blank time
14684 //
14685 // Closing file:  decomb_regs.h
14686 //
14687 // 0x98-0xa3
14688 //
14689 // Reading file:  nr2_det_polar_regs.h
14690 //
14691 // synopsys translate_off
14692 // synopsys translate_on
14693 #define   NR2_POLAR3_MODE                          (0x2d98)
14694 #define P_NR2_POLAR3_MODE                          (volatile uint32_t *)((0x2d98  << 2) + 0xff900000)
14695 //Bit 31:20        reserved
14696 //Bit 19:18        reg_polar3_f02lpf_mod0    // unsigned , default = 3  low pass filter mode for field 0 and field2 before polar3 detection; 0 for no lpf, 1: [1 2 1]/4 vert lpf; 2: [1 2 1; 2 4 2; 1 2 1]/16 2d lpf, p1 no hlpf; 2: [1 2 1; 2 4 2; 1 2 1]/16 2d lpf, p1 [1 2 1]/4 hlpf
14697 //Bit 17:16        reg_polar3_f02lpf_mod1    // unsigned , default = 3  low pass filter mode for field 0 and field2 before polar3 detection; 0 for no lpf, 1: [1 2 1]/4 vert lpf; 2: [1 2 1; 2 4 2; 1 2 1]/16 2d lpf, p1 no hlpf; 2: [1 2 1; 2 4 2; 1 2 1]/16 2d lpf, p1 [1 2 1]/4 hlpf
14698 //Bit 15: 8        reg_polar3_dif02_thrd0    // unsigned , default = 5  threshold of dif for polar3 detection except for 32 detection, only do polar3 detection on obvious motion, [0] for luma, 1[1] for chroma
14699 //Bit  7: 0        reg_polar3_dif02_thrd1    // unsigned , default = 5  threshold of dif for polar3 detection except for 32 detection, only do polar3 detection on obvious motion, [0] for luma, 1[1] for chroma
14700 #define   NR2_POLAR3_THRD                          (0x2d99)
14701 #define P_NR2_POLAR3_THRD                          (volatile uint32_t *)((0x2d99  << 2) + 0xff900000)
14702 //Bit 31:24        reg_polar3_txtf02_thrd0   // unsigned , default = 30  threshold to vertical f0f2 texture, if texture larger than this threshold, will not do the polar3 decision.
14703 //Bit 23:16        reg_polar3_txtf02_thrd1   // unsigned , default = 30  threshold to vertical f0f2 texture, if texture larger than this threshold, will not do the polar3 decision.
14704 //Bit 15: 8        reg_polar3_txtf1_thrd0    // unsigned , default = 20  threshold to vertical f1 texture, if texture larger than this threshold, will not do the polar3 decision.
14705 //Bit  7: 0        reg_polar3_txtf1_thrd1    // unsigned , default = 20  threshold to vertical f1 texture, if texture larger than this threshold, will not do the polar3 decision.
14706 #define   NR2_POLAR3_PARA0                         (0x2d9a)
14707 #define P_NR2_POLAR3_PARA0                         (volatile uint32_t *)((0x2d9a  << 2) + 0xff900000)
14708 //Bit 31:28        reg_polar3_rate00         // unsigned , default = 6  delt = rate*dif02/32, e.g. f2<f0, if f1 within((f0+f2)/2 - delt), ((f0+f2)/2 + delt), then polar3_smoothmv++;
14709 //Bit 27:24        reg_polar3_rate01         // unsigned , default = 6  delt = rate*dif02/32, e.g. f2<f0, if f1 within((f0+f2)/2 - delt), ((f0+f2)/2 + delt), then polar3_smoothmv++;
14710 //Bit 23:20        reg_polar3_rate10         // unsigned , default = 8  delt = rate*dif02/32, e.g. f2-ofst1<f0, if f1<((f0+f2)/2 - delt), then polar3_m1++; if f1>((f0+f2)/2 + delt), then polar3_p1++;
14711 //Bit 19:16        reg_polar3_rate11         // unsigned , default = 8  delt = rate*dif02/32, e.g. f2-ofst1<f0, if f1<((f0+f2)/2 - delt), then polar3_m1++; if f1>((f0+f2)/2 + delt), then polar3_p1++;
14712 //Bit 15:12        reg_polar3_rate20         // unsigned , default = 2  delt = rate*dif02/32, e.g. f2<f0, if f1<(f2 - delt- ofset2), then polar3_m2++; if f1>((f0 + delt+ ofset2), then polar3_p2++;
14713 //Bit 11: 8        reg_polar3_rate21         // unsigned , default = 2  delt = rate*dif02/32, e.g. f2<f0, if f1<(f2 - delt- ofset2), then polar3_m2++; if f1>((f0 + delt+ ofset2), then polar3_p2++;
14714 //Bit  7: 1        reserved
14715 //Bit  0           reg_polar3_ro_reset       // unsigned , default = 0  reset signal of the polar3 read only registers
14716 #define   NR2_POLAR3_PARA1                         (0x2d9b)
14717 #define P_NR2_POLAR3_PARA1                         (volatile uint32_t *)((0x2d9b  << 2) + 0xff900000)
14718 //Bit 31:24        reg_polar3_rate30         // unsigned , default = 48  delt = rate*dif02/32, e.g. f2<f0, if f1<(f2 - delt- ofset3) or f1>((f0 + delt+ofst3), then polar3_32++;
14719 //Bit 23:16        reg_polar3_rate31         // unsigned , default = 48  delt = rate*dif02/32, e.g. f2<f0, if f1<(f2 - delt- ofset3) or f1>((f0 + delt+ofst3), then polar3_32++;
14720 //Bit 15:12        reg_polar3_ofst30         // signed , default = 2  delt = rate*dif02/32, e.g. f2<f0, if f1<(f2 - delt-ofst3) or f1>((f0 + delt+ofst3), then polar3_32++;
14721 //Bit 11: 8        reg_polar3_ofst31         // signed , default = 2  delt = rate*dif02/32, e.g. f2<f0, if f1<(f2 - delt-ofst3) or f1>((f0 + delt+ofst3), then polar3_32++;
14722 //Bit  7: 4        reg_polar3_ofst20         // signed , default = 2  delt = rate*dif02/32, e.g. f2<f0, if f1<(f2 - delt- ofset2), then polar3_m2++; if f1>((f0 + delt+ ofset2), then polar3_p2++;
14723 //Bit  3: 0        reg_polar3_ofst21         // signed , default = 2  delt = rate*dif02/32, e.g. f2<f0, if f1<(f2 - delt- ofset2), then polar3_m2++; if f1>((f0 + delt+ ofset2), then polar3_p2++;
14724 #define   NR2_POLAR3_CTRL                          (0x2d9c)
14725 #define P_NR2_POLAR3_CTRL                          (volatile uint32_t *)((0x2d9c  << 2) + 0xff900000)
14726 //Bit 31:24        reg_polar3_ofst10         // signed , default = 1
14727 //Bit 23:16        reg_polar3_ofst11         // signed , default = 1
14728 //Bit 15: 8        reg_polar3_h_mute         // unsigned , default = 10  horizontal pixels to mute for left right sides for polar3 detection;
14729 //Bit  7: 0        reg_polar3_v_mute         // unsigned , default = 10  vertical pixels to mute for top and bottom sides for polar3 detection;
14730 #define   NR2_RO_POLAR3_NUMOFPIX                   (0x2d9d)
14731 #define P_NR2_RO_POLAR3_NUMOFPIX                   (volatile uint32_t *)((0x2d9d  << 2) + 0xff900000)
14732 //Bit 31:24        reserved
14733 //Bit 23: 0        ro_polar3_numofpix        // unsigned , default = 0  number of pixels detected as polar3
14734 #define   NR2_RO_POLAR3_SMOOTHMV                   (0x2d9e)
14735 #define P_NR2_RO_POLAR3_SMOOTHMV                   (volatile uint32_t *)((0x2d9e  << 2) + 0xff900000)
14736 //Bit 31:24        reserved
14737 //Bit 23: 0        ro_polar3_smoothmv        // unsigned , default = 0  number of pixels with smooth mv, F(t) is close between avg of f(t-1) and f(t+1);
14738 #define   NR2_RO_POLAR3_M1                         (0x2d9f)
14739 #define P_NR2_RO_POLAR3_M1                         (volatile uint32_t *)((0x2d9f  << 2) + 0xff900000)
14740 //Bit 31:24        reserved
14741 //Bit 23: 0        ro_polar3_m1              // unsigned , default = 0  number of pixels with F(t) is close to f(t-1) instead of f(t+1), but in between [f(t-1), f(t+1)];
14742 #define   NR2_RO_POLAR3_P1                         (0x2da0)
14743 #define P_NR2_RO_POLAR3_P1                         (volatile uint32_t *)((0x2da0  << 2) + 0xff900000)
14744 //Bit 31:24        reserved
14745 //Bit 23: 0        ro_polar3_p1              // unsigned , default = 0  number of pixels with F(t) is close to f(t+1) instead of f(t-1), but in between [f(t-1), f(t+1)];
14746 #define   NR2_RO_POLAR3_M2                         (0x2da1)
14747 #define P_NR2_RO_POLAR3_M2                         (volatile uint32_t *)((0x2da1  << 2) + 0xff900000)
14748 //Bit 31:24        reserved
14749 //Bit 23: 0        ro_polar3_m2              // unsigned , default = 0  number of pixels with F(t) is close to f(t-1) instead of f(t+1), but out side of (f(t-1), f(t+1));
14750 #define   NR2_RO_POLAR3_P2                         (0x2da2)
14751 #define P_NR2_RO_POLAR3_P2                         (volatile uint32_t *)((0x2da2  << 2) + 0xff900000)
14752 //Bit 31:24        reserved
14753 //Bit 23: 0        ro_polar3_p2              // unsigned , default = 0  number of pixels with F(t) is close to f(t+1) instead of f(t-1), but out side of (f(t-1), f(t+1));
14754 #define   NR2_RO_POLAR3_32                         (0x2da3)
14755 #define P_NR2_RO_POLAR3_32                         (volatile uint32_t *)((0x2da3  << 2) + 0xff900000)
14756 //Bit 31:24        reserved
14757 //Bit 23: 0        ro_polar3_32              // unsigned , default = 0  number of pixels with F(t) far from [f(t-1),f(t+1)] and f(t-1) is close to f(t+1);
14758 // synopsys translate_off
14759 // synopsys translate_on
14760 //
14761 // Closing file:  nr2_det_polar_regs.h
14762 //
14763 // 0xa4-0xf7 / 0xff
14764 //
14765 // Reading file:  nr4_regs.h
14766 //
14767 // synopsys translate_off
14768 // synopsys translate_on
14769 //========== nr4_drt_regs register begin ==========//
14770 #define   NR4_DRT_CTRL                             (0x2da4)
14771 #define P_NR4_DRT_CTRL                             (volatile uint32_t *)((0x2da4  << 2) + 0xff900000)
14772 //Bit 31:24        reg_nr4_ydrt_3line_ssd_gain    // unsigned , default = 16  gain to max ssd normalized 16 as '1'
14773 //Bit 23:16        reg_nr4_ydrt_5line_ssd_gain    // unsigned , default = 16  gain to max ssd normalized 16 as '1'
14774 //Bit 15            reserved
14775 //Bit 14:13        reg_nr4_drt_yhsad_mode         // unsigned , default = 1  mode for luma horiztonal sad calc., 0: no vertical lpf, 1: vertical [1 2 1], 2 or 3: vertical [ 1 2 2 2 1] if 5 lines
14776 //Bit 12:11        reg_nr4_drt_chsad_mode         // unsigned , default = 1  mode for chroma horiztonal sad calc., 0: no vertical lpf, 1: vertical [1 2 1], 2 or 3: vertical [ 1 2 2 2 1] if 5 lines
14777 //Bit 10           reg_nr4_drt_yhsad_hlpf         // unsigned , default = 1  hlpf for luma hsad of drt calculation, 0: no lpf, 1: with [1 2 1] hlpf
14778 //Bit  9           reg_nr4_drt_yvsad_hlpf         // unsigned , default = 1  hlpf for luma vsad of drt calculation, 0: no lpf, 1: with [1 2 1] hlpf
14779 //Bit  8           reg_nr4_drt_ydsad_hlpf         // unsigned , default = 1  hlpf for luma dsad of drt calculation, 0: no lpf, 1: with [1 2 1] hlpf
14780 //Bit  7           reg_nr4_drt_chsad_hlpf         // unsigned , default = 1  hlpf for chrome hsad of drt calculation, 0: no lpf, 1: with [1 2 1] hlpf
14781 //Bit  6           reg_nr4_drt_cvsad_hlpf         // unsigned , default = 1  hlpf for chroma vsad of drt calculation, 0: no lpf, 1: with [1 2 1] hlpf
14782 //Bit  5           reg_nr4_drt_cdsad_hlpf         // unsigned , default = 1  hlpf for chroma dsad of drt calculation, 0: no lpf, 1: with [1 2 1] hlpf
14783 //Bit  4           reg_nr4_ydrt_dif_mode          // unsigned , default = 1  0:y_dif, 1: y_dif + (u_dif + v_dif)/2
14784 //Bit  3: 2        reg_nr4_cdrt_dif_mode          // unsigned , default = 2  0:(u_dif + v_dif), 1: y_dif/4 + (u_dif + v_dif)*3/4, 2:y_dif/2 + (u_dif + v_dif)/2, 3: y_dif (not recommended)
14785 //Bit  1: 0        reserved
14786 #define   NR4_DRT_YSAD_GAIN                        (0x2da5)
14787 #define P_NR4_DRT_YSAD_GAIN                        (volatile uint32_t *)((0x2da5  << 2) + 0xff900000)
14788 //Bit 31:24        reg_nr4_ysad_hrz_gain           // unsigned , default = 16  gain for horizontal sad, 16 normalized to "1"
14789 //Bit 23:16        reg_nr4_ysad_diag_gain          // unsigned , default = 20  gain for diagonal sad, 16 normalized to "1"
14790 //Bit 15: 8        reg_nr4_ysad_vrt_gain           // unsigned , default = 16  gain for vertical sad, 16 normalized to "1"
14791 //Bit  7: 6        reserved
14792 //Bit  5: 0        reg_nr4_drt_ysad_core_rate      // unsigned , default = 6  rate of coring for sad(theta) - sad(theta+pi/2)*rate/64
14793 #define   NR4_DRT_CSAD_GAIN                        (0x2da6)
14794 #define P_NR4_DRT_CSAD_GAIN                        (volatile uint32_t *)((0x2da6  << 2) + 0xff900000)
14795 //Bit 31:24        reg_nr4_csad_hrz_gain           // unsigned , default = 16  gain for horizontal sad, 16 normalized to "1"
14796 //Bit 23:16        reg_nr4_csad_diag_gain          // unsigned , default = 20  gain for diagonal sad, 16 normalized to "1"
14797 //Bit 15: 8        reg_nr4_csad_vrt_gain           // unsigned , default = 16  gain for vertical sad, 16 normalized to "1"
14798 //Bit  7: 6        reserved
14799 //Bit  5: 0        reg_nr4_drt_csad_core_rate      // unsigned , default = 6  rate of coring for sad(theta) - sad(theta+pi/2)*rate/64
14800 #define   NR4_DRT_SAD_ALP_CORE                     (0x2da7)
14801 #define P_NR4_DRT_SAD_ALP_CORE                     (volatile uint32_t *)((0x2da7  << 2) + 0xff900000)
14802 //Bit 31:24        reserved
14803 //Bit 23:20        reg_nr4_ydrt_alp_core_rate     // unsigned , default = 0  luma ratio to min_err, alpha = (min_err - (max_err - min_err)*rate + ofst)/max_err * 64; dft = 0/32
14804 //Bit 19:16        reg_nr4_cdrt_alp_core_rate     // unsigned , default = 0  chroma ratio to min_err, alpha = (min_err - (max_err - min_err)*rate + ofst)/max_err * 64; dft = 0/32
14805 //Bit 15:14        reserved
14806 //Bit 13: 8        reg_nr4_ydrt_alp_core_ofst     // unsigned , default = 10  luma offset to min_err, alpha = (min_err - (max_err - min_err)*rate + ofst)/max_err * 64; dft = 10
14807 //Bit  7: 6        reserved
14808 //Bit  5: 0        reg_nr4_cdrt_alp_core_ofst     // unsigned , default = 10  chroma offset to min_err, alpha = (min_err - (max_err - min_err)*rate + ofst)/max_err * 64; dft = 10
14809 #define   NR4_DRT_ALP_MINMAX                       (0x2da8)
14810 #define P_NR4_DRT_ALP_MINMAX                       (volatile uint32_t *)((0x2da8  << 2) + 0xff900000)
14811 //Bit 31:30        reserved
14812 //Bit 29:24        reg_nr4_ydrt_alp_min           // unsigned , default = 0  luma min value of alpha, dft = 0
14813 //Bit 23:22        reserved
14814 //Bit 21:16        reg_nr4_ydrt_alp_max           // unsigned , default = 63  luma max value of alpha, dft = 63
14815 //Bit 15:14        reserved
14816 //Bit 13: 8        reg_nr4_cdrt_alp_min           // unsigned , default = 0  chroma min value of alpha, dft = 0
14817 //Bit  7: 6        reserved
14818 //Bit  5: 0        reg_nr4_cdrt_alp_max           // unsigned , default = 63  chroma max value of alpha, dft = 63
14819 //========== nr4_drt_regs register end ==========//
14820 //========== nr4_snr_regs register begin ==========//
14821 #define   NR4_SNR_CTRL_REG                         (0x2da9)
14822 #define P_NR4_SNR_CTRL_REG                         (volatile uint32_t *)((0x2da9  << 2) + 0xff900000)
14823 //Bit 31:13        reserved
14824 //Bit 12           reg_nr4_bet2_sel              // unsigned , default = 1
14825 //Bit 11: 9        reg_nr4_snr2_sel_mode         // unsigned , default = 0  0: no filter, 1: adpgau, adp_drt_lpf blend; 2: adpgau, drt4_lpf blend; 3: adp_drt_lpf method, 4: drt4_lpf method, 5: adp_drt_                                                             //original image blend, 6: drt4_lpf, original image blend, 7: adpgau method; dft=1
14826 //Bit  8           reg_nr4_snr2_gaulpf_mode      // unsigned , default = 1    0: 3*5 or 5*5 gaussian lpf;  1: 3*3 (window size) gaussian lpf;   dft=1
14827 //Bit  7: 6        reg_nr4_snr2_alpha0_sad_mode  // unsigned , default = 3  0: max_sad*max_ssd;  1: max_sad*max_sad; 2: adp_max_sad*max_ssd; 3: adp_max_sad*adp_max_sad  dft=3
14828 //Bit  5: 4        reg_nr4_snr2_alpha1_sad_mode  // unsigned , default = 2  0: max_sad;  1: cross_max_sad; 2 or 3: adp_sad  dft=2
14829 //Bit  3: 2        reserved
14830 //Bit  1: 0        reg_nr4_snr2_adp_drtlpf_mode  // unsigned , default = 3  0: adp_drtlpf [2 1 1]/4, 1: adp_drtlpf [4 2 1 1]/8; 2: adp_drtlpf [2 2 2 1 1]/8; 3: adp_drtlpf [7 7 7 6 5]/32;  dft=3;
14831 #define   NR4_SNR_ALPHA0_MAX_MIN                   (0x2daa)
14832 #define P_NR4_SNR_ALPHA0_MAX_MIN                   (volatile uint32_t *)((0x2daa  << 2) + 0xff900000)
14833 //Bit 31:30        reserved
14834 //Bit 29:23        reg_nr4_snr2_alp0_ymin    // unsigned , default = 127  normalized to 128 as '1'
14835 //Bit 22:16        reg_nr4_snr2_alp0_ymax    // unsigned , default = 127  normalized to 128 as '1'
14836 //Bit 15:14        reserved
14837 //Bit 13: 7        reg_nr4_snr2_alp0_cmin    // unsigned , default = 127  normalized to 128 as '1'
14838 //Bit  6: 0        reg_nr4_snr2_alp0_cmax    // unsigned , default = 127  normalized to 128 as '1'
14839 #define   NR4_ALP0C_ERR2CURV_LIMIT0                (0x2dab)
14840 #define P_NR4_ALP0C_ERR2CURV_LIMIT0                (volatile uint32_t *)((0x2dab  << 2) + 0xff900000)
14841 //Bit 31:24        reg_nr4_snr2_alp0_minerr_cpar0  // unsigned , default = 0  threshold0 of curve to map mierr to alp0 for chroma channel, this will be set value of flat region mierr that no need blur.
14842 //Bit 23:16        reg_nr4_snr2_alp0_minerr_cpar1  // unsigned , default = 25  threshold1 of curve to map mierr to alp0 for chroma channel,this will be set value of texture region mierr that can not blur.
14843 //Bit 15: 8        reg_nr4_snr2_alp0_minerr_cpar5  // unsigned , default = 40  rate0 (for mierr<th0) of curve to map mierr to alp0 for chroma channel. the larger of the value, the deep of the slope. 0~255.
14844 //Bit  7: 0        reg_nr4_snr2_alp0_minerr_cpar6  // unsigned , default = 40  rate1 (for mierr>th1) of curve to map mierr to alp0 for chroma channel. the larger of the value, the deep of the slope. 0~255.
14845 #define   NR4_ALP0C_ERR2CURV_LIMIT1                (0x2dac)
14846 #define P_NR4_ALP0C_ERR2CURV_LIMIT1                (volatile uint32_t *)((0x2dac  << 2) + 0xff900000)
14847 //Bit 31:24        reserved
14848 //Bit 23:16        reg_nr4_snr2_alp0_minerr_cpar2  // unsigned , default = 127  level limit(for mierr<th0) of curve to map mierr to alp0 for chroma channel, that we can do for flat region. 0~255.
14849 //Bit 15: 8        reg_nr4_snr2_alp0_minerr_cpar3  // unsigned , default = 0  level limit(for th0<mierr<th1) of curve to map mierr to alp0 for chroma channel, that we can do for misc region. 0~255.
14850 //Bit  7: 0        reg_nr4_snr2_alp0_minerr_cpar4  // unsigned , default = 127  level limit(for mierr>th1) of curve to map mierr to alp0 for chroma channel,   that we can do for texture region. 0~255.
14851 #define   NR4_ALP0Y_ERR2CURV_LIMIT0                (0x2dad)
14852 #define P_NR4_ALP0Y_ERR2CURV_LIMIT0                (volatile uint32_t *)((0x2dad  << 2) + 0xff900000)
14853 //Bit 31:24        reg_nr4_snr2_alp0_minerr_ypar0  // unsigned , default = 0  threshold0 of curve to map mierr to alp0 for luma channel, this will be set value of flat region mierr that no need blur. 0~255.
14854 //Bit 23:16        reg_nr4_snr2_alp0_minerr_ypar1  // unsigned , default = 25  threshold1 of curve to map mierr to alp0 for luma channel,this will be set value of texture region mierr that can not blur.
14855 //Bit 15: 8        reg_nr4_snr2_alp0_minerr_ypar5  // unsigned , default = 40  rate0 (for mierr<th0) of curve to map mierr to alp0 for luma channel. the larger of the value, the deep of the slope. 0~255.
14856 //Bit  7: 0        reg_nr4_snr2_alp0_minerr_ypar6  // unsigned , default = 40  rate1 (for mierr>th1) of curve to map mierr to alp0 for luma channel. the larger of the value, the deep of the slope. 0~255.
14857 #define   NR4_ALP0Y_ERR2CURV_LIMIT1                (0x2dae)
14858 #define P_NR4_ALP0Y_ERR2CURV_LIMIT1                (volatile uint32_t *)((0x2dae  << 2) + 0xff900000)
14859 //Bit 31:24        reserved
14860 //Bit 23:16        reg_nr4_snr2_alp0_minerr_ypar2  // unsigned , default = 127  level limit(for mierr<th0) of curve to map mierr to alp0 for luma channel,  set to alp0 that we can do for flat region. 0~255.
14861 //Bit 15: 8        reg_nr4_snr2_alp0_minerr_ypar3  // unsigned , default = 0  level limit(for th0<mierr<th1) of curve to map mierr to alp0 for luma channel, alp0 that we can do for misc region. 0~255.
14862 //Bit  7: 0        reg_nr4_snr2_alp0_minerr_ypar4  // unsigned , default = 127  level limit(for mierr>th1) of curve to map mierr to alp0 for luma channel, alp0 that we can do for texture region. 0~255.
14863 #define   NR4_SNR_ALPA1_RATE_AND_OFST              (0x2daf)
14864 #define P_NR4_SNR_ALPA1_RATE_AND_OFST              (volatile uint32_t *)((0x2daf  << 2) + 0xff900000)
14865 //Bit 31:24        reserved
14866 //Bit 23:18        reg_nr4_snr2_alp1_ycore_rate      // unsigned , default = 0    normalized 64 as "1"
14867 //Bit 17:12        reg_nr4_snr2_alp1_ccore_rate      // unsigned , default = 0    normalized 64 as "1"
14868 //Bit 11: 6        reg_nr4_snr2_alp1_ycore_ofst      // signed , default = 3    normalized 64 as "1"
14869 //Bit  5: 0        reg_nr4_snr2_alp1_ccore_ofst      // signed , default = 3    normalized 64 as "1"
14870 #define   NR4_SNR_ALPHA1_MAX_MIN                   (0x2db0)
14871 #define P_NR4_SNR_ALPHA1_MAX_MIN                   (volatile uint32_t *)((0x2db0  << 2) + 0xff900000)
14872 //Bit 31:24        reserved
14873 //Bit 23:18        reg_nr4_snr2_alp1_ymin            // unsigned , default = 0    normalized to 64 as '1'
14874 //Bit 17:12        reg_nr4_snr2_alp1_ymax            // unsigned , default = 63   normalized to 64 as '1'
14875 //Bit 11: 6        reg_nr4_snr2_alp1_cmin            // unsigned , default = 0    normalized to 64 as '1'
14876 //Bit  5: 0        reg_nr4_snr2_alp1_cmax            // unsigned , default = 63   normalized to 64 as '1'
14877 #define   NR4_ALP1C_ERR2CURV_LIMIT0                (0x2db1)
14878 #define P_NR4_ALP1C_ERR2CURV_LIMIT0                (volatile uint32_t *)((0x2db1  << 2) + 0xff900000)
14879 //Bit 31:24        reg_nr4_snr2_alp1_minerr_cpar0  // unsigned , default = 0    annel, this will be set value of flat region mierr that no need directional NR. 0~255.
14880 //Bit 23:16        reg_nr4_snr2_alp1_minerr_cpar1  // unsigned , default = 24   hannel,this will be set value of texture region mierr that can not do directional NR. 0~255.
14881 //Bit 15: 8        reg_nr4_snr2_alp1_minerr_cpar5  // unsigned , default = 0    a/chroma  channel. the larger of the value, the deep of the slope.
14882 //Bit  7: 0        reg_nr4_snr2_alp1_minerr_cpar6  // unsigned , default = 20   a/chroma  channel. the larger of the value, the deep of the slope. 0~255
14883 #define   NR4_ALP1C_ERR2CURV_LIMIT1                (0x2db2)
14884 #define P_NR4_ALP1C_ERR2CURV_LIMIT1                (volatile uint32_t *)((0x2db2  << 2) + 0xff900000)
14885 //Bit 31:24        reserved
14886 //Bit 23:16        reg_nr4_snr2_alp1_minerr_cpar2  // unsigned , default = 0    will be set to alp1 that we can do for flat region. 0~255.
14887 //Bit 15: 8        reg_nr4_snr2_alp1_minerr_cpar3  // unsigned , default = 16   this will be set to alp1 that we can do for misc region. 0~255.
14888 //Bit  7: 0        reg_nr4_snr2_alp1_minerr_cpar4  // unsigned , default = 63   will be set to alp1 that we can do for texture region. 0~255.255 before
14889 #define   NR4_ALP1Y_ERR2CURV_LIMIT0                (0x2db3)
14890 #define P_NR4_ALP1Y_ERR2CURV_LIMIT0                (volatile uint32_t *)((0x2db3  << 2) + 0xff900000)
14891 //Bit 31:24        reg_nr4_snr2_alp1_minerr_ypar0  // unsigned , default = 0    thra/chroma channel, this will be set value of flat region mierr that no need directional NR. 0~255.
14892 //Bit 23:16        reg_nr4_snr2_alp1_minerr_ypar1  // unsigned , default = 24   thra/chroma  channel,this will be set value of texture region mierr that can not do directional NR. 0~255.
14893 //Bit 15: 8        reg_nr4_snr2_alp1_minerr_ypar5  // unsigned , default = 0    ratlp1 for luma/chroma  channel. the larger of the value, the deep of the slope.
14894 //Bit  7: 0        reg_nr4_snr2_alp1_minerr_ypar6  // unsigned , default = 20   ratlp1 for luma/chroma  channel. the larger of the value, the deep of the slope. 0~255
14895 #define   NR4_ALP1Y_ERR2CURV_LIMIT1                (0x2db4)
14896 #define P_NR4_ALP1Y_ERR2CURV_LIMIT1                (volatile uint32_t *)((0x2db4  << 2) + 0xff900000)
14897 //Bit 31:24        reserved
14898 //Bit 23:16        reg_nr4_snr2_alp1_minerr_ypar2  // unsigned , default = 0    lev to alp1 for luma/chroma  channel, this will be set to alp1 that we can do for flat region. 0~255.
14899 //Bit 15: 8        reg_nr4_snr2_alp1_minerr_ypar3  // unsigned , default = 16   levierr to alp1 for luma/chroma  channel, this will be set to alp1 that we can do for misc region. 0~255.
14900 //Bit  7: 0        reg_nr4_snr2_alp1_minerr_ypar4  // unsigned , default = 63   lev to alp1 for luma/chroma  channel, this will be set to alp1 that we can do for texture region. 0~255.255 before
14901 //========== nr4_snr_regs register end ==========//
14902 //========== nr4_tnr_regs register begin ==========//
14903 #define   NR4_MTN_CTRL                             (0x2db5)
14904 #define P_NR4_MTN_CTRL                             (volatile uint32_t *)((0x2db5  << 2) + 0xff900000)
14905 //Bit 31: 2        reserved
14906 //Bit  1           reg_nr4_mtn_ref_en        // unsigned , default = 1  enable motion refinement, dft = 1
14907 //Bit  0           reg_nr4_mtn_ref_bet_sel   // unsigned , default = 0  beta selection mode for motion refinement, 0: beta1, 1: beta2, dft = 0
14908 #define   NR4_MTN_REF_PAR0                         (0x2db6)
14909 #define P_NR4_MTN_REF_PAR0                         (volatile uint32_t *)((0x2db6  << 2) + 0xff900000)
14910 //Bit 31:24        reg_nr4_mtn_ref_par0      // unsigned , default = 24  par0 for beta to gain, dft =
14911 //Bit 23:16        reg_nr4_mtn_ref_par1      // unsigned , default = 60  par1 for beta to gain, dft =
14912 //Bit 15: 8        reg_nr4_mtn_ref_par2      // unsigned , default = 4  par2 for beta to gain, dft =
14913 //Bit  7: 0        reg_nr4_mtn_ref_par3      // unsigned , default = 32  par3 for beta to gain, dft =
14914 #define   NR4_MTN_REF_PAR1                         (0x2db7)
14915 #define P_NR4_MTN_REF_PAR1                         (volatile uint32_t *)((0x2db7  << 2) + 0xff900000)
14916 //Bit 31:24        reserved
14917 //Bit 23:16        reg_nr4_mtn_ref_par4      // unsigned , default = 128  par4 for beta to gain, dft =
14918 //Bit 15: 8        reg_nr4_mtn_ref_par5      // unsigned , default = 40  par5 for beta to gain, dft =
14919 //Bit  7: 0        reg_nr4_mtn_ref_par6      // unsigned , default = 20  par6 for beta to gain, dft =
14920 //========== nr4_tnr_regs register end ==========//
14921 //========== nr4_mcnr_regs register begin ==========//
14922 #define   NR4_MCNR_LUMA_ENH_CTRL                   (0x2db8)
14923 #define P_NR4_MCNR_LUMA_ENH_CTRL                   (volatile uint32_t *)((0x2db8  << 2) + 0xff900000)
14924 //Bit 31: 4        reserved
14925 //Bit  3           reg_nr4_luma_plus_en           // unsigned , default = 1  enable luma enhancement, dft = 1
14926 //Bit  2           reg_nr4_luma_plus_wt_mode      // unsigned , default = 1  luma weight calc mode, 0:sqrt(1+x^2), 1: 1+abs(x), dft = 0
14927 //Bit  1: 0        reg_nr4_luma_plus_orient_mode  // unsigned , default = 1  0: only use previous orient for pre and cur luma plus, 1: 0: only use current orient for pre and cur luma plus
14928 #define   NR4_MCNR_LUMA_STAT_LIMTX                 (0x2db9)
14929 #define P_NR4_MCNR_LUMA_STAT_LIMTX                 (volatile uint32_t *)((0x2db9  << 2) + 0xff900000)
14930 //Bit 31:30        reserved
14931 //Bit 29:16        reg_nr4_luma_plus_xst        // unsigned , default = 8    start for luma plus statistic, dft = 8
14932 //Bit 15:14        reserved
14933 //Bit 13: 0        reg_nr4_luma_plus_xed        // unsigned , default = 711  end for luma plus statistic, dft = HSIZE-8-1;
14934 #define   NR4_MCNR_LUMA_STAT_LIMTY                 (0x2dba)
14935 #define P_NR4_MCNR_LUMA_STAT_LIMTY                 (volatile uint32_t *)((0x2dba  << 2) + 0xff900000)
14936 //Bit 31:30        reserved
14937 //Bit 29:16        reg_nr4_luma_plus_yst          // unsigned , default = 8  start for luma plus statistic, dft = 8
14938 //Bit 15:14        reserved
14939 //Bit 13: 0        reg_nr4_luma_plus_yed          // unsigned , default = 231  end for luma plus statistic, dft = VSIZE-8-1
14940 #define   NR4_MCNR_LUMA_DIF_CALC                   (0x2dbb)
14941 #define P_NR4_MCNR_LUMA_DIF_CALC                   (volatile uint32_t *)((0x2dbb  << 2) + 0xff900000)
14942 //Bit 31:30        reserved
14943 //Bit 29:24        reg_nr4_luma_plus_ugain        // unsigned , default = 8  U's gain for luma enhancement, 16 normalized as '1'
14944 //Bit 23:22        reserved
14945 //Bit 21:16        reg_nr4_luma_plus_vgain        // unsigned , default = 8  V's gain for luma enhancement, 16 normalized as '1'
14946 //Bit 15: 8        reg_nr4_luma_plus_ycor_thd     // unsigned , default = 2  Y coring threshold for difference calc., dft = 0
14947 //Bit  7: 0        reg_nr4_luma_plus_ccor_thd     // unsigned , default = 0  C coring threshold for difference calc., dft = 0
14948 #define   NR4_MCNR_LUMAPRE_CAL_PRAM                (0x2dbc)
14949 #define P_NR4_MCNR_LUMAPRE_CAL_PRAM                (volatile uint32_t *)((0x2dbc  << 2) + 0xff900000)
14950 //Bit 31:26        reserved
14951 //Bit 25:24        reg_nr4_pre_u_orient           // signed , default = 0  orientation of previous U, initial to 0, and will be updated by software
14952 //Bit 23:18        reserved
14953 //Bit 17:16        reg_nr4_pre_v_orient           // signed , default = 0  orientation of previous V, initial to 0, and will be updated by software
14954 //Bit 15: 8        reg_nr4_pre_u_mean             // unsigned , default = 0  mean of previous U, initial to 0, and will be updated by software
14955 //Bit  7: 0        reg_nr4_pre_v_mean             // unsigned , default = 0  mean of previousV, initial to 0, and will be updated by software
14956 #define   NR4_MCNR_LUMACUR_CAL_PRAM                (0x2dbd)
14957 #define P_NR4_MCNR_LUMACUR_CAL_PRAM                (volatile uint32_t *)((0x2dbd  << 2) + 0xff900000)
14958 //Bit 31:26        reserved
14959 //Bit 25:24        reg_nr4_cur_u_orient           // signed , default = 0  orientation of current U, initial to 0, and will be updated by software
14960 //Bit 23:18        reserved
14961 //Bit 17:16        reg_nr4_cur_v_orient           // signed , default = 0  orientation of current V, initial to 0, and will be updated by software
14962 //Bit 15: 8        reg_nr4_cur_u_mean             // unsigned , default = 0  mean of current U, initial to 0, and will be updated by software
14963 //Bit  7: 0        reg_nr4_cur_v_mean             // unsigned , default = 0  mean of current, initial to 0, and will be updated by software
14964 #define   NR4_MCNR_MV_CTRL_REG                     (0x2dbe)
14965 #define P_NR4_MCNR_MV_CTRL_REG                     (volatile uint32_t *)((0x2dbe  << 2) + 0xff900000)
14966 //Bit 31:14        reserved
14967 //Bit 13:12        reg_nr4_sad_bitw          // unsigned , default = 2  sad bit width (8 + x) before clip to u8, dft = 1
14968 //Bit 11: 4        reg_nr4_glb_gain          // unsigned , default = 64  global gain calc. by software, 64 is normalized as '1'
14969 //Bit  3: 0        reg_nr4_mv_err_rsft       // unsigned , default = 8  right shift for mv err calc., dft = 9
14970 #define   NR4_MCNR_MV_GAIN0                        (0x2dbf)
14971 #define P_NR4_MCNR_MV_GAIN0                        (volatile uint32_t *)((0x2dbf  << 2) + 0xff900000)
14972 //Bit 31:28        reg_nr4_lftmvx_gain       // unsigned , default = 1  left mvx gain for err calc., dft = 1
14973 //Bit 27:24        reg_nr4_lftmvy_gain       // unsigned , default = 1  left mvy gain for err calc., dft = 1
14974 //Bit 23:20        reg_nr4_zmvx_gain         // unsigned , default = 5  zero mvx gain for err calc., dft = 2
14975 //Bit 19:16        reg_nr4_zmvy_gain         // unsigned , default = 5  zero mvy gain for err calc., dft = 4
14976 //Bit 15:12        reg_nr4_lmvx0_gain        // unsigned , default = 2  line mvx0 gain for err calc., dft = 1
14977 //Bit 11: 8        reg_nr4_lmvx1_gain        // unsigned , default = 2  line mvx1 gain for err calc., dft = 1
14978 //Bit  7: 4        reg_nr4_lmvy0_gain        // unsigned , default = 2  line mvy0 gain for err calc., dft = 1
14979 //Bit  3: 0        reg_nr4_lmvy1_gain        // unsigned , default = 2  line mvy1 gain for err calc., dft = 1
14980 #define   NR4_MCNR_LMV_PARM                        (0x2dc0)
14981 #define P_NR4_MCNR_LMV_PARM                        (volatile uint32_t *)((0x2dc0  << 2) + 0xff900000)
14982 //Bit 31:28        reg_nr4_lmv_rt0               // unsigned , default = 3  ratio of max lmv
14983 //Bit 27:24        reg_nr4_lmv_rt1               // unsigned , default = 3  ratio of second max lmv
14984 //Bit 23:22        reserved
14985 //Bit 21:16        reg_nr4_lmv_num_lmt0      // unsigned , default = 16  lmv0 least/limit number of (total number - zero_bin)
14986 //Bit 15:14        reserved
14987 //Bit 13: 8        reg_nr4_lmv_num_lmt1      // unsigned , default = 8  lmv1 least/limit number of (total number - zero_bin - max0)
14988 //Bit  7: 2        reserved
14989 //Bit  1: 0        reg_nr4_max_sad_rng       // unsigned , default = 1  search range of max2 sad in small region, dft = 1
14990 #define   NR4_MCNR_ALP0_REG                        (0x2dc1)
14991 #define P_NR4_MCNR_ALP0_REG                        (volatile uint32_t *)((0x2dc1  << 2) + 0xff900000)
14992 //Bit 31:26        reserved
14993 //Bit 25           reg_nr4_alp0_fail_chk     // unsigned , default = 1  enable check for alp0 fail status
14994 //Bit 24           reg_nr4_bet0_coef_ref_en  // unsigned , default = 1  bet1 refinement by coef_blt
14995 //Bit 23:16        reg_nr4_alp0_posad_gain   // unsigned , default = 255  the sad (norm) gain for pixel pointed by MV;
14996 //Bit 15:10        reserved
14997 //Bit  9: 8        reg_nr4_alp0_norm_mode    // unsigned , default = 0  alp0 select sad norm mode, 0: disable, 1: enable dc norm, 2: enable ac norm, 3: enable both (dc/ac) norm, dft = 3
14998 //Bit  7: 6        reserved
14999 //Bit  5: 0        reg_nr4_alp0_norm_gain    // unsigned , default = 16  alp0 gain for sad norm, '32' as '1', dft = 1
15000 #define   NR4_MCNR_ALP1_AND_BET0_REG               (0x2dc2)
15001 #define P_NR4_MCNR_ALP1_AND_BET0_REG               (volatile uint32_t *)((0x2dc2  << 2) + 0xff900000)
15002 //Bit 31:26        reserved
15003 //Bit 25:24        reg_nr4_alp1_norm_mode    // unsigned , default = 3  alp1 select sad norm mode, 0: disable, 1: enable dc norm, 2: enable ac norm, 3: enable both (dc/ac) norm, dft = 3
15004 //Bit 23:22        reserved
15005 //Bit 21:16        reg_nr4_alp1_norm_gain    // unsigned , default = 3  alp1 gain for sad norm, '32' as '1', dft = 1
15006 //Bit 15:10        reserved
15007 //Bit  9: 8        reg_nr4_bet0_norm_mode    // unsigned , default = 3  bet0 select sad norm mode, 0: disable, 1: enable dc norm, 2: enable ac norm, 3: enable both (dc/ac) norm, dft = 3
15008 //Bit  7: 6        reserved
15009 //Bit  5: 0        reg_nr4_bet0_norm_gain    // unsigned , default = 8  bet0 gain for sad norm, '32' as '1', dft = 1
15010 #define   NR4_MCNR_BET1_AND_BET2_REG               (0x2dc3)
15011 #define P_NR4_MCNR_BET1_AND_BET2_REG               (volatile uint32_t *)((0x2dc3  << 2) + 0xff900000)
15012 //Bit 31:26        reserved
15013 //Bit 25:24        reg_nr4_bet1_norm_mode    // unsigned , default = 3  bet1 select sad norm mode, 0: disable, 1: enable dc norm, 2: enable ac norm, 3: enable both (dc/ac) norm, dft = 3
15014 //Bit 23:22        reserved
15015 //Bit 21:16        reg_nr4_bet1_norm_gain    // unsigned , default = 8  bet1 gain for sad norm, '32' as '1', dft = 1
15016 //Bit 15:10        reserved
15017 //Bit  9: 8        reg_nr4_bet2_norm_mode    // unsigned , default = 0  bet2 select sad norm mode, 0: disable, 1: enable dc norm, 2: enable ac norm, 3: enable both (dc/ac) norm, dft = 3
15018 //Bit  7: 6        reserved
15019 //Bit  5: 0        reg_nr4_bet2_norm_gain    // unsigned , default = 16  bet2 gain for sad norm, '32' as '1', dft = 1
15020 #define   NR4_MCNR_AC_DC_CRTL                      (0x2dc4)
15021 #define P_NR4_MCNR_AC_DC_CRTL                      (volatile uint32_t *)((0x2dc4  << 2) + 0xff900000)
15022 //Bit 31:16        reserved
15023 //Bit 15:12        reserved
15024 //Bit 11           reg_nr4_dc_mode           // unsigned , default = 1  mode for dc selection,0: Y_lpf, 1: Y_lpf + (U_Lpf+V_lpf)/2,
15025 //Bit 10           reg_nr4_ac_mode           // unsigned , default = 1  mode for ac selection, 0: Y_abs_dif, 1: Y_abs_dif + (U_abs_dif + V_abs_dif)/2
15026 //Bit  9           reg_nr4_dc_sel            // unsigned , default = 0  selection mode for dc value, 0: 3x5, 1: 5x5, dft = 1
15027 //Bit  8           reg_nr4_ac_sel            // unsigned , default = 0  selection mode for ac value, 0: 3x5, 1: 5x5, dft = 1
15028 //Bit  7            reserved
15029 //Bit  6: 4        reg_nr4_dc_shft           // unsigned , default = 2  right shift for dc value, dft = 2
15030 //Bit  3            reserved
15031 //Bit  2: 0        reg_nr4_ac_shft           // unsigned , default = 0  right shift for ac value, dft = 2
15032 #define   NR4_MCNR_CM_CTRL0                        (0x2dc5)
15033 #define P_NR4_MCNR_CM_CTRL0                        (volatile uint32_t *)((0x2dc5  << 2) + 0xff900000)
15034 //Bit 31:29        reserved
15035 //Bit 28           reg_nr4_cm_skin_prc_bet0      // unsigned , default = 0  enable skin tone processing for mcnr bet0 calc., dft = 1
15036 //Bit 27:26        reg_nr4_cm_chrm_sel           // unsigned , default = 1  chrome selection for color match, 0: 1x1, 1: 3X3LPF, 2: 3x5LPF, 3: 5x5LPF for 5lines, 3x5LPF for 3lines, dft = 3
15037 //Bit 25:24        reg_nr4_cm_luma_sel           // unsigned , default = 1  luma selection for color match, 0: 1x1, 1: 3X3LPF, 2: 3x5LPF, 3: 5x5LPF for 5lines, 3x5LPF for 3lines, dft = 3
15038 //Bit 23:21        reg_nr4_cm_skin_rshft_bet0    // unsigned , default = 3  right shift for bet0's skin color gains, dft = 3
15039 //Bit 20           reg_nr4_cm_var_sel            // unsigned , default = 1  variation selection for color match, 0: 3x5, 1: 5x5 for 5lines, 3x5 for 3lines, dft = 1
15040 //Bit 19           reg_nr4_cm_green_prc_bet0     // unsigned , default = 1  enable green processing for mcnr bet0 calc., dft = 1
15041 //Bit 18:16        reg_nr4_cm_green_rshft_bet0   // unsigned , default = 4  right shift for bet0's green color gains, dft = 4
15042 //Bit 15:14        reg_nr4_preflt_mod            // unsigned , default = 2  pre filter mode in mcnr, 0: mv pointed pixel, 1: bilater filter
15043 //Bit 13:12        reg_nr4_alp1_mode             // unsigned , default = 1  mode for alpha1's sad selection, 0: max sad, 1: three min sads, 2: min sad, 3: co sad
15044 //Bit 11:10        reserved
15045 //Bit  9: 8        reg_nr4_bet0_mode             // unsigned , default = 0  mode for bet0's sad selection, 0: max sad, 1: three min sads, 2: min sad, 3: co sad, else: (co sad) - (min sad)
15046 //Bit  7: 6        reserved
15047 //Bit  5: 4        reg_nr4_bet1_mode             // unsigned , default = 2  mode for bet1's sad selection, 0: max sad, 1: three min sads, 2: min sad, 3: co sad, else: (co sad) - (min sad)
15048 //Bit  3: 2        reserved
15049 //Bit  1: 0        reg_nr4_bet2_mode             // unsigned , default = 1  mode for bet2's sad selection, 0: max sad, 1: three min sads, 2: min sad, 3: co sad, else: (co sad) - (min sad)
15050 #define   NR4_MCNR_CM_PRAM                         (0x2dc6)
15051 #define P_NR4_MCNR_CM_PRAM                         (volatile uint32_t *)((0x2dc6  << 2) + 0xff900000)
15052 //Bit 31:30        reserved
15053 //Bit 29           reg_nr4_cm_blue_prc_alp0      // unsigned , default = 1  enable blue processing for mcnr alpha0 calc., dft = 1
15054 //Bit 28           reg_nr4_cm_blue_prc_alp1      // unsigned , default = 1  enable blue processing for mcnr alpha1 calc., dft = 1
15055 //Bit 27           reg_nr4_cm_skin_prc_alp0      // unsigned , default = 1  enable skin tone processing for mcnr alpha0 calc., dft = 1
15056 //Bit 26           reg_nr4_cm_green_prc_alp0     // unsigned , default = 1  enable green processing for mcnr alpha0 clac., dft = 1
15057 //Bit 25           reg_nr4_cm_skin_prc_alp1      // unsigned , default = 1  enable skin tone processing for mcnr alpha0 calc., dft = 1
15058 //Bit 24           reg_nr4_cm_green_prc_alp1     // unsigned , default = 1  enable green processing for mcnr alpha1 clac., dft = 1
15059 //Bit 23:20        reg_nr4_cm_blue_hue_st        // unsigned , default = 13  hue start of blue, dft =
15060 //Bit 19:16        reg_nr4_cm_blue_hue_ed        // unsigned , default = 15  hue end  of blue, dft =
15061 //Bit 15:12        reg_nr4_cm_green_hue_st       // unsigned , default = 7  hue start of green, dft =
15062 //Bit 11: 8        reg_nr4_cm_green_hue_ed       // unsigned , default = 10  hue end  of green, dft =
15063 //Bit  7: 4        reg_nr4_cm_skin_hue_st        // unsigned , default = 5  hue start of skin, dft =
15064 //Bit  3: 0        reg_nr4_cm_skin_hue_ed        // unsigned , default = 6  hue end  of skin, dft =
15065 #define   NR4_MCNR_CM_RSHFT_ALP0                   (0x2dc7)
15066 #define P_NR4_MCNR_CM_RSHFT_ALP0                   (volatile uint32_t *)((0x2dc7  << 2) + 0xff900000)
15067 //Bit 31:28        reserved
15068 //Bit 27:25        reg_nr4_cm_blue_rshft_bet0    // unsigned , default = 5  right shift for bet0's blue color gains, dft = 5
15069 //Bit 24           reg_nr4_cm_blue_prc_bet0      // unsigned , default = 1  enable blue processing for mcnr bet0 calc., dft = 1
15070 //Bit 23            reserved
15071 //Bit 22:20        reg_nr4_cm_blue_rshft_alp0    // unsigned , default = 5  right shift for alpha0/1's blue color gains, dft = 5
15072 //Bit 19            reserved
15073 //Bit 18:16        reg_nr4_cm_blue_rshft_alp1    // unsigned , default = 5  right shift for alpha0/1's blue color gains, dft = 5
15074 //Bit 15            reserved
15075 //Bit 14:12        reg_nr4_cm_green_rshft_alp0   // unsigned , default = 4  right shift for alpha0/1's green color gains, dft = 4
15076 //Bit 11            reserved
15077 //Bit 10: 8        reg_nr4_cm_green_rshft_alp1   // unsigned , default = 4  right shift for alpha0/1's green color gains, dft = 4
15078 //Bit  7            reserved
15079 //Bit  6: 4        reg_nr4_cm_skin_rshft_alp0    // unsigned , default = 3  right shift for alpha0/1's skin color gains, dft = 3
15080 //Bit  3            reserved
15081 //Bit  2: 0        reg_nr4_cm_skin_rshft_alp1    // unsigned , default = 3  right shift for alpha0/1's skin color gains, dft = 3
15082 #define   NR4_MCNR_BLUE_CENT                       (0x2dc8)
15083 #define P_NR4_MCNR_BLUE_CENT                       (volatile uint32_t *)((0x2dc8  << 2) + 0xff900000)
15084 //Bit 31:24        reserved
15085 //Bit 23:16        reg_nr4_cm_blue_centx         // unsigned , default = 157  x coordinate of center of blue, dft =
15086 //Bit 15: 8        reserved
15087 //Bit  7: 0        reg_nr4_cm_blue_centy         // unsigned , default = 110  y coordinate of center of blue, dft =
15088 #define   NR4_MCNR_BLUE_GAIN_PAR0                  (0x2dc9)
15089 #define P_NR4_MCNR_BLUE_GAIN_PAR0                  (volatile uint32_t *)((0x2dc9  << 2) + 0xff900000)
15090 //Bit 31:24        reg_nr4_cm_blue_gain_par0   // unsigned , default = 32  par0 for blue gain, dft =
15091 //Bit 23:16        reg_nr4_cm_blue_gain_par1   // unsigned , default = 255  par1 for blue gain, dft =
15092 //Bit 15: 8        reg_nr4_cm_blue_gain_par2   // unsigned , default = 4  par2 for blue gain, dft =
15093 //Bit  7: 0        reg_nr4_cm_blue_gain_par3   // unsigned , default = 32  par3 for blue gain, dft =
15094 #define   NR4_MCNR_BLUE_GAIN_PAR1                  (0x2dca)
15095 #define P_NR4_MCNR_BLUE_GAIN_PAR1                  (volatile uint32_t *)((0x2dca  << 2) + 0xff900000)
15096 //Bit 31:24        reserved
15097 //Bit 23:16        reg_nr4_cm_blue_gain_par4   // unsigned , default = 32  par4 for blue gain, dft =
15098 //Bit 15: 8        reg_nr4_cm_blue_gain_par5   // unsigned , default = 32  par5 for blue gain, dft =
15099 //Bit  7: 0        reg_nr4_cm_blue_gain_par6   // unsigned , default = 0  par6 for blue gain, dft =
15100 #define   NR4_MCNR_CM_BLUE_CLIP0                   (0x2dcb)
15101 #define P_NR4_MCNR_CM_BLUE_CLIP0                   (volatile uint32_t *)((0x2dcb  << 2) + 0xff900000)
15102 //Bit 31:24        reserved
15103 //Bit 23:16        reg_nr4_cm_blue_luma_min      // unsigned , default = 40  luma min for blue color matching, dft =
15104 //Bit 15: 8        reserved
15105 //Bit  7: 0        reg_nr4_cm_blue_luma_max      // unsigned , default = 180  luma max for blue color matching, dft =
15106 #define   NR4_MCNR_CM_BLUE_CLIP1                   (0x2dcc)
15107 #define P_NR4_MCNR_CM_BLUE_CLIP1                   (volatile uint32_t *)((0x2dcc  << 2) + 0xff900000)
15108 //Bit 31:24        reg_nr4_cm_blue_sat_min       // unsigned , default = 5  saturation min for blue color matching, dft =
15109 //Bit 23:16        reg_nr4_cm_blue_sat_max       // unsigned , default = 255  saturation max for blue color matching, dft =
15110 //Bit 15: 8        reg_nr4_cm_blue_var_min       // unsigned , default = 0  variation min for blue color matching, dft =
15111 //Bit  7: 0        reg_nr4_cm_blue_var_max       // unsigned , default = 12  variation max for blue color matching, dft =
15112 #define   NR4_MCNR_GREEN_CENT                      (0x2dcd)
15113 #define P_NR4_MCNR_GREEN_CENT                      (volatile uint32_t *)((0x2dcd  << 2) + 0xff900000)
15114 //Bit 31:24        reserved
15115 //Bit 23:16        reg_nr4_cm_green_centx         // unsigned , default = 114  x coordinate of center of green, dft =
15116 //Bit 15: 8        reserved
15117 //Bit  7: 0        reg_nr4_cm_green_centy         // unsigned , default = 126  y coordinate of center of green, dft =
15118 #define   NR4_MCNR_GREEN_GAIN_PAR0                 (0x2dce)
15119 #define P_NR4_MCNR_GREEN_GAIN_PAR0                 (volatile uint32_t *)((0x2dce  << 2) + 0xff900000)
15120 //Bit 31:24        reg_nr4_cm_green_gain_par0   // unsigned , default = 16  par0 for green gain, dft =
15121 //Bit 23:16        reg_nr4_cm_green_gain_par1   // unsigned , default = 255  par1 for green gain, dft =
15122 //Bit 15: 8        reg_nr4_cm_green_gain_par2   // unsigned , default = 255  par2 for green gain, dft =
15123 //Bit  7: 0        reg_nr4_cm_green_gain_par3   // unsigned , default = 16  par3 for green gain, dft =
15124 #define   NR4_MCNR_GREEN_GAIN_PAR1                 (0x2dcf)
15125 #define P_NR4_MCNR_GREEN_GAIN_PAR1                 (volatile uint32_t *)((0x2dcf  << 2) + 0xff900000)
15126 //Bit 31:24        reserved
15127 //Bit 23:16        reg_nr4_cm_green_gain_par4   // unsigned , default = 16  par4 for green gain, dft =
15128 //Bit 15: 8        reg_nr4_cm_green_gain_par5   // unsigned , default = 128  par5 for green gain, dft =
15129 //Bit  7: 0        reg_nr4_cm_green_gain_par6   // unsigned , default = 0  par6 for green gain, dft =
15130 #define   NR4_MCNR_GREEN_CLIP0                     (0x2dd0)
15131 #define P_NR4_MCNR_GREEN_CLIP0                     (volatile uint32_t *)((0x2dd0  << 2) + 0xff900000)
15132 //Bit 31:24        reserved
15133 //Bit 23:16        reg_nr4_cm_green_luma_min      // unsigned , default = 40  luma min for green color matching, dft =
15134 //Bit 15: 8        reserved
15135 //Bit  7: 0        reg_nr4_cm_green_luma_max      // unsigned , default = 160  luma max for green color matching, dft =
15136 #define   NR4_MCNR_GREEN_CLIP2                     (0x2dd1)
15137 #define P_NR4_MCNR_GREEN_CLIP2                     (volatile uint32_t *)((0x2dd1  << 2) + 0xff900000)
15138 //Bit 31:24        reg_nr4_cm_green_sat_min       // unsigned , default = 4  saturation min for green color matching, dft =
15139 //Bit 23:16        reg_nr4_cm_green_sat_max       // unsigned , default = 255  saturation max for green color matching, dft =
15140 //Bit 15: 8        reg_nr4_cm_green_var_min       // unsigned , default = 0  variation min for green color matching, dft =
15141 //Bit  7: 0        reg_nr4_cm_green_var_max       // unsigned , default = 12  variation max for green color matching, dft =
15142 #define   NR4_MCNR_SKIN_CENT                       (0x2dd2)
15143 #define P_NR4_MCNR_SKIN_CENT                       (volatile uint32_t *)((0x2dd2  << 2) + 0xff900000)
15144 //Bit 31:24        reserved
15145 //Bit 23:16        reg_nr4_cm_skin_centx         // unsigned , default = 112  x coordinate of center of skin tone, dft =
15146 //Bit 15: 8        reserved
15147 //Bit  7: 0        reg_nr4_cm_skin_centy         // unsigned , default = 149  y coordinate of center of skin tone, dft =
15148 #define   NR4_MCNR_SKIN_GAIN_PAR0                  (0x2dd3)
15149 #define P_NR4_MCNR_SKIN_GAIN_PAR0                  (volatile uint32_t *)((0x2dd3  << 2) + 0xff900000)
15150 //Bit 31:24        reg_nr4_cm_skin_gain_par0   // unsigned , default = 20  par0 for skin gain, dft =
15151 //Bit 23:16        reg_nr4_cm_skin_gain_par1   // unsigned , default = 255  par1 for skin gain, dft =
15152 //Bit 15: 8        reg_nr4_cm_skin_gain_par2   // unsigned , default = 255  par2 for skin gain, dft =
15153 //Bit  7: 0        reg_nr4_cm_skin_gain_par3   // unsigned , default = 8  par3 for skin gain, dft =
15154 #define   NR4_MCNR_SKIN_GAIN_PAR1                  (0x2dd4)
15155 #define P_NR4_MCNR_SKIN_GAIN_PAR1                  (volatile uint32_t *)((0x2dd4  << 2) + 0xff900000)
15156 //Bit 31:24        reserved
15157 //Bit 23:16        reg_nr4_cm_skin_gain_par4   // unsigned , default = 8  par4 for skin gain, dft =
15158 //Bit 15: 8        reg_nr4_cm_skin_gain_par5   // unsigned , default = 128  par5 for skin gain, dft =
15159 //Bit  7: 0        reg_nr4_cm_skin_gain_par6   // unsigned , default = 0  par6 for skin gain, dft =
15160 #define   NR4_MCNR_SKIN_CLIP0                      (0x2dd5)
15161 #define P_NR4_MCNR_SKIN_CLIP0                      (volatile uint32_t *)((0x2dd5  << 2) + 0xff900000)
15162 //Bit 31:24        reserved
15163 //Bit 23:16        reg_nr4_cm_skin_luma_min      // unsigned , default = 40  luma min for skin color matching, dft =
15164 //Bit 15: 8        reserved
15165 //Bit  7: 0        reg_nr4_cm_skin_luma_max      // unsigned , default = 180  luma max for skin color matching, dft =
15166 #define   NR4_MCNR_SKIN_CLIP1                      (0x2dd6)
15167 #define P_NR4_MCNR_SKIN_CLIP1                      (volatile uint32_t *)((0x2dd6  << 2) + 0xff900000)
15168 //Bit 31:24        reg_nr4_cm_skin_sat_min       // unsigned , default = 5  saturation min for skin color matching, dft =
15169 //Bit 23:16        reg_nr4_cm_skin_sat_max       // unsigned , default = 255  saturation max for skin color matching, dft =
15170 //Bit 15: 8        reg_nr4_cm_skin_var_min       // unsigned , default = 0  variation min for skin color matching, dft =
15171 //Bit  7: 0        reg_nr4_cm_skin_var_max       // unsigned , default = 12  variation max for skin color matching, dft =
15172 #define   NR4_MCNR_ALP1_GLB_CTRL                   (0x2dd7)
15173 #define P_NR4_MCNR_ALP1_GLB_CTRL                   (volatile uint32_t *)((0x2dd7  << 2) + 0xff900000)
15174 //Bit 31           reg_nr4_alp1_glb_gain_en     // unsigned , default = 0  alp1 adjust by global gain, dft = 1
15175 //Bit 30:28        reg_nr4_alp1_glb_gain_lsft   // unsigned , default = 6  alp1 left shift before combine with global gain
15176 //Bit 27           reg_nr4_bet0_glb_gain_en     // unsigned , default = 1  bet0 adjust by global gain, dft = 1
15177 //Bit 26:24        reg_nr4_bet0_glb_gain_lsft   // unsigned , default = 6  bet1 left shift before combine with global gain
15178 //Bit 23           reg_nr4_bet1_glb_gain_en     // unsigned , default = 0  bet1 adjust by global gain, dft = 0
15179 //Bit 22:20        reg_nr4_bet1_glb_gain_lsft   // unsigned , default = 6  bet1 left shift before combine with global gain
15180 //Bit 19           reg_nr4_bet2_glb_gain_en     // unsigned , default = 1  bet2 adjust by global gain, dft = 1
15181 //Bit 18:16        reg_nr4_bet2_glb_gain_lsft   // unsigned , default = 6  bet2 left shift before combine with global gain
15182 //Bit 15           reg_nr4_alp1_ac_en           // unsigned , default = 1  alp1 adjust by ac, dft = 1
15183 //Bit 14:12        reg_nr4_alp1_ac_lsft         // unsigned , default = 5  alp1 left shift before combine with ac
15184 //Bit 11           reg_nr4_bet0_ac_en           // unsigned , default = 0  bet0 adjust by ac, dft = 1
15185 //Bit 10: 8        reg_nr4_bet0_ac_lsft         // unsigned , default = 5  bet0 left shift before combine with ac
15186 //Bit  7           reg_nr4_bet1_ac_en           // unsigned , default = 0  bet1 adjust by ac, dft = 1
15187 //Bit  6: 4        reg_nr4_bet1_ac_lsft         // unsigned , default = 5  bet1 left shift before combine with ac
15188 //Bit  3           reg_nr4_bet2_ac_en           // unsigned , default = 0  bet2 adjust by ac, dft = 1
15189 //Bit  2: 0        reg_nr4_bet2_ac_lsft         // unsigned , default = 5  bet2 left shift before combine with ac
15190 #define   NR4_MCNR_DC2NORM_LUT0                    (0x2dd8)
15191 #define P_NR4_MCNR_DC2NORM_LUT0                    (volatile uint32_t *)((0x2dd8  << 2) + 0xff900000)
15192 //Bit 31:29        reserved
15193 //Bit 28:24        reg_nr4_dc2norm_lut0         // unsigned , default = 16  normal 0~16, dc to norm for alpha adjust, dft =
15194 //Bit 23:21        reserved
15195 //Bit 20:16        reg_nr4_dc2norm_lut1         // unsigned , default = 16  normal 0~16, dc to norm for alpha adjust, dft =
15196 //Bit 15:13        reserved
15197 //Bit 12: 8        reg_nr4_dc2norm_lut2         // unsigned , default = 16  normal 0~16, dc to norm for alpha adjust, dft =
15198 //Bit  7: 5        reserved
15199 //Bit  4: 0        reg_nr4_dc2norm_lut3         // unsigned , default = 16  normal 0~16, dc to norm for alpha adjust, dft =
15200 #define   NR4_MCNR_DC2NORM_LUT1                    (0x2dd9)
15201 #define P_NR4_MCNR_DC2NORM_LUT1                    (volatile uint32_t *)((0x2dd9  << 2) + 0xff900000)
15202 //Bit 31:29        reserved
15203 //Bit 28:24        reg_nr4_dc2norm_lut4         // unsigned , default = 16  normal 0~16, dc to norm for alpha adjust, dft =
15204 //Bit 23:21        reserved
15205 //Bit 20:16        reg_nr4_dc2norm_lut5         // unsigned , default = 16  normal 0~16, dc to norm for alpha adjust, dft =
15206 //Bit 15:13        reserved
15207 //Bit 12: 8        reg_nr4_dc2norm_lut6         // unsigned , default = 16  normal 0~16, dc to norm for alpha adjust, dft =
15208 //Bit  7: 5        reserved
15209 //Bit  4: 0        reg_nr4_dc2norm_lut7         // unsigned , default = 12  normal 0~16, dc to norm for alpha adjust, dft =
15210 #define   NR4_MCNR_DC2NORM_LUT2                    (0x2dda)
15211 #define P_NR4_MCNR_DC2NORM_LUT2                    (volatile uint32_t *)((0x2dda  << 2) + 0xff900000)
15212 //Bit 31: 5        reserved
15213 //Bit  4: 0        reg_nr4_dc2norm_lut8        // unsigned , default = 8   normal 0~16, dc to norm for alpha adjust, dft =
15214 #define   NR4_MCNR_AC2NORM_LUT0                    (0x2ddb)
15215 #define P_NR4_MCNR_AC2NORM_LUT0                    (volatile uint32_t *)((0x2ddb  << 2) + 0xff900000)
15216 //Bit 31:29        reserved
15217 //Bit 28:24        reg_nr4_ac2norm_lut0         // unsigned , default = 2  normal 0~16, ac to norm for alpha adjust, dft =
15218 //Bit 23:21        reserved
15219 //Bit 20:16        reg_nr4_ac2norm_lut1         // unsigned , default = 16  normal 0~16, ac to norm for alpha adjust, dft =
15220 //Bit 15:13        reserved
15221 //Bit 12: 8        reg_nr4_ac2norm_lut2         // unsigned , default = 16  normal 0~16, ac to norm for alpha adjust, dft =
15222 //Bit  7: 5        reserved
15223 //Bit  4: 0        reg_nr4_ac2norm_lut3         // unsigned , default = 12  normal 0~16, ac to norm for alpha adjust, dft =
15224 #define   NR4_MCNR_AC2NORM_LUT1                    (0x2ddc)
15225 #define P_NR4_MCNR_AC2NORM_LUT1                    (volatile uint32_t *)((0x2ddc  << 2) + 0xff900000)
15226 //Bit 31:29        reserved
15227 //Bit 28:24        reg_nr4_ac2norm_lut4         // unsigned , default = 4  normal 0~16, ac to norm for alpha adjust, dft =
15228 //Bit 23:21        reserved
15229 //Bit 20:16        reg_nr4_ac2norm_lut5         // unsigned , default = 2  normal 0~16, ac to norm for alpha adjust, dft =
15230 //Bit 15:13        reserved
15231 //Bit 12: 8        reg_nr4_ac2norm_lut6         // unsigned , default = 1  normal 0~16, ac to norm for alpha adjust, dft =
15232 //Bit  7: 5        reserved
15233 //Bit  4: 0        reg_nr4_ac2norm_lut7         // unsigned , default = 1  normal 0~16, ac to norm for alpha adjust, dft =
15234 #define   NR4_MCNR_AC2NORM_LUT2                    (0x2ddd)
15235 #define P_NR4_MCNR_AC2NORM_LUT2                    (volatile uint32_t *)((0x2ddd  << 2) + 0xff900000)
15236 //Bit 31: 5        reserved
15237 //Bit  4: 0        reg_nr4_ac2norm_lut8         // unsigned , default = 1  normal 0~16, ac to norm for alpha adjust, dft =
15238 #define   NR4_MCNR_SAD2ALP0_LUT0                   (0x2dde)
15239 #define P_NR4_MCNR_SAD2ALP0_LUT0                   (volatile uint32_t *)((0x2dde  << 2) + 0xff900000)
15240 //Bit 31:24        reg_nr4_sad2alp0_lut0        // unsigned , default = 255  sad to alpha0 for temporal pixel value, dft = 255
15241 //Bit 23:16        reg_nr4_sad2alp0_lut1        // unsigned , default = 252  sad to alpha0 for temporal pixel value, dft = 252
15242 //Bit 15: 8        reg_nr4_sad2alp0_lut2        // unsigned , default = 249  sad to alpha0 for temporal pixel value, dft = 249
15243 //Bit  7: 0        reg_nr4_sad2alp0_lut3        // unsigned , default = 235  sad to alpha0 for temporal pixel value, dft = 70
15244 #define   NR4_MCNR_SAD2ALP0_LUT1                   (0x2ddf)
15245 #define P_NR4_MCNR_SAD2ALP0_LUT1                   (volatile uint32_t *)((0x2ddf  << 2) + 0xff900000)
15246 //Bit 31:24        reg_nr4_sad2alp0_lut4        // unsigned , default = 185  sad to alpha0 for temporal pixel value, dft = 12
15247 //Bit 23:16        reg_nr4_sad2alp0_lut5        // unsigned , default = 70  sad to alpha0 for temporal pixel value, dft = 1
15248 //Bit 15: 8        reg_nr4_sad2alp0_lut6        // unsigned , default = 14  sad to alpha0 for temporal pixel value, dft = 0
15249 //Bit  7: 0        reg_nr4_sad2alp0_lut7        // unsigned , default = 1  sad to alpha0 for temporal pixel value, dft = 0
15250 #define   NR4_MCNR_SAD2ALP0_LUT2                   (0x2de0)
15251 #define P_NR4_MCNR_SAD2ALP0_LUT2                   (volatile uint32_t *)((0x2de0  << 2) + 0xff900000)
15252 //Bit 31:24        reg_nr4_sad2alp0_lut8        // unsigned , default = 0  sad to alpha0 for temporal pixel value, dft = 0
15253 //Bit 23:16        reg_nr4_sad2alp0_lut9        // unsigned , default = 0  sad to alpha0 for temporal pixel value, dft = 0
15254 //Bit 15: 8        reg_nr4_sad2alp0_lut10       // unsigned , default = 0  sad to alpha0 for temporal pixel value, dft = 0
15255 //Bit  7: 0        reg_nr4_sad2alp0_lut11       // unsigned , default = 0  sad to alpha0 for temporal pixel value, dft = 0
15256 #define   NR4_MCNR_SAD2ALP0_LUT3                   (0x2de1)
15257 #define P_NR4_MCNR_SAD2ALP0_LUT3                   (volatile uint32_t *)((0x2de1  << 2) + 0xff900000)
15258 //Bit 31:24        reg_nr4_sad2alp0_lut12       // unsigned , default = 0  sad to alpha0 for temporal pixel value, dft = 0
15259 //Bit 23:16        reg_nr4_sad2alp0_lut13       // unsigned , default = 0  sad to alpha0 for temporal pixel value, dft = 0
15260 //Bit 15: 8        reg_nr4_sad2alp0_lut14       // unsigned , default = 0  sad to alpha0 for temporal pixel value, dft = 0
15261 //Bit  7: 0        reg_nr4_sad2alp0_lut15       // unsigned , default = 0  sad to alpha0 for temporal pixel value, dft = 0
15262 #define   NR4_MCNR_SAD2ALP1_LUT0                   (0x2de2)
15263 #define P_NR4_MCNR_SAD2ALP1_LUT0                   (volatile uint32_t *)((0x2de2  << 2) + 0xff900000)
15264 //Bit 31:24        reg_nr4_sad2alp1_lut0        // unsigned , default = 192  sad to alpha1 for temporal blending, dft = 128
15265 //Bit 23:16        reg_nr4_sad2alp1_lut1        // unsigned , default = 160  sad to alpha1 for temporal blending, dft = 128
15266 //Bit 15: 8        reg_nr4_sad2alp1_lut2        // unsigned , default = 128  sad to alpha1 for temporal blending, dft = 128
15267 //Bit  7: 0        reg_nr4_sad2alp1_lut3        // unsigned , default = 96  sad to alpha1 for temporal blending, dft = 64
15268 #define   NR4_MCNR_SAD2ALP1_LUT1                   (0x2de3)
15269 #define P_NR4_MCNR_SAD2ALP1_LUT1                   (volatile uint32_t *)((0x2de3  << 2) + 0xff900000)
15270 //Bit 31:24        reg_nr4_sad2alp1_lut4        // unsigned , default = 64  sad to alpha1 for temporal blending, dft = 64
15271 //Bit 23:16        reg_nr4_sad2alp1_lut5        // unsigned , default = 32  sad to alpha1 for temporal blending, dft = 128
15272 //Bit 15: 8        reg_nr4_sad2alp1_lut6        // unsigned , default = 16  sad to alpha1 for temporal blending, dft = 255
15273 //Bit  7: 0        reg_nr4_sad2alp1_lut7        // unsigned , default = 8  sad to alpha1 for temporal blending, dft = 255
15274 #define   NR4_MCNR_SAD2ALP1_LUT2                   (0x2de4)
15275 #define P_NR4_MCNR_SAD2ALP1_LUT2                   (volatile uint32_t *)((0x2de4  << 2) + 0xff900000)
15276 //Bit 31:24        reg_nr4_sad2alp1_lut8        // unsigned , default = 4  sad to alpha1 for temporal blending, dft = 255
15277 //Bit 23:16        reg_nr4_sad2alp1_lut9        // unsigned , default = 0  sad to alpha1 for temporal blending, dft = 255
15278 //Bit 15: 8        reg_nr4_sad2alp1_lut10       // unsigned , default = 16  sad to alpha1 for temporal blending, dft = 255
15279 //Bit  7: 0        reg_nr4_sad2alp1_lut11       // unsigned , default = 64  sad to alpha1 for temporal blending, dft = 255
15280 #define   NR4_MCNR_SAD2ALP1_LUT3                   (0x2de5)
15281 #define P_NR4_MCNR_SAD2ALP1_LUT3                   (volatile uint32_t *)((0x2de5  << 2) + 0xff900000)
15282 //Bit 31:24        reg_nr4_sad2alp1_lut12       // unsigned , default = 96  sad to alpha1 for temporal blending, dft = 255
15283 //Bit 23:16        reg_nr4_sad2alp1_lut13       // unsigned , default = 224  sad to alpha1 for temporal blending, dft = 255
15284 //Bit 15: 8        reg_nr4_sad2alp1_lut14       // unsigned , default = 255  sad to alpha1 for temporal blending, dft = 255
15285 //Bit  7: 0        reg_nr4_sad2alp1_lut15       // unsigned , default = 255  sad to alpha1 for temporal blending, dft = 255
15286 #define   NR4_MCNR_SAD2BET0_LUT0                   (0x2de6)
15287 #define P_NR4_MCNR_SAD2BET0_LUT0                   (volatile uint32_t *)((0x2de6  << 2) + 0xff900000)
15288 //Bit 31:24        reg_nr4_sad2bet0_lut0        // unsigned , default = 0  sad to beta0 for tnr and mcnr blending, dft = 0
15289 //Bit 23:16        reg_nr4_sad2bet0_lut1        // unsigned , default = 2  sad to beta0 for tnr and mcnr blending, dft = 2
15290 //Bit 15: 8        reg_nr4_sad2bet0_lut2        // unsigned , default = 4  sad to beta0 for tnr and mcnr blending, dft = 4
15291 //Bit  7: 0        reg_nr4_sad2bet0_lut3        // unsigned , default = 8  sad to beta0 for tnr and mcnr blending, dft = 8
15292 #define   NR4_MCNR_SAD2BET0_LUT1                   (0x2de7)
15293 #define P_NR4_MCNR_SAD2BET0_LUT1                   (volatile uint32_t *)((0x2de7  << 2) + 0xff900000)
15294 //Bit 31:24        reg_nr4_sad2bet0_lut4        // unsigned , default = 16  sad to beta0 for tnr and mcnr blending, dft = 16
15295 //Bit 23:16        reg_nr4_sad2bet0_lut5        // unsigned , default = 32  sad to beta0 for tnr and mcnr blending, dft = 32
15296 //Bit 15: 8        reg_nr4_sad2bet0_lut6        // unsigned , default = 48  sad to beta0 for tnr and mcnr blending, dft = 48
15297 //Bit  7: 0        reg_nr4_sad2bet0_lut7        // unsigned , default = 64  sad to beta0 for tnr and mcnr blending, dft = 64
15298 #define   NR4_MCNR_SAD2BET0_LUT2                   (0x2de8)
15299 #define P_NR4_MCNR_SAD2BET0_LUT2                   (volatile uint32_t *)((0x2de8  << 2) + 0xff900000)
15300 //Bit 31:24        reg_nr4_sad2bet0_lut8        // unsigned , default = 80  sad to beta0 for tnr and mcnr blending, dft = 80
15301 //Bit 23:16        reg_nr4_sad2bet0_lut9        // unsigned , default = 96  sad to beta0 for tnr and mcnr blending, dft = 96
15302 //Bit 15: 8        reg_nr4_sad2bet0_lut10       // unsigned , default = 112  sad to beta0 for tnr and mcnr blending, dft = 112
15303 //Bit  7: 0        reg_nr4_sad2bet0_lut11       // unsigned , default = 128  sad to beta0 for tnr and mcnr blending, dft = 128
15304 #define   NR4_MCNR_SAD2BET0_LUT3                   (0x2de9)
15305 #define P_NR4_MCNR_SAD2BET0_LUT3                   (volatile uint32_t *)((0x2de9  << 2) + 0xff900000)
15306 //Bit 31:24        reg_nr4_sad2bet0_lut12       // unsigned , default = 196  sad to beta0 for tnr and mcnr blending, dft = 160
15307 //Bit 23:16        reg_nr4_sad2bet0_lut13       // unsigned , default = 224  sad to beta0 for tnr and mcnr blending, dft = 192
15308 //Bit 15: 8        reg_nr4_sad2bet0_lut14       // unsigned , default = 255  sad to beta0 for tnr and mcnr blending, dft = 224
15309 //Bit  7: 0        reg_nr4_sad2bet0_lut15       // unsigned , default = 255  sad to beta0 for tnr and mcnr blending, dft = 255
15310 #define   NR4_MCNR_SAD2BET1_LUT0                   (0x2dea)
15311 #define P_NR4_MCNR_SAD2BET1_LUT0                   (volatile uint32_t *)((0x2dea  << 2) + 0xff900000)
15312 //Bit 31:24        reg_nr4_sad2bet1_lut0        // unsigned , default = 0  sad to beta1 for deghost blending, dft = 0
15313 //Bit 23:16        reg_nr4_sad2bet1_lut1        // unsigned , default = 2  sad to beta1 for deghost blending, dft = 2
15314 //Bit 15: 8        reg_nr4_sad2bet1_lut2        // unsigned , default = 4  sad to beta1 for deghost blending, dft = 4
15315 //Bit  7: 0        reg_nr4_sad2bet1_lut3        // unsigned , default = 8  sad to beta1 for deghost blending, dft = 8
15316 #define   NR4_MCNR_SAD2BET1_LUT1                   (0x2deb)
15317 #define P_NR4_MCNR_SAD2BET1_LUT1                   (volatile uint32_t *)((0x2deb  << 2) + 0xff900000)
15318 //Bit 31:24        reg_nr4_sad2bet1_lut4        // unsigned , default = 16  sad to beta1 for deghost blending, dft = 16
15319 //Bit 23:16        reg_nr4_sad2bet1_lut5        // unsigned , default = 32  sad to beta1 for deghost blending, dft = 32
15320 //Bit 15: 8        reg_nr4_sad2bet1_lut6        // unsigned , default = 48  sad to beta1 for deghost blending, dft = 48
15321 //Bit  7: 0        reg_nr4_sad2bet1_lut7        // unsigned , default = 64  sad to beta1 for deghost blending, dft = 64
15322 #define   NR4_MCNR_SAD2BET1_LUT2                   (0x2dec)
15323 #define P_NR4_MCNR_SAD2BET1_LUT2                   (volatile uint32_t *)((0x2dec  << 2) + 0xff900000)
15324 //Bit 31:24        reg_nr4_sad2bet1_lut8        // unsigned , default = 80  sad to beta1 for deghost blending, dft = 80
15325 //Bit 23:16        reg_nr4_sad2bet1_lut9        // unsigned , default = 96  sad to beta1 for deghost blending, dft = 96
15326 //Bit 15: 8        reg_nr4_sad2bet1_lut10       // unsigned , default = 112  sad to beta1 for deghost blending, dft = 112
15327 //Bit  7: 0        reg_nr4_sad2bet1_lut11       // unsigned , default = 128  sad to beta1 for deghost blending, dft = 128
15328 #define   NR4_MCNR_SAD2BET1_LUT3                   (0x2ded)
15329 #define P_NR4_MCNR_SAD2BET1_LUT3                   (volatile uint32_t *)((0x2ded  << 2) + 0xff900000)
15330 //Bit 31:24        reg_nr4_sad2bet1_lut12       // unsigned , default = 160  sad to beta1 for deghost blending, dft = 160
15331 //Bit 23:16        reg_nr4_sad2bet1_lut13       // unsigned , default = 192  sad to beta1 for deghost blending, dft = 192
15332 //Bit 15: 8        reg_nr4_sad2bet1_lut14       // unsigned , default = 224  sad to beta1 for deghost blending, dft = 224
15333 //Bit  7: 0        reg_nr4_sad2bet1_lut15       // unsigned , default = 255  sad to beta1 for deghost blending, dft = 255
15334 #define   NR4_MCNR_SAD2BET2_LUT0                   (0x2dee)
15335 #define P_NR4_MCNR_SAD2BET2_LUT0                   (volatile uint32_t *)((0x2dee  << 2) + 0xff900000)
15336 //Bit 31:24        reg_nr4_sad2bet2_lut0        // unsigned , default = 0  sad to beta2 for snr and mcnr blending, dft = 0
15337 //Bit 23:16        reg_nr4_sad2bet2_lut1        // unsigned , default = 1  sad to beta2 for snr and mcnr blending, dft = 2
15338 //Bit 15: 8        reg_nr4_sad2bet2_lut2        // unsigned , default = 2  sad to beta2 for snr and mcnr blending, dft  = 4
15339 //Bit  7: 0        reg_nr4_sad2bet2_lut3        // unsigned , default = 4  sad to beta2 for snr and mcnr blending, dft = 8
15340 #define   NR4_MCNR_SAD2BET2_LUT1                   (0x2def)
15341 #define P_NR4_MCNR_SAD2BET2_LUT1                   (volatile uint32_t *)((0x2def  << 2) + 0xff900000)
15342 //Bit 31:24        reg_nr4_sad2bet2_lut4        // unsigned , default = 8  sad to beta2 for snr and mcnr blending, dft = 16
15343 //Bit 23:16        reg_nr4_sad2bet2_lut5        // unsigned , default = 16  sad to beta2 for snr and mcnr blending, dft = 32
15344 //Bit 15: 8        reg_nr4_sad2bet2_lut6        // unsigned , default = 32  sad to beta2 for snr and mcnr blending, dft = 48
15345 //Bit  7: 0        reg_nr4_sad2bet2_lut7        // unsigned , default = 48  sad to beta2 for snr and mcnr blending, dft = 64
15346 #define   NR4_MCNR_SAD2BET2_LUT2                   (0x2df0)
15347 #define P_NR4_MCNR_SAD2BET2_LUT2                   (volatile uint32_t *)((0x2df0  << 2) + 0xff900000)
15348 //Bit 31:24        reg_nr4_sad2bet2_lut8        // unsigned , default = 64  sad to beta2 for snr and mcnr blending, dft = 80
15349 //Bit 23:16        reg_nr4_sad2bet2_lut9        // unsigned , default = 80  sad to beta2 for snr and mcnr blending, dft = 96
15350 //Bit 15: 8        reg_nr4_sad2bet2_lut10       // unsigned , default = 96  sad to beta2 for snr and mcnr blending, dft = 112
15351 //Bit  7: 0        reg_nr4_sad2bet2_lut11       // unsigned , default = 112  sad to beta2 for snr and mcnr blending, dft = 128
15352 #define   NR4_MCNR_SAD2BET2_LUT3                   (0x2df1)
15353 #define P_NR4_MCNR_SAD2BET2_LUT3                   (volatile uint32_t *)((0x2df1  << 2) + 0xff900000)
15354 //Bit 31:24        reg_nr4_sad2bet2_lut12       // unsigned , default = 128  sad to beta2 for snr and mcnr blending, dft = 160
15355 //Bit 23:16        reg_nr4_sad2bet2_lut13       // unsigned , default = 160  sad to beta2 for snr and mcnr blending, dft = 192
15356 //Bit 15: 8        reg_nr4_sad2bet2_lut14       // unsigned , default = 224  sad to beta2 for snr and mcnr blending, dft = 224
15357 //Bit  7: 0        reg_nr4_sad2bet2_lut15       // unsigned , default = 255  sad to beta2 for snr and mcnr blending, dft = 255
15358 #define   NR4_MCNR_RO_U_SUM                        (0x2df2)
15359 #define P_NR4_MCNR_RO_U_SUM                        (volatile uint32_t *)((0x2df2  << 2) + 0xff900000)
15360 //Bit 31: 0        ro_nr4_u_sum                // unsigned , default = 0  sum of U of current field/frame
15361 #define   NR4_MCNR_RO_V_SUM                        (0x2df3)
15362 #define P_NR4_MCNR_RO_V_SUM                        (volatile uint32_t *)((0x2df3  << 2) + 0xff900000)
15363 //Bit 31: 0        ro_nr4_v_sum                // unsigned , default = 0  sum of V of current field/frame
15364 #define   NR4_MCNR_RO_GRDU_SUM                     (0x2df4)
15365 #define P_NR4_MCNR_RO_GRDU_SUM                     (volatile uint32_t *)((0x2df4  << 2) + 0xff900000)
15366 //Bit 31: 0        ro_nr4_grdu_sum             // unsigned , default = 0  sum of gradient U of current field/frame
15367 #define   NR4_MCNR_RO_GRDV_SUM                     (0x2df5)
15368 #define P_NR4_MCNR_RO_GRDV_SUM                     (volatile uint32_t *)((0x2df5  << 2) + 0xff900000)
15369 //Bit 31: 0        ro_nr4_grdv_sum             // unsigned , default = 0  sum of gradient V of current field/frame
15370 #define   NR4_TOP_CTRL                             (0x2dff)
15371 #define P_NR4_TOP_CTRL                             (volatile uint32_t *)((0x2dff  << 2) + 0xff900000)
15372 //Bit 31:20        reg_gclk_ctrl                 // unsigned , default = 0
15373 //Bit 19           reserved
15374 //Bit 18           reg_nr4_mcnr_en              // unsigned , default = 1  ncnr enable or bypass, dft = 1
15375 //Bit 17           reg_nr2_en                 // unsigned , default = 1  nr2 enable, dft = 1
15376 //Bit 16           reg_nr4_en                   // unsigned , default = 1  nr4 enable, dft = 1
15377 //Bit 15           reg_nr2_proc_en            // unsigned , default = 1
15378 //Bit 14           reg_det3d_en               // unsigned , default = 1
15379 //Bit 13           di_polar_en                   // unsigned , default = 1  do does not have in C
15380 //Bit 12           reg_cfr_enable             // unsigned , default = 0  0-disable;  1:enable
15381 //Bit 11: 9        reg_3dnr_enable_l          // unsigned , default = 7  b0: Y b1:U b2:V
15382 //Bit  8: 6        reg_3dnr_enable_r          // unsigned , default = 7  b0: Y b1:U b2:V
15383 //Bit  5           reg_nr4_lnbuf_ctrl           // unsigned , default = 1  line buf ctrl for nr4: 0, 3lines, 1, 5lines, dft = 1
15384 //Bit  4           reg_nr4_snr2_en              // unsigned , default = 0  snr2 enable, 0: use old snr, 1: use new snr2,   dft = 1
15385 //Bit  3           reg_nr4_scene_change_en      // unsigned , default = 1  enable scene change proc. dft = 1
15386 //Bit  2           nr2_sw_en                     // unsigned , default = 1  do does not have in C
15387 //Bit  1            reserved
15388 //Bit  0           reg_nr4_scene_change_flg     // unsigned , default = 0  flags for scene change, dft = 0
15389 //========== nr4_mcnr_regs register end ==========//
15390 // synopsys translate_off
15391 // synopsys translate_on
15392 //
15393 // Closing file:  nr4_regs.h
15394 //
15395 // synopsys translate_off
15396 // synopsys translate_on
15397 //
15398 // Closing file:  dnr_regs.h
15399 //
15400 //========================================================================
15401 //  VI_HIST_SPL register    (16'h2e00 - 16'h2eff)
15402 //========================================================================
15403 //`define VI_HIST_SPL_VCBUS_BASE                   8'h2e
15404 //
15405 // Reading file:  vi_hist_spl_reg.h
15406 //
15407 // synopsys translate_off
15408 // synopsys translate_on
15409 // ----------------------------
15410 // VI_HIST_SPL 0x2e
15411 // ----------------------------
15412 // -----------------------------------------------
15413 // CBUS_BASE:  VI_HIST_SPL_VCBUS_BASE = 0x2e
15414 // -----------------------------------------------
15415 //BIT 14: 34bin only, 0&255 and other 32bins
15416 //Bit 13:11 hist_din_sel, 00: from vdin0 dout,  1: from vdin1, 2: from nr dout, 3: di output, 4: vpp output, 5: vd1_din, 6: vd2_din, 7:osd1_dout
15417 //Bit 10:8   hist_din_comp_mux, mux of [29:22], [19:12], [9:2] for hist detect
15418 //Bit 7:5   hist_dnlp_low   the real pixels in each bins got by VI_DNLP_HISTXX should multiple with 2^(dnlp_low+3)
15419 //Bit 3:2   hist_din_sel    the source used for hist statistics.  00: from matrix0 dout,  01: from vsc_dout, 10: from matrix1 dout, 11: form matrix1 din
15420 //Bit 1     hist_win_en     1'b0: hist used for full picture; 1'b1: hist used for pixels within hist window
15421 //Bit 0     hist_spl_en     1'b0: disable hist readback; 1'b1: enable hist readback
15422 #define   VI_HIST_CTRL                             (0x2e00)
15423 #define P_VI_HIST_CTRL                             (volatile uint32_t *)((0x2e00  << 2) + 0xff900000)
15424 //Bit 28:16 hist_hstart  horizontal start value to define hist window
15425 //Bit 12:0  hist_hend    horizontal end value to define hist window
15426 #define   VI_HIST_H_START_END                      (0x2e01)
15427 #define P_VI_HIST_H_START_END                      (volatile uint32_t *)((0x2e01  << 2) + 0xff900000)
15428 //Bit 28:16 hist_vstart  vertical start value to define hist window
15429 //Bit 12:0  hist_vend    vertical end value to define hist window
15430 #define   VI_HIST_V_START_END                      (0x2e02)
15431 #define P_VI_HIST_V_START_END                      (volatile uint32_t *)((0x2e02  << 2) + 0xff900000)
15432 //Bit 15:8  hist_max    maximum value
15433 //Bit 7:0   hist_min    minimum value
15434 //read only
15435 #define   VI_HIST_MAX_MIN                          (0x2e03)
15436 #define P_VI_HIST_MAX_MIN                          (volatile uint32_t *)((0x2e03  << 2) + 0xff900000)
15437 //Bit 31:0  hist_spl_rd
15438 //counts for the total luma value
15439 //read only
15440 #define   VI_HIST_SPL_VAL                          (0x2e04)
15441 #define P_VI_HIST_SPL_VAL                          (volatile uint32_t *)((0x2e04  << 2) + 0xff900000)
15442 //Bit 21:0  hist_spl_pixel_count
15443 //counts for the total calculated pixels
15444 //read only
15445 #define   VI_HIST_SPL_PIX_CNT                      (0x2e05)
15446 #define P_VI_HIST_SPL_PIX_CNT                      (volatile uint32_t *)((0x2e05  << 2) + 0xff900000)
15447 //Bit 31:0  hist_chroma_sum
15448 //counts for the total chroma value
15449 //read only
15450 #define   VI_HIST_CHROMA_SUM                       (0x2e06)
15451 #define P_VI_HIST_CHROMA_SUM                       (volatile uint32_t *)((0x2e06  << 2) + 0xff900000)
15452 //Bit 31:16 higher hist bin
15453 //Bit 15:0  lower hist bin
15454 //0-255 are splited to 64 bins evenly, and VI_DNLP_HISTXX
15455 //are the statistic number of pixels that within each bin.
15456 //VI_DNLP_HIST00[15:0]  counts for the first  bin
15457 //VI_DNLP_HIST00[31:16] counts for the second bin
15458 //VI_DNLP_HIST01[15:0]  counts for the third  bin
15459 //VI_DNLP_HIST01[31:16] counts for the fourth bin
15460 //etc...
15461 //read only
15462 #define   VI_DNLP_HIST00                           (0x2e07)
15463 #define P_VI_DNLP_HIST00                           (volatile uint32_t *)((0x2e07  << 2) + 0xff900000)
15464 #define   VI_DNLP_HIST01                           (0x2e08)
15465 #define P_VI_DNLP_HIST01                           (volatile uint32_t *)((0x2e08  << 2) + 0xff900000)
15466 #define   VI_DNLP_HIST02                           (0x2e09)
15467 #define P_VI_DNLP_HIST02                           (volatile uint32_t *)((0x2e09  << 2) + 0xff900000)
15468 #define   VI_DNLP_HIST03                           (0x2e0a)
15469 #define P_VI_DNLP_HIST03                           (volatile uint32_t *)((0x2e0a  << 2) + 0xff900000)
15470 #define   VI_DNLP_HIST04                           (0x2e0b)
15471 #define P_VI_DNLP_HIST04                           (volatile uint32_t *)((0x2e0b  << 2) + 0xff900000)
15472 #define   VI_DNLP_HIST05                           (0x2e0c)
15473 #define P_VI_DNLP_HIST05                           (volatile uint32_t *)((0x2e0c  << 2) + 0xff900000)
15474 #define   VI_DNLP_HIST06                           (0x2e0d)
15475 #define P_VI_DNLP_HIST06                           (volatile uint32_t *)((0x2e0d  << 2) + 0xff900000)
15476 #define   VI_DNLP_HIST07                           (0x2e0e)
15477 #define P_VI_DNLP_HIST07                           (volatile uint32_t *)((0x2e0e  << 2) + 0xff900000)
15478 #define   VI_DNLP_HIST08                           (0x2e0f)
15479 #define P_VI_DNLP_HIST08                           (volatile uint32_t *)((0x2e0f  << 2) + 0xff900000)
15480 #define   VI_DNLP_HIST09                           (0x2e10)
15481 #define P_VI_DNLP_HIST09                           (volatile uint32_t *)((0x2e10  << 2) + 0xff900000)
15482 #define   VI_DNLP_HIST10                           (0x2e11)
15483 #define P_VI_DNLP_HIST10                           (volatile uint32_t *)((0x2e11  << 2) + 0xff900000)
15484 #define   VI_DNLP_HIST11                           (0x2e12)
15485 #define P_VI_DNLP_HIST11                           (volatile uint32_t *)((0x2e12  << 2) + 0xff900000)
15486 #define   VI_DNLP_HIST12                           (0x2e13)
15487 #define P_VI_DNLP_HIST12                           (volatile uint32_t *)((0x2e13  << 2) + 0xff900000)
15488 #define   VI_DNLP_HIST13                           (0x2e14)
15489 #define P_VI_DNLP_HIST13                           (volatile uint32_t *)((0x2e14  << 2) + 0xff900000)
15490 #define   VI_DNLP_HIST14                           (0x2e15)
15491 #define P_VI_DNLP_HIST14                           (volatile uint32_t *)((0x2e15  << 2) + 0xff900000)
15492 #define   VI_DNLP_HIST15                           (0x2e16)
15493 #define P_VI_DNLP_HIST15                           (volatile uint32_t *)((0x2e16  << 2) + 0xff900000)
15494 #define   VI_DNLP_HIST16                           (0x2e17)
15495 #define P_VI_DNLP_HIST16                           (volatile uint32_t *)((0x2e17  << 2) + 0xff900000)
15496 #define   VI_DNLP_HIST17                           (0x2e18)
15497 #define P_VI_DNLP_HIST17                           (volatile uint32_t *)((0x2e18  << 2) + 0xff900000)
15498 #define   VI_DNLP_HIST18                           (0x2e19)
15499 #define P_VI_DNLP_HIST18                           (volatile uint32_t *)((0x2e19  << 2) + 0xff900000)
15500 #define   VI_DNLP_HIST19                           (0x2e1a)
15501 #define P_VI_DNLP_HIST19                           (volatile uint32_t *)((0x2e1a  << 2) + 0xff900000)
15502 #define   VI_DNLP_HIST20                           (0x2e1b)
15503 #define P_VI_DNLP_HIST20                           (volatile uint32_t *)((0x2e1b  << 2) + 0xff900000)
15504 #define   VI_DNLP_HIST21                           (0x2e1c)
15505 #define P_VI_DNLP_HIST21                           (volatile uint32_t *)((0x2e1c  << 2) + 0xff900000)
15506 #define   VI_DNLP_HIST22                           (0x2e1d)
15507 #define P_VI_DNLP_HIST22                           (volatile uint32_t *)((0x2e1d  << 2) + 0xff900000)
15508 #define   VI_DNLP_HIST23                           (0x2e1e)
15509 #define P_VI_DNLP_HIST23                           (volatile uint32_t *)((0x2e1e  << 2) + 0xff900000)
15510 #define   VI_DNLP_HIST24                           (0x2e1f)
15511 #define P_VI_DNLP_HIST24                           (volatile uint32_t *)((0x2e1f  << 2) + 0xff900000)
15512 #define   VI_DNLP_HIST25                           (0x2e20)
15513 #define P_VI_DNLP_HIST25                           (volatile uint32_t *)((0x2e20  << 2) + 0xff900000)
15514 #define   VI_DNLP_HIST26                           (0x2e21)
15515 #define P_VI_DNLP_HIST26                           (volatile uint32_t *)((0x2e21  << 2) + 0xff900000)
15516 #define   VI_DNLP_HIST27                           (0x2e22)
15517 #define P_VI_DNLP_HIST27                           (volatile uint32_t *)((0x2e22  << 2) + 0xff900000)
15518 #define   VI_DNLP_HIST28                           (0x2e23)
15519 #define P_VI_DNLP_HIST28                           (volatile uint32_t *)((0x2e23  << 2) + 0xff900000)
15520 #define   VI_DNLP_HIST29                           (0x2e24)
15521 #define P_VI_DNLP_HIST29                           (volatile uint32_t *)((0x2e24  << 2) + 0xff900000)
15522 #define   VI_DNLP_HIST30                           (0x2e25)
15523 #define P_VI_DNLP_HIST30                           (volatile uint32_t *)((0x2e25  << 2) + 0xff900000)
15524 #define   VI_DNLP_HIST31                           (0x2e26)
15525 #define P_VI_DNLP_HIST31                           (volatile uint32_t *)((0x2e26  << 2) + 0xff900000)
15526 #define   VI_DNLP_HIST32                           (0x2e27)
15527 #define P_VI_DNLP_HIST32                           (volatile uint32_t *)((0x2e27  << 2) + 0xff900000)
15528 //Bit 28:16 hist_pic_height  active input data window height
15529 //Bit 12:0  hist_pic_width   active input data window width
15530 #define   VI_HIST_PIC_SIZE                         (0x2e28)
15531 #define P_VI_HIST_PIC_SIZE                         (volatile uint32_t *)((0x2e28  << 2) + 0xff900000)
15532 //Bit 15:8 hist_pix_white_value: >= this value will be white pixel
15533 //Bit 7:0 hist_pix_black_value: <= this value will be black pixel
15534 #define   VI_HIST_BLACK_WHITE_VALUE                (0x2e29)
15535 #define P_VI_HIST_BLACK_WHITE_VALUE                (volatile uint32_t *)((0x2e29  << 2) + 0xff900000)
15536 #define   VI_HIST_GCLK_CTRL                        (0x2e2a)
15537 #define P_VI_HIST_GCLK_CTRL                        (volatile uint32_t *)((0x2e2a  << 2) + 0xff900000)
15538 // synopsys translate_off
15539 // synopsys translate_on
15540 //
15541 // Closing file:  vi_hist_spl_reg.h
15542 //
15543 //`define MCDI_VCBUS_BASE                8'h2f
15544 //
15545 // Reading file:  mcdi_regs.h
15546 //
15547 // synopsys translate_off
15548 // synopsys translate_on
15549 // -----------------------------------------------
15550 // CBUS_BASE:  MCDI_VCBUS_BASE = 0x2f
15551 // -----------------------------------------------
15552 ////=================================================================////
15553 //// memc di core 0
15554 ////=================================================================////
15555 #define   MCDI_HV_SIZEIN                           (0x2f00)
15556 #define P_MCDI_HV_SIZEIN                           (volatile uint32_t *)((0x2f00  << 2) + 0xff900000)
15557 //Bit 31:29, reserved
15558 //Bit 28:16, reg_mcdi_hsize               image horizontal size (number of cols)   default=1024
15559 //Bit 15:13, reserved
15560 //Bit 12: 0, reg_mcdi_vsize               image vertical size   (number of rows)   default=1024
15561 #define   MCDI_HV_BLKSIZEIN                        (0x2f01)
15562 #define P_MCDI_HV_BLKSIZEIN                        (volatile uint32_t *)((0x2f01  << 2) + 0xff900000)
15563 //Bit    31, reg_mcdi_vrev                   default = 0
15564 //Bit    30, reg_mcdi_hrev                   default = 0
15565 //Bit 29:28, reserved
15566 //Bit 27:16, reg_mcdi_blkhsize               image horizontal blk size (number of cols)   default=1024
15567 //Bit 15:13, reserved
15568 //Bit 11: 0, reg_mcdi_blkvsize               image vertical blk size   (number of rows)   default=1024
15569 #define   MCDI_BLKTOTAL                            (0x2f02)
15570 #define P_MCDI_BLKTOTAL                            (volatile uint32_t *)((0x2f02  << 2) + 0xff900000)
15571 //Bit 31:24, reserved
15572 //Bit 23: 0, reg_mcdi_blktotal
15573 #define   MCDI_MOTINEN                             (0x2f03)
15574 #define P_MCDI_MOTINEN                             (volatile uint32_t *)((0x2f03  << 2) + 0xff900000)
15575 //Bit 31: 2, reserved
15576 //Bit     1, reg_mcdi_motionrefen.           enable motion refinement of MA, default = 1
15577 //Bit     0, reg_mcdi_motionparadoxen.       enable motion paradox detection, default = 1
15578 #define   MCDI_CTRL_MODE                           (0x2f04)
15579 #define P_MCDI_CTRL_MODE                           (volatile uint32_t *)((0x2f04  << 2) + 0xff900000)
15580 //Bit 31:28, reserved
15581 //Bit 27:26, reg_mcdi_lmvlocken              0:disable, 1: use max Lmv, 2: use no-zero Lmv, lmv lock enable mode, default = 2
15582 //Bit 25,    reg_mcdi_reldetrptchken
15583 //                                           0: unable; 1: enable, enable repeat pattern check (not repeat mv detection) in rel det part, default = 1
15584 //Bit 24,    reg_mcdi_reldetgmvpd22chken
15585 //                                           0: unable; 1: enable, enable pull-down 22 mode check in gmv lock mode for rel det, default = 1
15586 //Bit 23,    reg_mcdi_pd22chken
15587 //                                           0: unable; 1: enable, enable pull-down 22 mode check (lock) function, default = 1
15588 //Bit 22,    reg_mcdi_reldetlpfen
15589 //                                           0: unable; 1: enable, enable det value lpf, default = 1
15590 //Bit 21,    reg_mcdi_reldetlmvpd22chken
15591 //                                           0: unable; 1: enable, enable pull-down 22 mode check in lmv lock mode for rel det, default = 1
15592 //Bit 20,    reg_mcdi_reldetlmvdifchken
15593 //                                           0: unable; 1: enable, enable lmv dif check in lmv lock mode for rel det, default = 1
15594 //Bit 19,    reg_mcdi_reldetgmvdifchken
15595 //                                           0: unable; 1: enable, enable lmv dif check in lmv lock mode for rel det, default = 1
15596 //Bit 18,    reg_mcdi_reldetpd22chken
15597 //                                           0: unable; 1: enable, enable pull-down 22 mode check for rel det refinement, default = 1
15598 //Bit 17,    reg_mcdi_reldetfrqchken
15599 //                                           0: unable; 1: enable, enable mv frequency check in rel det, default = 1
15600 //Bit 16,    reg_mcdi_qmeen
15601 //                                           0: unable; 1: enable, enable quarter motion estimation, defautl = 1
15602 //Bit 15,    reg_mcdi_refrptmven
15603 //                                           0: unable; 1: enable, use repeat mv in refinement, default = 1
15604 //Bit 14,    reg_mcdi_refgmven
15605 //                                           0: unable; 1: enable, use gmv in refinement, default = 1
15606 //Bit 13,    reg_mcdi_reflmven
15607 //                                           0: unable; 1: enable, use lmvs in refinement, default = 1
15608 //Bit 12,    reg_mcdi_refnmven
15609 //                                           0: unable; 1: enable, use neighoring mvs in refinement, default = 1
15610 //Bit 11,    reserved
15611 //Bit 10,    reg_mcdi_referrfrqchken
15612 //                                           0: unable; 1: enable, enable mv frquency check while finding min err in ref, default = 1
15613 //Bit 9,     reg_mcdi_refen
15614 //                                           0: unable; 1: enable, enable mv refinement, default = 1
15615 //Bit 8,     reg_mcdi_horlineen
15616 //                                           0: unable; 1: enable,enable horizontal lines detection by sad map, default = 1
15617 //Bit 7,     reg_mcdi_highvertfrqdeten
15618 //                                           0: unable; 1: enable, enable high vertical frequency pattern detection, default = 1
15619 //Bit 6,     reg_mcdi_gmvlocken
15620 //                                           0: unable; 1: enable, enable gmv lock mode, default = 1
15621 //Bit 5,     reg_mcdi_rptmven
15622 //                                           0: unable; 1: enable, enable repeat pattern detection, default = 1
15623 //Bit 4,     reg_mcdi_gmven
15624 //                                           0: unable; 1: enable, enable global motion estimation, default = 1
15625 //Bit 3,     reg_mcdi_lmven
15626 //                                           0: unable; 1: enable, enable line mv estimation for hme, default = 1
15627 //Bit 2,     reg_mcdi_chkedgeen
15628 //                                           0: unable; 1: enable, enable check edge function, default = 1
15629 //Bit 1,     reg_mcdi_txtdeten
15630 //                                           0: unable; 1: enable, enable texture detection, default = 1
15631 //Bit 0,     reg_mcdi_memcen
15632 //                                           0: unable; 1: enable, enable of memc di, default = 1
15633 #define   MCDI_UNI_MVDST                           (0x2f05)
15634 #define P_MCDI_UNI_MVDST                           (volatile uint32_t *)((0x2f05  << 2) + 0xff900000)
15635 //Bit 31:20, reserved
15636 //Bit 19:17, reg_mcdi_unimvdstabsseg0                     segment0 for uni-mv abs, default = 1
15637 //Bit 16:12, reg_mcdi_unimvdstabsseg1                     segment1 for uni-mv abs, default = 15
15638 //Bit 11: 8, reg_mcdi_unimvdstabsdifgain0             2/2, gain0 of uni-mv abs dif for segment0, normalized 2 to '1', default = 2
15639 //Bit  7: 5, reg_mcdi_unimvdstabsdifgain1                 2/2, gain1 of uni-mv abs dif for segment1, normalized 2 to '1', default = 2
15640 //Bit  4: 2, reg_mcdi_unimvdstabsdifgain2                 2/2, gain2 of uni-mv abs dif beyond segment1, normalized 2 to '1', default = 2
15641 //Bit  1: 0, reg_mcdi_unimvdstsgnshft                 shift for neighboring distance of uni-mv, default = 0
15642 #define   MCDI_BI_MVDST                            (0x2f06)
15643 #define P_MCDI_BI_MVDST                            (volatile uint32_t *)((0x2f06  << 2) + 0xff900000)
15644 //Bit 31:20, reserved
15645 //Bit 19:17, reg_mcdi_bimvdstabsseg0                      segment0 for bi-mv abs, default = 1
15646 //Bit 16:12, reg_mcdi_bimvdstabsseg1                      segment1 for bi-mv abs, default = 9
15647 //Bit 11: 8, reg_mcdi_bimvdstabsdifgain0              6/2, gain0 of bi-mv abs dif for segment0, normalized 2 to '1', default = 6
15648 //Bit  7: 5, reg_mcdi_bimvdstabsdifgain1                  3/2, gain1 of bi-mvabs dif for segment1, normalized 2 to '1', default = 3
15649 //Bit  4: 2, reg_mcdi_bimvdstabsdifgain2                  2/2, gain2 of bi-mvabs dif beyond segment1, normalized 2 to '1', default = 2
15650 //Bit  1: 0, reg_mcdi_bimvdstsgnshft                      shift for neighboring distance of bi-mv, default = 0
15651 #define   MCDI_SAD_GAIN                            (0x2f07)
15652 #define P_MCDI_SAD_GAIN                            (volatile uint32_t *)((0x2f07  << 2) + 0xff900000)
15653 //Bit 31:19, reserved
15654 //Bit 18:17, reg_mcdi_unisadcorepxlgain                   uni-sad core pixels gain, default = 3
15655 //Bit 16,    reg_mcdi_unisadcorepxlnormen                 enable uni-sad core pixels normalization, default = 0
15656 //Bit 15:11, reserved
15657 //Bit 10: 9, reg_mcdi_bisadcorepxlgain                    bi-sad core pixels gain, default = 3
15658 //Bit  8,    reg_mcdi_bisadcorepxlnormen                  enable bi-sad core pixels normalization, default = 1
15659 //Bit  7: 3, reserved
15660 //Bit  2: 1, reg_mcdi_biqsadcorepxlgain                   bi-qsad core pixels gain, default = 3
15661 //Bit  0,    reg_mcdi_biqsadcorepxlnormen                 enable bi-qsad core pixels normalization, default = 1
15662 #define   MCDI_TXT_THD                             (0x2f08)
15663 #define P_MCDI_TXT_THD                             (volatile uint32_t *)((0x2f08  << 2) + 0xff900000)
15664 //Bit 31:24, reserved
15665 //Bit 23:16, reg_mcdi_txtminmaxdifthd,                    min max dif threshold (>=) for texture detection, default = 24
15666 //Bit 15: 8, reg_mcdi_txtmeandifthd,                      mean dif threshold (<) for texture detection, default = 9
15667 //Bit  7: 3, reserved
15668 //Bit  2: 0, reg_mcdi_txtdetthd,                          texture detecting threshold, 0~4, default = 2
15669 #define   MCDI_FLT_MODESEL                         (0x2f09)
15670 #define P_MCDI_FLT_MODESEL                         (volatile uint32_t *)((0x2f09  << 2) + 0xff900000)
15671 //Bit 31     reserved
15672 //Bit 30:28, reg_mcdi_flthorlineselmode                   mode for horizontal line detecting flat calculation, default = 1, same as below
15673 //Bit 27     reserved
15674 //Bit 26:24, reg_mcdi_fltgmvselmode                       mode for gmv flat calculation, default = 4, same as below
15675 //Bit 23,    reserved
15676 //Bit 22:20, reg_mcdi_fltsadselmode                       mode for sad flat calculation, default = 2, same as below
15677 //Bit 19,    reserved
15678 //Bit 18:16, reg_mcdi_fltbadwselmode                      mode for badw flat calculation, default = 3, same as below
15679 //Bit 15,    reserved
15680 //Bit 14:12, reg_mcdi_fltrptmvselmode                     mode for repeat mv flat calculation, default = 4, same as below
15681 //Bit 11,    reserved
15682 //Bit 10: 8, reg_mcdi_fltbadrelselmode                    mode for bad rel flat calculation, default = 4, same as below
15683 //Bit  7,    reserved
15684 //Bit  6: 4, reg_mcdi_fltcolcfdselmode                    mode for col cfd flat calculation, default = 2, same as below
15685 //Bit  3,    reserved
15686 //Bit  2: 0, reg_mcdi_fltpd22chkselmode                   mode for pd22 check flat calculation, default = 2, # 0:cur dif h, 1: cur dif v, 2: pre dif h, 3: pre dif v, 4: cur flt, 5: pre flt, 6: cur+pre, 7: max all(cur,pre)
15687 #define   MCDI_CHK_EDGE_THD                        (0x2f0a)
15688 #define P_MCDI_CHK_EDGE_THD                        (volatile uint32_t *)((0x2f0a  << 2) + 0xff900000)
15689 //Bit 23:28, reserved.
15690 //Bit 27:24, reg_mcdi_chkedgedifsadthd.                   thd (<=) for sad dif check, 0~8, default = 1
15691 //Bit 23:16, reserved.
15692 //Bit 15:12, reg_mcdi_chkedgemaxedgethd.                  max drt of edge, default = 15
15693 //Bit 11: 8, reg_mcdi_chkedgeminedgethd.                  min drt of edge, default = 2
15694 //Bit     7, reserved.
15695 //Bit  6: 0, reg_mcdi_chkedgevdifthd.                     thd for vertical dif in check edge, default = 14
15696 #define   MCDI_CHK_EDGE_GAIN_OFFST                 (0x2f0b)
15697 #define P_MCDI_CHK_EDGE_GAIN_OFFST                 (volatile uint32_t *)((0x2f0b  << 2) + 0xff900000)
15698 //Bit 31:24, reserved.
15699 //Bit 23:20, reg_mcdi_chkedgedifthd1.                     thd1 for edge dif check (<=), default = 4
15700 //Bit 19:16, reg_mcdi_chkedgedifthd0.                     thd0 for edge dif check (>=), default = 15
15701 //Bit   :15, reserved.
15702 //Bit 14:10, reg_mcdi_chkedgechklen.                      total check length for edge check, 1~24 (>0), default = 24
15703 //Bit  9: 8, reg_mcdi_chkedgeedgesel.                     final edge select mode, 0: original start edge, 1: lpf start edge, 2: orignal start+end edge, 3: lpf start+end edge, default = 1
15704 //Bit  7: 3, reg_mcdi_chkedgesaddstgain.                  distance gain for sad calc while getting edges, default = 4
15705 //Bit     2, reg_mcdi_chkedgechkmode.                     edge used in check mode, 0: original edge, 1: lpf edge, defautl = 1
15706 //Bit     1, reg_mcdi_chkedgestartedge.                   edge mode for start edge, 0: original edge, 1: lpf edge, defautl = 0
15707 //Bit     0, reg_mcdi_chkedgeedgelpf.                     edge lpf mode, 0:[0,2,4,2,0], 1:[1,2,2,2,1], default = 0
15708 #define   MCDI_LMV_RT                              (0x2f0c)
15709 #define P_MCDI_LMV_RT                              (volatile uint32_t *)((0x2f0c  << 2) + 0xff900000)
15710 //BIt 31:15, reserved
15711 //Bit 14:12, reg_mcdi_lmvvalidmode                        valid mode for lmv calc., 100b: use char det, 010b: use flt, 001b: use hori flg
15712 //Bit 11:10, reg_mcdi_lmvgainmvmode                       four modes of mv selection for lmv weight calucluation, default = 1
15713 //                                                        0: cur(x-3), lst(x-1,x,x+1); 1: cur(x-4,x-3), lst(x,x+1); 2: cur(x-5,x-4,x-3), lst(x-1,x,x+1,x+2,x+3); 3: cur(x-6,x-5,x-4,x-3), lst(x-1,x,x+1,x+2);
15714 //Bit  9,    reg_mcdi_lmvinitmode                         initial lmvs at first row of input field, 0: intial value = 0; 1: inital = 32 (invalid), default = 0
15715 //Bit  8,    reserved
15716 //Bit  7: 4, reg_mcdi_lmvrt0                              ratio of max mv, default = 5
15717 //Bit  3: 0, reg_mcdi_lmvrt1                              ratio of second max mv, default = 5
15718 #define   MCDI_LMV_GAINTHD                         (0x2f0d)
15719 #define P_MCDI_LMV_GAINTHD                         (volatile uint32_t *)((0x2f0d  << 2) + 0xff900000)
15720 //Bit 31:24, reg_mcdi_lmvvxmaxgain                        max gain of lmv weight, default = 96
15721 //Bit 23,    reserved
15722 //Bit 22:20, reg_mcdi_lmvdifthd0                          dif threshold 0 (<) for small lmv, default = 1
15723 //Bit 19:17, reg_mcdi_lmvdifthd1                          dif threshold 1 (<) for median lmv, default = 2
15724 //Bit 16:14, reg_mcdi_lmvdifthd2                          dif threshold 2 (<) for large lmv, default = 3
15725 //Bit 13: 8, reg_mcdi_lmvnumlmt                           least/limit number of (total number - max0), default = 20
15726 //Bit  7: 0, reg_mcdi_lmvfltthd                           flt cnt thd (<) for lmv, default = 9
15727 #define   MCDI_RPTMV_THD0                          (0x2f0e)
15728 #define P_MCDI_RPTMV_THD0                          (volatile uint32_t *)((0x2f0e  << 2) + 0xff900000)
15729 //Bit 31:25, reg_mcdi_rptmvslpthd2            slope thd (>=) between i and i+3/i-3 (i+4/i-4), default = 64
15730 //Bit 24:20, reg_mcdi_rptmvslpthd1                        slope thd (>=) between i and i+2/i-2, default = 4
15731 //Bit 19:10, reg_mcdi_rptmvampthd2                        amplitude thd (>=) between max and min, when count cycles, default = 300
15732 //Bit  9: 0, reg_mcdi_rptmvampthd1                        amplitude thd (>=) between average of max and min, default = 400
15733 #define   MCDI_RPTMV_THD1                          (0x2f0f)
15734 #define P_MCDI_RPTMV_THD1                          (volatile uint32_t *)((0x2f0f  << 2) + 0xff900000)
15735 //Bit 31:28, reserved
15736 //Bit 27:25, reg_mcdi_rptmvcyccntthd                      thd (>=) of total cycles count, default = 2
15737 //Bit 24:21, reg_mcdi_rptmvcycdifthd                      dif thd (<) of cycles length, default = 3
15738 //Bit 20:18, reg_mcdi_rptmvcycvldthd                      thd (>) of valid cycles number, default = 1
15739 //Bit 17:15, reg_mcdi_rptmvhalfcycminthd                  min length thd (>=) of half cycle, default = 2
15740 //Bit 14:11, reg_mcdi_rptmvhalfcycdifthd                  neighboring half cycle length dif thd (<), default = 5
15741 //Bit 10: 8, reg_mcdi_rptmvminmaxcntthd                   least number of valid max and min, default = 2
15742 //Bit  7: 5, reg_mcdi_rptmvcycminthd                      min length thd (>=) of cycles, default = 2
15743 //Bit  4: 0, reg_mcdi_rptmvcycmaxthd                      max length thd (<) of cycles, default = 17
15744 #define   MCDI_RPTMV_THD2                          (0x2f10)
15745 #define P_MCDI_RPTMV_THD2                          (volatile uint32_t *)((0x2f10  << 2) + 0xff900000)
15746 //Bit 31:24, reserved
15747 //Bit 23:16, reg_mcdi_rptmvhdifthd0                       higher hdif thd (>=) (vertical edge) for rpt detection, default = 8
15748 //Bit 15: 8, reg_mcdi_rptmvhdifthd1                       hdif thd (>=) (slope edge) for rpt detection, default = 4
15749 //Bit  7: 0, reg_mcdi_rptmvvdifthd                        vdif thd (>=) (slope edge) for rpt detection, default = 1
15750 #define   MCDI_RPTMV_SAD                           (0x2f11)
15751 #define P_MCDI_RPTMV_SAD                           (volatile uint32_t *)((0x2f11  << 2) + 0xff900000)
15752 //Bit 31:26, reserved
15753 //Bit 25:16, reg_mcdi_rptmvsaddifthdgain                  7x3x(16/16), gain for sad dif thd in rpt mv detection, 0~672, normalized 16 as '1', default = 336
15754 //Bit 15:10, reserved
15755 //Bit  9: 0, reg_mcdi_rptmvsaddifthdoffst                 offset for sad dif thd in rpt mv detection, -512~511, default = 16
15756 #define   MCDI_RPTMV_FLG                           (0x2f12)
15757 #define P_MCDI_RPTMV_FLG                           (volatile uint32_t *)((0x2f12  << 2) + 0xff900000)
15758 //Bit 31:18,  reserved
15759 //Bit 17:16,  reg_mcdi_rptmvmode                          select mode of mvs for repeat motion estimation, 0: hmv, 1: qmv/2, 2 or 3: qmv/4, default = 2
15760 //Bit 15: 8,  reg_mcdi_rptmvflgcntthd                     thd (>=) of min count number for rptmv of whole field, for rptmv estimation, default = 64
15761 //Bit  7: 5,  reserved
15762 //Bit  4: 0,  reg_mcdi_rptmvflgcntrt                      4/32, ratio for repeat mv flag count, normalized 32 as '1', set 31 to 32,
15763 #define   MCDI_RPTMV_GAIN                          (0x2f13)
15764 #define P_MCDI_RPTMV_GAIN                          (volatile uint32_t *)((0x2f13  << 2) + 0xff900000)
15765 //Bit 31:24, reg_mcdi_rptmvlftgain                        up repeat mv gain for hme, default = 96
15766 //Bit 23:16, reg_mcdi_rptmvuplftgain                      up left repeat mv gain for hme, default = 32
15767 //Bit 15: 8, reg_mcdi_rptmvupgain                         up repeat mv gain for hme, default = 64
15768 //Bit  7: 0, reg_mcdi_rptmvuprightgain                    up right repeat mv gain for hme, default = 32
15769 #define   MCDI_GMV_RT                              (0x2f14)
15770 #define P_MCDI_GMV_RT                              (volatile uint32_t *)((0x2f14  << 2) + 0xff900000)
15771 //Bit 31,    reserved
15772 //Bit 30:24, reg_mcdi_gmvmtnrt0                           ratio 0 for motion senario, set 127 to 128, normalized 128 as '1', default =32
15773 //Bit 23,    reserved
15774 //Bit 22:16, reg_mcdi_gmvmtnrt1                           ratio 1 for motion senario, set 127 to 128, normalized 128 as '1', default = 56
15775 //Bit 15,    reserved
15776 //Bit 14: 8, reg_mcdi_gmvstlrt0                           ratio 0 for still senario, set 127 to 128, normalized 128 as '1', default = 56
15777 //Bit  7,    reserved
15778 //Bit  6: 0, reg_mcdi_gmvstlrt1                           ratio 1 for still senario, set 127 to 128, normalized 128 as '1', default = 80
15779 #define   MCDI_GMV_GAIN                            (0x2f15)
15780 #define P_MCDI_GMV_GAIN                            (volatile uint32_t *)((0x2f15  << 2) + 0xff900000)
15781 //Bit 31:25, reg_mcdi_gmvzeromvlockrt0                    ratio 0 for locking zero mv, set 127 to 128, normalized 128 as '1', default = 100
15782 //Bit 24:18, reg_mcdi_gmvzeromvlockrt1                    ratio 1 for locking zero mv, set 127 to 128, normalized 128 as '1', default = 112
15783 //Bit 17:16, reg_mcdi_gmvvalidmode                        valid mode for gmv calc., 10b: use flt, 01b: use hori flg, default = 3
15784 //Bit 15: 8, reg_mcdi_gmvvxgain                           gmv's vx gain when gmv locked for hme, default = 0
15785 //Bit  7: 0, reg_mcdi_gmvfltthd                           flat thd (<) for gmv calc. default = 3
15786 #define   MCDI_HOR_SADOFST                         (0x2f16)
15787 #define P_MCDI_HOR_SADOFST                         (volatile uint32_t *)((0x2f16  << 2) + 0xff900000)
15788 //Bit 31:25, reserved
15789 //Bit 24:16, reg_mcdi_horsaddifthdgain                    21*1/8, gain/divisor for sad dif threshold in hor line detection, normalized 8 as '1', default = 21
15790 //Bit 15: 8, reg_mcdi_horsaddifthdoffst                   offset for sad dif threshold in hor line detection, -128~127, default = 0
15791 //Bit  7: 0, reg_mcdi_horvdifthd                          threshold (>=) of vertical dif of next block for horizontal line detection, default = 24
15792 #define   MCDI_REF_MV_NUM                          (0x2f17)
15793 #define P_MCDI_REF_MV_NUM                          (volatile uint32_t *)((0x2f17  << 2) + 0xff900000)
15794 //Bit 31: 2, reserved
15795 //Bit  1: 0, reg_mcdi_refmcmode.         motion compensated mode used in refinement, 0: pre, 1: next, 2: (pre+next)/2, default = 0
15796 #define   MCDI_REF_BADW_THD_GAIN                   (0x2f18)
15797 #define P_MCDI_REF_BADW_THD_GAIN                   (volatile uint32_t *)((0x2f18  << 2) + 0xff900000)
15798 //Bit 31:28, reserved
15799 //Bit 27:24, reg_mcdi_refbadwcnt2gain.   gain for badwv count num==3, default = 6
15800 //Bit 23:20, reg_mcdi_refbadwcnt1gain.   gain for badwv count num==2, default = 3
15801 //Bit 19:16, reg_mcdi_refbadwcnt0gain.   gain for badwv count num==1, default = 1
15802 //Bit 15:12, reg_mcdi_refbadwthd3.       threshold 3 for detect badweave with largest average luma, default = 4
15803 //Bit 11: 8, reg_mcdi_refbadwthd2.       threshold 2 for detect badweave with third smallest average luma, default = 3
15804 //Bit  7: 4, reg_mcdi_refbadwthd1.       threshold 1 for detect badweave with second smallest average luma, default = 2
15805 //Bit  3: 0, reg_mcdi_refbadwthd0.       threshold 0 for detect badweave with smallest average luma, default = 1
15806 #define   MCDI_REF_BADW_SUM_GAIN                   (0x2f19)
15807 #define P_MCDI_REF_BADW_SUM_GAIN                   (volatile uint32_t *)((0x2f19  << 2) + 0xff900000)
15808 //Bit 31:13, reserved
15809 //Bit 12: 8, reg_mcdi_refbadwsumgain0.   sum gain for r channel, 0~16, default = 8
15810 //Bit  7: 5, reserved
15811 //Bit     4, reg_mcdi_refbadwcalcmode.   mode for badw calculation, 0:sum, 1:max, default = 0
15812 //Bit  3: 0, reserved
15813 #define   MCDI_REF_BS_THD_GAIN                     (0x2f1a)
15814 #define P_MCDI_REF_BS_THD_GAIN                     (volatile uint32_t *)((0x2f1a  << 2) + 0xff900000)
15815 //Bit 31:28, reg_mcdi_refbsudgain1.      up & down block stregth gain1, normalized to 8 as '1', default = 2
15816 //Bit 27:24, reg_mcdi_refbsudgain0.      up & down block stregth gain0, normalized to 8 as '1', default = 4
15817 //Bit 23:19, reserved
15818 //Bit 18:16, reg_mcdi_refbslftgain.      left block strength gain, default = 0
15819 //Bit 15:13, reserved
15820 //Bit 12: 8, reg_mcdi_refbsthd1.         threshold 1 for detect block stregth in refinment, default = 16
15821 //Bit  7: 5, reserved
15822 //Bit  4: 0, reg_mcdi_refbsthd0.         threshold 0 for detect block stregth in refinment, default = 8
15823 #define   MCDI_REF_ERR_GAIN0                       (0x2f1b)
15824 #define P_MCDI_REF_ERR_GAIN0                       (volatile uint32_t *)((0x2f1b  << 2) + 0xff900000)
15825 //Bit    31, reserved
15826 //Bit 30:24, reg_mcdi_referrnbrdstgain.            neighoring mv distances gain for err calc. in ref, normalized to 8 as '1', default = 48
15827 //Bit 23:20, reserved
15828 //Bit 19:16, reg_mcdi_referrbsgain.                bs gain for err calc. in ref, normalized to 8 as '1', default = 4
15829 //Bit    15, reserved
15830 //Bit 14: 8, reg_mcdi_referrbadwgain.              badw gain for err calc. in ref, normalized to 8 as '1', default = 64
15831 //Bit  7: 4, reserved
15832 //Bit  3: 0, reg_mcdi_referrsadgain.               sad gain for err calc. in ref, normalized to 8 as '1', default = 4
15833 #define   MCDI_REF_ERR_GAIN1                       (0x2f1c)
15834 #define P_MCDI_REF_ERR_GAIN1                       (volatile uint32_t *)((0x2f1c  << 2) + 0xff900000)
15835 //Bit 31:20, reserved
15836 //Bit 19:16, reg_mcdi_referrchkedgegain.           check edge gain for err calc. in ref, normalized to 8 as '1', default = 4
15837 //Bit 15:12, reserved
15838 //Bit 11: 8, reg_mcdi_referrlmvgain.               (locked) lmv gain for err calc. in ref, normalized to 8 as '1', default = 0
15839 //Bit  7: 4, reserved
15840 //Bit  3: 0, reg_mcdi_referrgmvgain.               (locked) gmv gain for err calc. in ref, normalized to 8 as '1', default = 0
15841 #define   MCDI_REF_ERR_FRQ_CHK                     (0x2f1d)
15842 #define P_MCDI_REF_ERR_FRQ_CHK                     (volatile uint32_t *)((0x2f1d  << 2) + 0xff900000)
15843 //Bit 31:28, reserved
15844 //Bit 27:24, reg_mcdi_referrfrqgain.               gain for mv frquency, normalized to 4 as '1', default = 10
15845 //Bit 23:21, reserved
15846 //Bit 20:16, reg_mcdi_referrfrqmax.                max gain for mv frquency check, default = 31
15847 //Bit    15, reserved
15848 //Bit 14:12, reg_mcdi_ref_errfrqmvdifthd2.         mv dif threshold 2 (<) for mv frquency check, default = 3
15849 //Bit    11, reserved
15850 //Bit 10: 8, reg_mcdi_ref_errfrqmvdifthd1.         mv dif threshold 1 (<) for mv frquency check, default = 2
15851 //Bit     7, reserved
15852 //Bit  6: 4, reg_mcdi_ref_errfrqmvdifthd0.         mv dif threshold 0 (<) for mv frquency check, default = 1
15853 //Bit  3: 0, reserved
15854 #define   MCDI_QME_LPF_MSK                         (0x2f1e)
15855 #define P_MCDI_QME_LPF_MSK                         (volatile uint32_t *)((0x2f1e  << 2) + 0xff900000)
15856 //Bit 31:28, reserved
15857 //Bit 27:24, reg_mcdi_qmechkedgelpfmsk0.           lpf mask0 for chk edge in qme, 0~8, msk1 = (8-msk0), normalized to 8 as '1', default = 7
15858 //Bit 23:20, reserved
15859 //Bit 19:16, reg_mcdi_qmebslpfmsk0.                lpf mask0 for bs in qme, 0~8, msk1 = (8-msk0), normalized to 8 as '1', default = 7
15860 //Bit 15:12, reserved
15861 //Bit 11: 8, reg_mcdi_qmebadwlpfmsk0.              lpf mask0 for badw in qme, 0~8, msk1 = (8-msk0), normalized to 8 as '1', default = 7
15862 //Bit  7: 4, reserved
15863 //Bit  3: 0, reg_mcdi_qmesadlpfmsk0.               lpf mask0 for sad in qme, 0~8, msk1 = (8-msk0), normalized to 8 as '1', default = 7
15864 #define   MCDI_REL_DIF_THD_02                      (0x2f1f)
15865 #define P_MCDI_REL_DIF_THD_02                      (volatile uint32_t *)((0x2f1f  << 2) + 0xff900000)
15866 //Bit 31:24, reserved.
15867 //Bit 23:16, reg_mcdi_reldifthd2.                  thd (<) for (hdif+vdif), default = 9
15868 //Bit 15: 8, reg_mcdi_reldifthd1.                  thd (<) for (vdif), default = 5
15869 //Bit  7: 0, reg_mcdi_reldifthd0.                  thd (>=) for (hdif-vdif), default = 48
15870 #define   MCDI_REL_DIF_THD_34                      (0x2f20)
15871 #define P_MCDI_REL_DIF_THD_34                      (volatile uint32_t *)((0x2f20  << 2) + 0xff900000)
15872 //Bit 31:16, reserved.
15873 //Bit 15: 8, reg_mcdi_reldifthd4.                  thd (<) for (hdif), default = 255
15874 //Bit  7: 0, reg_mcdi_reldifthd3.                  thd (>=) for (vdif-hdif), default = 48
15875 #define   MCDI_REL_BADW_GAIN_OFFST_01              (0x2f21)
15876 #define P_MCDI_REL_BADW_GAIN_OFFST_01              (volatile uint32_t *)((0x2f21  << 2) + 0xff900000)
15877 //Bit 31:24, reg_mcdi_relbadwoffst1.               offset for badw adj, for flat block, -128~127, default = 0
15878 //Bit 23:16, reg_mcdi_relbadwgain1.                gain for badw adj, for flat block, default = 128
15879 //Bit 15: 8, reg_mcdi_relbadwoffst0.               offset for badw adj, for vertical block, -128~127, default = 0
15880 //Bit  7: 0, reg_mcdi_relbadwgain0.                gain for badw adj, for vertical block, default = 160
15881 #define   MCDI_REL_BADW_GAIN_OFFST_23              (0x2f22)
15882 #define P_MCDI_REL_BADW_GAIN_OFFST_23              (volatile uint32_t *)((0x2f22  << 2) + 0xff900000)
15883 //Bit 31:24, reg_mcdi_relbadwoffst3.               offset for badw adj, for other block, -128~127, default = 0
15884 //Bit 23:16, reg_mcdi_relbadwgain3.                gain for badw adj, for other block, default = 48
15885 //Bit 15: 8, reg_mcdi_relbadwoffst2.               offset for badw adj, for horizontal block, -128~127, default = 0
15886 //Bit  7: 0, reg_mcdi_relbadwgain2.                gain for badw adj, for horizontal block, default = 48
15887 #define   MCDI_REL_BADW_THD_GAIN_OFFST             (0x2f23)
15888 #define P_MCDI_REL_BADW_THD_GAIN_OFFST             (volatile uint32_t *)((0x2f23  << 2) + 0xff900000)
15889 //Bit 31:23, reserved.
15890 //Bit 22:16, reg_mcdi_relbadwoffst.                offset for badw thd adj, -64~63, default = 0
15891 //Bit 15: 8, reserved.
15892 //Bit  7: 0, reg_mcdi_relbadwthdgain.              gain0 for badw thd adj, normalized to 16 as '1', default = 16
15893 #define   MCDI_REL_BADW_THD_MIN_MAX                (0x2f24)
15894 #define P_MCDI_REL_BADW_THD_MIN_MAX                (volatile uint32_t *)((0x2f24  << 2) + 0xff900000)
15895 //Bit 31:18, reserved.
15896 //Bit 17: 8, reg_mcdi_relbadwthdmax.               max for badw thd adj, default = 256
15897 //Bit  7: 0, reg_mcdi_relbadwthdmin.               min for badw thd adj, default = 16
15898 #define   MCDI_REL_SAD_GAIN_OFFST_01               (0x2f25)
15899 #define P_MCDI_REL_SAD_GAIN_OFFST_01               (volatile uint32_t *)((0x2f25  << 2) + 0xff900000)
15900 //Bit 31:24, reg_mcdi_relsadoffst1.                offset for sad adj, for flat block, -128~127, default = 0
15901 //Bit 23:20, reserved.
15902 //Bit 19:16, reg_mcdi_relsadgain1.                 gain for sad adj, for flat block, normalized to 8 as '1', default = 8
15903 //Bit 15: 8, reg_mcdi_relsadoffst0.                offset for sad adj, for vertical block, -128~127, default = 0
15904 //Bit  7: 4, reserved.
15905 //Bit  3: 0, reg_mcdi_relsadgain0.                 gain for sad adj, for vertical block, normalized to 8 as '1', default = 6
15906 #define   MCDI_REL_SAD_GAIN_OFFST_23               (0x2f26)
15907 #define P_MCDI_REL_SAD_GAIN_OFFST_23               (volatile uint32_t *)((0x2f26  << 2) + 0xff900000)
15908 //Bit 31:24, reg_mcdi_relsadoffst3.                offset for sad adj, for other block, -128~127, default = 0
15909 //Bit 23:20, reserved.
15910 //Bit 19:16, reg_mcdi_relsadgain3.                 gain for sad adj, for other block, normalized to 8 as '1', default = 8
15911 //Bit 15: 8, reg_mcdi_relsadoffst2.                offset for sad adj, for horizontal block, -128~127, default = 0
15912 //Bit  7: 4, reserved.
15913 //Bit  3: 0, reg_mcdi_relsadgain2.                 gain for sad adj, for horizontal block, normalized to 8 as '1', default = 12
15914 #define   MCDI_REL_SAD_THD_GAIN_OFFST              (0x2f27)
15915 #define P_MCDI_REL_SAD_THD_GAIN_OFFST              (volatile uint32_t *)((0x2f27  << 2) + 0xff900000)
15916 //Bit 31:24, reserved.
15917 //Bit 23:16, reg_mcdi_relsadoffst.                 offset for sad thd adj, -128~127, default = 0
15918 //Bit 15:10, reserved.
15919 //Bit  9: 0, reg_mcdi_relsadthdgain.               gain for sad thd adj, 21*2/16, normalized to 16 as '1', default = 42
15920 #define   MCDI_REL_SAD_THD_MIN_MAX                 (0x2f28)
15921 #define P_MCDI_REL_SAD_THD_MIN_MAX                 (volatile uint32_t *)((0x2f28  << 2) + 0xff900000)
15922 //Bit 31:27, reserved.
15923 //Bit 26:16, reg_mcdi_relsadthdmax.                max for sad thd adj, 21*32, default = 672
15924 //Bit 15: 9, reserved.
15925 //Bit  8: 0, reg_mcdi_relsadthdmin.                min for sad thd adj, 21*2, default = 42
15926 #define   MCDI_REL_DET_GAIN_00                     (0x2f29)
15927 #define P_MCDI_REL_DET_GAIN_00                     (volatile uint32_t *)((0x2f29  << 2) + 0xff900000)
15928 //Bit 31:21, reserved.
15929 //Bit 20:16, reg_mcdi_reldetbsgain0.               gain0 (gmv locked) for bs, for det. calc. normalized to 16 as '1', default = 8
15930 //Bit 15:14, reserved.
15931 //Bit 13: 8, reg_mcdi_reldetbadwgain0.             gain0 (gmv locked) for badw, for det. calc. normalized to 16 as '1', default = 12
15932 //Bit  7: 5, reserved.
15933 //Bit  4: 0, reg_mcdi_reldetsadgain0.              gain0 (gmv locked) for qsad, for det. calc. normalized to 16 as '1', default = 8
15934 #define   MCDI_REL_DET_GAIN_01                     (0x2f2a)
15935 #define P_MCDI_REL_DET_GAIN_01                     (volatile uint32_t *)((0x2f2a  << 2) + 0xff900000)
15936 //Bit 31:14, reserved.
15937 //Bit 12: 8, reg_mcdi_reldetchkedgegain0.          gain0 (gmv locked) for chk_edge, for det. calc. normalized to 16 as '1', default = 2
15938 //Bit     7, reserved.
15939 //Bit  6: 0, reg_mcdi_reldetnbrdstgain0.           gain0 (gmv locked) for neighoring dist, for det. calc. normalized to 16 as '1', default = 24
15940 #define   MCDI_REL_DET_GAIN_10                     (0x2f2b)
15941 #define P_MCDI_REL_DET_GAIN_10                     (volatile uint32_t *)((0x2f2b  << 2) + 0xff900000)
15942 //Bit 31:21, reserved.
15943 //Bit 20:16, reg_mcdi_reldetbsgain1.               gain1 (lmv locked) for bs, for det. calc. normalized to 16 as '1', default = 0
15944 //Bit 15:14, reserved.
15945 //Bit 13: 8, reg_mcdi_reldetbadwgain1.             gain1 (lmv locked) for badw, for det. calc. normalized to 16 as '1', default = 8
15946 //Bit  7: 5, reserved.
15947 //Bit  4: 0, reg_mcdi_reldetsadgain1.              gain1 (lmv locked) for qsad, for det. calc. normalized to 16 as '1', default = 8
15948 #define   MCDI_REL_DET_GAIN_11                     (0x2f2c)
15949 #define P_MCDI_REL_DET_GAIN_11                     (volatile uint32_t *)((0x2f2c  << 2) + 0xff900000)
15950 //Bit 31:14, reserved.
15951 //Bit 12: 8, reg_mcdi_reldetchkedgegain1.          gain1 (lmv locked) for chk_edge, for det. calc. normalized to 16 as '1', default = 0
15952 //Bit     7, reserved.
15953 //Bit  6: 0, reg_mcdi_reldetnbrdstgain1.           gain1 (lmv locked) for neighoring dist, for det. calc. normalized to 16 as '1', default = 24
15954 #define   MCDI_REL_DET_GAIN_20                     (0x2f2d)
15955 #define P_MCDI_REL_DET_GAIN_20                     (volatile uint32_t *)((0x2f2d  << 2) + 0xff900000)
15956 //Bit 31:21, reserved.
15957 //Bit 20:16, reg_mcdi_reldetbsgain2.               gain2 (no locked) for bs, for det. calc. normalized to 16 as '1', default = 12
15958 //Bit 15:14, reserved.
15959 //Bit 13: 8, reg_mcdi_reldetbadwgain2.             gain2 (no locked) for badw, for det. calc. normalized to 16 as '1', default = 32
15960 //Bit  7: 5, reserved.
15961 //Bit  4: 0, reg_mcdi_reldetsadgain2.              gain2 (no locked) for qsad, for det. calc. normalized to 16 as '1', default = 16
15962 #define   MCDI_REL_DET_GAIN_21                     (0x2f2e)
15963 #define P_MCDI_REL_DET_GAIN_21                     (volatile uint32_t *)((0x2f2e  << 2) + 0xff900000)
15964 //Bit 31:26, reserved
15965 //Bit 25:16, reg_mcdi_reldetoffst.                 offset for rel calculation, for det. calc. -512~511,  default = 0
15966 //Bit 15:14, reserved.
15967 //Bit 12: 8, reg_mcdi_reldetchkedgegain2.          gain2 (no locked) for chk_edge, for det. calc. normalized to 16 as '1', default = 10
15968 //Bit     7, reserved.
15969 //Bit  6: 0, reg_mcdi_reldetnbrdstgain2.           gain2 (no locked) for neighoring dist, for det. calc. normalized to 16 as '1', default = 32
15970 #define   MCDI_REL_DET_GMV_DIF_CHK                 (0x2f2f)
15971 #define P_MCDI_REL_DET_GMV_DIF_CHK                 (volatile uint32_t *)((0x2f2f  << 2) + 0xff900000)
15972 //Bit 31:24, reserved.
15973 //Bit 23:16, reg_mcdi_reldetgmvfltthd.             flat thd (>=) for gmv lock decision, default = 0
15974 //Bit    15, reserved.
15975 //Bit 14:12, reg_mcdi_reldetgmvdifthd.             dif thd (>=) for current mv different from gmv for gmv dif check, actually used in Lmv lock check, default = 3
15976 //Bit    11, reserved.
15977 //Bit 10: 8, reg_mcdi_reldetgmvdifmin.             min mv dif for gmv dif check, default = 1, note: dif between reg_mcdi_rel_det_gmv_dif_max and reg_mcdi_rel_det_gmv_dif_min should be; 0,1,3,7, not work for others
15978 //Bit  7: 4, reg_mcdi_reldetgmvdifmax.             max mv dif for gmv dif check, default = 4
15979 //Bit  3: 1, reserved
15980 //Bit     0, reg_mcdi_reldetgmvdifmvmode.          mv mode used for gmv dif check, 0: use refmv, 1: use qmv, default = 0
15981 #define   MCDI_REL_DET_LMV_DIF_CHK                 (0x2f30)
15982 #define P_MCDI_REL_DET_LMV_DIF_CHK                 (volatile uint32_t *)((0x2f30  << 2) + 0xff900000)
15983 //Bit 31:24, reserved.
15984 //Bit 23:16, reg_mcdi_reldetlmvfltthd.             flat thd (>=) for lmv lock decision, default = 12
15985 //Bit 15:14, reserved.
15986 //Bit 13:12, reg_mcdi_reldetlmvlockchkmode.        lmv lock check mode, 0:cur Lmv, 1: cur & (last | next), 2: last & cur & next Lmv, default = 1
15987 //Bit    11, reserved.
15988 //Bit 10: 8, reg_mcdi_reldetlmvdifmin.             min mv dif for lmv dif check, default = 1, note: dif between reg_mcdi_rel_det_lmv_dif_max and reg_mcdi_rel_det_lmv_dif_min should be; 0,1,3,7, not work for others
15989 //Bit  7: 4, reg_mcdi_reldetlmvdifmax.             max mv dif for lmv dif check, default = 4
15990 //Bit  3: 1, reserved
15991 //Bit     0, reg_mcdi_reldetlmvdifmvmode.          mv mode used for lmv dif check, 0: use refmv, 1: use qmv, default = 0
15992 #define   MCDI_REL_DET_FRQ_CHK                     (0x2f31)
15993 #define P_MCDI_REL_DET_FRQ_CHK                     (volatile uint32_t *)((0x2f31  << 2) + 0xff900000)
15994 //Bit 31:12, reserved.
15995 //Bit 11: 8, reg_mcdi_reldetfrqgain.               gain for frequency check, normalized to 4 as '1', default = 10
15996 //Bit  7: 5, reserved
15997 //Bit  4: 0, reg_mcdi_reldetfrqmax.                max value for frequency check, default = 31
15998 #define   MCDI_REL_DET_PD22_CHK                    (0x2f32)
15999 #define P_MCDI_REL_DET_PD22_CHK                    (volatile uint32_t *)((0x2f32  << 2) + 0xff900000)
16000 //Bit 31:18, reserved.
16001 //Bit 17: 8, reg_mcdi_reldetpd22chkoffst.          offset for pd22 check happened, default = 512
16002 //Bit  7: 5, reserved
16003 //Bit  4: 0, reg_mcdi_reldetpd22chkgain.           gain for pd22 check happened, normalized to 8 as '1', default = 12
16004 #define   MCDI_REL_DET_RPT_CHK_ROW                 (0x2f33)
16005 #define P_MCDI_REL_DET_RPT_CHK_ROW                 (volatile uint32_t *)((0x2f33  << 2) + 0xff900000)
16006 //Bit 31:27, reserved
16007 //Bit 26:16, reg_mcdi_reldetrptchkendrow.          end row (<) number for repeat check, default = 2047
16008 //Bit 15:11, reserved
16009 //Bit 10: 0, reg_mcdi_reldetrptchkstartrow.        start row (>=) number for repeat check, default = 0
16010 #define   MCDI_REL_DET_RPT_CHK_GAIN_QMV            (0x2f34)
16011 #define P_MCDI_REL_DET_RPT_CHK_GAIN_QMV            (volatile uint32_t *)((0x2f34  << 2) + 0xff900000)
16012 //Bit 31:30, reserved
16013 //Bit 29:24, reg_mcdi_reldetrptchkqmvmax.          max thd (<) of abs qmv for repeat check, default = 15, note that quarter mv's range is -63~63
16014 //Bit 23:22, reserved
16015 //Bit 21:16, reg_mcdi_reldetrptchkqmvmin.          min thd (>=) of abs qmv for repeat check, default = 10, note that quarter mv's range is -63~63
16016 //Bit    15, reserved/
16017 //Bit 14: 4, reg_mcdi_reldetrptchkoffst.           offset for repeat check, default = 512
16018 //Bit  3: 0, reg_mcdi_reldetrptchkgain.            gain for repeat check, normalized to 8 as '1', default = 4
16019 #define   MCDI_REL_DET_RPT_CHK_THD_0               (0x2f35)
16020 #define P_MCDI_REL_DET_RPT_CHK_THD_0               (volatile uint32_t *)((0x2f35  << 2) + 0xff900000)
16021 //Bit 31:24, reserved
16022 //Bit 23:16, reg_mcdi_reldetrptchkzerosadthd.      zero sad thd (<) for repeat check, default = 255
16023 //Bit 15:14, reserved.
16024 //Bit 13: 8, reg_mcdi_reldetrptchkzerobadwthd.     zero badw thd (>=) for repeat check, default = 16
16025 //Bit  7: 4, reserved
16026 //Bit  3: 0, reg_mcdi_reldetrptchkfrqdifthd.       frequency dif thd (<) for repeat check, 0~10, default = 5
16027 #define   MCDI_REL_DET_RPT_CHK_THD_1               (0x2f36)
16028 #define P_MCDI_REL_DET_RPT_CHK_THD_1               (volatile uint32_t *)((0x2f36  << 2) + 0xff900000)
16029 //Bit 31:16, reserved
16030 //Bit 15: 8, reg_mcdi_reldetrptchkvdifthd.         vertical dif thd (<) for repeat check, default = 16
16031 //Bit  7: 0, reg_mcdi_reldetrptchkhdifthd.         horizontal dif thd (>=) for repeat check, default = 16
16032 #define   MCDI_REL_DET_LPF_DIF_THD                 (0x2f37)
16033 #define P_MCDI_REL_DET_LPF_DIF_THD                 (volatile uint32_t *)((0x2f37  << 2) + 0xff900000)
16034 //Bit 31:24, reg_mcdi_reldetlpfdifthd3.            hdif thd (<) for lpf selection of horizontal block, default = 9
16035 //Bit 23:16, reg_mcdi_reldetlpfdifthd2.            vdif-hdif thd (>=) for lpf selection of horizontal block, default = 48
16036 //Bit 15: 8, reg_mcdi_reldetlpfdifthd1.            vdif thd (<) for lpf selection of vertical block, default = 9
16037 //Bit  7: 0, reg_mcdi_reldetlpfdifthd0.            hdif-vdif thd (>=) for lpf selection of vertical block, default = 48
16038 #define   MCDI_REL_DET_LPF_MSK_00_03               (0x2f38)
16039 #define P_MCDI_REL_DET_LPF_MSK_00_03               (volatile uint32_t *)((0x2f38  << 2) + 0xff900000)
16040 //Bit 31:29, reserved
16041 //Bit 28:24, reg_mcdi_reldetlpfmsk03.              det lpf mask03 for gmv/lmv locked mode, 0~16, default = 1
16042 //Bit 23:21, reserved
16043 //Bit 20:16, reg_mcdi_reldetlpfmsk02.              det lpf mask02 for gmv/lmv locked mode, 0~16, default = 1
16044 //Bit 15:13, reserved
16045 //Bit 12: 8, reg_mcdi_reldetlpfmsk01.              det lpf mask01 for gmv/lmv locked mode, 0~16, default = 5
16046 //Bit  7: 5, reserved
16047 //Bit  4: 0, reg_mcdi_reldetlpfmsk00.              det lpf mask00 for gmv/lmv locked mode, 0~16, default = 8
16048 #define   MCDI_REL_DET_LPF_MSK_04_12               (0x2f39)
16049 #define P_MCDI_REL_DET_LPF_MSK_04_12               (volatile uint32_t *)((0x2f39  << 2) + 0xff900000)
16050 //Bit 31:29, reserved
16051 //Bit 28:24, reg_mcdi_reldetlpfmsk12.              det lpf mask12 for vertical blocks, 0~16, default = 0
16052 //Bit 23:21, reserved
16053 //Bit 20:16, reg_mcdi_reldetlpfmsk11.              det lpf mask11 for vertical blocks, 0~16, default = 0
16054 //Bit 15:13, reserved
16055 //Bit 12: 8, reg_mcdi_reldetlpfmsk10.              det lpf mask10 for vertical blocks, 0~16, default = 16
16056 //Bit  7: 5, reserved
16057 //Bit  4: 0, reg_mcdi_reldetlpfmsk04.              det lpf mask04 for gmv/lmv locked mode, 0~16, default = 1
16058 #define   MCDI_REL_DET_LPF_MSK_13_21               (0x2f3a)
16059 #define P_MCDI_REL_DET_LPF_MSK_13_21               (volatile uint32_t *)((0x2f3a  << 2) + 0xff900000)
16060 //Bit 31:29, reserved
16061 //Bit 28:24, reg_mcdi_reldetlpfmsk21.              det lpf mask21 for horizontal blocks, 0~16, default = 6
16062 //Bit 23:21, reserved
16063 //Bit 20:16, reg_mcdi_reldetlpfmsk20.              det lpf mask20 for horizontal blocks, 0~16, default = 8
16064 //Bit 15:13, reserved
16065 //Bit 12: 8, reg_mcdi_reldetlpfmsk14.              det lpf mask14 for vertical blocks, 0~16, default = 0
16066 //Bit  7: 5, reserved
16067 //Bit  4: 0, reg_mcdi_reldetlpfmsk13.              det lpf mask13 for vertical blocks, 0~16, default = 0
16068 #define   MCDI_REL_DET_LPF_MSK_22_30               (0x2f3b)
16069 #define P_MCDI_REL_DET_LPF_MSK_22_30               (volatile uint32_t *)((0x2f3b  << 2) + 0xff900000)
16070 //Bit 31:29, reserved
16071 //Bit 28:24, reg_mcdi_reldetlpfmsk30.              det lpf mask30 for other blocks, 0~16, default = 16
16072 //Bit 23:21, reserved
16073 //Bit 20:16, reg_mcdi_reldetlpfmsk24.              det lpf mask24 for horizontal blocks, 0~16, default = 1
16074 //Bit 15:13, reserved
16075 //Bit 12: 8, reg_mcdi_reldetlpfmsk23.              det lpf mask23 for horizontal blocks, 0~16, default = 0
16076 //Bit  7: 5, reserved
16077 //Bit  4: 0, reg_mcdi_reldetlpfmsk22.              det lpf mask22 for horizontal blocks, 0~16, default = 1
16078 #define   MCDI_REL_DET_LPF_MSK_31_34               (0x2f3c)
16079 #define P_MCDI_REL_DET_LPF_MSK_31_34               (volatile uint32_t *)((0x2f3c  << 2) + 0xff900000)
16080 //Bit 31:29, reserved
16081 //Bit 28:24, reg_mcdi_reldetlpfmsk34.              det lpf mask34 for other blocks, 0~16, default = 0
16082 //Bit 23:21, reserved
16083 //Bit 20:16, reg_mcdi_reldetlpfmsk33.              det lpf mask33 for other blocks, 0~16, default = 0
16084 //Bit 15:13, reserved
16085 //Bit 12: 8, reg_mcdi_reldetlpfmsk32.              det lpf mask32 for other blocks, 0~16, default = 0
16086 //Bit  7: 5, reserved
16087 //Bit  4: 0, reg_mcdi_reldetlpfmsk31.              det lpf mask31 for other blocks, 0~16, default = 0
16088 //Note: there are four group lpf masks from addr 37~3b, each group sum equal to 16.
16089 #define   MCDI_REL_DET_MIN                         (0x2f3d)
16090 #define P_MCDI_REL_DET_MIN                         (volatile uint32_t *)((0x2f3d  << 2) + 0xff900000)
16091 //Bit 31: 7, reserved
16092 //Bit  6: 0, reg_mcdi_reldetmin.                   min of detected value, default = 16
16093 #define   MCDI_REL_DET_LUT_0_3                     (0x2f3e)
16094 #define P_MCDI_REL_DET_LUT_0_3                     (volatile uint32_t *)((0x2f3e  << 2) + 0xff900000)
16095 //Bit 31:24, reg_mcdi_reldetmaplut3.               default = 8
16096 //Bit 23:16, reg_mcdi_reldetmaplut2.               default = 4
16097 //Bit 15: 8, reg_mcdi_reldetmaplut1.               default = 2
16098 //Bit  7: 0, reg_mcdi_reldetmaplut0.               default = 0
16099 #define   MCDI_REL_DET_LUT_4_7                     (0x2f3f)
16100 #define P_MCDI_REL_DET_LUT_4_7                     (volatile uint32_t *)((0x2f3f  << 2) + 0xff900000)
16101 //Bit 31:24, reg_mcdi_reldetmaplut7.               default = 64
16102 //Bit 23:16, reg_mcdi_reldetmaplut6.               default = 48
16103 //Bit 15: 8, reg_mcdi_reldetmaplut5.               default = 32
16104 //Bit  7: 0, reg_mcdi_reldetmaplut4.               default = 16
16105 #define   MCDI_REL_DET_LUT_8_11                    (0x2f40)
16106 #define P_MCDI_REL_DET_LUT_8_11                    (volatile uint32_t *)((0x2f40  << 2) + 0xff900000)
16107 //Bit 31:24, reg_mcdi_reldetmaplut11.              default = 160
16108 //Bit 23:16, reg_mcdi_reldetmaplut10.              default = 128
16109 //Bit 15: 8, reg_mcdi_reldetmaplut9.               default = 96
16110 //Bit  7: 0, reg_mcdi_reldetmaplut8.               default = 80
16111 #define   MCDI_REL_DET_LUT_12_15                   (0x2f41)
16112 #define P_MCDI_REL_DET_LUT_12_15                   (volatile uint32_t *)((0x2f41  << 2) + 0xff900000)
16113 //Bit 31:24, reg_mcdi_reldetmaplut15.              default = 255
16114 //Bit 23:16, reg_mcdi_reldetmaplut14.              default = 240
16115 //Bit 15: 8, reg_mcdi_reldetmaplut13.              default = 224
16116 //Bit  7: 0, reg_mcdi_reldetmaplut12.              default = 192
16117 #define   MCDI_REL_DET_COL_CFD_THD                 (0x2f42)
16118 #define P_MCDI_REL_DET_COL_CFD_THD                 (volatile uint32_t *)((0x2f42  << 2) + 0xff900000)
16119 //Bit 31:24, reg_mcdi_reldetcolcfdfltthd.          thd for flat smaller than (<) of column cofidence, default = 5
16120 //Bit 23:16, reg_mcdi_reldetcolcfdthd1.            thd for rel larger than (>=) in rel calc. mode col confidence without gmv locking, default = 160
16121 //Bit 15: 8, reg_mcdi_reldetcolcfdthd0.            thd for rel larger than (>=) in rel calc. mode col confidence when gmv locked, default = 100
16122 //Bit  7: 2, reg_mcdi_reldetcolcfdbadwthd.         thd for badw larger than (>=) in qbadw calc. mode of column cofidence, default = 16
16123 //Bit     1, reserved
16124 //Bit     0, reg_mcdi_reldetcolcfdcalcmode.        calc. mode for column cofidence, 0: use rel, 1: use qbadw, default = 0
16125 #define   MCDI_REL_DET_COL_CFD_AVG_LUMA            (0x2f43)
16126 #define P_MCDI_REL_DET_COL_CFD_AVG_LUMA            (volatile uint32_t *)((0x2f43  << 2) + 0xff900000)
16127 //Bit 31:24, reg_mcdi_reldetcolcfdavgmin1.         avg luma min1 (>=) for column cofidence, valid between 16~235, default = 235
16128 //Bit 23:16, reg_mcdi_reldetcolcfdavgmax1.         avg luma max1 (<)  for column cofidence, valid between 16~235, default = 235
16129 //Bit 15: 8, reg_mcdi_reldetcolcfdavgmin0.         avg luma min0 (>=) for column cofidence, valid between 16~235, default = 16
16130 //Bit  7: 0, reg_mcdi_reldetcolcfdavgmax0.         avg luma max0 (<)  for column cofidence, valid between 16~235, default = 21
16131 #define   MCDI_REL_DET_BAD_THD_0                   (0x2f44)
16132 #define P_MCDI_REL_DET_BAD_THD_0                   (volatile uint32_t *)((0x2f44  << 2) + 0xff900000)
16133 //Bit 31:16, reserved
16134 //Bit 15: 8, reg_mcdi_reldetbadsadthd.             thd (>=) for bad sad, default = 120 (480/4)
16135 //Bit  7: 6, reserved
16136 //Bit  5: 0, reg_mcdi_reldetbadbadwthd.            thd (>=) for bad badw, 0~42, default = 12
16137 #define   MCDI_REL_DET_BAD_THD_1                   (0x2f45)
16138 #define P_MCDI_REL_DET_BAD_THD_1                   (volatile uint32_t *)((0x2f45  << 2) + 0xff900000)
16139 //Bit 31:24, reserved
16140 //Bit 23:16, reg_mcdi_reldetbadrelfltthd.          thd (>=) of flat for bad rel detection, default = 4
16141 //Bit 15: 8, reg_mcdi_reldetbadrelthd1.            thd (>=) for bad rel without gmv/lmv locked, default = 160
16142 //Bit  7: 0, reg_mcdi_reldetbadrelthd0.            thd (>=) for bad rel with gmv/lmv locked, default = 120
16143 #define   MCDI_PD22_CHK_THD                        (0x2f46)
16144 #define P_MCDI_PD22_CHK_THD                        (volatile uint32_t *)((0x2f46  << 2) + 0xff900000)
16145 //Bit 31:25, reserved
16146 //Bit 24:16, reg_mcdi_pd22chksaddifthd.            sad dif thd (>=) for (pd22chksad - qsad) for pd22 check, default = 64
16147 //Bit 15:14, reserved
16148 //Bit 13: 8, reg_mcdi_pd22chkqmvthd.               thd (>=) of abs qmv for pd22 check, default = 2
16149 //Bit  7: 0, reg_mcdi_pd22chkfltthd.               thd (>=) of flat for pd22 check, default = 4
16150 #define   MCDI_PD22_CHK_GAIN_OFFST_0               (0x2f47)
16151 #define P_MCDI_PD22_CHK_GAIN_OFFST_0               (volatile uint32_t *)((0x2f47  << 2) + 0xff900000)
16152 //Bit 31:24, reg_mcdi_pd22chkedgeoffst0.           offset0 of pd22chkedge from right film22 phase, -128~127, default = 0
16153 //Bit 23:21, reserved
16154 //Bit 20:16, reg_mcdi_pd22chkedgegain0.            gain0 of pd22chkedge from right film22 phase, normalized to 16 as '1', default = 16
16155 //Bit 15:12, reserved
16156 //Bit 11: 8, reg_mcdi_pd22chkbadwoffst0.           offset0 of pd22chkbadw from right film22 phase, -8~7, default = 0
16157 //Bit  7: 5, reserved
16158 //Bit  4: 0, reg_mcdi_pd22chkbadwgain0.            gain0 of pd22chkbadw from right film22 phase, normalized to 16 as '1', default = 8
16159 #define   MCDI_PD22_CHK_GAIN_OFFST_1               (0x2f48)
16160 #define P_MCDI_PD22_CHK_GAIN_OFFST_1               (volatile uint32_t *)((0x2f48  << 2) + 0xff900000)
16161 //Bit 31:24, reg_mcdi_pd22chkedgeoffst1.           offset1 of pd22chkedge from right film22 phase, -128~127, default = 0
16162 //Bit 23:21, reserved
16163 //Bit 20:16, reg_mcdi_pd22chkedgegain1.            gain1 of pd22chkedge from right film22 phase, normalized to 16 as '1', default = 16
16164 //Bit 15:12, reserved
16165 //Bit 11: 8, reg_mcdi_pd22chkbadwoffst1.           offset1 of pd22chkbadw from right film22 phase, -8~7, default = 0
16166 //Bit  7: 5, reserved
16167 //Bit  4: 0, reg_mcdi_pd22chkbadwgain1.            gain1 of pd22chkbadw from right film22 phase, normalized to 16 as '1', default = 12
16168 #define   MCDI_LMV_LOCK_CNT_THD_GAIN               (0x2f49)
16169 #define P_MCDI_LMV_LOCK_CNT_THD_GAIN               (volatile uint32_t *)((0x2f49  << 2) + 0xff900000)
16170 //Bit 31:20, reserved
16171 //Bit 19:16, reg_mcdi_lmvlockcntmax.               max lmv lock count number, default = 6
16172 //Bit 15:12, reg_mcdi_lmvlockcntoffst.             offset for lmv lock count, -8~7, default =  0
16173 //Bit 11: 8, reg_mcdi_lmvlockcntgain.              gain for lmv lock count, normalized 8 as '1', 15 is set to 16, default = 8
16174 //Bit  7: 5, reserved
16175 //Bit  4: 0, reg_mcdi_lmvlockcntthd.               lmv count thd (>=) before be locked, 1~31, default = 4
16176 #define   MCDI_LMV_LOCK_ABS_DIF_THD                (0x2f4a)
16177 #define P_MCDI_LMV_LOCK_ABS_DIF_THD                (volatile uint32_t *)((0x2f4a  << 2) + 0xff900000)
16178 //Bit 31:27, reserved
16179 //Bit 26:24, reg_mcdi_lmvlockdifthd2.              lmv dif thd for third part, before locked, default = 1
16180 //Bit    23, reserved
16181 //Bit 22:20, reg_mcdi_lmvlockdifthd1.              lmv dif thd for second part, before locked, default = 1
16182 //Bit    19, reserved
16183 //Bit 18:16, reg_mcdi_lmvlockdifthd0.              lmv dif thd for first part, before locked, default = 1
16184 //Bit 15:13, reserved
16185 //Bit 12: 8, reg_mcdi_lmvlockabsmax.               max abs (<) of lmv to be locked, default = 24
16186 //Bit  7: 5, reserved
16187 //Bit  4: 0, reg_mcdi_lmvlockabsmin.               min abs (>=) of lmv to be locked, default = 1
16188 #define   MCDI_LMV_LOCK_ROW                        (0x2f4b)
16189 #define P_MCDI_LMV_LOCK_ROW                        (volatile uint32_t *)((0x2f4b  << 2) + 0xff900000)
16190 //Bit 31:27, reserved
16191 //Bit 26:16, reg_mcdi_lmvlockendrow.               end row (<) for lmv lock, default = 2047
16192 //Bit 15:11, reserved
16193 //Bit 10: 0, reg_mcdi_lmvlockstartrow.             start row (>=) for lmv lock, default = 0
16194 #define   MCDI_LMV_LOCK_RT_MODE                    (0x2f4c)
16195 #define P_MCDI_LMV_LOCK_RT_MODE                    (volatile uint32_t *)((0x2f4c  << 2) + 0xff900000)
16196 //Bit 31:27, reserved
16197 //Bit 26:24, reg_mcdi_lmvlockextmode.              extend lines for lmv lock check, check how many lines for lmv locking, default = 2
16198 //Bit 23:16, reg_mcdi_lmvlockfltcntrt.             ratio of flt cnt for lock check, normalized 256 as '1', 255 is set to 256, default = 32
16199 //Bit 15: 8, reg_mcdi_lmvlocklmvcntrt1.            ratio when use non-zero lmv for lock check, normalized 256 as '1', 255 is set to 256, default = 48
16200 //Bit  7: 0, reg_mcdi_lmvlocklmvcntrt0.            ratio when use max lmv for lock check, normalized 256 as '1', 255 is set to 256, default = 106
16201 #define   MCDI_GMV_LOCK_CNT_THD_GAIN               (0x2f4d)
16202 #define P_MCDI_GMV_LOCK_CNT_THD_GAIN               (volatile uint32_t *)((0x2f4d  << 2) + 0xff900000)
16203 //Bit 31:20, reserved
16204 //Bit 19:16, reg_mcdi_gmvlockcntmax.               max gmv lock count number, default = 6
16205 //Bit 15:12, reg_mcdi_gmvlockcntoffst.             offset for gmv lock count, -8~7, default =  0
16206 //Bit 11: 8, reg_mcdi_gmvlockcntgain.              gain for gmv lock count, normalized 8 as '1', 15 is set to 16, default = 8
16207 //Bit  7: 5, reserved
16208 //Bit  4: 0, reg_mcdi_gmvlockcntthd.               gmv count thd (>=) before be locked, 1~31, default = 4
16209 #define   MCDI_GMV_LOCK_ABS_DIF_THD                (0x2f4e)
16210 #define P_MCDI_GMV_LOCK_ABS_DIF_THD                (volatile uint32_t *)((0x2f4e  << 2) + 0xff900000)
16211 //Bit 31:27, reserved
16212 //Bit 26:24, reg_mcdi_gmvlockdifthd2.              gmv dif thd for third part, before locked, default = 3
16213 //Bit    23, reserved
16214 //Bit 22:20, reg_mcdi_gmvlockdifthd1.              gmv dif thd for second part, before locked, default = 2
16215 //Bit    19, reserved
16216 //Bit 18:16, reg_mcdi_gmvlockdifthd0.              gmv dif thd for first part, before locked, default = 1
16217 //Bit 15:13, reserved
16218 //Bit 12: 8, reg_mcdi_gmvlockabsmax.               max abs of gmv to be locked, default = 15
16219 //Bit  7: 5, reserved
16220 //Bit  4: 0, reg_mcdi_gmvlockabsmin.               min abs of gmv to be locked, default = 1
16221 #define   MCDI_HIGH_VERT_FRQ_DIF_THD               (0x2f4f)
16222 #define P_MCDI_HIGH_VERT_FRQ_DIF_THD               (volatile uint32_t *)((0x2f4f  << 2) + 0xff900000)
16223 //Bit 31: 0, reg_mcdi_highvertfrqfldavgdifthd.     high_vert_frq field average luma dif thd (>=), 3*Blk_Width*Blk_Height, set by software, default = 103680
16224 #define   MCDI_HIGH_VERT_FRQ_DIF_DIF_THD           (0x2f50)
16225 #define P_MCDI_HIGH_VERT_FRQ_DIF_DIF_THD           (volatile uint32_t *)((0x2f50  << 2) + 0xff900000)
16226 //Bit 31: 0, reg_mcdi_highvertfrqfldavgdifdifthd.  high_vert_frq field average luma dif's dif thd (<), 3*Blk_Width*Blk_Height, set by software, default = 103680
16227 #define   MCDI_HIGH_VERT_FRQ_RT_GAIN               (0x2f51)
16228 #define P_MCDI_HIGH_VERT_FRQ_RT_GAIN               (volatile uint32_t *)((0x2f51  << 2) + 0xff900000)
16229 //Bit 31:20, reserved
16230 //Bit 19:16, reg_mcdi_highvertfrqcntthd.           high_vert_frq count thd (>=) before locked, 1~31, default = 4
16231 //Bit 15: 8, reg_mcdi_highvertfrqbadsadrt.         ratio for high_vert_frq bad sad count, normalized 256 as '1', 255 is set to 256, default = 24
16232 //Bit  7: 0, reg_mcdi_highvertfrqbadbadwrt.        ratio for high_vert_frq badw count, normalized 256 as '1', 255 is set to 256, default = 130
16233 #define   MCDI_MOTION_PARADOX_THD                  (0x2f52)
16234 #define P_MCDI_MOTION_PARADOX_THD                  (volatile uint32_t *)((0x2f52  << 2) + 0xff900000)
16235 //Bit 31:29, reserved
16236 //Bit 28:24, reg_mcdi_motionparadoxcntthd.         motion paradox count thd (>=) before locked, 1~31, default = 4
16237 //Bit 23:22, reserved
16238 //Bit 21:16, reg_mcdi_motionparadoxgmvthd.         abs gmv thd (<) of motion paradox, 0~32, note that 32 means invalid gmv, be careful, default = 32
16239 //Bit 15: 0, reserved
16240 #define   MCDI_MOTION_PARADOX_RT                   (0x2f53)
16241 #define P_MCDI_MOTION_PARADOX_RT                   (volatile uint32_t *)((0x2f53  << 2) + 0xff900000)
16242 //Bit 31:24, reserved
16243 //Bit 23:16, reg_mcdi_motionparadoxbadsadrt.       ratio for field bad sad count of motion paradox, normalized 256 as '1', 255 is set to 256, default = 24
16244 //Bit 15: 8, reg_mcdi_motionparadoxbadrelrt.       ratio for field bad reliabilty count of motion paradox, normalized 256 as '1', 255 is set to 256, default = 120
16245 //Bit  7: 0, reg_mcdi_motionparadoxmtnrt.          ratio for field motion count of motion paradox, normalized 256 as '1', 255 is set to 256, default = 218
16246 #define   MCDI_MOTION_REF_THD                      (0x2f54)
16247 #define P_MCDI_MOTION_REF_THD                      (volatile uint32_t *)((0x2f54  << 2) + 0xff900000)
16248 //Bit 31:24, reserved
16249 //Bit 23:20, reg_mcdi_motionrefoffst.              motion ref additive offset, default = 15
16250 //Bit 19:16, reg_mcdi_motionrefgain.               motion ref gain, normalized 8 as '1', default = 8
16251 //Bit 15:13, reserved
16252 //Bit 12: 8, reg_mcdi_motionrefrptmvthd.           abs thd (>=) of rpt mv (0~31, 32 means invalid) for motion ref, default = 1
16253 //Bit  7: 2, reg_mcdi_motionrefqmvthd.             min thd (>=) of abs qmv for motion ref, note that quarter mv's range is -63~63, default = 2
16254 //Bit  1: 0, reg_mcdi_motionreflpfmode.            Mv and (8 x repeat flg) 's lpf mode of motion refinement, 0: no lpf, 1: [1 2 1], 2: [1 2 2 2 1], default = 1
16255 #define   MCDI_REL_COL_REF_RT                      (0x2f55)
16256 #define P_MCDI_REL_COL_REF_RT                      (volatile uint32_t *)((0x2f55  << 2) + 0xff900000)
16257 //Bit 31: 8, reserved
16258 //Bit  7: 0, reg_mcdi_relcolrefrt.                 ratio for column cofidence level against column number, for refinement, default = 135
16259 #define   MCDI_PD22_CHK_THD_RT                     (0x2f56)
16260 #define P_MCDI_PD22_CHK_THD_RT                     (volatile uint32_t *)((0x2f56  << 2) + 0xff900000)
16261 //Bit 31:27, reserved
16262 //Bit 26:16, reg_mcdi_pd22chkfltcntrt.             ratio for flat count of field pulldown 22 check, normalized 2048 as '1', 2047 is set to 2048, default = 1
16263 //Bit 15: 8, reg_mcdi_pd22chkcntrt.                ratio of pulldown 22 check count, normalized 256 as '1', 255 is set to 256, default = 100
16264 //Bit  7: 5, reserved
16265 //Bit  4: 0, reg_mcdi_pd22chkcntthd.               thd (>=) for pd22 count before locked, 1~31, default = 4
16266 #define   MCDI_CHAR_DET_DIF_THD                    (0x2f57)
16267 #define P_MCDI_CHAR_DET_DIF_THD                    (volatile uint32_t *)((0x2f57  << 2) + 0xff900000)
16268 //Bit 31:24, reserved
16269 //Bit 23:16, reg_mcdi_chardetminmaxdifthd.         thd (>=) for dif between min and max value, default = 64
16270 //Bit 15: 8, reg_mcdi_chardetmaxdifthd.            thd (<) for dif between max value, default = 17
16271 //Bit  7: 0, reg_mcdi_chardetmindifthd.            thd (<) for dif between min value, default = 17
16272 #define   MCDI_CHAR_DET_CNT_THD                    (0x2f58)
16273 #define P_MCDI_CHAR_DET_CNT_THD                    (volatile uint32_t *)((0x2f58  << 2) + 0xff900000)
16274 //Bit 31:21, reserved
16275 //Bit 20:16, reg_mcdi_chardettotcntthd.            thd (>=) for total count, 0~21, default = 18
16276 //Bit 15:13, reserved
16277 //Bit 12: 8, reg_mcdi_chardetmaxcntthd.            thd (>=) for max count, 0~21, default = 1
16278 //Bit  7: 5, reserved
16279 //Bit  4: 0, reg_mcdi_chardetmincntthd.            thd (>=) for min count, 0~21, default = 1
16280 //new add
16281 #define   MCDI_PD_22_CHK_WND0_X                    (0x2f59)
16282 #define P_MCDI_PD_22_CHK_WND0_X                    (volatile uint32_t *)((0x2f59  << 2) + 0xff900000)
16283 //Bit 31:29, reserved
16284 //Bit 28:16, reg_mcdi_pd22chkwnd0_x1                 u13, x1 for window 0, HSIZE-1, software control, default = 719
16285 //Bit 15:13, reserved
16286 //Bit 12: 0, reg_mcdi_pd22chkwnd0_x0                 u13, x0 for window 0, software control, default = 0
16287 #define   MCDI_PD_22_CHK_WND0_Y                    (0x2f5a)
16288 #define P_MCDI_PD_22_CHK_WND0_Y                    (volatile uint32_t *)((0x2f5a  << 2) + 0xff900000)
16289 //Bit 31:29, reserved
16290 //Bit 28:16, reg_mcdi_pd22chkwnd0_y1                 u13, y1 for window 0  software control, default = 39
16291 //Bit 15:13, reserved
16292 //Bit 12: 0, reg_mcdi_pd22chkwnd0_y0                 u13, y0 for window 0, software control, default = 0
16293 #define   MCDI_PD_22_CHK_WND1_X                    (0x2f5b)
16294 #define P_MCDI_PD_22_CHK_WND1_X                    (volatile uint32_t *)((0x2f5b  << 2) + 0xff900000)
16295 //Bit 31:29, reserved
16296 //Bit 28:16, reg_mcdi_pd22chkwnd1_x1                 u13, x1 for window 1, HSIZE-1, software control, default = 719
16297 //Bit 15:13, reserved
16298 //Bit 12: 0, reg_mcdi_pd22chkwnd1_x0                 u13, x0 for window 1, software control, default = 0
16299 #define   MCDI_PD_22_CHK_WND1_Y                    (0x2f5c)
16300 #define P_MCDI_PD_22_CHK_WND1_Y                    (volatile uint32_t *)((0x2f5c  << 2) + 0xff900000)
16301 //Bit 31:29, reserved
16302 //Bit 28:16, reg_mcdi_pd22chkwnd1_y1                 u13, y1 for window 1  software control, default = 199
16303 //Bit 15:13, reserved
16304 //Bit 12: 0, reg_mcdi_pd22chkwnd1_y0                 u13, y0 for window 1, software control, default = 40
16305 #define   MCDI_PD_22_CHK_FRC_LMV                   (0x2f5d)
16306 #define P_MCDI_PD_22_CHK_FRC_LMV                   (volatile uint32_t *)((0x2f5d  << 2) + 0xff900000)
16307 //Bit 31:11, reserved
16308 //Bit    10, reg_mcdi_pd22chklmvchk2               u1, lmv lock check while force vof for each windows, default = 1
16309 //Bit     9, reg_mcdi_pd22chklmvchk1               u1, lmv lock check while force vof for each windows, default = 0
16310 //Bit     8, reg_mcdi_pd22chklmvchk0               u1, lmv lock check while force vof for each windows, default = 0
16311 //Bit     7, reserved
16312 //Bit     6, reg_mcdi_pd22chkfrcpd2                u1, force pd flags for each windows, default = 0
16313 //Bit     5, reg_mcdi_pd22chkfrcpd1                u1, force pd flags for each windows, default = 0
16314 //Bit     4, reg_mcdi_pd22chkfrcpd0                u1, force pd flags for each windows, default = 0
16315 //Bit     3, reserved
16316 //Bit     2, reg_mcdi_pd22chkfrcvof2               u1, force vof flags for each windows, default = 1
16317 //Bit     1, reg_mcdi_pd22chkfrcvof1               u1, force vof flags for each windows, default = 0
16318 //Bit     0, reg_mcdi_pd22chkfrcvof0               u1, force vof flags for each windows, default = 0
16319 #define   MCDI_PD_22_CHK_FLG_CNT                   (0x2f5e)
16320 #define P_MCDI_PD_22_CHK_FLG_CNT                   (volatile uint32_t *)((0x2f5e  << 2) + 0xff900000)
16321 //Bit 31:27, reserved.
16322 //Bit    26, reg_mcdi_pd22chkflg2.                     pull down 22 flag of prevoius one field. initial = 0
16323 //Bit    25, reg_mcdi_pd22chkflg1.                     pull down 22 flag of prevoius one field. initial = 0
16324 //Bit    24, reg_mcdi_pd22chkflg.                      pull down 22 flag of prevoius one field. initial = 0
16325 //Bit 23:16, reg_mcdi_pd22chkcnt2.                     pull down 22 count till prevoius one field. initial = 0
16326 //Bit 15: 8, reg_mcdi_pd22chkcnt1.                     pull down 22 count till prevoius one field. initial = 0
16327 //Bit  7: 0, reg_mcdi_pd22chkcnt.                      pull down 22 count till prevoius one field. initial = 0
16328 #define   MCDI_RO_FLD_PD_22_PRE_CNT1               (0x2fca)
16329 #define P_MCDI_RO_FLD_PD_22_PRE_CNT1               (volatile uint32_t *)((0x2fca  << 2) + 0xff900000)
16330 //Bit 31: 0, ro_mcdi_fldpd22precnt1.              prevoius pd22 check count of whole pre one field (block based). initial = 0
16331 #define   MCDI_RO_FLD_PD_22_FOR_CNT1               (0x2fcb)
16332 #define P_MCDI_RO_FLD_PD_22_FOR_CNT1               (volatile uint32_t *)((0x2fcb  << 2) + 0xff900000)
16333 //Bit 31: 0, ro_mcdi_fldpd22forcnt1.              forward pd22 check count of whole pre one field (block based). initial = 0
16334 #define   MCDI_RO_FLD_PD_22_FLT_CNT1               (0x2fcc)
16335 #define P_MCDI_RO_FLD_PD_22_FLT_CNT1               (volatile uint32_t *)((0x2fcc  << 2) + 0xff900000)
16336 //Bit 31: 0, ro_mcdi_fldpd22fltcnt1.              flat count (for pd22 check) of whole pre one field (block based). initial = 0
16337 #define   MCDI_RO_FLD_PD_22_PRE_CNT2               (0x2fcd)
16338 #define P_MCDI_RO_FLD_PD_22_PRE_CNT2               (volatile uint32_t *)((0x2fcd  << 2) + 0xff900000)
16339 //Bit 31: 0, ro_mcdi_fldpd22precnt2.              prevoius pd22 check count of whole pre one field (block based). initial = 0
16340 #define   MCDI_RO_FLD_PD_22_FOR_CNT2               (0x2fce)
16341 #define P_MCDI_RO_FLD_PD_22_FOR_CNT2               (volatile uint32_t *)((0x2fce  << 2) + 0xff900000)
16342 //Bit 31: 0, ro_mcdi_fldpd22forcnt2.              forward pd22 check count of whole pre one field (block based). initial = 0
16343 #define   MCDI_RO_FLD_PD_22_FLT_CNT2               (0x2fcf)
16344 #define P_MCDI_RO_FLD_PD_22_FLT_CNT2               (volatile uint32_t *)((0x2fcf  << 2) + 0xff900000)
16345 //Bit 31: 0, ro_mcdi_fldpd22fltcnt2.              flat count (for pd22 check) of whole pre one field (block based). initial = 0
16346 #define   MCDI_FIELD_MV                            (0x2f60)
16347 #define P_MCDI_FIELD_MV                            (volatile uint32_t *)((0x2f60  << 2) + 0xff900000)
16348 //Bit 31:24, reg_mcdi_pd22chkcnt
16349 //Bit 23:16, reg_mcdi_fieldgmvcnt
16350 //Bit    15, reg_mcdi_pd22chkflg
16351 //Bit    14, reg_mcdi_fieldgmvlock
16352 //Bit 13: 8, reg_mcdi_fieldrptmv.                  last field rpt mv
16353 //Bit  7: 6, reserved
16354 //Bit  5: 0, reg_mcdi_fieldgmv.                    last field gmv
16355 #define   MCDI_FIELD_HVF_PRDX_CNT                  (0x2f61)
16356 #define P_MCDI_FIELD_HVF_PRDX_CNT                  (volatile uint32_t *)((0x2f61  << 2) + 0xff900000)
16357 //Bit 31:24, reg_mcdi_motionparadoxcnt.
16358 //Bit 23:17, reserved
16359 //Bit    16, reg_mcdi_motionparadoxflg.
16360 //Bit 15: 8, reg_mcdi_highvertfrqcnt.
16361 //Bit  7: 4, reserved
16362 //Bit  3: 2, reg_mcdi_highvertfrqphase.
16363 //Bit     1, reserved
16364 //Bit     0, reg_mcdi_highvertfrqflg.
16365 #define   MCDI_FIELD_LUMA_AVG_SUM_0                (0x2f62)
16366 #define P_MCDI_FIELD_LUMA_AVG_SUM_0                (volatile uint32_t *)((0x2f62  << 2) + 0xff900000)
16367 //Bit 31: 0, reg_mcdi_fld_luma_avg_sum0.
16368 #define   MCDI_FIELD_LUMA_AVG_SUM_1                (0x2f63)
16369 #define P_MCDI_FIELD_LUMA_AVG_SUM_1                (volatile uint32_t *)((0x2f63  << 2) + 0xff900000)
16370 //Bit 31: 0, reg_mcdi_fld_luma_avg_sum1.
16371 #define   MCDI_YCBCR_BLEND_CRTL                    (0x2f64)
16372 #define P_MCDI_YCBCR_BLEND_CRTL                    (volatile uint32_t *)((0x2f64  << 2) + 0xff900000)
16373 //Bit 31:16, reserved
16374 //Bit 15: 8, reg_mcdi_ycbcrblendgain.              ycbcr blending gain for cbcr in ycbcr. default = 0
16375 //Bit  7: 2, reserved.
16376 //Bit  1: 0, reg_mcdi_ycbcrblendmode.              0:y+cmb(cb,cr), 1:med(r,g,b), 2:max(r,g,b), default = 2
16377 #define   MCDI_MCVECWR_CANVAS_SIZE                 (0x2f65)
16378 #define P_MCDI_MCVECWR_CANVAS_SIZE                 (volatile uint32_t *)((0x2f65  << 2) + 0xff900000)
16379 #define   MCDI_MCVECRD_CANVAS_SIZE                 (0x2f66)
16380 #define P_MCDI_MCVECRD_CANVAS_SIZE                 (volatile uint32_t *)((0x2f66  << 2) + 0xff900000)
16381 #define   MCDI_MCINFOWR_CANVAS_SIZE                (0x2f67)
16382 #define P_MCDI_MCINFOWR_CANVAS_SIZE                (volatile uint32_t *)((0x2f67  << 2) + 0xff900000)
16383 #define   MCDI_MCINFORD_CANVAS_SIZE                (0x2f68)
16384 #define P_MCDI_MCINFORD_CANVAS_SIZE                (volatile uint32_t *)((0x2f68  << 2) + 0xff900000)
16385 #define   MCDI_MCVECWR_X                           (0x2f92)
16386 #define P_MCDI_MCVECWR_X                           (volatile uint32_t *)((0x2f92  << 2) + 0xff900000)
16387 #define   MCDI_MCVECWR_Y                           (0x2f93)
16388 #define P_MCDI_MCVECWR_Y                           (volatile uint32_t *)((0x2f93  << 2) + 0xff900000)
16389 #define   MCDI_MCVECWR_CTRL                        (0x2f94)
16390 #define P_MCDI_MCVECWR_CTRL                        (volatile uint32_t *)((0x2f94  << 2) + 0xff900000)
16391 #define   MCDI_MCVECRD_X                           (0x2f95)
16392 #define P_MCDI_MCVECRD_X                           (volatile uint32_t *)((0x2f95  << 2) + 0xff900000)
16393 #define   MCDI_MCVECRD_Y                           (0x2f96)
16394 #define P_MCDI_MCVECRD_Y                           (volatile uint32_t *)((0x2f96  << 2) + 0xff900000)
16395 #define   MCDI_MCVECRD_CTRL                        (0x2f97)
16396 #define P_MCDI_MCVECRD_CTRL                        (volatile uint32_t *)((0x2f97  << 2) + 0xff900000)
16397 #define   MCDI_MCINFOWR_X                          (0x2f98)
16398 #define P_MCDI_MCINFOWR_X                          (volatile uint32_t *)((0x2f98  << 2) + 0xff900000)
16399 #define   MCDI_MCINFOWR_Y                          (0x2f99)
16400 #define P_MCDI_MCINFOWR_Y                          (volatile uint32_t *)((0x2f99  << 2) + 0xff900000)
16401 #define   MCDI_MCINFOWR_CTRL                       (0x2f9a)
16402 #define P_MCDI_MCINFOWR_CTRL                       (volatile uint32_t *)((0x2f9a  << 2) + 0xff900000)
16403 #define   MCDI_MCINFORD_X                          (0x2f9b)
16404 #define P_MCDI_MCINFORD_X                          (volatile uint32_t *)((0x2f9b  << 2) + 0xff900000)
16405 #define   MCDI_MCINFORD_Y                          (0x2f9c)
16406 #define P_MCDI_MCINFORD_Y                          (volatile uint32_t *)((0x2f9c  << 2) + 0xff900000)
16407 #define   MCDI_MCINFORD_CTRL                       (0x2f9d)
16408 #define P_MCDI_MCINFORD_CTRL                       (volatile uint32_t *)((0x2f9d  << 2) + 0xff900000)
16409 // ================================================================== MC registers ========================================================================================================
16410 #define   MCDI_MC_CRTL                             (0x2f70)
16411 #define P_MCDI_MC_CRTL                             (volatile uint32_t *)((0x2f70  << 2) + 0xff900000)
16412 //Bit 31: 9, reserved
16413 //Bit     8, reg_mcdi_mcpreflg.                    flag to use previous field for MC, 0:forward field, 1: previous field, default = 1
16414 //Bit     7, reg_mcdi_mcrelrefbycolcfden.          enable rel refinement by column cofidence in mc blending, default = 1
16415 //Bit  6: 5, reg_mcdi_mclpfen.                     enable mc pixles/rel lpf, 0:disable, 1: lpf rel, 2: lpf mc pxls, 3: lpf both rel and mc pxls, default = 0
16416 //Bit  4: 2, reg_mcdi_mcdebugmode.                 enable mc debug mode, 0:disable, 1: split left/right, 2: split top/bottom, 3: debug mv, 4: debug rel, default = 0
16417 //Bit  1: 0, reg_mcdi_mcen.                        mcdi enable mode, 0:disable, 1: blend with ma, 2: full mc, default = 1
16418 #define   MCDI_MC_LPF_MSK_0                        (0x2f71)
16419 #define P_MCDI_MC_LPF_MSK_0                        (volatile uint32_t *)((0x2f71  << 2) + 0xff900000)
16420 //Bit 31:21, reserved
16421 //Bit 20:16, reg_mcdi_mclpfmsk02.                  mc lpf coef. 2 for pixel 0 of current block, normalized 16 as '1', default = 0
16422 //Bit 15:13, reserved
16423 //Bit 12: 8, reg_mcdi_mclpfmsk01.                  mc lpf coef. 1 for pixel 0 of current block, normalized 16 as '1', default = 9
16424 //Bit  7: 5, reserved
16425 //Bit  4: 0, reg_mcdi_mclpfmsk00.                  mc lpf coef. 0 for pixel 0 of current block, normalized 16 as '1', default = 7
16426 #define   MCDI_MC_LPF_MSK_1                        (0x2f72)
16427 #define P_MCDI_MC_LPF_MSK_1                        (volatile uint32_t *)((0x2f72  << 2) + 0xff900000)
16428 //Bit 31:21, reserved
16429 //Bit 20:16, reg_mcdi_mclpfmsk12.                  mc lpf coef. 2 for pixel 1 of current block, 0~16, normalized 16 as '1', default = 0
16430 //Bit 15:13, reserved
16431 //Bit 12: 8, reg_mcdi_mclpfmsk11.                  mc lpf coef. 1 for pixel 1 of current block, 0~16, normalized 16 as '1', default = 11
16432 //Bit  7: 5, reserved
16433 //Bit  4: 0, reg_mcdi_mclpfmsk10.                  mc lpf coef. 0 for pixel 1 of current block, 0~16, normalized 16 as '1', default = 5
16434 #define   MCDI_MC_LPF_MSK_2                        (0x2f73)
16435 #define P_MCDI_MC_LPF_MSK_2                        (volatile uint32_t *)((0x2f73  << 2) + 0xff900000)
16436 //Bit 31:21, reserved
16437 //Bit 20:16, reg_mcdi_mclpfmsk22.                  mc lpf coef. 2 for pixel 2 of current block, 0~16, normalized 16 as '1', default = 1
16438 //Bit 15:13, reserved
16439 //Bit 12: 8, reg_mcdi_mclpfmsk21.                  mc lpf coef. 1 for pixel 2 of current block, 0~16, normalized 16 as '1', default = 14
16440 //Bit  7: 5, reserved
16441 //Bit  4: 0, reg_mcdi_mclpfmsk20.                  mc lpf coef. 0 for pixel 2 of current block, 0~16, normalized 16 as '1', default = 1
16442 #define   MCDI_MC_LPF_MSK_3                        (0x2f74)
16443 #define P_MCDI_MC_LPF_MSK_3                        (volatile uint32_t *)((0x2f74  << 2) + 0xff900000)
16444 //Bit 31:21, reserved
16445 //Bit 20:16, reg_mcdi_mclpfmsk32.                  mc lpf coef. 2 for pixel 3 of current block, 0~16, normalized 16 as '1', default = 5
16446 //Bit 15:13, reserved
16447 //Bit 12: 8, reg_mcdi_mclpfmsk31.                  mc lpf coef. 1 for pixel 3 of current block, 0~16, normalized 16 as '1', default = 11
16448 //Bit  7: 5, reserved
16449 //Bit  4: 0, reg_mcdi_mclpfmsk30.                  mc lpf coef. 0 for pixel 3 of current block, 0~16, normalized 16 as '1', default = 0
16450 #define   MCDI_MC_LPF_MSK_4                        (0x2f75)
16451 #define P_MCDI_MC_LPF_MSK_4                        (volatile uint32_t *)((0x2f75  << 2) + 0xff900000)
16452 //Bit 31:21, reserved
16453 //Bit 20:16, reg_mcdi_mclpfmsk42.                  mc lpf coef. 2 for pixel 4 of current block, 0~16, normalized 16 as '1', default = 7
16454 //Bit 15:13, reserved
16455 //Bit 12: 8, reg_mcdi_mclpfmsk41.                  mc lpf coef. 1 for pixel 4 of current block, 0~16, normalized 16 as '1', default = 9
16456 //Bit  7: 5, reserved
16457 //Bit  4: 0, reg_mcdi_mclpfmsk40.                  mc lpf coef. 0 for pixel 4 of current block, 0~16, normalized 16 as '1', default = 0
16458 #define   MCDI_MC_REL_GAIN_OFFST_0                 (0x2f76)
16459 #define P_MCDI_MC_REL_GAIN_OFFST_0                 (volatile uint32_t *)((0x2f76  << 2) + 0xff900000)
16460 //Bit 31:26, reserved
16461 //Bit    25, reg_mcdi_mcmotionparadoxflg.          flag of motion paradox, initial with 0 and read from software, default = 0
16462 //Bit    24, reg_mcdi_mchighvertfrqflg.            flag of high vert frq, initial with 0 and read from software, default = 0
16463 //Bit 23:16, reg_mcdi_mcmotionparadoxoffst.        offset (rel + offset) for rel (MC blending coef.) refinement if motion paradox detected before MC blending before MC blending, default = 128
16464 //Bit 15:12, reserved
16465 //Bit 11: 8, reg_mcdi_mcmotionparadoxgain.         gain for rel (MC blending coef.) refinement if motion paradox detected before MC blending, normalized 8 as '1', set 15 to 16, default = 8
16466 //Bit  7: 4, reg_mcdi_mchighvertfrqoffst.          minus offset (alpha - offset) for motion (MA blending coef.) refinement if high vertical frequency detected before MA blending, default = 15
16467 //Bit  3: 0, reg_mcdi_mchighvertfrqgain.           gain for motion (MA blending coef.) refinement if high vertical frequency detected before MA blending, normalized 8 as '1', set 15 to 16, default = 8
16468 #define   MCDI_MC_REL_GAIN_OFFST_1                 (0x2f77)
16469 #define P_MCDI_MC_REL_GAIN_OFFST_1                 (volatile uint32_t *)((0x2f77  << 2) + 0xff900000)
16470 //Bit 31:24, reg_mcdi_mcoutofboundrayoffst.        offset (rel + offset) for rel (MC blending coef.) refinement if MC pointed out of boundray before MC blending before MC blending, default = 255
16471 //Bit 23:20, reserved
16472 //Bit 19:16, reg_mcdi_mcoutofboundraygain.         gain for rel (MC blending coef.) refinement if MC pointed out of boundray before MC blending, normalized 8 as '1', set 15 to 16, default = 8
16473 //Bit 15: 8, reg_mcdi_mcrelrefbycolcfdoffst.       offset (rel + offset) for rel (MC blending coef.) refinement if motion paradox detected before MC blending before MC blending, default = 255
16474 //Bit  7: 4, reserved.
16475 //Bit  3: 0, reg_mcdi_mcrelrefbycolcfdgain.        gain for rel (MC blending coef.) refinement if column cofidence failed before MC blending, normalized 8 as '1', set 15 to 16, default = 8
16476 #define   MCDI_MC_COL_CFD_0                        (0x2f78)
16477 #define P_MCDI_MC_COL_CFD_0                        (volatile uint32_t *)((0x2f78  << 2) + 0xff900000)
16478 //Bit 31: 0, mcdi_mc_col_cfd_0.                    column cofidence value 0 read from software. initial = 0
16479 #define   MCDI_MC_COL_CFD_1                        (0x2f79)
16480 #define P_MCDI_MC_COL_CFD_1                        (volatile uint32_t *)((0x2f79  << 2) + 0xff900000)
16481 //Bit 31: 0, mcdi_mc_col_cfd_1.                    column cofidence value 1 read from software. initial = 0
16482 #define   MCDI_MC_COL_CFD_2                        (0x2f7a)
16483 #define P_MCDI_MC_COL_CFD_2                        (volatile uint32_t *)((0x2f7a  << 2) + 0xff900000)
16484 //Bit 31: 0, mcdi_mc_col_cfd_2.                    column cofidence value 2 read from software. initial = 0
16485 #define   MCDI_MC_COL_CFD_3                        (0x2f7b)
16486 #define P_MCDI_MC_COL_CFD_3                        (volatile uint32_t *)((0x2f7b  << 2) + 0xff900000)
16487 //Bit 31: 0, mcdi_mc_col_cfd_3.                    column cofidence value 3 read from software. initial = 0
16488 #define   MCDI_MC_COL_CFD_4                        (0x2f7c)
16489 #define P_MCDI_MC_COL_CFD_4                        (volatile uint32_t *)((0x2f7c  << 2) + 0xff900000)
16490 //Bit 31: 0, mcdi_mc_col_cfd_4.                    column cofidence value 4 read from software. initial = 0
16491 #define   MCDI_MC_COL_CFD_5                        (0x2f7d)
16492 #define P_MCDI_MC_COL_CFD_5                        (volatile uint32_t *)((0x2f7d  << 2) + 0xff900000)
16493 //Bit 31: 0, mcdi_mc_col_cfd_5.                    column cofidence value 5 read from software. initial = 0
16494 #define   MCDI_MC_COL_CFD_6                        (0x2f7e)
16495 #define P_MCDI_MC_COL_CFD_6                        (volatile uint32_t *)((0x2f7e  << 2) + 0xff900000)
16496 //Bit 31: 0, mcdi_mc_col_cfd_6.                    column cofidence value 6 read from software. initial = 0
16497 #define   MCDI_MC_COL_CFD_7                        (0x2f7f)
16498 #define P_MCDI_MC_COL_CFD_7                        (volatile uint32_t *)((0x2f7f  << 2) + 0xff900000)
16499 //Bit 31: 0, mcdi_mc_col_cfd_7.                    column cofidence value 7 read from software. initial = 0
16500 #define   MCDI_MC_COL_CFD_8                        (0x2f80)
16501 #define P_MCDI_MC_COL_CFD_8                        (volatile uint32_t *)((0x2f80  << 2) + 0xff900000)
16502 //Bit 31: 0, mcdi_mc_col_cfd_8.                    column cofidence value 8 read from software. initial = 0
16503 #define   MCDI_MC_COL_CFD_9                        (0x2f81)
16504 #define P_MCDI_MC_COL_CFD_9                        (volatile uint32_t *)((0x2f81  << 2) + 0xff900000)
16505 //Bit 31: 0, mcdi_mc_col_cfd_9.                    column cofidence value 9 read from software. initial = 0
16506 #define   MCDI_MC_COL_CFD_10                       (0x2f82)
16507 #define P_MCDI_MC_COL_CFD_10                       (volatile uint32_t *)((0x2f82  << 2) + 0xff900000)
16508 //Bit 31: 0, mcdi_mc_col_cfd_10.                   column cofidence value 10 read from software. initial = 0
16509 #define   MCDI_MC_COL_CFD_11                       (0x2f83)
16510 #define P_MCDI_MC_COL_CFD_11                       (volatile uint32_t *)((0x2f83  << 2) + 0xff900000)
16511 //Bit 31: 0, mcdi_mc_col_cfd_11.                   column cofidence value 11 read from software. initial = 0
16512 #define   MCDI_MC_COL_CFD_12                       (0x2f84)
16513 #define P_MCDI_MC_COL_CFD_12                       (volatile uint32_t *)((0x2f84  << 2) + 0xff900000)
16514 //Bit 31: 0, mcdi_mc_col_cfd_12.                   column cofidence value 12 read from software. initial = 0
16515 #define   MCDI_MC_COL_CFD_13                       (0x2f85)
16516 #define P_MCDI_MC_COL_CFD_13                       (volatile uint32_t *)((0x2f85  << 2) + 0xff900000)
16517 //Bit 31: 0, mcdi_mc_col_cfd_13.                   column cofidence value 13 read from software. initial = 0
16518 #define   MCDI_MC_COL_CFD_14                       (0x2f86)
16519 #define P_MCDI_MC_COL_CFD_14                       (volatile uint32_t *)((0x2f86  << 2) + 0xff900000)
16520 //Bit 31: 0, mcdi_mc_col_cfd_14.                   column cofidence value 14 read from software. initial = 0
16521 #define   MCDI_MC_COL_CFD_15                       (0x2f87)
16522 #define P_MCDI_MC_COL_CFD_15                       (volatile uint32_t *)((0x2f87  << 2) + 0xff900000)
16523 //Bit 31: 0, mcdi_mc_col_cfd_15.                   column cofidence value 15 read from software. initial = 0
16524 #define   MCDI_MC_COL_CFD_16                       (0x2f88)
16525 #define P_MCDI_MC_COL_CFD_16                       (volatile uint32_t *)((0x2f88  << 2) + 0xff900000)
16526 //Bit 31: 0, mcdi_mc_col_cfd_16.                   column cofidence value 16 read from software. initial = 0
16527 #define   MCDI_MC_COL_CFD_17                       (0x2f89)
16528 #define P_MCDI_MC_COL_CFD_17                       (volatile uint32_t *)((0x2f89  << 2) + 0xff900000)
16529 //Bit 31: 0, mcdi_mc_col_cfd_17.                   column cofidence value 17 read from software. initial = 0
16530 #define   MCDI_MC_COL_CFD_18                       (0x2f8a)
16531 #define P_MCDI_MC_COL_CFD_18                       (volatile uint32_t *)((0x2f8a  << 2) + 0xff900000)
16532 //Bit 31: 0, mcdi_mc_col_cfd_18.                   column cofidence value 18 read from software. initial = 0
16533 #define   MCDI_MC_COL_CFD_19                       (0x2f8b)
16534 #define P_MCDI_MC_COL_CFD_19                       (volatile uint32_t *)((0x2f8b  << 2) + 0xff900000)
16535 //Bit 31: 0, mcdi_mc_col_cfd_19.                   column cofidence value 19 read from software. initial = 0
16536 #define   MCDI_MC_COL_CFD_20                       (0x2f8c)
16537 #define P_MCDI_MC_COL_CFD_20                       (volatile uint32_t *)((0x2f8c  << 2) + 0xff900000)
16538 //Bit 31: 0, mcdi_mc_col_cfd_20.                   column cofidence value 20 read from software. initial = 0
16539 #define   MCDI_MC_COL_CFD_21                       (0x2f8d)
16540 #define P_MCDI_MC_COL_CFD_21                       (volatile uint32_t *)((0x2f8d  << 2) + 0xff900000)
16541 //Bit 31: 0, mcdi_mc_col_cfd_21.                   column cofidence value 21 read from software. initial = 0
16542 #define   MCDI_MC_COL_CFD_22                       (0x2f8e)
16543 #define P_MCDI_MC_COL_CFD_22                       (volatile uint32_t *)((0x2f8e  << 2) + 0xff900000)
16544 //Bit 31: 0, mcdi_mc_col_cfd_22.                   column cofidence value 22 read from software. initial = 0
16545 #define   MCDI_MC_COL_CFD_23                       (0x2f8f)
16546 #define P_MCDI_MC_COL_CFD_23                       (volatile uint32_t *)((0x2f8f  << 2) + 0xff900000)
16547 //Bit 31: 0, mcdi_mc_col_cfd_23.                   column cofidence value 23 read from software. initial = 0
16548 #define   MCDI_MC_COL_CFD_24                       (0x2f90)
16549 #define P_MCDI_MC_COL_CFD_24                       (volatile uint32_t *)((0x2f90  << 2) + 0xff900000)
16550 //Bit 31: 0, mcdi_mc_col_cfd_24.                   column cofidence value 24 read from software. initial = 0
16551 #define   MCDI_MC_COL_CFD_25                       (0x2f91)
16552 #define P_MCDI_MC_COL_CFD_25                       (volatile uint32_t *)((0x2f91  << 2) + 0xff900000)
16553 //Bit 31: 0, mcdi_mc_col_cfd_25.                   column cofidence value 25 read from software. initial = 0
16554 // ===================================================================================== PRE RO Registers ==========================================================================================
16555 #define   MCDI_RO_FLD_LUMA_AVG_SUM                 (0x2fa0)
16556 #define P_MCDI_RO_FLD_LUMA_AVG_SUM                 (volatile uint32_t *)((0x2fa0  << 2) + 0xff900000)
16557 //Bit 31: 0, ro_mcdi_fldlumaavgsum.                block's luma avg sum of current filed (block based). initial = 0
16558 #define   MCDI_RO_GMV_VLD_CNT                      (0x2fa1)
16559 #define P_MCDI_RO_GMV_VLD_CNT                      (volatile uint32_t *)((0x2fa1  << 2) + 0xff900000)
16560 //Bit 31: 0, ro_mcdi_gmvvldcnt.                    valid gmv's count of pre one filed (block based). initial = 0
16561 #define   MCDI_RO_RPT_FLG_CNT                      (0x2fa2)
16562 #define P_MCDI_RO_RPT_FLG_CNT                      (volatile uint32_t *)((0x2fa2  << 2) + 0xff900000)
16563 //Bit 31: 0, ro_mcdi_rptflgcnt.                    repeat mv's count of pre one filed (block based). initial = 0
16564 #define   MCDI_RO_FLD_BAD_SAD_CNT                  (0x2fa3)
16565 #define P_MCDI_RO_FLD_BAD_SAD_CNT                  (volatile uint32_t *)((0x2fa3  << 2) + 0xff900000)
16566 //Bit 31: 0, ro_mcdi_fldbadsadcnt.                 bad sad count of whole pre one field (block based). initial = 0
16567 #define   MCDI_RO_FLD_BAD_BADW_CNT                 (0x2fa4)
16568 #define P_MCDI_RO_FLD_BAD_BADW_CNT                 (volatile uint32_t *)((0x2fa4  << 2) + 0xff900000)
16569 //Bit 31: 0, ro_mcdi_fldbadbadwcnt.                bad badw count of whole pre one field (block based). initial = 0
16570 #define   MCDI_RO_FLD_BAD_REL_CNT                  (0x2fa5)
16571 #define P_MCDI_RO_FLD_BAD_REL_CNT                  (volatile uint32_t *)((0x2fa5  << 2) + 0xff900000)
16572 //Bit 31: 0, ro_mcdi_fldbadrelcnt.                 bad rel count of whole pre one field (block based). initial = 0
16573 #define   MCDI_RO_FLD_MTN_CNT                      (0x2fa6)
16574 #define P_MCDI_RO_FLD_MTN_CNT                      (volatile uint32_t *)((0x2fa6  << 2) + 0xff900000)
16575 //Bit 31: 0, ro_mcdi_fldmtncnt.                    motion count of whole pre one field (pixel based). initial = 0
16576 #define   MCDI_RO_FLD_VLD_CNT                      (0x2fa7)
16577 #define P_MCDI_RO_FLD_VLD_CNT                      (volatile uint32_t *)((0x2fa7  << 2) + 0xff900000)
16578 //Bit 31: 0, ro_mcdi_fldvldcnt.                    valid motion count of whole pre one field (pixel based). initial = 0
16579 #define   MCDI_RO_FLD_PD_22_PRE_CNT                (0x2fa8)
16580 #define P_MCDI_RO_FLD_PD_22_PRE_CNT                (volatile uint32_t *)((0x2fa8  << 2) + 0xff900000)
16581 //Bit 31: 0, ro_mcdi_fldpd22precnt.                prevoius pd22 check count of whole pre one field (block based). initial = 0
16582 #define   MCDI_RO_FLD_PD_22_FOR_CNT                (0x2fa9)
16583 #define P_MCDI_RO_FLD_PD_22_FOR_CNT                (volatile uint32_t *)((0x2fa9  << 2) + 0xff900000)
16584 //Bit 31: 0, ro_mcdi_fldpd22forcnt.                forward pd22 check count of whole pre one field (block based). initial = 0
16585 #define   MCDI_RO_FLD_PD_22_FLT_CNT                (0x2faa)
16586 #define P_MCDI_RO_FLD_PD_22_FLT_CNT                (volatile uint32_t *)((0x2faa  << 2) + 0xff900000)
16587 //Bit 31: 0, ro_mcdi_fldpd22fltcnt.                flat count (for pd22 check) of whole pre one field (block based). initial = 0
16588 #define   MCDI_RO_HIGH_VERT_FRQ_FLG                (0x2fab)
16589 #define P_MCDI_RO_HIGH_VERT_FRQ_FLG                (volatile uint32_t *)((0x2fab  << 2) + 0xff900000)
16590 //Bit 31:16, reserved.
16591 //Bit 15: 8, ro_mcdi_highvertfrqcnt.               high vertical frequency count till prevoius one field. initial = 0
16592 //Bit  7: 3, reserved.
16593 //Bit  2: 1, ro_mcdi_highvertfrqphase.             high vertical frequency phase of prevoius one field. initial = 2
16594 //Bit     0, ro_mcdi_highvertfrqflg.               high vertical frequency flag of prevoius one field. initial = 0
16595 #define   MCDI_RO_GMV_LOCK_FLG                     (0x2fac)
16596 #define P_MCDI_RO_GMV_LOCK_FLG                     (volatile uint32_t *)((0x2fac  << 2) + 0xff900000)
16597 //Bit 31:16, reserved.
16598 //Bit 15: 8, ro_mcdi_gmvlckcnt.                    global mv lock count till prevoius one field. initial = 0
16599 //Bit  7: 2, ro_mcdi_gmv.                          global mv of prevoius one field. -31~31, initial = 32 (invalid value)
16600 //Bit     1, ro_mcdi_zerogmvlckflg.                zero global mv lock flag of prevoius one field. initial = 0
16601 //Bit     0, ro_mcdi_gmvlckflg.                    global mv lock flag of prevoius one field. initial = 0
16602 #define   MCDI_RO_RPT_MV                           (0x2fad)
16603 #define P_MCDI_RO_RPT_MV                           (volatile uint32_t *)((0x2fad  << 2) + 0xff900000)
16604 //Bit 5: 0, ro_mcdi_rptmv.                         repeate mv of prevoius one field. -31~31, initial = 32 (invalid value)
16605 #define   MCDI_RO_MOTION_PARADOX_FLG               (0x2fae)
16606 #define P_MCDI_RO_MOTION_PARADOX_FLG               (volatile uint32_t *)((0x2fae  << 2) + 0xff900000)
16607 //Bit 31:16, reserved.
16608 //Bit 15: 8, ro_mcdi_motionparadoxcnt.             motion paradox count till prevoius one field. initial = 0
16609 //Bit  7: 1, reserved.
16610 //Bit     0, ro_mcdi_motionparadoxflg.             motion paradox flag of prevoius one field. initial = 0
16611 #define   MCDI_RO_PD_22_FLG                        (0x2faf)
16612 #define P_MCDI_RO_PD_22_FLG                        (volatile uint32_t *)((0x2faf  << 2) + 0xff900000)
16613 //Bit 31:27, reserved.
16614 //Bit    26, ro_mcdi_pd22flg2.                     pull down 22 flag of prevoius one field. initial = 0
16615 //Bit    25, ro_mcdi_pd22flg1.                     pull down 22 flag of prevoius one field. initial = 0
16616 //Bit    24, ro_mcdi_pd22flg.                      pull down 22 flag of prevoius one field. initial = 0
16617 //Bit 23:16, ro_mcdi_pd22cnt2.                     pull down 22 count till prevoius one field. initial = 0
16618 //Bit 15: 8, ro_mcdi_pd22cnt1.                     pull down 22 count till prevoius one field. initial = 0
16619 //Bit  7: 0, ro_mcdi_pd22cnt.                      pull down 22 count till prevoius one field. initial = 0
16620 #define   MCDI_RO_COL_CFD_0                        (0x2fb0)
16621 #define P_MCDI_RO_COL_CFD_0                        (volatile uint32_t *)((0x2fb0  << 2) + 0xff900000)
16622 //Bit 31: 0, ro_mcdi_col_cfd_0.                    column cofidence value 0. initial = 0
16623 #define   MCDI_RO_COL_CFD_1                        (0x2fb1)
16624 #define P_MCDI_RO_COL_CFD_1                        (volatile uint32_t *)((0x2fb1  << 2) + 0xff900000)
16625 //Bit 31: 0, ro_mcdi_col_cfd_1.                    column cofidence value 1. initial = 0
16626 #define   MCDI_RO_COL_CFD_2                        (0x2fb2)
16627 #define P_MCDI_RO_COL_CFD_2                        (volatile uint32_t *)((0x2fb2  << 2) + 0xff900000)
16628 //Bit 31: 0, ro_mcdi_col_cfd_2.                    column cofidence value 2. initial = 0
16629 #define   MCDI_RO_COL_CFD_3                        (0x2fb3)
16630 #define P_MCDI_RO_COL_CFD_3                        (volatile uint32_t *)((0x2fb3  << 2) + 0xff900000)
16631 //Bit 31: 0, ro_mcdi_col_cfd_3.                    column cofidence value 3. initial = 0
16632 #define   MCDI_RO_COL_CFD_4                        (0x2fb4)
16633 #define P_MCDI_RO_COL_CFD_4                        (volatile uint32_t *)((0x2fb4  << 2) + 0xff900000)
16634 //Bit 31: 0, ro_mcdi_col_cfd_4.                    column cofidence value 4. initial = 0
16635 #define   MCDI_RO_COL_CFD_5                        (0x2fb5)
16636 #define P_MCDI_RO_COL_CFD_5                        (volatile uint32_t *)((0x2fb5  << 2) + 0xff900000)
16637 //Bit 31: 0, ro_mcdi_col_cfd_5.                    column cofidence value 5. initial = 0
16638 #define   MCDI_RO_COL_CFD_6                        (0x2fb6)
16639 #define P_MCDI_RO_COL_CFD_6                        (volatile uint32_t *)((0x2fb6  << 2) + 0xff900000)
16640 //Bit 31: 0, ro_mcdi_col_cfd_6.                    column cofidence value 6. initial = 0
16641 #define   MCDI_RO_COL_CFD_7                        (0x2fb7)
16642 #define P_MCDI_RO_COL_CFD_7                        (volatile uint32_t *)((0x2fb7  << 2) + 0xff900000)
16643 //Bit 31: 0, ro_mcdi_col_cfd_7.                    column cofidence value 7. initial = 0
16644 #define   MCDI_RO_COL_CFD_8                        (0x2fb8)
16645 #define P_MCDI_RO_COL_CFD_8                        (volatile uint32_t *)((0x2fb8  << 2) + 0xff900000)
16646 //Bit 31: 0, ro_mcdi_col_cfd_8.                    column cofidence value 8. initial = 0
16647 #define   MCDI_RO_COL_CFD_9                        (0x2fb9)
16648 #define P_MCDI_RO_COL_CFD_9                        (volatile uint32_t *)((0x2fb9  << 2) + 0xff900000)
16649 //Bit 31: 0, ro_mcdi_col_cfd_9.                    column cofidence value 9. initial = 0
16650 #define   MCDI_RO_COL_CFD_10                       (0x2fba)
16651 #define P_MCDI_RO_COL_CFD_10                       (volatile uint32_t *)((0x2fba  << 2) + 0xff900000)
16652 //Bit 31: 0, ro_mcdi_col_cfd_10.                   column cofidence value 10. initial = 0
16653 #define   MCDI_RO_COL_CFD_11                       (0x2fbb)
16654 #define P_MCDI_RO_COL_CFD_11                       (volatile uint32_t *)((0x2fbb  << 2) + 0xff900000)
16655 //Bit 31: 0, ro_mcdi_col_cfd_11.                   column cofidence value 11. initial = 0
16656 #define   MCDI_RO_COL_CFD_12                       (0x2fbc)
16657 #define P_MCDI_RO_COL_CFD_12                       (volatile uint32_t *)((0x2fbc  << 2) + 0xff900000)
16658 //Bit 31: 0, ro_mcdi_col_cfd_12.                   column cofidence value 12. initial = 0
16659 #define   MCDI_RO_COL_CFD_13                       (0x2fbd)
16660 #define P_MCDI_RO_COL_CFD_13                       (volatile uint32_t *)((0x2fbd  << 2) + 0xff900000)
16661 //Bit 31: 0, ro_mcdi_col_cfd_13.                   column cofidence value 13. initial = 0
16662 #define   MCDI_RO_COL_CFD_14                       (0x2fbe)
16663 #define P_MCDI_RO_COL_CFD_14                       (volatile uint32_t *)((0x2fbe  << 2) + 0xff900000)
16664 //Bit 31: 0, ro_mcdi_col_cfd_14.                   column cofidence value 14. initial = 0
16665 #define   MCDI_RO_COL_CFD_15                       (0x2fbf)
16666 #define P_MCDI_RO_COL_CFD_15                       (volatile uint32_t *)((0x2fbf  << 2) + 0xff900000)
16667 //Bit 31: 0, ro_mcdi_col_cfd_15.                   column cofidence value 15. initial = 0
16668 #define   MCDI_RO_COL_CFD_16                       (0x2fc0)
16669 #define P_MCDI_RO_COL_CFD_16                       (volatile uint32_t *)((0x2fc0  << 2) + 0xff900000)
16670 //Bit 31: 0, ro_mcdi_col_cfd_16.                   column cofidence value 16. initial = 0
16671 #define   MCDI_RO_COL_CFD_17                       (0x2fc1)
16672 #define P_MCDI_RO_COL_CFD_17                       (volatile uint32_t *)((0x2fc1  << 2) + 0xff900000)
16673 //Bit 31: 0, ro_mcdi_col_cfd_17.                   column cofidence value 17. initial = 0
16674 #define   MCDI_RO_COL_CFD_18                       (0x2fc2)
16675 #define P_MCDI_RO_COL_CFD_18                       (volatile uint32_t *)((0x2fc2  << 2) + 0xff900000)
16676 //Bit 31: 0, ro_mcdi_col_cfd_18.                   column cofidence value 18. initial = 0
16677 #define   MCDI_RO_COL_CFD_19                       (0x2fc3)
16678 #define P_MCDI_RO_COL_CFD_19                       (volatile uint32_t *)((0x2fc3  << 2) + 0xff900000)
16679 //Bit 31: 0, ro_mcdi_col_cfd_19.                   column cofidence value 19. initial = 0
16680 #define   MCDI_RO_COL_CFD_20                       (0x2fc4)
16681 #define P_MCDI_RO_COL_CFD_20                       (volatile uint32_t *)((0x2fc4  << 2) + 0xff900000)
16682 //Bit 31: 0, ro_mcdi_col_cfd_20.                   column cofidence value 20. initial = 0
16683 #define   MCDI_RO_COL_CFD_21                       (0x2fc5)
16684 #define P_MCDI_RO_COL_CFD_21                       (volatile uint32_t *)((0x2fc5  << 2) + 0xff900000)
16685 //Bit 31: 0, ro_mcdi_col_cfd_21.                   column cofidence value 21. initial = 0
16686 #define   MCDI_RO_COL_CFD_22                       (0x2fc6)
16687 #define P_MCDI_RO_COL_CFD_22                       (volatile uint32_t *)((0x2fc6  << 2) + 0xff900000)
16688 //Bit 31: 0, ro_mcdi_col_cfd_22.                   column cofidence value 22. initial = 0
16689 #define   MCDI_RO_COL_CFD_23                       (0x2fc7)
16690 #define P_MCDI_RO_COL_CFD_23                       (volatile uint32_t *)((0x2fc7  << 2) + 0xff900000)
16691 //Bit 31: 0, ro_mcdi_col_cfd_23.                   column cofidence value 23. initial = 0
16692 #define   MCDI_RO_COL_CFD_24                       (0x2fc8)
16693 #define P_MCDI_RO_COL_CFD_24                       (volatile uint32_t *)((0x2fc8  << 2) + 0xff900000)
16694 //Bit 31: 0, ro_mcdi_col_cfd_24.                   column cofidence value 24. initial = 0
16695 #define   MCDI_RO_COL_CFD_25                       (0x2fc9)
16696 #define P_MCDI_RO_COL_CFD_25                       (volatile uint32_t *)((0x2fc9  << 2) + 0xff900000)
16697 //Bit 31: 0, ro_mcdi_col_cfd_25.                   column cofidence value 25. initial = 0
16698 // add space 8'hd0-8'hef
16699 //
16700 // Reading file:  dipd_regs.h
16701 //
16702 // synopsys translate_off
16703 // synopsys translate_on
16704 // using 8'he0-8'hef
16705 #define   DIPD_COMB_CTRL0                          (0x2fd0)
16706 #define P_DIPD_COMB_CTRL0                          (volatile uint32_t *)((0x2fd0  << 2) + 0xff900000)
16707 //Bit 31:0,                             reg_pd_comb_ctrl0
16708 #define   DIPD_COMB_CTRL1                          (0x2fd1)
16709 #define P_DIPD_COMB_CTRL1                          (volatile uint32_t *)((0x2fd1  << 2) + 0xff900000)
16710 //Bit 31:0,                             reg_pd_comb_ctrl1
16711 #define   DIPD_COMB_CTRL2                          (0x2fd2)
16712 #define P_DIPD_COMB_CTRL2                          (volatile uint32_t *)((0x2fd2  << 2) + 0xff900000)
16713 //Bit 31:0,                             reg_pd_comb_ctrl2
16714 #define   DIPD_COMB_CTRL3                          (0x2fd3)
16715 #define P_DIPD_COMB_CTRL3                          (volatile uint32_t *)((0x2fd3  << 2) + 0xff900000)
16716 //Bit 31:0,                             reg_pd_comb_ctrl3
16717 #define   DIPD_COMB_CTRL4                          (0x2fd4)
16718 #define P_DIPD_COMB_CTRL4                          (volatile uint32_t *)((0x2fd4  << 2) + 0xff900000)
16719 //Bit 31:0,                             reg_pd_comb_ctrl4
16720 #define   DIPD_COMB_CTRL5                          (0x2fd5)
16721 #define P_DIPD_COMB_CTRL5                          (volatile uint32_t *)((0x2fd5  << 2) + 0xff900000)
16722 //Bit 31:0,                             reg_pd_comb_ctrl5
16723 #define   DIPD_RO_COMB_0                           (0x2fd6)
16724 #define P_DIPD_RO_COMB_0                           (volatile uint32_t *)((0x2fd6  << 2) + 0xff900000)
16725 //Bit 31:0,                             ro_pd_comb_0
16726 #define   DIPD_RO_COMB_1                           (0x2fd7)
16727 #define P_DIPD_RO_COMB_1                           (volatile uint32_t *)((0x2fd7  << 2) + 0xff900000)
16728 //Bit 31:0,                             ro_pd_comb_1
16729 #define   DIPD_RO_COMB_2                           (0x2fd8)
16730 #define P_DIPD_RO_COMB_2                           (volatile uint32_t *)((0x2fd8  << 2) + 0xff900000)
16731 //Bit 31:0,                             ro_pd_comb_2
16732 #define   DIPD_RO_COMB_3                           (0x2fd9)
16733 #define P_DIPD_RO_COMB_3                           (volatile uint32_t *)((0x2fd9  << 2) + 0xff900000)
16734 //Bit 31:0,                             ro_pd_comb_3
16735 #define   DIPD_RO_COMB_4                           (0x2fda)
16736 #define P_DIPD_RO_COMB_4                           (volatile uint32_t *)((0x2fda  << 2) + 0xff900000)
16737 //Bit 31:0,                             ro_pd_comb_4
16738 #define   DIPD_RO_COMB_5                           (0x2fdb)
16739 #define P_DIPD_RO_COMB_5                           (volatile uint32_t *)((0x2fdb  << 2) + 0xff900000)
16740 //Bit 31:0,                             ro_pd_comb_5
16741 #define   DIPD_RO_COMB_6                           (0x2fdc)
16742 #define P_DIPD_RO_COMB_6                           (volatile uint32_t *)((0x2fdc  << 2) + 0xff900000)
16743 //Bit 31:0,                             ro_pd_comb_6
16744 #define   DIPD_RO_COMB_7                           (0x2fdd)
16745 #define P_DIPD_RO_COMB_7                           (volatile uint32_t *)((0x2fdd  << 2) + 0xff900000)
16746 //Bit 31:0,                             ro_pd_comb_7
16747 #define   DIPD_RO_COMB_8                           (0x2fde)
16748 #define P_DIPD_RO_COMB_8                           (volatile uint32_t *)((0x2fde  << 2) + 0xff900000)
16749 //Bit 31:0,                             ro_pd_comb_8
16750 #define   DIPD_RO_COMB_9                           (0x2fdf)
16751 #define P_DIPD_RO_COMB_9                           (volatile uint32_t *)((0x2fdf  << 2) + 0xff900000)
16752 //Bit 31:0,                             ro_pd_comb_9
16753 #define   DIPD_RO_COMB_10                          (0x2fe0)
16754 #define P_DIPD_RO_COMB_10                          (volatile uint32_t *)((0x2fe0  << 2) + 0xff900000)
16755 //Bit 31:0,                             ro_pd_comb_10
16756 #define   DIPD_RO_COMB_11                          (0x2fe1)
16757 #define P_DIPD_RO_COMB_11                          (volatile uint32_t *)((0x2fe1  << 2) + 0xff900000)
16758 //Bit 31:0,                             ro_pd_comb_11
16759 #define   DIPD_RO_COMB_12                          (0x2fe2)
16760 #define P_DIPD_RO_COMB_12                          (volatile uint32_t *)((0x2fe2  << 2) + 0xff900000)
16761 //Bit 31:0,                             ro_pd_comb_12
16762 #define   DIPD_RO_COMB_13                          (0x2fe3)
16763 #define P_DIPD_RO_COMB_13                          (volatile uint32_t *)((0x2fe3  << 2) + 0xff900000)
16764 //Bit 31:0,                             ro_pd_comb_13
16765 #define   DIPD_RO_COMB_14                          (0x2fe4)
16766 #define P_DIPD_RO_COMB_14                          (volatile uint32_t *)((0x2fe4  << 2) + 0xff900000)
16767 //Bit 31:0,                             ro_pd_comb_14
16768 #define   DIPD_RO_COMB_15                          (0x2fe5)
16769 #define P_DIPD_RO_COMB_15                          (volatile uint32_t *)((0x2fe5  << 2) + 0xff900000)
16770 //Bit 31:0,                             ro_pd_comb_15
16771 #define   DIPD_RO_COMB_16                          (0x2fe6)
16772 #define P_DIPD_RO_COMB_16                          (volatile uint32_t *)((0x2fe6  << 2) + 0xff900000)
16773 //Bit 31:0,                             ro_pd_comb_16
16774 #define   DIPD_RO_COMB_17                          (0x2fe7)
16775 #define P_DIPD_RO_COMB_17                          (volatile uint32_t *)((0x2fe7  << 2) + 0xff900000)
16776 //Bit 31:0,                             ro_pd_comb_17
16777 #define   DIPD_RO_COMB_18                          (0x2fe8)
16778 #define P_DIPD_RO_COMB_18                          (volatile uint32_t *)((0x2fe8  << 2) + 0xff900000)
16779 //Bit 31:0,                             ro_pd_comb_18
16780 #define   DIPD_RO_COMB_19                          (0x2fe9)
16781 #define P_DIPD_RO_COMB_19                          (volatile uint32_t *)((0x2fe9  << 2) + 0xff900000)
16782 //Bit 31:0,                             ro_pd_comb_19
16783 #define   DIPD_RO_COMB_20                          (0x2fea)
16784 #define P_DIPD_RO_COMB_20                          (volatile uint32_t *)((0x2fea  << 2) + 0xff900000)
16785 //Bit 31:0,                             ro_pd_comb_20
16786 // synopsys translate_off
16787 // synopsys translate_on
16788 //
16789 // Closing file:  dipd_regs.h
16790 //
16791 // addr space 8'hf0-8'hff
16792 //
16793 // Reading file:  nr3_tnr_regs.h
16794 //
16795 // synopsys translate_off
16796 // synopsys translate_on
16797 #define   NR3_MODE                                 (0x2ff0)
16798 #define P_NR3_MODE                                 (volatile uint32_t *)((0x2ff0  << 2) + 0xff900000)
16799 //Bit 31: 6        reserved
16800 //Bit  5           reg_nr3_vtxt_mode         // unsigned , default = 0  0: avg; 1:MAX
16801 //Bit  4           reg_3dnr_nr3_cbyy_ignor_coop    // unsigned , default = 0  ignore coop condition for cbyy motion decision
16802 //Bit  3           reg_3dnr_nr3_ybyc_ignor_cnoop   // unsigned , default = 0  ignore cnoop condition for ybyc motion decision
16803 //Bit  2: 0        reg_3dnr_nr3_suremot_txt_mode   // unsigned , default = 3  0: cur, 1:p2; 2: (cur+p2)/2; 3/up: min(cur,p2)
16804 #define   NR3_COOP_PARA                            (0x2ff1)
16805 #define P_NR3_COOP_PARA                            (volatile uint32_t *)((0x2ff1  << 2) + 0xff900000)
16806 //Bit 31:22        reserved
16807 //Bit 21:20        reg_3dnr_nr3_coop_mode    // unsigned , default = 2  0 original pixel 1: [1 2 1]/4 lpf; 2: [1 2 2 2 1]/8; 3: 3x3 lpf
16808 //Bit 19:16        reg_3dnr_nr3_coop_ratio    // unsigned , default = 8  cur and p2 color oop decision ratio:  (avg1<(dif1*ratio/8 + ofst));
16809 //Bit 15: 8        reg_3dnr_nr3_coop_ofset    // signed , default = -1  cur and p2 color oop decision ofst:  (avg1<(dif1*ratio/8 + ofst));
16810 //Bit  7: 0        reg_3dnr_nr3_coop_sat_thrd // unsigned , default = 0  cur and p2 color oop decision min(sat0,sat1) threshold;
16811 #define   NR3_CNOOP_GAIN                           (0x2ff2)
16812 #define P_NR3_CNOOP_GAIN                           (volatile uint32_t *)((0x2ff2  << 2) + 0xff900000)
16813 //Bit 31:24        reserved
16814 //Bit 23:20        reg_3dnr_nr3_cnoop_ratio0   // unsigned , default = 8  cur and p2 color noop decision ratio0:  (avg1<(MAX(sat0,sat2)*ratio0/8 + ofst0));
16815 //Bit 19:16        reg_3dnr_nr3_cnoop_ratio1   // unsigned , default = 8  cur and p2 color noop decision ratio1:  (dif1<(MIN(sat0,sat2)*ratio1/8 + ofst1));
16816 //Bit 15: 8        reg_3dnr_nr3_cnoop_ofset0   // signed , default = 25  cur and p2 color noop decision ofset0:  (avg1<(MAX(sat0,sat2)*ratio0/8 + ofst0));
16817 //Bit  7: 0        reg_3dnr_nr3_cnoop_ofset1   // signed , default = 0  cur and p2 color noop decision ofset1:  (dif1<(MIN(sat0,sat2)*ratio1/8 + ofst1));
16818 #define   NR3_YMOT_PARA                            (0x2ff3)
16819 #define P_NR3_YMOT_PARA                            (volatile uint32_t *)((0x2ff3  << 2) + 0xff900000)
16820 //Bit 31:20        reserved
16821 //Bit 19           reg_3dnr_nr3_ymot_only_en  // unsigned , default = 1  enable signal for ignor chroma motion: (ytxt &coop)
16822 //Bit 18           reg_3dnr_nr3_ymot_only_cmtmode  // unsigned , default = 1  0: cmot=ymot; 1: cmot = MIN(ymot, cmot)
16823 //Bit 17:16        reg_3dnr_nr3_ymot_only_txtmode  // unsigned , default = 0  0, min(txt0,txt2); 1, max(txt0,txt2);2, (txt0+txt2)/2; 3: sat(txt0, txt2)
16824 //Bit 15: 8        reg_3dnr_nr3_ymot_only_txtthrd  // unsigned , default = 10  threshold to luma texture to decide use ymot only
16825 //Bit  7: 0        reg_3dnr_nr3_ymot_only_motthrd  // unsigned , default = 30  threshold to luma motion to decide use ymot only
16826 #define   NR3_CMOT_PARA                            (0x2ff4)
16827 #define P_NR3_CMOT_PARA                            (volatile uint32_t *)((0x2ff4  << 2) + 0xff900000)
16828 //Bit 31:20        reserved
16829 //Bit 19           reg_3dnr_nr3_cmot_only_en  // unsigned , default = 1  enable signal for ignor luma motion: (ctxt &cnoop)
16830 //Bit 18           reg_3dnr_nr3_cmot_only_ymtmode  // unsigned , default = 0  0: ymot=cmot+ymot/4; 1: ymot = MIN(ymot, cmot)
16831 //Bit 17:16        reg_3dnr_nr3_cmot_only_txtmode  // unsigned , default = 0  0, min(txt0,txt2); 1, max(txt0,txt2);2, (txt0+txt2)/2; 3: sat(txt0, txt2)
16832 //Bit 15: 8        reg_3dnr_nr3_cmot_only_txtthrd  // unsigned , default = 20  threshold to chroma texture to decide use cmot only
16833 //Bit  7: 0        reg_3dnr_nr3_cmot_only_motthrd  // unsigned , default = 15  threshold to chroma motion to decide use cmot only
16834 #define   NR3_SUREMOT_YGAIN                        (0x2ff5)
16835 #define P_NR3_SUREMOT_YGAIN                        (volatile uint32_t *)((0x2ff5  << 2) + 0xff900000)
16836 //Bit 31:24        reg_3dnr_nr3_suremot_dec_yrate  // unsigned , default = 16  (norm 16)lpfMot>(dec_rate*txt +ofst) then force lpfMot*frc_gain+frc_ofset
16837 //Bit 23:16        reg_3dnr_nr3_suremot_dec_yofst  // unsigned , default = 12   lpfMot>(dec_rate*txt +ofst) then force lpfMot*frc_gain+frc_ofset
16838 //Bit 15: 8        reg_3dnr_nr3_suremot_frc_ygain  // unsigned , default = 64  (norm 8)lpfMot>(dec_rate*txt +ofst) then force lpfMot*frc_gain+frc_ofset
16839 //Bit  7: 0        reg_3dnr_nr3_suremot_frc_yofst  // unsigned , default = 20  lpfMot>(dec_rate*txt +ofst) then force lpfMot*frc_gain+frc_ofset
16840 #define   NR3_SUREMOT_CGAIN                        (0x2ff6)
16841 #define P_NR3_SUREMOT_CGAIN                        (volatile uint32_t *)((0x2ff6  << 2) + 0xff900000)
16842 //Bit 31:24        reg_3dnr_nr3_suremot_dec_crate  // unsigned , default = 34  (norm 16)lpfMot>(dec_rate*txt +ofst) then force lpfMot*frc_gain+frc_ofset
16843 //Bit 23:16        reg_3dnr_nr3_suremot_dec_cofst  // unsigned , default = 38   lpfMot>(dec_rate*txt +ofst) then force lpfMot*frc_gain+frc_ofset
16844 //Bit 15: 8        reg_3dnr_nr3_suremot_frc_cgain  // unsigned , default = 64  (norm 8)lpfMot>(dec_rate*txt +ofst) then force lpfMot*frc_gain+frc_ofset
16845 //Bit  7: 0        reg_3dnr_nr3_suremot_frc_cofst  // unsigned , default = 20  lpfMot>(dec_rate*txt +ofst) then force lpfMot*frc_gain+frc_ofset
16846 // synopsys translate_off
16847 // synopsys translate_on
16848 //
16849 // Closing file:  nr3_tnr_regs.h
16850 //
16851 #define   LBUF_TOP_CTRL                            (0x2fff)
16852 #define P_LBUF_TOP_CTRL                            (volatile uint32_t *)((0x2fff  << 2) + 0xff900000)
16853 //bit 23:22   mode_444c422
16854 //bit 21:20   mode_422c444
16855 //bit 17      lbuf_fmt444_mode
16856 //bit 16      lbuf_line5_mode
16857 //bit 12:0    pre_lbuf_size
16858 // synopsys translate_off
16859 // synopsys translate_on
16860 //
16861 // Closing file:  mcdi_regs.h
16862 //
16863 //  VPU_VLOCK register    (16'h3000 - 16'h30ff)
16864 //========================================================================
16865 //`define VPU_VLOCK_VCBUS_BASE                   8'h30
16866 //
16867 // Reading file:  vpu_vlock_reg.h
16868 //
16869 // synopsys translate_off
16870 // synopsys translate_on
16871 // ----------------------------
16872 // VPU_VLOCK 0x30
16873 // ----------------------------
16874 // -----------------------------------------------
16875 // CBUS_BASE:  VPU_VLOCK_VCBUS_BASE = 0x30
16876 // -----------------------------------------------
16877 #define   VPU_VLOCK_CTRL                           (0x3000)
16878 #define P_VPU_VLOCK_CTRL                           (volatile uint32_t *)((0x3000  << 2) + 0xff900000)
16879 #define   VPU_VLOCK_MISC_CTRL                      (0x3001)
16880 #define P_VPU_VLOCK_MISC_CTRL                      (volatile uint32_t *)((0x3001  << 2) + 0xff900000)
16881 #define   VPU_VLOCK_LOOP0_ACCUM_LMT                (0x3002)
16882 #define P_VPU_VLOCK_LOOP0_ACCUM_LMT                (volatile uint32_t *)((0x3002  << 2) + 0xff900000)
16883 #define   VPU_VLOCK_LOOP0_CTRL0                    (0x3003)
16884 #define P_VPU_VLOCK_LOOP0_CTRL0                    (volatile uint32_t *)((0x3003  << 2) + 0xff900000)
16885 #define   VPU_VLOCK_LOOP1_CTRL0                    (0x3004)
16886 #define P_VPU_VLOCK_LOOP1_CTRL0                    (volatile uint32_t *)((0x3004  << 2) + 0xff900000)
16887 #define   VPU_VLOCK_LOOP1_IMISSYNC_MAX             (0x3005)
16888 #define P_VPU_VLOCK_LOOP1_IMISSYNC_MAX             (volatile uint32_t *)((0x3005  << 2) + 0xff900000)
16889 #define   VPU_VLOCK_LOOP1_IMISSYNC_MIN             (0x3006)
16890 #define P_VPU_VLOCK_LOOP1_IMISSYNC_MIN             (volatile uint32_t *)((0x3006  << 2) + 0xff900000)
16891 #define   VPU_VLOCK_OVWRITE_ACCUM0                 (0x3007)
16892 #define P_VPU_VLOCK_OVWRITE_ACCUM0                 (volatile uint32_t *)((0x3007  << 2) + 0xff900000)
16893 #define   VPU_VLOCK_OVWRITE_ACCUM1                 (0x3008)
16894 #define P_VPU_VLOCK_OVWRITE_ACCUM1                 (volatile uint32_t *)((0x3008  << 2) + 0xff900000)
16895 #define   VPU_VLOCK_OUTPUT0_CAPT_LMT               (0x3009)
16896 #define P_VPU_VLOCK_OUTPUT0_CAPT_LMT               (volatile uint32_t *)((0x3009  << 2) + 0xff900000)
16897 #define   VPU_VLOCK_OUTPUT0_PLL_LMT                (0x300a)
16898 #define P_VPU_VLOCK_OUTPUT0_PLL_LMT                (volatile uint32_t *)((0x300a  << 2) + 0xff900000)
16899 #define   VPU_VLOCK_OUTPUT1_CAPT_LMT               (0x300b)
16900 #define P_VPU_VLOCK_OUTPUT1_CAPT_LMT               (volatile uint32_t *)((0x300b  << 2) + 0xff900000)
16901 #define   VPU_VLOCK_OUTPUT1_PLL_LMT                (0x300c)
16902 #define P_VPU_VLOCK_OUTPUT1_PLL_LMT                (volatile uint32_t *)((0x300c  << 2) + 0xff900000)
16903 #define   VPU_VLOCK_LOOP1_PHSDIF_TGT               (0x300d)
16904 #define P_VPU_VLOCK_LOOP1_PHSDIF_TGT               (volatile uint32_t *)((0x300d  << 2) + 0xff900000)
16905 #define   VPU_VLOCK_RO_LOOP0_ACCUM                 (0x300e)
16906 #define P_VPU_VLOCK_RO_LOOP0_ACCUM                 (volatile uint32_t *)((0x300e  << 2) + 0xff900000)
16907 #define   VPU_VLOCK_RO_LOOP1_ACCUM                 (0x300f)
16908 #define P_VPU_VLOCK_RO_LOOP1_ACCUM                 (volatile uint32_t *)((0x300f  << 2) + 0xff900000)
16909 #define   VPU_VLOCK_OROW_OCOL_MAX                  (0x3010)
16910 #define P_VPU_VLOCK_OROW_OCOL_MAX                  (volatile uint32_t *)((0x3010  << 2) + 0xff900000)
16911 #define   VPU_VLOCK_RO_VS_I_DIST                   (0x3011)
16912 #define P_VPU_VLOCK_RO_VS_I_DIST                   (volatile uint32_t *)((0x3011  << 2) + 0xff900000)
16913 #define   VPU_VLOCK_RO_VS_O_DIST                   (0x3012)
16914 #define P_VPU_VLOCK_RO_VS_O_DIST                   (volatile uint32_t *)((0x3012  << 2) + 0xff900000)
16915 #define   VPU_VLOCK_RO_LINE_PIX_ADJ                (0x3013)
16916 #define P_VPU_VLOCK_RO_LINE_PIX_ADJ                (volatile uint32_t *)((0x3013  << 2) + 0xff900000)
16917 #define   VPU_VLOCK_RO_OUTPUT_00_01                (0x3014)
16918 #define P_VPU_VLOCK_RO_OUTPUT_00_01                (volatile uint32_t *)((0x3014  << 2) + 0xff900000)
16919 #define   VPU_VLOCK_RO_OUTPUT_10_11                (0x3015)
16920 #define P_VPU_VLOCK_RO_OUTPUT_10_11                (volatile uint32_t *)((0x3015  << 2) + 0xff900000)
16921 #define   VPU_VLOCK_MX4096                         (0x3016)
16922 #define P_VPU_VLOCK_MX4096                         (volatile uint32_t *)((0x3016  << 2) + 0xff900000)
16923 #define   VPU_VLOCK_STBDET_WIN0_WIN1               (0x3017)
16924 #define P_VPU_VLOCK_STBDET_WIN0_WIN1               (volatile uint32_t *)((0x3017  << 2) + 0xff900000)
16925 #define   VPU_VLOCK_STBDET_CLP                     (0x3018)
16926 #define P_VPU_VLOCK_STBDET_CLP                     (volatile uint32_t *)((0x3018  << 2) + 0xff900000)
16927 #define   VPU_VLOCK_STBDET_ABS_WIN0                (0x3019)
16928 #define P_VPU_VLOCK_STBDET_ABS_WIN0                (volatile uint32_t *)((0x3019  << 2) + 0xff900000)
16929 #define   VPU_VLOCK_STBDET_ABS_WIN1                (0x301a)
16930 #define P_VPU_VLOCK_STBDET_ABS_WIN1                (volatile uint32_t *)((0x301a  << 2) + 0xff900000)
16931 #define   VPU_VLOCK_STBDET_SGN_WIN0                (0x301b)
16932 #define P_VPU_VLOCK_STBDET_SGN_WIN0                (volatile uint32_t *)((0x301b  << 2) + 0xff900000)
16933 #define   VPU_VLOCK_STBDET_SGN_WIN1                (0x301c)
16934 #define P_VPU_VLOCK_STBDET_SGN_WIN1                (volatile uint32_t *)((0x301c  << 2) + 0xff900000)
16935 #define   VPU_VLOCK_ADJ_EN_SYNC_CTRL               (0x301d)
16936 #define P_VPU_VLOCK_ADJ_EN_SYNC_CTRL               (volatile uint32_t *)((0x301d  << 2) + 0xff900000)
16937 #define   VPU_VLOCK_GCLK_EN                        (0x301e)
16938 #define P_VPU_VLOCK_GCLK_EN                        (volatile uint32_t *)((0x301e  << 2) + 0xff900000)
16939 #define   VPU_VLOCK_LOOP1_ACCUM_LMT                (0x301f)
16940 #define P_VPU_VLOCK_LOOP1_ACCUM_LMT                (volatile uint32_t *)((0x301f  << 2) + 0xff900000)
16941 #define   VPU_VLOCK_RO_M_INT_FRAC                  (0x3020)
16942 #define P_VPU_VLOCK_RO_M_INT_FRAC                  (volatile uint32_t *)((0x3020  << 2) + 0xff900000)
16943 // synopsys translate_off
16944 // synopsys translate_on
16945 //
16946 // Closing file:  vpu_vlock_reg.h
16947 //
16948 //`define VPPB_VCBUS_BASE                8'h31
16949 //
16950 // Reading file:  srscl_reg.h
16951 //
16952 // synopsys translate_off
16953 // synopsys translate_on
16954 // -----------------------------------------------
16955 // CBUS_BASE:  VPPB_VCBUS_BASE = 0x31
16956 // -----------------------------------------------
16957 ////=================================================================////
16958 //// vkeystone
16959 ////=================================================================////
16960 // 8'h00-8'h17
16961 //
16962 // Reading file:  vkstone_regs.h
16963 //
16964 // synopsys translate_off
16965 // synopsys translate_on
16966 #define   VKS_CTRL                                 (0x3100)
16967 #define P_VKS_CTRL                                 (volatile uint32_t *)((0x3100  << 2) + 0xff900000)
16968 //Bit 31           reg_vks_en                // unsigned , default = 1  enable signal of the vks function
16969 //Bit 30           reg_vks_scl_mode0         // unsigned , default = 1  : b0 mode of vks ofset mode, 0: offset= offset; 1: offset= offset*step= ofset/scale;
16970 //Bit 29           reg_vks_scl_mode1         // unsigned , default = 1  : b0 mode of vks ofset mode, 0: offset= offset; 1: offset= offset*step= ofset/scale;
16971 //Bit 28           reg_vks_fill_mode         // unsigned , default = 1  mode of out-of-boundary fill, 0 extension, 1: fill with the fill_value
16972 //Bit 27:26        reg_vks_row_inp_mode      // unsigned , default = 1  , interpolation mode from 16pieces ofset/step to each line ofset and step; 0: linear interpolation; 1: cubic interpolation (using ccoef)
16973 //Bit 25           reg_vks_border_ext_mode0  // unsigned , default = 0  , extend mode of the border data of luma and chroma, 0: copy the most border one; 1: extropolate the border one
16974 //Bit 24           reg_vks_border_ext_mode1  // unsigned , default = 0  , extend mode of the border data of luma and chroma, 0: copy the most border one; 1: extropolate the border one
16975 //Bit 23           reg_vks_obuf_mode0        // unsigned , default = 1  , mode of output buffer left/right side. 0: no precalculate active pixels during output fill region; 1: precaclc active pixels during output fill regions
16976 //Bit 22           reg_vks_obuf_mode1        // unsigned , default = 1  , mode of output buffer left/right side. 0: no precalculate active pixels during output fill region; 1: precaclc active pixels during output fill regions
16977 //Bit 21:20        reg_vks_obuf_mrgn0        // unsigned , default = 3  , margin pixels for left right most active pixel to the fill pixels to avoid jump
16978 //Bit 19:18        reg_vks_obuf_mrgn1        // unsigned , default = 3  , margin pixels for left right most active pixel to the fill pixels to avoid jump
16979 //Bit 17:16        reg_vks_phs_qmode         // unsigned , default = 2  , interpolation mode of the phase, 0: floor to 1/64 phase; 1: round to 1/64 phase; 2/3 linear intp
16980 //Bit 15: 0        reg_vks_row_scl           // unsigned , default = 11651  , scale of row to make it fit to the 16 pieces, scl = (2^23)/RowMax
16981 #define   VKS_OUT_WIN_SIZE                         (0x3101)
16982 #define P_VKS_OUT_WIN_SIZE                         (volatile uint32_t *)((0x3101  << 2) + 0xff900000)
16983 //Bit 31:30        reserved
16984 //Bit 29:16        reg_vks_ocolmax           // unsigned , default = 1280  output outer window col number, decided by the projector
16985 //Bit 15:14        reserved
16986 //Bit 13: 0        reg_vks_orowmax           // unsigned , default = 720  output outer window row number, decided by the projector
16987 #define   VKS_PRELPF_YCOEF0                        (0x3102)
16988 #define P_VKS_PRELPF_YCOEF0                        (volatile uint32_t *)((0x3102  << 2) + 0xff900000)
16989 //Bit 31:24        reg_vks_prelpf_ycoef0     // signed , default = -128  coef of horizontal luma prelpf for Keystone, normalized 128 as '1'
16990 //Bit 23:16        reg_vks_prelpf_ycoef1     // signed , default = 0  coef of horizontal luma prelpf for Keystone, normalized 128 as '1'
16991 //Bit 15: 8        reg_vks_prelpf_ycoef2     // signed , default = 0  coef of horizontal luma prelpf for Keystone, normalized 128 as '1'
16992 //Bit  7: 0        reg_vks_prelpf_ycoef3     // signed , default = 0  coef of horizontal luma prelpf for Keystone, normalized 128 as '1'
16993 #define   VKS_PRELPF_YCOEF1                        (0x3103)
16994 #define P_VKS_PRELPF_YCOEF1                        (volatile uint32_t *)((0x3103  << 2) + 0xff900000)
16995 //Bit 31:16        reserved
16996 //Bit 15: 8        reg_vks_prelpf_ycoef4     // signed , default = 0  coef of horizontal luma prelpf for Keystone, normalized 128 as '1'
16997 //Bit  7: 0        reg_vks_prelpf_ycoef5     // signed , default = 0  coef of horizontal luma prelpf for Keystone, normalized 128 as '1'
16998 #define   VKS_PRELPF_CCOEF0                        (0x3104)
16999 #define P_VKS_PRELPF_CCOEF0                        (volatile uint32_t *)((0x3104  << 2) + 0xff900000)
17000 //Bit 31:24        reg_vks_prelpf_ccoef0     // signed , default = -128  mode of horizontal chroma prelpf for Keystone, normalized 128 as '1'
17001 //Bit 23:16        reg_vks_prelpf_ccoef1     // signed , default = 0  mode of horizontal chroma prelpf for Keystone, normalized 128 as '1'
17002 //Bit 15: 8        reg_vks_prelpf_ccoef2     // signed , default = 0  mode of horizontal chroma prelpf for Keystone, normalized 128 as '1'
17003 //Bit  7: 0        reg_vks_prelpf_ccoef3     // signed , default = 0  mode of horizontal chroma prelpf for Keystone, normalized 128 as '1'
17004 #define   VKS_PRELPF_CCOEF1                        (0x3105)
17005 #define P_VKS_PRELPF_CCOEF1                        (volatile uint32_t *)((0x3105  << 2) + 0xff900000)
17006 //Bit 31:16        reserved
17007 //Bit 15: 8        reg_vks_prelpf_ccoef4     // signed , default = 0  mode of horizontal chroma prelpf for Keystone, normalized 128 as '1'
17008 //Bit  7: 0        reg_vks_prelpf_ccoef5     // signed , default = 0  mode of horizontal chroma prelpf for Keystone, normalized 128 as '1'
17009 #define   VKS_FILL_VAL                             (0x3106)
17010 #define P_VKS_FILL_VAL                             (volatile uint32_t *)((0x3106  << 2) + 0xff900000)
17011 //Bit 31:24        reserved
17012 //Bit 23:16        reg_vks_fill_value0       // unsigned , default = 0  , border fill color define. yuv: [0 128 128];   rgb:[0 0 0]
17013 //Bit 15: 8        reg_vks_fill_value1       // unsigned , default = 128  , border fill color define. yuv: [0 128 128];   rgb:[0 0 0]
17014 //Bit  7: 0        reg_vks_fill_value2       // unsigned , default = 128  , border fill color define. yuv: [0 128 128];   rgb:[0 0 0]
17015 #define   VKS_IWIN_HSIZE                           (0x3107)
17016 #define P_VKS_IWIN_HSIZE                           (volatile uint32_t *)((0x3107  << 2) + 0xff900000)
17017 //Bit 31:30        reserved
17018 //Bit 29:16        reg_vks_iwinx0            // unsigned , default = 160  , input start-col and end-col;
17019 //Bit 15:14        reserved
17020 //Bit 13: 0        reg_vks_iwinx1            // unsigned , default = 1279  , input start-col and end-col;
17021 #define   VKS_IWIN_VSIZE                           (0x3108)
17022 #define P_VKS_IWIN_VSIZE                           (volatile uint32_t *)((0x3108  << 2) + 0xff900000)
17023 //Bit 31:30        reserved
17024 //Bit 29:16        reg_vks_iwiny0            // unsigned , default = 0  , input start-row and end-row;
17025 //Bit 15:14        reserved
17026 //Bit 13: 0        reg_vks_iwiny1            // unsigned , default = 719  , input start-row and end-row;
17027 #define   VKS_TOP_MISC                             (0x3109)
17028 #define P_VKS_TOP_MISC                             (volatile uint32_t *)((0x3109  << 2) + 0xff900000)
17029 //Bit 31:19        reserved
17030 //Bit 18           reg_flt_en                // unsigned , default = 1
17031 //Bit 17           reg_frm_rst               // unsigned , default = 0
17032 //Bit 16           reg_ctrl_sync             // unsigned , default = 0
17033 //Bit 15: 8        blank_num                 // unsigned , default = 4
17034 //Bit  7: 0        flt_blank_num             // unsigned , default = 9
17035 #define   VKS_START_CTRL                           (0x310a)
17036 #define P_VKS_START_CTRL                           (volatile uint32_t *)((0x310a  << 2) + 0xff900000)
17037 //Bit 31:17        reserved
17038 //Bit 16           reg_vks_en_mode           // unsigned , default = 0
17039 //Bit 15: 0        reg_hold_phnum            // unsigned , default = 5
17040 #define   VKS_LBUF_SIZE                            (0x310b)
17041 #define P_VKS_LBUF_SIZE                            (volatile uint32_t *)((0x310b  << 2) + 0xff900000)
17042 //Bit 31:12        reserved
17043 //Bit 11: 0        reg_lbuf_depth            // unsigned , default = 1024
17044 #define   VKS_PARA_ADDR_PORT                       (0x310e)
17045 #define P_VKS_PARA_ADDR_PORT                       (volatile uint32_t *)((0x310e  << 2) + 0xff900000)
17046 #define   VKS_PARA_DATA_PORT                       (0x310f)
17047 #define P_VKS_PARA_DATA_PORT                       (volatile uint32_t *)((0x310f  << 2) + 0xff900000)
17048 
17049     #define VKS_SCL_OFSET00                        0x9  //
17050 //Bit 31:20        reserved
17051 //Bit 19: 0        reg_vks_scl_ofset0        // unsigned , default = 118534  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17052     #define VKS_SCL_OFSET01                        0xa  //
17053 //Bit 31:20        reserved
17054 //Bit 19: 0        reg_vks_scl_ofset1        // unsigned , default = 111450  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17055     #define VKS_SCL_OFSET02                        0xb  //
17056 //Bit 31:20        reserved
17057 //Bit 19: 0        reg_vks_scl_ofset2        // unsigned , default = 104366  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17058     #define VKS_SCL_OFSET03                        0xc  //
17059 //Bit 31:20        reserved
17060 //Bit 19: 0        reg_vks_scl_ofset3        // unsigned , default = 97283  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17061     #define VKS_SCL_OFSET04                        0xd  //
17062 //Bit 31:20        reserved
17063 //Bit 19: 0        reg_vks_scl_ofset4        // unsigned , default = 90199  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17064     #define VKS_SCL_OFSET05                        0xe  //
17065 //Bit 31:20        reserved
17066 //Bit 19: 0        reg_vks_scl_ofset5        // unsigned , default = 83115  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17067     #define VKS_SCL_OFSET06                        0xf  //
17068 //Bit 31:20        reserved
17069 //Bit 19: 0        reg_vks_scl_ofset6        // unsigned , default = 76031  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17070     #define VKS_SCL_OFSET07                       0x10  //
17071 //Bit 31:20        reserved
17072 //Bit 19: 0        reg_vks_scl_ofset7        // unsigned , default = 68947  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17073     #define VKS_SCL_OFSET08                       0x11  //
17074 //Bit 31:20        reserved
17075 //Bit 19: 0        reg_vks_scl_ofset8        // unsigned , default = 61864  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17076     #define VKS_SCL_OFSET09                       0x12  //
17077 //Bit 31:20        reserved
17078 //Bit 19: 0        reg_vks_scl_ofset9        // unsigned , default = 54780  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17079     #define VKS_SCL_OFSET10                       0x13  //
17080 //Bit 31:20        reserved
17081 //Bit 19: 0        reg_vks_scl_ofset10       // unsigned , default = 47696  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17082     #define VKS_SCL_OFSET11                       0x14  //
17083 //Bit 31:20        reserved
17084 //Bit 19: 0        reg_vks_scl_ofset11       // unsigned , default = 40612  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17085     #define VKS_SCL_OFSET12                       0x15  //
17086 //Bit 31:20        reserved
17087 //Bit 19: 0        reg_vks_scl_ofset12       // unsigned , default = 33528  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17088     #define VKS_SCL_OFSET13                       0x16  //
17089 //Bit 31:20        reserved
17090 //Bit 19: 0        reg_vks_scl_ofset13       // unsigned , default = 26444  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17091     #define VKS_SCL_OFSET14                       0x17  //
17092 //Bit 31:20        reserved
17093 //Bit 19: 0        reg_vks_scl_ofset14       // unsigned , default = 19361  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17094     #define VKS_SCL_OFSET15                       0x18  //
17095 //Bit 31:20        reserved
17096 //Bit 19: 0        reg_vks_scl_ofset15       // unsigned , default = 12277  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17097     #define VKS_SCL_OFSET16                       0x19  //
17098 //Bit 31:20        reserved
17099 //Bit 19: 0        reg_vks_scl_ofset16       // unsigned , default = 5193  , left offset of the input pixel offset from left, 12.8 12bits pixel + 8bits float phase
17100     #define VKS_SCL_STEP00                        0x1a  //
17101 //Bit 31:24        reserved
17102 //Bit 23: 0        reg_vks_scl_step0         // unsigned , default = 331378  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17103     #define VKS_SCL_STEP01                        0x1b  //
17104 //Bit 31:24        reserved
17105 //Bit 23: 0        reg_vks_scl_step1         // unsigned , default = 383191  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17106     #define VKS_SCL_STEP02                        0x1c  //
17107 //Bit 31:24        reserved
17108 //Bit 23: 0        reg_vks_scl_step2         // unsigned , default = 435004  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17109     #define VKS_SCL_STEP03                        0x1d  //
17110 //Bit 31:24        reserved
17111 //Bit 23: 0        reg_vks_scl_step3         // unsigned , default = 486818  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17112     #define VKS_SCL_STEP04                        0x1e  //
17113 //Bit 31:24        reserved
17114 //Bit 23: 0        reg_vks_scl_step4         // unsigned , default = 538631  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17115     #define VKS_SCL_STEP05                        0x1f  //
17116 //Bit 31:24        reserved
17117 //Bit 23: 0        reg_vks_scl_step5         // unsigned , default = 590444  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17118     #define VKS_SCL_STEP06                        0x20  //
17119 //Bit 31:24        reserved
17120 //Bit 23: 0        reg_vks_scl_step6         // unsigned , default = 642257  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17121     #define VKS_SCL_STEP07                        0x21  //
17122 //Bit 31:24        reserved
17123 //Bit 23: 0        reg_vks_scl_step7         // unsigned , default = 694070  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17124     #define VKS_SCL_STEP08                        0x22  //
17125 //Bit 31:24        reserved
17126 //Bit 23: 0        reg_vks_scl_step8         // unsigned , default = 745884  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17127     #define VKS_SCL_STEP09                        0x23  //
17128 //Bit 31:24        reserved
17129 //Bit 23: 0        reg_vks_scl_step9         // unsigned , default = 797697  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17130     #define VKS_SCL_STEP10                        0x24  //
17131 //Bit 31:24        reserved
17132 //Bit 23: 0        reg_vks_scl_step10        // unsigned , default = 849510  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17133     #define VKS_SCL_STEP11                        0x25  //
17134 //Bit 31:24        reserved
17135 //Bit 23: 0        reg_vks_scl_step11        // unsigned , default = 901323  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17136     #define VKS_SCL_STEP12                        0x26  //
17137 //Bit 31:24        reserved
17138 //Bit 23: 0        reg_vks_scl_step12        // unsigned , default = 953136  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17139     #define VKS_SCL_STEP13                        0x27  //
17140 //Bit 31:24        reserved
17141 //Bit 23: 0        reg_vks_scl_step13        // unsigned , default = 1004949  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17142     #define VKS_SCL_STEP14                        0x28  //
17143 //Bit 31:24        reserved
17144 //Bit 23: 0        reg_vks_scl_step14        // unsigned , default = 1056763  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17145     #define VKS_SCL_STEP15                        0x29  //
17146 //Bit 31:24        reserved
17147 //Bit 23: 0        reg_vks_scl_step15        // unsigned , default = 1108576  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17148     #define VKS_SCL_STEP16                        0x2a  //
17149 //Bit 31:24        reserved
17150 //Bit 23: 0        reg_vks_scl_step16        // unsigned , default = 1160389  , for ratio of each line (defined piece),step: 4.20 opixnum = (ipixnum<<20)/step;  scale:4.20 = 1/step
17151     #define VKS_PPS_YCOEF00                       0x2b  //
17152 //Bit 31:24        reg_vks_ycoef0            // signed , default = 0  poly-phase scalar coefs
17153 //Bit 23:16        reg_vks_ycoef1            // signed , default = 128  poly-phase scalar coefs
17154 //Bit 15: 8        reg_vks_ycoef2            // signed , default = 0  poly-phase scalar coefs
17155 //Bit  7: 0        reg_vks_ycoef3            // signed , default = 0  poly-phase scalar coefs
17156     #define VKS_PPS_YCOEF01                       0x2c  //
17157 //Bit 31:24        reg_vks_ycoef4            // signed , default = 0  poly-phase scalar coefs
17158 //Bit 23:16        reg_vks_ycoef5            // signed , default = 127  poly-phase scalar coefs
17159 //Bit 15: 8        reg_vks_ycoef6            // signed , default = 1  poly-phase scalar coefs
17160 //Bit  7: 0        reg_vks_ycoef7            // signed , default = 0  poly-phase scalar coefs
17161     #define VKS_PPS_YCOEF02                       0x2d  //
17162 //Bit 31:24        reg_vks_ycoef8            // signed , default = -1  poly-phase scalar coefs
17163 //Bit 23:16        reg_vks_ycoef9            // signed , default = 127  poly-phase scalar coefs
17164 //Bit 15: 8        reg_vks_ycoef10           // signed , default = 2  poly-phase scalar coefs
17165 //Bit  7: 0        reg_vks_ycoef11           // signed , default = 0  poly-phase scalar coefs
17166     #define VKS_PPS_YCOEF03                       0x2e  //
17167 //Bit 31:24        reg_vks_ycoef12           // signed , default = -2  poly-phase scalar coefs
17168 //Bit 23:16        reg_vks_ycoef13           // signed , default = 127  poly-phase scalar coefs
17169 //Bit 15: 8        reg_vks_ycoef14           // signed , default = 3  poly-phase scalar coefs
17170 //Bit  7: 0        reg_vks_ycoef15           // signed , default = 0  poly-phase scalar coefs
17171     #define VKS_PPS_YCOEF04                       0x2f  //
17172 //Bit 31:24        reg_vks_ycoef16           // signed , default = -3  poly-phase scalar coefs
17173 //Bit 23:16        reg_vks_ycoef17           // signed , default = 126  poly-phase scalar coefs
17174 //Bit 15: 8        reg_vks_ycoef18           // signed , default = 5  poly-phase scalar coefs
17175 //Bit  7: 0        reg_vks_ycoef19           // signed , default = 0  poly-phase scalar coefs
17176     #define VKS_PPS_YCOEF05                       0x30  //
17177 //Bit 31:24        reg_vks_ycoef20           // signed , default = -4  poly-phase scalar coefs
17178 //Bit 23:16        reg_vks_ycoef21           // signed , default = 126  poly-phase scalar coefs
17179 //Bit 15: 8        reg_vks_ycoef22           // signed , default = 6  poly-phase scalar coefs
17180 //Bit  7: 0        reg_vks_ycoef23           // signed , default = 0  poly-phase scalar coefs
17181     #define VKS_PPS_YCOEF06                       0x31  //
17182 //Bit 31:24        reg_vks_ycoef24           // signed , default = -5  poly-phase scalar coefs
17183 //Bit 23:16        reg_vks_ycoef25           // signed , default = 125  poly-phase scalar coefs
17184 //Bit 15: 8        reg_vks_ycoef26           // signed , default = 8  poly-phase scalar coefs
17185 //Bit  7: 0        reg_vks_ycoef27           // signed , default = 0  poly-phase scalar coefs
17186     #define VKS_PPS_YCOEF07                       0x32  //
17187 //Bit 31:24        reg_vks_ycoef28           // signed , default = -5  poly-phase scalar coefs
17188 //Bit 23:16        reg_vks_ycoef29           // signed , default = 124  poly-phase scalar coefs
17189 //Bit 15: 8        reg_vks_ycoef30           // signed , default = 9  poly-phase scalar coefs
17190 //Bit  7: 0        reg_vks_ycoef31           // signed , default = 0  poly-phase scalar coefs
17191     #define VKS_PPS_YCOEF08                       0x33  //
17192 //Bit 31:24        reg_vks_ycoef32           // signed , default = -6  poly-phase scalar coefs
17193 //Bit 23:16        reg_vks_ycoef33           // signed , default = 123  poly-phase scalar coefs
17194 //Bit 15: 8        reg_vks_ycoef34           // signed , default = 11  poly-phase scalar coefs
17195 //Bit  7: 0        reg_vks_ycoef35           // signed , default = 0  poly-phase scalar coefs
17196     #define VKS_PPS_YCOEF09                       0x34  //
17197 //Bit 31:24        reg_vks_ycoef36           // signed , default = -6  poly-phase scalar coefs
17198 //Bit 23:16        reg_vks_ycoef37           // signed , default = 122  poly-phase scalar coefs
17199 //Bit 15: 8        reg_vks_ycoef38           // signed , default = 13  poly-phase scalar coefs
17200 //Bit  7: 0        reg_vks_ycoef39           // signed , default = -1  poly-phase scalar coefs
17201     #define VKS_PPS_YCOEF10                       0x35  //
17202 //Bit 31:24        reg_vks_ycoef40           // signed , default = -7  poly-phase scalar coefs
17203 //Bit 23:16        reg_vks_ycoef41           // signed , default = 121  poly-phase scalar coefs
17204 //Bit 15: 8        reg_vks_ycoef42           // signed , default = 15  poly-phase scalar coefs
17205 //Bit  7: 0        reg_vks_ycoef43           // signed , default = -1  poly-phase scalar coefs
17206     #define VKS_PPS_YCOEF11                       0x36  //
17207 //Bit 31:24        reg_vks_ycoef44           // signed , default = -7  poly-phase scalar coefs
17208 //Bit 23:16        reg_vks_ycoef45           // signed , default = 119  poly-phase scalar coefs
17209 //Bit 15: 8        reg_vks_ycoef46           // signed , default = 17  poly-phase scalar coefs
17210 //Bit  7: 0        reg_vks_ycoef47           // signed , default = -1  poly-phase scalar coefs
17211     #define VKS_PPS_YCOEF12                       0x37  //
17212 //Bit 31:24        reg_vks_ycoef48           // signed , default = -8  poly-phase scalar coefs
17213 //Bit 23:16        reg_vks_ycoef49           // signed , default = 118  poly-phase scalar coefs
17214 //Bit 15: 8        reg_vks_ycoef50           // signed , default = 19  poly-phase scalar coefs
17215 //Bit  7: 0        reg_vks_ycoef51           // signed , default = -1  poly-phase scalar coefs
17216     #define VKS_PPS_YCOEF13                       0x38  //
17217 //Bit 31:24        reg_vks_ycoef52           // signed , default = -8  poly-phase scalar coefs
17218 //Bit 23:16        reg_vks_ycoef53           // signed , default = 116  poly-phase scalar coefs
17219 //Bit 15: 8        reg_vks_ycoef54           // signed , default = 22  poly-phase scalar coefs
17220 //Bit  7: 0        reg_vks_ycoef55           // signed , default = -2  poly-phase scalar coefs
17221     #define VKS_PPS_YCOEF14                       0x39  //
17222 //Bit 31:24        reg_vks_ycoef56           // signed , default = -8  poly-phase scalar coefs
17223 //Bit 23:16        reg_vks_ycoef57           // signed , default = 114  poly-phase scalar coefs
17224 //Bit 15: 8        reg_vks_ycoef58           // signed , default = 24  poly-phase scalar coefs
17225 //Bit  7: 0        reg_vks_ycoef59           // signed , default = -2  poly-phase scalar coefs
17226     #define VKS_PPS_YCOEF15                       0x3a  //
17227 //Bit 31:24        reg_vks_ycoef60           // signed , default = -8  poly-phase scalar coefs
17228 //Bit 23:16        reg_vks_ycoef61           // signed , default = 112  poly-phase scalar coefs
17229 //Bit 15: 8        reg_vks_ycoef62           // signed , default = 26  poly-phase scalar coefs
17230 //Bit  7: 0        reg_vks_ycoef63           // signed , default = -2  poly-phase scalar coefs
17231     #define VKS_PPS_YCOEF16                       0x3b  //
17232 //Bit 31:24        reg_vks_ycoef64           // signed , default = -9  poly-phase scalar coefs
17233 //Bit 23:16        reg_vks_ycoef65           // signed , default = 111  poly-phase scalar coefs
17234 //Bit 15: 8        reg_vks_ycoef66           // signed , default = 29  poly-phase scalar coefs
17235 //Bit  7: 0        reg_vks_ycoef67           // signed , default = -3  poly-phase scalar coefs
17236     #define VKS_PPS_YCOEF17                       0x3c  //
17237 //Bit 31:24        reg_vks_ycoef68           // signed , default = -9  poly-phase scalar coefs
17238 //Bit 23:16        reg_vks_ycoef69           // signed , default = 109  poly-phase scalar coefs
17239 //Bit 15: 8        reg_vks_ycoef70           // signed , default = 31  poly-phase scalar coefs
17240 //Bit  7: 0        reg_vks_ycoef71           // signed , default = -3  poly-phase scalar coefs
17241     #define VKS_PPS_YCOEF18                       0x3d  //
17242 //Bit 31:24        reg_vks_ycoef72           // signed , default = -9  poly-phase scalar coefs
17243 //Bit 23:16        reg_vks_ycoef73           // signed , default = 107  poly-phase scalar coefs
17244 //Bit 15: 8        reg_vks_ycoef74           // signed , default = 33  poly-phase scalar coefs
17245 //Bit  7: 0        reg_vks_ycoef75           // signed , default = -3  poly-phase scalar coefs
17246     #define VKS_PPS_YCOEF19                       0x3e  //
17247 //Bit 31:24        reg_vks_ycoef76           // signed , default = -9  poly-phase scalar coefs
17248 //Bit 23:16        reg_vks_ycoef77           // signed , default = 104  poly-phase scalar coefs
17249 //Bit 15: 8        reg_vks_ycoef78           // signed , default = 36  poly-phase scalar coefs
17250 //Bit  7: 0        reg_vks_ycoef79           // signed , default = -3  poly-phase scalar coefs
17251     #define VKS_PPS_YCOEF20                       0x3f  //
17252 //Bit 31:24        reg_vks_ycoef80           // signed , default = -9  poly-phase scalar coefs
17253 //Bit 23:16        reg_vks_ycoef81           // signed , default = 102  poly-phase scalar coefs
17254 //Bit 15: 8        reg_vks_ycoef82           // signed , default = 39  poly-phase scalar coefs
17255 //Bit  7: 0        reg_vks_ycoef83           // signed , default = -4  poly-phase scalar coefs
17256     #define VKS_PPS_YCOEF21                       0x40  //
17257 //Bit 31:24        reg_vks_ycoef84           // signed , default = -9  poly-phase scalar coefs
17258 //Bit 23:16        reg_vks_ycoef85           // signed , default = 100  poly-phase scalar coefs
17259 //Bit 15: 8        reg_vks_ycoef86           // signed , default = 41  poly-phase scalar coefs
17260 //Bit  7: 0        reg_vks_ycoef87           // signed , default = -4  poly-phase scalar coefs
17261     #define VKS_PPS_YCOEF22                       0x41  //
17262 //Bit 31:24        reg_vks_ycoef88           // signed , default = -9  poly-phase scalar coefs
17263 //Bit 23:16        reg_vks_ycoef89           // signed , default = 97  poly-phase scalar coefs
17264 //Bit 15: 8        reg_vks_ycoef90           // signed , default = 44  poly-phase scalar coefs
17265 //Bit  7: 0        reg_vks_ycoef91           // signed , default = -4  poly-phase scalar coefs
17266     #define VKS_PPS_YCOEF23                       0x42  //
17267 //Bit 31:24        reg_vks_ycoef92           // signed , default = -9  poly-phase scalar coefs
17268 //Bit 23:16        reg_vks_ycoef93           // signed , default = 95  poly-phase scalar coefs
17269 //Bit 15: 8        reg_vks_ycoef94           // signed , default = 47  poly-phase scalar coefs
17270 //Bit  7: 0        reg_vks_ycoef95           // signed , default = -5  poly-phase scalar coefs
17271     #define VKS_PPS_YCOEF24                       0x43  //
17272 //Bit 31:24        reg_vks_ycoef96           // signed , default = -9  poly-phase scalar coefs
17273 //Bit 23:16        reg_vks_ycoef97           // signed , default = 93  poly-phase scalar coefs
17274 //Bit 15: 8        reg_vks_ycoef98           // signed , default = 49  poly-phase scalar coefs
17275 //Bit  7: 0        reg_vks_ycoef99           // signed , default = -5  poly-phase scalar coefs
17276     #define VKS_PPS_YCOEF25                       0x44  //
17277 //Bit 31:24        reg_vks_ycoef100          // signed , default = -9  poly-phase scalar coefs
17278 //Bit 23:16        reg_vks_ycoef101          // signed , default = 90  poly-phase scalar coefs
17279 //Bit 15: 8        reg_vks_ycoef102          // signed , default = 52  poly-phase scalar coefs
17280 //Bit  7: 0        reg_vks_ycoef103          // signed , default = -5  poly-phase scalar coefs
17281     #define VKS_PPS_YCOEF26                       0x45  //
17282 //Bit 31:24        reg_vks_ycoef104          // signed , default = -9  poly-phase scalar coefs
17283 //Bit 23:16        reg_vks_ycoef105          // signed , default = 88  poly-phase scalar coefs
17284 //Bit 15: 8        reg_vks_ycoef106          // signed , default = 55  poly-phase scalar coefs
17285 //Bit  7: 0        reg_vks_ycoef107          // signed , default = -6  poly-phase scalar coefs
17286     #define VKS_PPS_YCOEF27                       0x46  //
17287 //Bit 31:24        reg_vks_ycoef108          // signed , default = -9  poly-phase scalar coefs
17288 //Bit 23:16        reg_vks_ycoef109          // signed , default = 85  poly-phase scalar coefs
17289 //Bit 15: 8        reg_vks_ycoef110          // signed , default = 58  poly-phase scalar coefs
17290 //Bit  7: 0        reg_vks_ycoef111          // signed , default = -6  poly-phase scalar coefs
17291     #define VKS_PPS_YCOEF28                       0x47  //
17292 //Bit 31:24        reg_vks_ycoef112          // signed , default = -8  poly-phase scalar coefs
17293 //Bit 23:16        reg_vks_ycoef113          // signed , default = 82  poly-phase scalar coefs
17294 //Bit 15: 8        reg_vks_ycoef114          // signed , default = 60  poly-phase scalar coefs
17295 //Bit  7: 0        reg_vks_ycoef115          // signed , default = -6  poly-phase scalar coefs
17296     #define VKS_PPS_YCOEF29                       0x48  //
17297 //Bit 31:24        reg_vks_ycoef116          // signed , default = -8  poly-phase scalar coefs
17298 //Bit 23:16        reg_vks_ycoef117          // signed , default = 80  poly-phase scalar coefs
17299 //Bit 15: 8        reg_vks_ycoef118          // signed , default = 63  poly-phase scalar coefs
17300 //Bit  7: 0        reg_vks_ycoef119          // signed , default = -7  poly-phase scalar coefs
17301     #define VKS_PPS_YCOEF30                       0x49  //
17302 //Bit 31:24        reg_vks_ycoef120          // signed , default = -8  poly-phase scalar coefs
17303 //Bit 23:16        reg_vks_ycoef121          // signed , default = 77  poly-phase scalar coefs
17304 //Bit 15: 8        reg_vks_ycoef122          // signed , default = 66  poly-phase scalar coefs
17305 //Bit  7: 0        reg_vks_ycoef123          // signed , default = -7  poly-phase scalar coefs
17306     #define VKS_PPS_YCOEF31                       0x4a  //
17307 //Bit 31:24        reg_vks_ycoef124          // signed , default = -8  poly-phase scalar coefs
17308 //Bit 23:16        reg_vks_ycoef125          // signed , default = 74  poly-phase scalar coefs
17309 //Bit 15: 8        reg_vks_ycoef126          // signed , default = 69  poly-phase scalar coefs
17310 //Bit  7: 0        reg_vks_ycoef127          // signed , default = -7  poly-phase scalar coefs
17311     #define VKS_PPS_YCOEF32                       0x4b  //
17312 //Bit 31:24        reg_vks_ycoef128          // signed , default = -8  poly-phase scalar coefs
17313 //Bit 23:16        reg_vks_ycoef129          // signed , default = 72  poly-phase scalar coefs
17314 //Bit 15: 8        reg_vks_ycoef130          // signed , default = 72  poly-phase scalar coefs
17315 //Bit  7: 0        reg_vks_ycoef131          // signed , default = -8  poly-phase scalar coefs
17316     #define VKS_PPS_CCOEF00                       0x4c  //
17317 //Bit 31:24        reg_vks_ccoef0            // signed , default = 0  poly-phase scalar coefs
17318 //Bit 23:16        reg_vks_ccoef1            // signed , default = 128  poly-phase scalar coefs
17319 //Bit 15: 8        reg_vks_ccoef2            // signed , default = 0  poly-phase scalar coefs
17320 //Bit  7: 0        reg_vks_ccoef3            // signed , default = 0  poly-phase scalar coefs
17321     #define VKS_PPS_CCOEF01                       0x4d  //
17322 //Bit 31:24        reg_vks_ccoef4            // signed , default = 0  poly-phase scalar coefs
17323 //Bit 23:16        reg_vks_ccoef5            // signed , default = 127  poly-phase scalar coefs
17324 //Bit 15: 8        reg_vks_ccoef6            // signed , default = 1  poly-phase scalar coefs
17325 //Bit  7: 0        reg_vks_ccoef7            // signed , default = 0  poly-phase scalar coefs
17326     #define VKS_PPS_CCOEF02                       0x4e  //
17327 //Bit 31:24        reg_vks_ccoef8            // signed , default = -1  poly-phase scalar coefs
17328 //Bit 23:16        reg_vks_ccoef9            // signed , default = 127  poly-phase scalar coefs
17329 //Bit 15: 8        reg_vks_ccoef10           // signed , default = 2  poly-phase scalar coefs
17330 //Bit  7: 0        reg_vks_ccoef11           // signed , default = 0  poly-phase scalar coefs
17331     #define VKS_PPS_CCOEF03                       0x4f  //
17332 //Bit 31:24        reg_vks_ccoef12           // signed , default = -2  poly-phase scalar coefs
17333 //Bit 23:16        reg_vks_ccoef13           // signed , default = 127  poly-phase scalar coefs
17334 //Bit 15: 8        reg_vks_ccoef14           // signed , default = 3  poly-phase scalar coefs
17335 //Bit  7: 0        reg_vks_ccoef15           // signed , default = 0  poly-phase scalar coefs
17336     #define VKS_PPS_CCOEF04                       0x50  //
17337 //Bit 31:24        reg_vks_ccoef16           // signed , default = -3  poly-phase scalar coefs
17338 //Bit 23:16        reg_vks_ccoef17           // signed , default = 126  poly-phase scalar coefs
17339 //Bit 15: 8        reg_vks_ccoef18           // signed , default = 5  poly-phase scalar coefs
17340 //Bit  7: 0        reg_vks_ccoef19           // signed , default = 0  poly-phase scalar coefs
17341     #define VKS_PPS_CCOEF05                       0x51  //
17342 //Bit 31:24        reg_vks_ccoef20           // signed , default = -4  poly-phase scalar coefs
17343 //Bit 23:16        reg_vks_ccoef21           // signed , default = 126  poly-phase scalar coefs
17344 //Bit 15: 8        reg_vks_ccoef22           // signed , default = 6  poly-phase scalar coefs
17345 //Bit  7: 0        reg_vks_ccoef23           // signed , default = 0  poly-phase scalar coefs
17346     #define VKS_PPS_CCOEF06                       0x52  //
17347 //Bit 31:24        reg_vks_ccoef24           // signed , default = -5  poly-phase scalar coefs
17348 //Bit 23:16        reg_vks_ccoef25           // signed , default = 125  poly-phase scalar coefs
17349 //Bit 15: 8        reg_vks_ccoef26           // signed , default = 8  poly-phase scalar coefs
17350 //Bit  7: 0        reg_vks_ccoef27           // signed , default = 0  poly-phase scalar coefs
17351     #define VKS_PPS_CCOEF07                       0x53  //
17352 //Bit 31:24        reg_vks_ccoef28           // signed , default = -5  poly-phase scalar coefs
17353 //Bit 23:16        reg_vks_ccoef29           // signed , default = 124  poly-phase scalar coefs
17354 //Bit 15: 8        reg_vks_ccoef30           // signed , default = 9  poly-phase scalar coefs
17355 //Bit  7: 0        reg_vks_ccoef31           // signed , default = 0  poly-phase scalar coefs
17356     #define VKS_PPS_CCOEF08                       0x54  //
17357 //Bit 31:24        reg_vks_ccoef32           // signed , default = -6  poly-phase scalar coefs
17358 //Bit 23:16        reg_vks_ccoef33           // signed , default = 123  poly-phase scalar coefs
17359 //Bit 15: 8        reg_vks_ccoef34           // signed , default = 11  poly-phase scalar coefs
17360 //Bit  7: 0        reg_vks_ccoef35           // signed , default = 0  poly-phase scalar coefs
17361     #define VKS_PPS_CCOEF09                       0x55  //
17362 //Bit 31:24        reg_vks_ccoef36           // signed , default = -6  poly-phase scalar coefs
17363 //Bit 23:16        reg_vks_ccoef37           // signed , default = 122  poly-phase scalar coefs
17364 //Bit 15: 8        reg_vks_ccoef38           // signed , default = 13  poly-phase scalar coefs
17365 //Bit  7: 0        reg_vks_ccoef39           // signed , default = -1  poly-phase scalar coefs
17366     #define VKS_PPS_CCOEF10                       0x56  //
17367 //Bit 31:24        reg_vks_ccoef40           // signed , default = -7  poly-phase scalar coefs
17368 //Bit 23:16        reg_vks_ccoef41           // signed , default = 121  poly-phase scalar coefs
17369 //Bit 15: 8        reg_vks_ccoef42           // signed , default = 15  poly-phase scalar coefs
17370 //Bit  7: 0        reg_vks_ccoef43           // signed , default = -1  poly-phase scalar coefs
17371     #define VKS_PPS_CCOEF11                       0x57  //
17372 //Bit 31:24        reg_vks_ccoef44           // signed , default = -7  poly-phase scalar coefs
17373 //Bit 23:16        reg_vks_ccoef45           // signed , default = 119  poly-phase scalar coefs
17374 //Bit 15: 8        reg_vks_ccoef46           // signed , default = 17  poly-phase scalar coefs
17375 //Bit  7: 0        reg_vks_ccoef47           // signed , default = -1  poly-phase scalar coefs
17376     #define VKS_PPS_CCOEF12                       0x58  //
17377 //Bit 31:24        reg_vks_ccoef48           // signed , default = -8  poly-phase scalar coefs
17378 //Bit 23:16        reg_vks_ccoef49           // signed , default = 118  poly-phase scalar coefs
17379 //Bit 15: 8        reg_vks_ccoef50           // signed , default = 19  poly-phase scalar coefs
17380 //Bit  7: 0        reg_vks_ccoef51           // signed , default = -1  poly-phase scalar coefs
17381     #define VKS_PPS_CCOEF13                       0x59  //
17382 //Bit 31:24        reg_vks_ccoef52           // signed , default = -8  poly-phase scalar coefs
17383 //Bit 23:16        reg_vks_ccoef53           // signed , default = 116  poly-phase scalar coefs
17384 //Bit 15: 8        reg_vks_ccoef54           // signed , default = 22  poly-phase scalar coefs
17385 //Bit  7: 0        reg_vks_ccoef55           // signed , default = -2  poly-phase scalar coefs
17386     #define VKS_PPS_CCOEF14                       0x5a  //
17387 //Bit 31:24        reg_vks_ccoef56           // signed , default = -8  poly-phase scalar coefs
17388 //Bit 23:16        reg_vks_ccoef57           // signed , default = 114  poly-phase scalar coefs
17389 //Bit 15: 8        reg_vks_ccoef58           // signed , default = 24  poly-phase scalar coefs
17390 //Bit  7: 0        reg_vks_ccoef59           // signed , default = -2  poly-phase scalar coefs
17391     #define VKS_PPS_CCOEF15                       0x5b  //
17392 //Bit 31:24        reg_vks_ccoef60           // signed , default = -8  poly-phase scalar coefs
17393 //Bit 23:16        reg_vks_ccoef61           // signed , default = 112  poly-phase scalar coefs
17394 //Bit 15: 8        reg_vks_ccoef62           // signed , default = 26  poly-phase scalar coefs
17395 //Bit  7: 0        reg_vks_ccoef63           // signed , default = -2  poly-phase scalar coefs
17396     #define VKS_PPS_CCOEF16                       0x5c  //
17397 //Bit 31:24        reg_vks_ccoef64           // signed , default = -9  poly-phase scalar coefs
17398 //Bit 23:16        reg_vks_ccoef65           // signed , default = 111  poly-phase scalar coefs
17399 //Bit 15: 8        reg_vks_ccoef66           // signed , default = 29  poly-phase scalar coefs
17400 //Bit  7: 0        reg_vks_ccoef67           // signed , default = -3  poly-phase scalar coefs
17401     #define VKS_PPS_CCOEF17                       0x5d  //
17402 //Bit 31:24        reg_vks_ccoef68           // signed , default = -9  poly-phase scalar coefs
17403 //Bit 23:16        reg_vks_ccoef69           // signed , default = 109  poly-phase scalar coefs
17404 //Bit 15: 8        reg_vks_ccoef70           // signed , default = 31  poly-phase scalar coefs
17405 //Bit  7: 0        reg_vks_ccoef71           // signed , default = -3  poly-phase scalar coefs
17406     #define VKS_PPS_CCOEF18                       0x5e  //
17407 //Bit 31:24        reg_vks_ccoef72           // signed , default = -9  poly-phase scalar coefs
17408 //Bit 23:16        reg_vks_ccoef73           // signed , default = 107  poly-phase scalar coefs
17409 //Bit 15: 8        reg_vks_ccoef74           // signed , default = 33  poly-phase scalar coefs
17410 //Bit  7: 0        reg_vks_ccoef75           // signed , default = -3  poly-phase scalar coefs
17411     #define VKS_PPS_CCOEF19                       0x5f  //
17412 //Bit 31:24        reg_vks_ccoef76           // signed , default = -9  poly-phase scalar coefs
17413 //Bit 23:16        reg_vks_ccoef77           // signed , default = 104  poly-phase scalar coefs
17414 //Bit 15: 8        reg_vks_ccoef78           // signed , default = 36  poly-phase scalar coefs
17415 //Bit  7: 0        reg_vks_ccoef79           // signed , default = -3  poly-phase scalar coefs
17416     #define VKS_PPS_CCOEF20                       0x60  //
17417 //Bit 31:24        reg_vks_ccoef80           // signed , default = -9  poly-phase scalar coefs
17418 //Bit 23:16        reg_vks_ccoef81           // signed , default = 102  poly-phase scalar coefs
17419 //Bit 15: 8        reg_vks_ccoef82           // signed , default = 39  poly-phase scalar coefs
17420 //Bit  7: 0        reg_vks_ccoef83           // signed , default = -4  poly-phase scalar coefs
17421     #define VKS_PPS_CCOEF21                       0x61  //
17422 //Bit 31:24        reg_vks_ccoef84           // signed , default = -9  poly-phase scalar coefs
17423 //Bit 23:16        reg_vks_ccoef85           // signed , default = 100  poly-phase scalar coefs
17424 //Bit 15: 8        reg_vks_ccoef86           // signed , default = 41  poly-phase scalar coefs
17425 //Bit  7: 0        reg_vks_ccoef87           // signed , default = -4  poly-phase scalar coefs
17426     #define VKS_PPS_CCOEF22                       0x62  //
17427 //Bit 31:24        reg_vks_ccoef88           // signed , default = -9  poly-phase scalar coefs
17428 //Bit 23:16        reg_vks_ccoef89           // signed , default = 97  poly-phase scalar coefs
17429 //Bit 15: 8        reg_vks_ccoef90           // signed , default = 44  poly-phase scalar coefs
17430 //Bit  7: 0        reg_vks_ccoef91           // signed , default = -4  poly-phase scalar coefs
17431     #define VKS_PPS_CCOEF23                       0x63  //
17432 //Bit 31:24        reg_vks_ccoef92           // signed , default = -9  poly-phase scalar coefs
17433 //Bit 23:16        reg_vks_ccoef93           // signed , default = 95  poly-phase scalar coefs
17434 //Bit 15: 8        reg_vks_ccoef94           // signed , default = 47  poly-phase scalar coefs
17435 //Bit  7: 0        reg_vks_ccoef95           // signed , default = -5  poly-phase scalar coefs
17436     #define VKS_PPS_CCOEF24                       0x64  //
17437 //Bit 31:24        reg_vks_ccoef96           // signed , default = -9  poly-phase scalar coefs
17438 //Bit 23:16        reg_vks_ccoef97           // signed , default = 93  poly-phase scalar coefs
17439 //Bit 15: 8        reg_vks_ccoef98           // signed , default = 49  poly-phase scalar coefs
17440 //Bit  7: 0        reg_vks_ccoef99           // signed , default = -5  poly-phase scalar coefs
17441     #define VKS_PPS_CCOEF25                       0x65  //
17442 //Bit 31:24        reg_vks_ccoef100          // signed , default = -9  poly-phase scalar coefs
17443 //Bit 23:16        reg_vks_ccoef101          // signed , default = 90  poly-phase scalar coefs
17444 //Bit 15: 8        reg_vks_ccoef102          // signed , default = 52  poly-phase scalar coefs
17445 //Bit  7: 0        reg_vks_ccoef103          // signed , default = -5  poly-phase scalar coefs
17446     #define VKS_PPS_CCOEF26                       0x66  //
17447 //Bit 31:24        reg_vks_ccoef104          // signed , default = -9  poly-phase scalar coefs
17448 //Bit 23:16        reg_vks_ccoef105          // signed , default = 88  poly-phase scalar coefs
17449 //Bit 15: 8        reg_vks_ccoef106          // signed , default = 55  poly-phase scalar coefs
17450 //Bit  7: 0        reg_vks_ccoef107          // signed , default = -6  poly-phase scalar coefs
17451     #define VKS_PPS_CCOEF27                       0x67  //
17452 //Bit 31:24        reg_vks_ccoef108          // signed , default = -9  poly-phase scalar coefs
17453 //Bit 23:16        reg_vks_ccoef109          // signed , default = 85  poly-phase scalar coefs
17454 //Bit 15: 8        reg_vks_ccoef110          // signed , default = 58  poly-phase scalar coefs
17455 //Bit  7: 0        reg_vks_ccoef111          // signed , default = -6  poly-phase scalar coefs
17456     #define VKS_PPS_CCOEF28                       0x68  //
17457 //Bit 31:24        reg_vks_ccoef112          // signed , default = -8  poly-phase scalar coefs
17458 //Bit 23:16        reg_vks_ccoef113          // signed , default = 82  poly-phase scalar coefs
17459 //Bit 15: 8        reg_vks_ccoef114          // signed , default = 60  poly-phase scalar coefs
17460 //Bit  7: 0        reg_vks_ccoef115          // signed , default = -6  poly-phase scalar coefs
17461     #define VKS_PPS_CCOEF29                       0x69  //
17462 //Bit 31:24        reg_vks_ccoef116          // signed , default = -8  poly-phase scalar coefs
17463 //Bit 23:16        reg_vks_ccoef117          // signed , default = 80  poly-phase scalar coefs
17464 //Bit 15: 8        reg_vks_ccoef118          // signed , default = 63  poly-phase scalar coefs
17465 //Bit  7: 0        reg_vks_ccoef119          // signed , default = -7  poly-phase scalar coefs
17466     #define VKS_PPS_CCOEF30                       0x6a  //
17467 //Bit 31:24        reg_vks_ccoef120          // signed , default = -8  poly-phase scalar coefs
17468 //Bit 23:16        reg_vks_ccoef121          // signed , default = 77  poly-phase scalar coefs
17469 //Bit 15: 8        reg_vks_ccoef122          // signed , default = 66  poly-phase scalar coefs
17470 //Bit  7: 0        reg_vks_ccoef123          // signed , default = -7  poly-phase scalar coefs
17471     #define VKS_PPS_CCOEF31                       0x6b  //
17472 //Bit 31:24        reg_vks_ccoef124          // signed , default = -8  poly-phase scalar coefs
17473 //Bit 23:16        reg_vks_ccoef125          // signed , default = 74  poly-phase scalar coefs
17474 //Bit 15: 8        reg_vks_ccoef126          // signed , default = 69  poly-phase scalar coefs
17475 //Bit  7: 0        reg_vks_ccoef127          // signed , default = -7  poly-phase scalar coefs
17476     #define VKS_PPS_CCOEF32                       0x6c  //
17477 //Bit 31:24        reg_vks_ccoef128          // signed , default = -8  poly-phase scalar coefs
17478 //Bit 23:16        reg_vks_ccoef129          // signed , default = 72  poly-phase scalar coefs
17479 //Bit 15: 8        reg_vks_ccoef130          // signed , default = 72  poly-phase scalar coefs
17480 //Bit  7: 0        reg_vks_ccoef131          // signed , default = -8  poly-phase scalar coefs
17481 
17482 
17483 // synopsys translate_off
17484 // synopsys translate_on
17485 //
17486 // Closing file:  vkstone_regs.h
17487 //
17488 ////=================================================================////
17489 //// vpp dither
17490 ////=================================================================////
17491 // 8'h20-8'h3f
17492 //
17493 // Reading file:  vpp_dither_regs.h
17494 //
17495 // synopsys translate_off
17496 // synopsys translate_on
17497 #define   VPP_VE_DITHER_CTRL                       (0x3120)
17498 #define P_VPP_VE_DITHER_CTRL                       (volatile uint32_t *)((0x3120  << 2) + 0xff900000)
17499 #define   VPP_VE_DITHER_LUT_1                      (0x3121)
17500 #define P_VPP_VE_DITHER_LUT_1                      (volatile uint32_t *)((0x3121  << 2) + 0xff900000)
17501 #define   VPP_VE_DITHER_LUT_2                      (0x3122)
17502 #define P_VPP_VE_DITHER_LUT_2                      (volatile uint32_t *)((0x3122  << 2) + 0xff900000)
17503 #define   VPP_VE_DITHER_LUT_3                      (0x3123)
17504 #define P_VPP_VE_DITHER_LUT_3                      (volatile uint32_t *)((0x3123  << 2) + 0xff900000)
17505 #define   VPP_VE_DITHER_LUT_4                      (0x3124)
17506 #define P_VPP_VE_DITHER_LUT_4                      (volatile uint32_t *)((0x3124  << 2) + 0xff900000)
17507 #define   VPP_VE_DITHER_LUT_5                      (0x3125)
17508 #define P_VPP_VE_DITHER_LUT_5                      (volatile uint32_t *)((0x3125  << 2) + 0xff900000)
17509 #define   VPP_VE_DITHER_LUT_6                      (0x3126)
17510 #define P_VPP_VE_DITHER_LUT_6                      (volatile uint32_t *)((0x3126  << 2) + 0xff900000)
17511 #define   VPP_VE_DITHER_LUT_7                      (0x3127)
17512 #define P_VPP_VE_DITHER_LUT_7                      (volatile uint32_t *)((0x3127  << 2) + 0xff900000)
17513 #define   VPP_VE_DITHER_LUT_8                      (0x3128)
17514 #define P_VPP_VE_DITHER_LUT_8                      (volatile uint32_t *)((0x3128  << 2) + 0xff900000)
17515 #define   VPP_VE_DITHER_LUT_9                      (0x3129)
17516 #define P_VPP_VE_DITHER_LUT_9                      (volatile uint32_t *)((0x3129  << 2) + 0xff900000)
17517 #define   VPP_VE_DITHER_LUT_10                     (0x312a)
17518 #define P_VPP_VE_DITHER_LUT_10                     (volatile uint32_t *)((0x312a  << 2) + 0xff900000)
17519 #define   VPP_VE_DITHER_LUT_11                     (0x312b)
17520 #define P_VPP_VE_DITHER_LUT_11                     (volatile uint32_t *)((0x312b  << 2) + 0xff900000)
17521 #define   VPP_VE_DITHER_LUT_12                     (0x312c)
17522 #define P_VPP_VE_DITHER_LUT_12                     (volatile uint32_t *)((0x312c  << 2) + 0xff900000)
17523 #define   VPP_OSDSC_DITHER_CTRL                    (0x3130)
17524 #define P_VPP_OSDSC_DITHER_CTRL                    (volatile uint32_t *)((0x3130  << 2) + 0xff900000)
17525 #define   VPP_OSDSC_DITHER_LUT_1                   (0x3131)
17526 #define P_VPP_OSDSC_DITHER_LUT_1                   (volatile uint32_t *)((0x3131  << 2) + 0xff900000)
17527 #define   VPP_OSDSC_DITHER_LUT_2                   (0x3132)
17528 #define P_VPP_OSDSC_DITHER_LUT_2                   (volatile uint32_t *)((0x3132  << 2) + 0xff900000)
17529 #define   VPP_OSDSC_DITHER_LUT_3                   (0x3133)
17530 #define P_VPP_OSDSC_DITHER_LUT_3                   (volatile uint32_t *)((0x3133  << 2) + 0xff900000)
17531 #define   VPP_OSDSC_DITHER_LUT_4                   (0x3134)
17532 #define P_VPP_OSDSC_DITHER_LUT_4                   (volatile uint32_t *)((0x3134  << 2) + 0xff900000)
17533 #define   VPP_OSDSC_DITHER_LUT_5                   (0x3135)
17534 #define P_VPP_OSDSC_DITHER_LUT_5                   (volatile uint32_t *)((0x3135  << 2) + 0xff900000)
17535 #define   VPP_OSDSC_DITHER_LUT_6                   (0x3136)
17536 #define P_VPP_OSDSC_DITHER_LUT_6                   (volatile uint32_t *)((0x3136  << 2) + 0xff900000)
17537 #define   VPP_OSDSC_DITHER_LUT_7                   (0x3137)
17538 #define P_VPP_OSDSC_DITHER_LUT_7                   (volatile uint32_t *)((0x3137  << 2) + 0xff900000)
17539 #define   VPP_OSDSC_DITHER_LUT_8                   (0x3138)
17540 #define P_VPP_OSDSC_DITHER_LUT_8                   (volatile uint32_t *)((0x3138  << 2) + 0xff900000)
17541 #define   VPP_OSDSC_DITHER_LUT_9                   (0x3139)
17542 #define P_VPP_OSDSC_DITHER_LUT_9                   (volatile uint32_t *)((0x3139  << 2) + 0xff900000)
17543 #define   VPP_OSDSC_DITHER_LUT_10                  (0x313a)
17544 #define P_VPP_OSDSC_DITHER_LUT_10                  (volatile uint32_t *)((0x313a  << 2) + 0xff900000)
17545 #define   VPP_OSDSC_DITHER_LUT_11                  (0x313b)
17546 #define P_VPP_OSDSC_DITHER_LUT_11                  (volatile uint32_t *)((0x313b  << 2) + 0xff900000)
17547 #define   VPP_OSDSC_DITHER_LUT_12                  (0x313c)
17548 #define P_VPP_OSDSC_DITHER_LUT_12                  (volatile uint32_t *)((0x313c  << 2) + 0xff900000)
17549 #define   VPP_OSDSC_DITHER_LUT_13                  (0x313d)
17550 #define P_VPP_OSDSC_DITHER_LUT_13                  (volatile unsigned int *)((0x313d  << 2) + 0xff900000)
17551 #define   VPP_OSDSC_DITHER_LUT_14                  (0x313e)
17552 #define P_VPP_OSDSC_DITHER_LUT_14                  (volatile unsigned int *)((0x313e  << 2) + 0xff900000)
17553 #define   VPP_OSDSC_DITHER_LUT_15                  (0x313f)
17554 #define P_VPP_OSDSC_DITHER_LUT_15                  (volatile unsigned int *)((0x313f  << 2) + 0xff900000)
17555 // synopsys translate_off
17556 // synopsys translate_on
17557 //
17558 // Closing file:  vpp_dither_regs.h
17559 //
17560 // 8'h40-8'h4f
17561 //
17562 // Reading file:  osdsc_deband_regs.h
17563 //
17564 // synopsys translate_off
17565 // synopsys translate_on
17566 #define   OSD_DB_FLT_CTRL                          (0x3140)
17567 #define P_OSD_DB_FLT_CTRL                          (volatile uint32_t *)((0x3140  << 2) + 0xff900000)
17568 //Bit 31:27        reserved
17569 //Bit 26           reg_nrdeband_reset1       // unsigned , default = 1  , 0 : no reload chrm seed 1: reload chrm seed
17570 //Bit 25           reg_nrdeband_reset0       // unsigned , default = 1  , 0 : no reload luma seed 1: reload luma seed
17571 //Bit 24           reg_nrdeband_rgb          // unsigned , default = 0  , 0 : yuv 1: RGB
17572 //Bit 23           reg_nrdeband_en11         // unsigned , default = 0  , debanding registers of side lines, [0] for luma,   same for below
17573 //Bit 22           reg_nrdeband_en10         // unsigned , default = 0  , debanding registers of side lines, [1] for chroma, same for below
17574 //Bit 21           reg_nrdeband_siderand     // unsigned , default = 1  , options to use side two lines use the rand, instead of use for the YUV three component of middle line, 0: seed[3]/bandrand[3] for middle line yuv; 1: seed[3]/bandrand[3] for nearby three lines Y;
17575 //Bit 20           reg_nrdeband_randmode     // unsigned , default = 0  , mode of rand noise adding, 0: same noise strength for all difs; else: strenght of noise will not exceed the difs, MIN((pPKReg->reg_nrdeband_bandrand[m]), noise[m])
17576 //Bit 19:17        reg_nrdeband_bandrand2    // unsigned , default = 6
17577 //Bit 16            reserved
17578 //Bit 15:13        reg_nrdeband_bandrand1    // unsigned , default = 6
17579 //Bit 12            reserved
17580 //Bit 11: 9        reg_nrdeband_bandrand0    // unsigned , default = 6
17581 //Bit  8            reserved
17582 //Bit  7           reg_nrdeband_hpxor1       // unsigned , default = 1   , debanding random hp portion xor, [0] for luma
17583 //Bit  6           reg_nrdeband_hpxor0       // unsigned , default = 1   , debanding random hp portion xor, [1] for chroma
17584 //Bit  5           reg_nrdeband_en1          // unsigned , default = 0   , debanding registers,  for luma
17585 //Bit  4           reg_nrdeband_en0          // unsigned , default = 0   , debanding registers,  for chroma
17586 //Bit  3: 2        reg_nrdeband_lpf_mode1    // unsigned , default = 2   , lpf mode, 0: 3x3, 1:3x5; 2: 5x5; 3:5x7
17587 //Bit  1: 0        reg_nrdeband_lpf_mode0    // unsigned , default = 2   , lpf mode, 0: 3x3, 1:3x5; 2: 5x5; 3:5x7
17588 #define   OSD_DB_FLT_CTRL1                         (0x3141)
17589 #define P_OSD_DB_FLT_CTRL1                         (volatile uint32_t *)((0x3141  << 2) + 0xff900000)
17590 //Bit 31:18        reserved
17591 //Bit 17:16        reg_nrdeband_noise_rs     // unsigned , default = 2
17592 //Bit 15:12        reg_nrdeband_randgain     // unsigned , default = 8
17593 //Bit 11            reserved
17594 //Bit 10: 8        reg_nrdeband_bandrand5    // unsigned , default = 6
17595 //Bit  7            reserved
17596 //Bit  6: 4        reg_nrdeband_bandrand4    // unsigned , default = 6
17597 //Bit  3            reserved
17598 //Bit  2: 0        reg_nrdeband_bandrand3    // unsigned , default = 6
17599 #define   OSD_DB_FLT_LUMA_THRD                     (0x3142)
17600 #define P_OSD_DB_FLT_LUMA_THRD                     (volatile uint32_t *)((0x3142  << 2) + 0xff900000)
17601 //Bit 31:30        reserved
17602 //Bit 29:24        reg_nrdeband_luma_th3     // unsigned , default = 36   , threshold to |Y-Ylpf|, if < th[0] use lpf
17603 //Bit 23:22        reserved
17604 //Bit 21:16        reg_nrdeband_luma_th2     // unsigned , default = 28   , elseif <th[1] use (lpf*3 + y)/4
17605 //Bit 15:14        reserved
17606 //Bit 13: 8        reg_nrdeband_luma_th1     // unsigned , default = 24   , elseif <th[1] use (lpf*3 + y)/4elseif <th[2] (lpf*1 + y)/2
17607 //Bit  7: 6        reserved
17608 //Bit  5: 0        reg_nrdeband_luma_th0     // unsigned , default = 20   , elseif <th[1] use (lpf*3 + y)/4elseif elseif <th[3] (lpf*1 + 3*y)/4; else
17609 #define   OSD_DB_FLT_CHRM_THRD                     (0x3143)
17610 #define P_OSD_DB_FLT_CHRM_THRD                     (volatile uint32_t *)((0x3143  << 2) + 0xff900000)
17611 //Bit 31:30        reserved
17612 //Bit 29:24        reg_nrdeband_chrm_th3     // unsigned , default = 36   , threshold to |Y-Ylpf|, if < th[0] use lpf
17613 //Bit 23:22        reserved
17614 //Bit 21:16        reg_nrdeband_chrm_th2     // unsigned , default = 28   , elseif <th[1] use (lpf*3 + y)/4
17615 //Bit 15:14        reserved
17616 //Bit 13: 8        reg_nrdeband_chrm_th1     // unsigned , default = 24   , elseif <th[1] use (lpf*3 + y)/4elseif <th[2] (lpf*1 + y)/2
17617 //Bit  7: 6        reserved
17618 //Bit  5: 0        reg_nrdeband_chrm_th0     // unsigned , default = 20   , elseif <th[1] use (lpf*3 + y)/4elseif elseif
17619 #define   OSD_DB_FLT_RANDLUT                       (0x3144)
17620 #define P_OSD_DB_FLT_RANDLUT                       (volatile uint32_t *)((0x3144  << 2) + 0xff900000)
17621 //Bit 31:24        reserved
17622 //Bit 23:21        reg_nrdeband_randslut7    // unsigned , default = 1   rand lut7
17623 //Bit 20:18        reg_nrdeband_randslut6    // unsigned , default = 1   rand lut6
17624 //Bit 17:15        reg_nrdeband_randslut5    // unsigned , default = 1   rand lut5
17625 //Bit 14:12        reg_nrdeband_randslut4    // unsigned , default = 1   rand lut4
17626 //Bit 11: 9        reg_nrdeband_randslut3    // unsigned , default = 1   rand lut3
17627 //Bit  8: 6        reg_nrdeband_randslut2    // unsigned , default = 1   rand lut2
17628 //Bit  5: 3        reg_nrdeband_randslut1    // unsigned , default = 1   rand lut1
17629 //Bit  2: 0        reg_nrdeband_randslut0    // unsigned , default = 1   rand lut0
17630 #define   OSD_DB_FLT_PXI_THRD                      (0x3145)
17631 #define P_OSD_DB_FLT_PXI_THRD                      (volatile uint32_t *)((0x3145  << 2) + 0xff900000)
17632 //Bit 31:26        reserved
17633 //Bit 25:16        reg_nrdeband_yc_th1       // unsigned , default = 0   ,threshold to luma/|u/v| for using the denoise
17634 //Bit 15:10        reserved
17635 //Bit  9: 0        reg_nrdeband_yc_th0       // unsigned , default = 0   ,threshold to luma/|u/v| for using the denoise
17636 #define   OSD_DB_FLT_SEED_Y                        (0x3146)
17637 #define P_OSD_DB_FLT_SEED_Y                        (volatile uint32_t *)((0x3146  << 2) + 0xff900000)
17638 //Bit 31: 0        reg_nrdeband_seed0        // unsigned , default = 1621438240  ,debanding noise adding seed for Y. seed[0]= 0x60a52f20; as default
17639 #define   OSD_DB_FLT_SEED_U                        (0x3147)
17640 #define P_OSD_DB_FLT_SEED_U                        (volatile uint32_t *)((0x3147  << 2) + 0xff900000)
17641 //Bit 31: 0        reg_nrdeband_seed1        // unsigned , default = 1621438247  ,debanding noise adding seed for U. seed[0]= 0x60a52f27; as default
17642 #define   OSD_DB_FLT_SEED_V                        (0x3148)
17643 #define P_OSD_DB_FLT_SEED_V                        (volatile uint32_t *)((0x3148  << 2) + 0xff900000)
17644 //Bit 31: 0        reg_nrdeband_seed2        // unsigned , default = 1621438242  ,debanding noise adding seed for V. seed[0]= 0x60a52f22; as default
17645 #define   OSD_DB_FLT_SEED3                         (0x3149)
17646 #define P_OSD_DB_FLT_SEED3                         (volatile uint32_t *)((0x3149  << 2) + 0xff900000)
17647 //Bit 31: 0        reg_nrdeband_seed3        // unsigned , default = 1621438242  ,debanding noise adding seed for V. seed[0]= 0x60a52f22; as default
17648 #define   OSD_DB_FLT_SEED4                         (0x314a)
17649 #define P_OSD_DB_FLT_SEED4                         (volatile uint32_t *)((0x314a  << 2) + 0xff900000)
17650 //Bit 31: 0        reg_nrdeband_seed4        // unsigned , default = 1621438242  ,debanding noise adding seed for V. seed[0]= 0x60a52f22; as default
17651 #define   OSD_DB_FLT_SEED5                         (0x314b)
17652 #define P_OSD_DB_FLT_SEED5                         (volatile uint32_t *)((0x314b  << 2) + 0xff900000)
17653 //Bit 31: 0        reg_nrdeband_seed5        // unsigned , default = 1621438242  ,debanding noise adding seed for V. seed[0]= 0x60a52f22; as default
17654 // synopsys translate_off
17655 // synopsys translate_on
17656 //
17657 // Closing file:  osdsc_deband_regs.h
17658 //
17659 //register definition for xvycc
17660 // 8'h50-8'h7f
17661 //
17662 // Reading file:  xvycc_regs.h
17663 //
17664 // synopsys translate_off
17665 // synopsys translate_on
17666 //    `define XVYCC_VCBUS_BASE     8'hfe
17667 #define   XVYCC_INV_LUT_Y_ADDR_PORT                (0x3158)
17668 #define P_XVYCC_INV_LUT_Y_ADDR_PORT                (volatile uint32_t *)((0x3158  << 2) + 0xff900000)
17669 //Bit 31:7, reserved
17670 //Bit  6:0,  xvycc_inv_lut_y_addr;
17671 #define   XVYCC_INV_LUT_Y_DATA_PORT                (0x3159)
17672 #define P_XVYCC_INV_LUT_Y_DATA_PORT                (volatile uint32_t *)((0x3159  << 2) + 0xff900000)
17673 //Bit 31:12, reserved
17674 //Bit  11:0, xvycc_inv_lut_y_data;
17675 #define   XVYCC_INV_LUT_U_ADDR_PORT                (0x315a)
17676 #define P_XVYCC_INV_LUT_U_ADDR_PORT                (volatile uint32_t *)((0x315a  << 2) + 0xff900000)
17677 //Bit 31:6, reserved
17678 //Bit  5:0,  xvycc_inv_lut_u_addr;
17679 #define   XVYCC_INV_LUT_U_DATA_PORT                (0x315b)
17680 #define P_XVYCC_INV_LUT_U_DATA_PORT                (volatile uint32_t *)((0x315b  << 2) + 0xff900000)
17681 //Bit 31:12, reserved
17682 //Bit  11:0, xvycc_inv_lut_u_data;
17683 #define   XVYCC_INV_LUT_V_ADDR_PORT                (0x315c)
17684 #define P_XVYCC_INV_LUT_V_ADDR_PORT                (volatile uint32_t *)((0x315c  << 2) + 0xff900000)
17685 //Bit 31:6, reserved
17686 //Bit  5:0,  xvycc_inv_lut_v_addr;
17687 #define   XVYCC_INV_LUT_V_DATA_PORT                (0x315d)
17688 #define P_XVYCC_INV_LUT_V_DATA_PORT                (volatile uint32_t *)((0x315d  << 2) + 0xff900000)
17689 //Bit 31:12, reserved
17690 //Bit  11:0, xvycc_inv_lut_v_data;
17691 #define   XVYCC_LUT_R_ADDR_PORT                    (0x315e)
17692 #define P_XVYCC_LUT_R_ADDR_PORT                    (volatile uint32_t *)((0x315e  << 2) + 0xff900000)
17693 //Bit 31:7, reserved
17694 //Bit  6:0,  xvycc_lut_r_addr;
17695 #define   XVYCC_LUT_R_DATA_PORT                    (0x315f)
17696 #define P_XVYCC_LUT_R_DATA_PORT                    (volatile uint32_t *)((0x315f  << 2) + 0xff900000)
17697 //Bit 31:10, reserved
17698 //Bit  9:0,  xvycc_lut_r_data;
17699 #define   XVYCC_LUT_G_ADDR_PORT                    (0x3160)
17700 #define P_XVYCC_LUT_G_ADDR_PORT                    (volatile uint32_t *)((0x3160  << 2) + 0xff900000)
17701 //Bit 31:7, reserved
17702 //Bit  6:0,  xvycc_lut_g_addr;
17703 #define   XVYCC_LUT_G_DATA_PORT                    (0x3161)
17704 #define P_XVYCC_LUT_G_DATA_PORT                    (volatile uint32_t *)((0x3161  << 2) + 0xff900000)
17705 //Bit 31:10, reserved
17706 //Bit  9:0,  xvycc_lut_g_data;
17707 #define   XVYCC_LUT_B_ADDR_PORT                    (0x3162)
17708 #define P_XVYCC_LUT_B_ADDR_PORT                    (volatile uint32_t *)((0x3162  << 2) + 0xff900000)
17709 //Bit 31:7, reserved
17710 //Bit  6:0,  xvycc_lut_b_addr;
17711 #define   XVYCC_LUT_B_DATA_PORT                    (0x3163)
17712 #define P_XVYCC_LUT_B_DATA_PORT                    (volatile uint32_t *)((0x3163  << 2) + 0xff900000)
17713 //Bit 31:10, reserved
17714 //Bit  9:0,  xvycc_lut_b_data;
17715 #define   XVYCC_INV_LUT_CTL                        (0x3164)
17716 #define P_XVYCC_INV_LUT_CTL                        (volatile uint32_t *)((0x3164  << 2) + 0xff900000)
17717 //Bit 31:15, reserved
17718 //Bit 14:12, reg_xvycc_cmpr_invlut_enable    enable for xvycc compression inverse-lut [2] for Y, [1] for U, [0] for V default=0
17719 //Bit 11:10, reg_xvycc_cmpr_invlut_vscl_1   v LUT input scale for positive portion   default=0
17720 //Bit  9: 8, reg_xvycc_cmpr_invlut_vscl_0   v LUT input scale for negative portion   default=0
17721 //Bit  7: 6, reg_xvycc_cmpr_invlut_uscl_1   u LUT input scale for positive portion   default=0
17722 //Bit  5: 4, reg_xvycc_cmpr_invlut_uscl_0   u LUT input scale for negative portion   default=0
17723 //Bit  3: 2, reg_xvycc_cmpr_invlut_yscl_1   y LUT input scale for positive portion   default=0
17724 //Bit  1: 0, reg_xvycc_cmpr_invlut_yscl_0   y LUT input scale for negative portion   default=0
17725 #define   XVYCC_LUT_CTL                            (0x3165)
17726 #define P_XVYCC_LUT_CTL                            (volatile uint32_t *)((0x3165  << 2) + 0xff900000)
17727 //Bit 31: 7, reserved
17728 //Bit  6: 4, reg_xvycc_lut_enable  LUT enable [6] for R, [5] for G, [4] for B  default=0
17729 //Bit  3: 2, reg_xvycc_lut_scl_1   LUT input scale for positive portion   default=0
17730 //Bit  1: 0, reg_xvycc_lut_scl_0   LUT input scale for negative portion   default=0
17731 #define   XVYCC_VADJ1_CURV_0                       (0x3166)
17732 #define P_XVYCC_VADJ1_CURV_0                       (volatile uint32_t *)((0x3166  << 2) + 0xff900000)
17733 //Bit 31:24, vadj1_softcon_curv0_ci                         default=0
17734 //Bit 23:12, vadj1_softcon_curv0_b                          default=0
17735 //Bit 11: 0, vadj1_softcon_curv0_a                          default=0
17736 #define   XVYCC_VADJ1_CURV_1                       (0x3167)
17737 #define P_XVYCC_VADJ1_CURV_1                       (volatile uint32_t *)((0x3167  << 2) + 0xff900000)
17738 //Bit 31:13, reserved
17739 //Bit 12: 4, vadj1_softcon_curv0_g                          default=0
17740 //Bit     3, reserved
17741 //Bit  2: 0, vadj1_softcon_curv0_cs                         default=0
17742 #define   XVYCC_VADJ1_CURV_2                       (0x3168)
17743 #define P_XVYCC_VADJ1_CURV_2                       (volatile uint32_t *)((0x3168  << 2) + 0xff900000)
17744 //Bit 31:24, vadj1_softcon_curv1_ci                         default=0
17745 //Bit 23:12, vadj1_softcon_curv1_b                          default=0
17746 //Bit 11: 0, vadj1_softcon_curv1_a                          default=0
17747 #define   XVYCC_VADJ1_CURV_3                       (0x3169)
17748 #define P_XVYCC_VADJ1_CURV_3                       (volatile uint32_t *)((0x3169  << 2) + 0xff900000)
17749 //Bit 31:13, reserved
17750 //Bit 12: 4, vadj1_softcon_curv1_g                          default=0
17751 //Bit     3, reserved
17752 //Bit  2: 0, vadj1_softcon_curv1_cs                         default=0
17753 #define   XVYCC_VADJ2_CURV_0                       (0x316a)
17754 #define P_XVYCC_VADJ2_CURV_0                       (volatile uint32_t *)((0x316a  << 2) + 0xff900000)
17755 //Bit 31:24, vadj2_softcon_curv0_ci                         default=0
17756 //Bit 23:12, vadj2_softcon_curv0_b                          default=0
17757 //Bit 11: 0, vadj2_softcon_curv0_a                          default=0
17758 #define   XVYCC_VADJ2_CURV_1                       (0x316b)
17759 #define P_XVYCC_VADJ2_CURV_1                       (volatile uint32_t *)((0x316b  << 2) + 0xff900000)
17760 //Bit 31:13, reserved
17761 //Bit 12: 4, vadj2_softcon_curv0_g                          default=0
17762 //Bit     3, reserved
17763 //Bit  2: 0, vadj2_softcon_curv0_cs                         default=0
17764 #define   XVYCC_VADJ2_CURV_2                       (0x316c)
17765 #define P_XVYCC_VADJ2_CURV_2                       (volatile uint32_t *)((0x316c  << 2) + 0xff900000)
17766 //Bit 31:24, vadj2_softcon_curv1_ci                         default=0
17767 //Bit 23:12, vadj2_softcon_curv1_b                          default=0
17768 //Bit 11: 0, vadj2_softcon_curv1_a                          default=0
17769 #define   XVYCC_VADJ2_CURV_3                       (0x316d)
17770 #define P_XVYCC_VADJ2_CURV_3                       (volatile uint32_t *)((0x316d  << 2) + 0xff900000)
17771 //Bit 31:13, reserved
17772 //Bit 12: 4, vadj2_softcon_curv1_g                          default=0
17773 //Bit     3, reserved
17774 //Bit  2: 0, vadj2_softcon_curv1_cs                         default=0
17775 #define   XVYCC_VD1_RGB_CTRST                      (0x3170)
17776 #define P_XVYCC_VD1_RGB_CTRST                      (volatile uint32_t *)((0x3170  << 2) + 0xff900000)
17777 //Bit 31:28, reserved
17778 //Bit 27:16, reg_vd1_rgb_ctrst        u12, contrast in rgb.      default=1024
17779 //Bit 15:14, reserved
17780 //Bit 13: 4, reg_vd1_rgb_ctrst_blklvl u10, contrast blacklevel   default=64
17781 //Bit  3: 2, reserved
17782 //Bit     1, reg_vd1_rgbbst_en         u1, enable rgbbst         default=0
17783 //Bit     0, reg_vd1_rgb_ctrst_prt     u1, enable signal to protect saturation in rgb.  default=1
17784 #define   XVYCC_VD1_RGB_BRGHT                      (0x3171)
17785 #define P_XVYCC_VD1_RGB_BRGHT                      (volatile uint32_t *)((0x3171  << 2) + 0xff900000)
17786 //Bit 31:16, reserved
17787 //Bit 15: 4, reg_vd1_rgb_brght        s12, brightness level in rgb domain                              default=0
17788 //Bit  3: 2, reserved
17789 //Bit     1, reg_vd1_rgb_brght_prt     u1, enalbe signal to protect saturation in rgb                  default=1
17790 //Bit     0, reg_vd1_rgbbst_dlut_x2    u1, enable signal to do x2 to the dlut cells before subtracting default=0
17791 #define   XVYCC_VD1_RGB_DLUT_0_3                   (0x3172)
17792 #define P_XVYCC_VD1_RGB_DLUT_0_3                   (volatile uint32_t *)((0x3172  << 2) + 0xff900000)
17793 //Bit 31:24, reg_vd1_rgbbst_dlut0      u8,   default = 255
17794 //Bit 23:16, reg_vd1_rgbbst_dlut1      u8,   default = 205
17795 //Bit 15: 8, reg_vd1_rgbbst_dlut2      u8,   default = 171
17796 //Bit  7: 0, reg_vd1_rgbbst_dlut3      u8,   default = 147
17797 #define   XVYCC_VD1_RGB_DLUT_4_7                   (0x3173)
17798 #define P_XVYCC_VD1_RGB_DLUT_4_7                   (volatile uint32_t *)((0x3173  << 2) + 0xff900000)
17799 //Bit 31:24, reg_vd1_rgbbst_dlut4      u8,   default = 128
17800 //Bit 23:16, reg_vd1_rgbbst_dlut5      u8,   default = 113
17801 //Bit 15: 8, reg_vd1_rgbbst_dlut6      u8,   default = 102
17802 //Bit  7: 0, reg_vd1_rgbbst_dlut7      u8,   default = 93
17803 #define   XVYCC_VD1_RGB_DLUT_8_11                  (0x3174)
17804 #define P_XVYCC_VD1_RGB_DLUT_8_11                  (volatile uint32_t *)((0x3174  << 2) + 0xff900000)
17805 //Bit 31:24, reg_vd1_rgbbst_dlut8      u8,   default = 85
17806 //Bit 23:16, reg_vd1_rgbbst_dlut9      u8,   default = 78
17807 //Bit 15: 8, reg_vd1_rgbbst_dlut10     u8,   default = 73
17808 //Bit  7: 0, reg_vd1_rgbbst_dlut11     u8,   default = 68
17809 #define   XVYCC_POST_RGB_CTRST                     (0x3175)
17810 #define P_XVYCC_POST_RGB_CTRST                     (volatile uint32_t *)((0x3175  << 2) + 0xff900000)
17811 //Bit 31:28, reserved
17812 //Bit 27:16, reg_post_rgb_ctrst        u12, contrast in rgb.      default=1024
17813 //Bit 15:14, reserved
17814 //Bit 13: 4, reg_post_rgb_ctrst_blklvl u10, contrast blacklevel   default=64
17815 //Bit  3: 2, reserved
17816 //Bit     1, reg_post_rgbbst_en         u1, enable rgbbst         default=0
17817 //Bit     0, reg_post_rgb_ctrst_prt     u1, enable signal to protect saturation in rgb.  default=1
17818 #define   XVYCC_POST_RGB_BRGHT                     (0x3176)
17819 #define P_XVYCC_POST_RGB_BRGHT                     (volatile uint32_t *)((0x3176  << 2) + 0xff900000)
17820 //Bit 31:16, reserved
17821 //Bit 15: 4, reg_post_rgb_brght        s12, brightness level in rgb domain                              default=0
17822 //Bit  3: 2, reserved
17823 //Bit     1, reg_post_rgb_brght_prt     u1, enalbe signal to protect saturation in rgb                  default=1
17824 //Bit     0, reg_post_rgbbst_dlut_x2    u1, enable signal to do x2 to the dlut cells before subtracting default=0
17825 #define   XVYCC_POST_RGB_DLUT_0_3                  (0x3177)
17826 #define P_XVYCC_POST_RGB_DLUT_0_3                  (volatile uint32_t *)((0x3177  << 2) + 0xff900000)
17827 //Bit 31:24, reg_post_rgbbst_dlut0      u8,   default = 255
17828 //Bit 23:16, reg_post_rgbbst_dlut1      u8,   default = 205
17829 //Bit 15: 8, reg_post_rgbbst_dlut2      u8,   default = 171
17830 //Bit  7: 0, reg_post_rgbbst_dlut3      u8,   default = 147
17831 #define   XVYCC_POST_RGB_DLUT_4_7                  (0x3178)
17832 #define P_XVYCC_POST_RGB_DLUT_4_7                  (volatile uint32_t *)((0x3178  << 2) + 0xff900000)
17833 //Bit 31:24, reg_post_rgbbst_dlut4      u8,   default = 128
17834 //Bit 23:16, reg_post_rgbbst_dlut5      u8,   default = 113
17835 //Bit 15: 8, reg_post_rgbbst_dlut6      u8,   default = 102
17836 //Bit  7: 0, reg_post_rgbbst_dlut7      u8,   default = 93
17837 #define   XVYCC_POST_RGB_DLUT_8_11                 (0x3179)
17838 #define P_XVYCC_POST_RGB_DLUT_8_11                 (volatile uint32_t *)((0x3179  << 2) + 0xff900000)
17839 //Bit 31:24, reg_post_rgbbst_dlut8      u8,   default = 85
17840 //Bit 23:16, reg_post_rgbbst_dlut9      u8,   default = 78
17841 //Bit 15: 8, reg_post_rgbbst_dlut10     u8,   default = 73
17842 //Bit  7: 0, reg_post_rgbbst_dlut11     u8,   default = 68
17843 #define   ADAPTIVE_SCALE_REG0                      (0x3150)
17844 #define P_ADAPTIVE_SCALE_REG0                      (volatile uint32_t *)((0x3150  << 2) + 0xff900000)
17845 //Bit 31,    reg_adaptive_scale_enable    u1,  default = 1
17846 //Bit 27:16, reg_adpscl_ys_coef_0        u12,  default = 538
17847 //Bit 11: 0, reg_adpscl_ys_coef_1        u12,  default = 1389
17848 #define   ADAPTIVE_SCALE_REG1                      (0x3151)
17849 #define P_ADAPTIVE_SCALE_REG1                      (volatile uint32_t *)((0x3151  << 2) + 0xff900000)
17850 //Bit 27:16, reg_adpscl_ys_coef_2        u12,  default = 121
17851 //Bit 11: 0, reg_adpscl_alpha_0          u12,  default = 1024
17852 #define   ADAPTIVE_SCALE_REG2                      (0x3152)
17853 #define P_ADAPTIVE_SCALE_REG2                      (volatile uint32_t *)((0x3152  << 2) + 0xff900000)
17854 //Bit 27:16, reg_adpscl_alpha_1          u12,  default = 1024
17855 //Bit 11: 0, reg_adpscl_alpha_2          u12,  default = 1024
17856 #define   ADAPTIVE_SCALE_REG3                      (0x3153)
17857 #define P_ADAPTIVE_SCALE_REG3                      (volatile uint32_t *)((0x3153  << 2) + 0xff900000)
17858 //Bit 31:16, reg_adpscl_beta_0          u16,  default = 0
17859 //Bit 15: 0, reg_adpscl_beta_1          u16,  default = 0
17860 #define   ADAPTIVE_SCALE_REG4                      (0x3154)
17861 #define P_ADAPTIVE_SCALE_REG4                      (volatile uint32_t *)((0x3154  << 2) + 0xff900000)
17862 //Bit 31:16, reg_adpscl_beta_2          u16,  default = 0
17863 #define   ADAPTIVE_SCALE_ADDR                      (0x3155)
17864 #define P_ADAPTIVE_SCALE_ADDR                      (volatile uint32_t *)((0x3155  << 2) + 0xff900000)
17865 //Bit 6:0,   reg_lut_addr               u7,  default = 0
17866 #define   ADAPTIVE_SCALE_DATA                      (0x3156)
17867 #define P_ADAPTIVE_SCALE_DATA                      (volatile uint32_t *)((0x3156  << 2) + 0xff900000)
17868 //Bit 11:0,  reg_lut_data               u12,  default = 0
17869 // synopsys translate_off
17870 // synopsys translate_on
17871 //
17872 // Closing file:  xvycc_regs.h
17873 //
17874 //register definition for vd2 afbc dec
17875 // 8'h80-8'h9f
17876 //
17877 // Reading file:  vd2_afbc_dec_regs.h
17878 //
17879 // synopsys translate_off
17880 // synopsys translate_on
17881 ////===============================////
17882 //// reg
17883 ////===============================////
17884 #define   VD2_AFBC_ENABLE                          (0x3180)
17885 #define P_VD2_AFBC_ENABLE                          (volatile uint32_t *)((0x3180  << 2) + 0xff900000)
17886 //Bit   31:1,     reserved
17887 //Bit   8,        dec_enable        unsigned  , default = 0
17888 //Bit   7:1,      reserved
17889 //Bit   0,        frm_start         unsigned  , default = 0
17890 #define   VD2_AFBC_MODE                            (0x3181)
17891 #define P_VD2_AFBC_MODE                            (volatile uint32_t *)((0x3181  << 2) + 0xff900000)
17892 //Bit   31,       soft_reset        the use as go_field
17893 //Bit   30,       reserved
17894 //Bit   29,       ddr_sz_mode       uns, default = 0 , 0: fixed block ddr size 1 : unfixed block ddr size;
17895 //Bit   28,       blk_mem_mode      uns, default = 0 , 0: fixed 16x128 size; 1 : fixed 12x128 size
17896 //Bit   27:26,    rev_mode          uns, default = 0 , reverse mode
17897 //Bit   25:24,    mif_urgent        uns, default = 3 , info mif and data mif urgent
17898 //Bit   22:16,    hold_line_num
17899 //Bit   15:14,    burst_len         uns, default = 1, 0: burst1 1:burst2 2:burst4
17900 //Bit   13:8,     compbits_yuv      uns, default = 0 ,
17901 //                                  bit 1:0,: y  component bitwidth : 00-8bit 01-9bit 10-10bit
17902 //                                  bit 3:2,: u  component bitwidth : 00-8bit 01-9bit 10-10bit
17903 //                                  bit 5:4,: v  component bitwidth : 00-8bit 01-9bit 10-10bit
17904 //Bit   7:6,      vert_skip_y       uns, default = 0 , luma vert skip mode : 00-y0y1, 01-y0, 10-y1, 11-(y0+y1)/2
17905 //Bit   5:4,      horz_skip_y       uns, default = 0 , luma horz skip mode : 00-y0y1, 01-y0, 10-y1, 11-(y0+y1)/2
17906 //Bit   3:2,      vert_skip_uv      uns, default = 0 , chroma vert skip mode : 00-y0y1, 01-y0, 10-y1, 11-(y0+y1)/2
17907 //Bit   1:0,      horz_skip_uv      uns, default = 0 , chroma horz skip mode : 00-y0y1, 01-y0, 10-y1, 11-(y0+y1)/2
17908 #define   VD2_AFBC_SIZE_IN                         (0x3182)
17909 #define P_VD2_AFBC_SIZE_IN                         (volatile uint32_t *)((0x3182  << 2) + 0xff900000)
17910 //Bit   31:29,    reserved
17911 //Bit   28:16     hsize_in          uns, default = 1920 , pic horz size in  unit: pixel
17912 //Bit   15:13,    reserved
17913 //Bit   12:0,     vsize_in          uns, default = 1080 , pic vert size in  unit: pixel
17914 #define   VD2_AFBC_DEC_DEF_COLOR                   (0x3183)
17915 #define P_VD2_AFBC_DEC_DEF_COLOR                   (volatile uint32_t *)((0x3183  << 2) + 0xff900000)
17916 //Bit   31:29,    reserved
17917 //Bit   29:20,   def_color_y        uns, default = 0, afbc dec y default setting value
17918 //Bit   19:10,   def_color_u        uns, default = 0, afbc dec u default setting value
17919 //Bit    9: 0,   def_color_v        uns, default = 0, afbc dec v default setting value
17920 #define   VD2_AFBC_CONV_CTRL                       (0x3184)
17921 #define P_VD2_AFBC_CONV_CTRL                       (volatile uint32_t *)((0x3184  << 2) + 0xff900000)
17922 //Bit   31:12,   reserved
17923 //Bit   11: 0,   conv_lbuf_len       uns, default = 256, unit=16 pixel need to set = 2^n
17924 #define   VD2_AFBC_LBUF_DEPTH                      (0x3185)
17925 #define P_VD2_AFBC_LBUF_DEPTH                      (volatile uint32_t *)((0x3185  << 2) + 0xff900000)
17926 //Bit   31:28,   reserved
17927 //Bit   27:16,   dec_lbuf_depth      uns, default = 128; // unit= 8 pixel
17928 //Bit   15:12,   reserved
17929 //Bit   11:0,    mif_lbuf_depth      uns, default = 128;
17930 #define   VD2_AFBC_HEAD_BADDR                      (0x3186)
17931 #define P_VD2_AFBC_HEAD_BADDR                      (volatile uint32_t *)((0x3186  << 2) + 0xff900000)
17932 //Bit   31:0,   mif_info_baddr      uns, default = 32'h0;
17933 #define   VD2_AFBC_BODY_BADDR                      (0x3187)
17934 #define P_VD2_AFBC_BODY_BADDR                      (volatile uint32_t *)((0x3187  << 2) + 0xff900000)
17935 //Bit   31:0,   mif_data_baddr      uns, default = 32'h0001_0000;
17936 #define   VD2_AFBC_SIZE_OUT                        (0x3188)
17937 #define P_VD2_AFBC_SIZE_OUT                        (volatile uint32_t *)((0x3188  << 2) + 0xff900000)
17938 //Bit   31:29,   reserved
17939 //Bit   28:16,   hsize_out          uns, default = 1920 ; // unit: 1 pixel
17940 //Bit   15:13,   reserved
17941 //Bit    12:0,   vsize_out          uns, default = 1080 ; // unit: 1 pixel
17942 #define   VD2_AFBC_OUT_YSCOPE                      (0x3189)
17943 #define P_VD2_AFBC_OUT_YSCOPE                      (volatile uint32_t *)((0x3189  << 2) + 0xff900000)
17944 //Bit   31:29,   reserved
17945 //Bit   28:16,   out_vert_bgn        uns, default = 0    ; // unit: 1 pixel
17946 //Bit   15:13,   reserved
17947 //Bit    12:0,   out_vert_end        uns, default = 1079 ; // unit: 1 pixel
17948 #define   VD2_AFBC_STAT                            (0x318a)
17949 #define P_VD2_AFBC_STAT                            (volatile uint32_t *)((0x318a  << 2) + 0xff900000)
17950 //Bit   31:1,   reserved
17951 //Bit      0,   frm_end_stat         uns, frame end status
17952 #define   VD2_AFBC_VD_CFMT_CTRL                    (0x318b)
17953 #define P_VD2_AFBC_VD_CFMT_CTRL                    (volatile uint32_t *)((0x318b  << 2) + 0xff900000)
17954 //Bit 31    it true, disable clock, otherwise enable clock
17955 //Bit 30    soft rst bit
17956 //Bit 28    if true, horizontal formatter use repeating to generete pixel, otherwise use bilinear interpolation
17957 //Bit 27:24 horizontal formatter initial phase
17958 //Bit 23    horizontal formatter repeat pixel 0 enable
17959 //Bit 22:21 horizontal Y/C ratio, 00: 1:1, 01: 2:1, 10: 4:1
17960 //Bit 20    horizontal formatter enable
17961 //Bit 19    if true, always use phase0 while vertical formater, meaning always
17962 //          repeat data, no interpolation
17963 //Bit 18    if true, disable vertical formatter chroma repeat last line
17964 //Bit 17    veritcal formatter dont need repeat line on phase0, 1: enable, 0: disable
17965 //Bit 16    veritcal formatter repeat line 0 enable
17966 //Bit 15:12 vertical formatter skip line num at the beginning
17967 //Bit 11:8  vertical formatter initial phase
17968 //Bit 7:1   vertical formatter phase step (3.4)
17969 //Bit 0     vertical formatter enable
17970 #define   VD2_AFBC_VD_CFMT_W                       (0x318c)
17971 #define P_VD2_AFBC_VD_CFMT_W                       (volatile uint32_t *)((0x318c  << 2) + 0xff900000)
17972 //Bit 27:16  horizontal formatter width
17973 //Bit 11:0   vertical formatter width
17974 #define   VD2_AFBC_MIF_HOR_SCOPE                   (0x318d)
17975 #define P_VD2_AFBC_MIF_HOR_SCOPE                   (volatile uint32_t *)((0x318d  << 2) + 0xff900000)
17976 //Bit   31:26,   reserved
17977 //Bit   25:16,   mif_blk_bgn_h        uns, default = 0  ; // unit: 32 pixel/block hor
17978 //Bit   15:10,   reserved
17979 //Bit    9: 0,   mif_blk_end_h        uns, default = 59 ; // unit: 32 pixel/block hor
17980 #define   VD2_AFBC_MIF_VER_SCOPE                   (0x318e)
17981 #define P_VD2_AFBC_MIF_VER_SCOPE                   (volatile uint32_t *)((0x318e  << 2) + 0xff900000)
17982 //Bit   31:28,   reserved
17983 //Bit   27:16,   mif_blk_bgn_v        uns, default = 0  ; // unit: 32 pixel/block ver
17984 //Bit   15:12,   reserved
17985 //Bit   11: 0,   mif_blk_end_v        uns, default = 269; // unit: 32 pixel/block ver
17986 #define   VD2_AFBC_PIXEL_HOR_SCOPE                 (0x318f)
17987 #define P_VD2_AFBC_PIXEL_HOR_SCOPE                 (volatile uint32_t *)((0x318f  << 2) + 0xff900000)
17988 //Bit   31:29,   reserved
17989 //Bit   28:16,   dec_pixel_bgn_h        uns, default = 0  ; // unit: pixel
17990 //Bit   15:13,   reserved
17991 //Bit   12: 0,   dec_pixel_end_h        uns, default = 1919 ; // unit: pixel
17992 #define   VD2_AFBC_PIXEL_VER_SCOPE                 (0x3190)
17993 #define P_VD2_AFBC_PIXEL_VER_SCOPE                 (volatile uint32_t *)((0x3190  << 2) + 0xff900000)
17994 //Bit   31:29,   reserved
17995 //Bit   28:16,   dec_pixel_bgn_v        uns, default = 0  ; // unit: pixel
17996 //Bit   15:13,   reserved
17997 //Bit   12: 0,   dec_pixel_end_v        uns, default = 1079 ; // unit: pixel
17998 #define   VD2_AFBC_VD_CFMT_H                       (0x3191)
17999 #define P_VD2_AFBC_VD_CFMT_H                       (volatile uint32_t *)((0x3191  << 2) + 0xff900000)
18000 //Bit 12:0   vertical formatter height
18001 // synopsys translate_off
18002 // synopsys translate_on
18003 //
18004 // Closing file:  vd2_afbc_dec_regs.h
18005 //
18006 //register definition for osd1 afbcd dec
18007 // 8'ha0-8'haf
18008 //
18009 // Reading file:  osd1_afbcd_regs.h
18010 //
18011 // synopsys translate_off
18012 // synopsys translate_on
18013 ////===============================////
18014 //// reg
18015 ////===============================////
18016 #define   OSD1_AFBCD_ENABLE                        (0x31a0)
18017 #define P_OSD1_AFBCD_ENABLE                        (volatile uint32_t *)((0x31a0  << 2) + 0xff900000)
18018 //Bit   31:16,    reserved
18019 //Bit   15:9,     id_fifo_thrd      unsigned  , default = 64, axi id fifo threshold
18020 //Bit   8,        dec_enable        unsigned  , default = 0
18021 //Bit   7:1,      reserved
18022 //Bit   0,        frm_start         unsigned  , default = 0
18023 #define   OSD1_AFBCD_MODE                          (0x31a1)
18024 #define P_OSD1_AFBCD_MODE                          (volatile uint32_t *)((0x31a1  << 2) + 0xff900000)
18025 //Bit   31,       soft_reset              the use as go_field
18026 //Bit   30:29,    reserved
18027 //Bit   28,       axi_reorder_mode        default=0, the axi reorder mode, note : don't seting
18028 //Bit   27:26,    reserved
18029 //Bit   25:24,    mif_urgent              uns, default = 3 , info mif and data mif urgent
18030 //Bit   22:16,    hold_line_num
18031 //Bit   15:8,     rgba_exchan_ctrl
18032 //Bit   7,        reserved
18033 //Bit   6,        hreg_block_split        uns, default = 1 , Enable/disable block split mode in sparse allocation
18034 //Bit   5,        hreg_half_block         uns, default = 1 , Enable/disable half block decoding. 1=half block, 0=full block
18035 //Bit   4:0,      hreg_pixel_packing_fmt  uns, default = 5 , Pixel format
18036 #define   OSD1_AFBCD_SIZE_IN                       (0x31a2)
18037 #define P_OSD1_AFBCD_SIZE_IN                       (volatile uint32_t *)((0x31a2  << 2) + 0xff900000)
18038 //Bit   31:16     hreg_hsize_in          uns, default = 1920 , pic horz size in  unit: pixel
18039 //Bit   15:0,     hreg_vsize_in          uns, default = 1080 , pic vert size in  unit: pixel
18040 #define   OSD1_AFBCD_HDR_PTR                       (0x31a3)
18041 #define P_OSD1_AFBCD_HDR_PTR                       (volatile uint32_t *)((0x31a3  << 2) + 0xff900000)
18042 //Bit   31:0      hreg_hdr_ptr           uns, default = 0 ,
18043 #define   OSD1_AFBCD_FRAME_PTR                     (0x31a4)
18044 #define P_OSD1_AFBCD_FRAME_PTR                     (volatile uint32_t *)((0x31a4  << 2) + 0xff900000)
18045 //Bit   31:0      hreg_frame_ptr         uns, default = 0 , The start address of the target frame buffer.
18046 //                                       For YUV format, this pointer specifies the luma buffer.
18047 #define   OSD1_AFBCD_CHROMA_PTR                    (0x31a5)
18048 #define P_OSD1_AFBCD_CHROMA_PTR                    (volatile uint32_t *)((0x31a5  << 2) + 0xff900000)
18049 //Bit   31:0      hreg_chroma_ptr        uns, default = 0 , Only valid in YUV format, to specify the target chroma buffer.
18050 #define   OSD1_AFBCD_CONV_CTRL                     (0x31a6)
18051 #define P_OSD1_AFBCD_CONV_CTRL                     (volatile uint32_t *)((0x31a6  << 2) + 0xff900000)
18052 //Bit   31:15,   reserved
18053 //Bit   15: 0,   conv_lbuf_len           uns, default = 1024, unit=16 pixel need to set = 2^n
18054 #define   OSD1_AFBCD_STATUS                        (0x31a8)
18055 #define P_OSD1_AFBCD_STATUS                        (volatile uint32_t *)((0x31a8  << 2) + 0xff900000)
18056 //Bit   30:4,     reserved
18057 //Bit   3,        hreg_dec_resp          uns, default = 0 , Decoder error flage from the dec4x4 core
18058 //Bit   2,        hreg_axi_bresp         uns, default = 0 , Bus error flag for AXI write error
18059 //Bit   1,        hreg_axi_rresp         uns, default = 0 , Bus error flag for AXI read error
18060 //Bit   0,        hreg_idle_n            uns, default = 0 , Idle output, value 0 indicates the standalone decoder is free now and can start the next frame.
18061 #define   OSD1_AFBCD_PIXEL_HSCOPE                  (0x31a9)
18062 #define P_OSD1_AFBCD_PIXEL_HSCOPE                  (volatile uint32_t *)((0x31a9  << 2) + 0xff900000)
18063 //Bit   31:16,   dec_pixel_bgn_h         uns, default = 0  ; // unit: pixel
18064 //Bit   15: 0,   dec_pixel_end_h         uns, default = 1919 ; // unit: pixel
18065 #define   OSD1_AFBCD_PIXEL_VSCOPE                  (0x31aa)
18066 #define P_OSD1_AFBCD_PIXEL_VSCOPE                  (volatile uint32_t *)((0x31aa  << 2) + 0xff900000)
18067 //Bit   31:16,   dec_pixel_bgn_v         uns, default = 0  ; // unit: pixel
18068 //Bit   15: 0,   dec_pixel_end_v         uns, default = 1079 ; // unit: pixel
18069 // synopsys translate_off
18070 // synopsys translate_on
18071 //
18072 // Closing file:  osd1_afbcd_regs.h
18073 //
18074 //register definition for osd1 afbcd dec
18075 // 8'hb0-8'hca
18076 //
18077 // Reading file:  vpp_wm_regs.h
18078 //
18079 //// synopsys translate_off
18080 //`ifdef VPP_WM_REGS_H
18081 //`else
18082 //    `define VPP_WM_REGS_H
18083 //// synopsys translate_on
18084 //    `define VPPB_VCBUS_BASE                8'h32
18085 #define   WM_CTRL                                  (0x31b0)
18086 #define P_WM_CTRL                                  (volatile uint32_t *)((0x31b0  << 2) + 0xff900000)
18087 //Bit  31,      int_mask                    default = 0
18088 //Bit  30:16,   reserved
18089 //Bit  15:8,    strength_multiply           default =1
18090 //Bit  7:6,     reserved
18091 //Bit  5,       shift_en                      default = 0
18092 //Bit  4,       background_embedding_on         default =0
18093 //Bit  3,       mark_en         default =0
18094 //Bit  2,       noise_en            default =0
18095 //Bit  1,       blend_en            default =0
18096 //Bit  0,       wm_en           default =0
18097 #define   WM_SPACE_RESOLUTION                      (0x31b1)
18098 #define P_WM_SPACE_RESOLUTION                      (volatile uint32_t *)((0x31b1  << 2) + 0xff900000)
18099 //Bit  31:25,   reserved
18100 //Bit  24:16,   spacing_horz            default =10
18101 //Bit  15:9,    reserved
18102 //Bit  8:0,     spacing_vert            default =12
18103 #define   WM_SYMBOLS_NUM                           (0x31b2)
18104 #define P_WM_SYMBOLS_NUM                           (volatile uint32_t *)((0x31b2  << 2) + 0xff900000)
18105 //Bit  31:8, reserved
18106 //Bit  7:4, symbols_cols        1~10;   default =5
18107 //Bit  3:0, symbols_rows        1~10;   default =2
18108 #define   WM_MARK_RESOLUTION                       (0x31b3)
18109 #define P_WM_MARK_RESOLUTION                       (volatile uint32_t *)((0x31b3  << 2) + 0xff900000)
18110 //Bit  31:20,  mark_hsize       mark_buffer_width;      default =1820
18111 //Bit  19:8,   mark_vsize       mark_buffer_height;     default =1820             t =780
18112 //Bit  7:6,     reserved
18113 //Bit  5:0,     scale           default =13                  // scale up
18114 #define   WM_FREQ_DIST_LEFT                        (0x31b4)
18115 #define P_WM_FREQ_DIST_LEFT                        (volatile uint32_t *)((0x31b4  << 2) + 0xff900000)
18116 //Bit  31:21, reserved
18117 //Bit  20:0, freq_dist_left         default =21092          // frequency_distance [n][0]  each is 7bits, there is 3 dist
18118 #define   WM_FREQ_DIST_RIGHT                       (0x31b5)
18119 #define P_WM_FREQ_DIST_RIGHT                       (volatile uint32_t *)((0x31b5  << 2) + 0xff900000)
18120 //Bit  31:21, reserved
18121 //Bit  20:0, freq_dist_right            default =21092          // frequency_distance [n][0]  each is 7bits, there is 3 dist
18122 #define   WM_FREQ_DIST_TOP                         (0x31b6)
18123 #define P_WM_FREQ_DIST_TOP                         (volatile uint32_t *)((0x31b6  << 2) + 0xff900000)
18124 //Bit  31:21, reserved
18125 //Bit  20:0, freq_dist_top          default =21092          // frequency_distance [n][0]  each is 7bits, there is 3 dist
18126 #define   WM_SYMBOLS_XPOS                          (0x31b7)
18127 #define P_WM_SYMBOLS_XPOS                          (volatile uint32_t *)((0x31b7  << 2) + 0xff900000)
18128 //Bit  31:29, reserved
18129 //Bit  28:16, symbols_xpos_start            default =1536      // SYMBOLS_XPOS * h_res
18130 //Bit  15:13, reserved
18131 //Bit  12:0,  symbols_xpos_end          default =3356        // SYMBOLS_XPOS * h_res + mark_hsize
18132 #define   WM_SYMBOLS_YPOS                          (0x31b8)
18133 #define P_WM_SYMBOLS_YPOS                          (volatile uint32_t *)((0x31b8  << 2) + 0xff900000)
18134 //Bit  31:29, reserved
18135 //Bit  28:16, symbols_ypos_start            default =756      // SYMBOLS_yPOS * y_res
18136 //Bit  15:13, reserved
18137 //Bit  12:0,  symbols_ypos_end              default =1536        // SYMBOLS_yPOS * y_res + mark_vsize
18138 #define   WM_STORAGE_SETTING                       (0x31b9)
18139 #define P_WM_STORAGE_SETTING                       (volatile uint32_t *)((0x31b9  << 2) + 0xff900000)
18140 //Bit  31:28, reserved
18141 //Bit  27:16, direction_max     default = 80
18142 //Bit     15, reserved
18143 //Bit   14:8, storage_s         default =18               // biggest is 72      S
18144 //Bit      7, reserved
18145 //Bit    6:0, storage_max_distance          default =36    // biggest is 72      max_distance
18146 #define   WM_VIDEO_RESOLUTION                      (0x31ba)
18147 #define P_WM_VIDEO_RESOLUTION                      (volatile uint32_t *)((0x31ba  << 2) + 0xff900000)
18148 //Bit  31:29, reserved
18149 //Bit  28:16, h_res         default =3840                   // video hsize
18150 //Bit  15:13, reserved
18151 //Bit  12:0,  v_res         default =2160                   // video vsize
18152 #define   WM_EMBEDDING_STRENGTH_THRESHOLD0         (0x31bb)
18153 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD0         (volatile uint32_t *)((0x31bb  << 2) + 0xff900000)
18154 //Bit  31:28, reserved
18155 //Bit  27:16, embedding_strength_threshold_0        default =48
18156 //Bit  15:12, reserved
18157 //Bit  11:0,  embedding_strength_threshold_1        default =60
18158 #define   WM_EMBEDDING_STRENGTH_THRESHOLD1         (0x31bc)
18159 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD1         (volatile uint32_t *)((0x31bc  << 2) + 0xff900000)
18160 //Bit  31:28, reserved
18161 //Bit  27:16, embedding_strength_threshold_2        default = 68
18162 //Bit  15:12, reserved
18163 //Bit  11:0,  embedding_strength_threshold_3        default = 80
18164 #define   WM_EMBEDDING_STRENGTH_THRESHOLD2         (0x31bd)
18165 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD2         (volatile uint32_t *)((0x31bd  << 2) + 0xff900000)
18166 //Bit  31:28, reserved
18167 //Bit  27:16, embedding_strength_threshold_4        default = 88
18168 //Bit  15:12, reserved
18169 //Bit  11:0,  embedding_strength_threshold_5        default = 96
18170 #define   WM_EMBEDDING_STRENGTH_THRESHOLD3         (0x31be)
18171 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD3         (volatile uint32_t *)((0x31be  << 2) + 0xff900000)
18172 //Bit  31:28, reserved
18173 //Bit  27:16, embedding_strength_threshold_6        default = 100
18174 //Bit  15:12, reserved
18175 //Bit  11:0,  embedding_strength_threshold_7        default = 108
18176 #define   WM_EMBEDDING_STRENGTH_THRESHOLD4         (0x31bf)
18177 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD4         (volatile uint32_t *)((0x31bf  << 2) + 0xff900000)
18178 //Bit  31:28, reserved
18179 //Bit  27:16, embedding_strength_threshold_8        default = 112
18180 //Bit  15:12, reserved
18181 //Bit  11:0,  embedding_strength_threshold_9        default = 116
18182 #define   WM_EMBEDDING_STRENGTH_THRESHOLD5         (0x31c0)
18183 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD5         (volatile uint32_t *)((0x31c0  << 2) + 0xff900000)
18184 //Bit  31:28, reserved
18185 //Bit  27:16, embedding_strength_threshold_10       default = 120
18186 //Bit  15:12, reserved
18187 //Bit  11:0,  embedding_strength_threshold_11       default = 124
18188 #define   WM_EMBEDDING_STRENGTH_THRESHOLD_BG0      (0x31c1)
18189 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD_BG0      (volatile uint32_t *)((0x31c1  << 2) + 0xff900000)
18190 //Bit  31:28, reserved
18191 //Bit  27:16, embedding_strength_threshold_bg_0     default =320
18192 //Bit  15:12, reserved
18193 //Bit  11:0,  embedding_strength_threshold_bg_1     default = 328
18194 #define   WM_EMBEDDING_STRENGTH_THRESHOLD_BG1      (0x31c2)
18195 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD_BG1      (volatile uint32_t *)((0x31c2  << 2) + 0xff900000)
18196 //Bit  31:28, reserved
18197 //Bit  27:16, embedding_strength_threshold_bg_2     default = 332
18198 //Bit  15:12, reserved
18199 //Bit  11:0,  embedding_strength_threshold_bg_3     default = 340
18200 #define   WM_EMBEDDING_STRENGTH_THRESHOLD_BG2      (0x31c3)
18201 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD_BG2      (volatile uint32_t *)((0x31c3  << 2) + 0xff900000)
18202 //Bit  31:28, reserved
18203 //Bit  27:16, embedding_strength_threshold_bg_4     default = 344
18204 //Bit  15:12, reserved
18205 //Bit  11:0,  embedding_strength_threshold_bg_5     default = 348
18206 #define   WM_EMBEDDING_STRENGTH_THRESHOLD_BG3      (0x31c4)
18207 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD_BG3      (volatile uint32_t *)((0x31c4  << 2) + 0xff900000)
18208 //Bit  31:28, reserved
18209 //Bit  27:16, embedding_strength_threshold_bg_6     default = 352
18210 //Bit  15:12, reserved
18211 //Bit  11:0,  embedding_strength_threshold_bg_7     default = 356
18212 #define   WM_EMBEDDING_STRENGTH_THRESHOLD_BG4      (0x31c5)
18213 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD_BG4      (volatile uint32_t *)((0x31c5  << 2) + 0xff900000)
18214 //Bit  31:28, reserved
18215 //Bit  27:16, embedding_strength_threshold_bg_8     default = 360
18216 //Bit  15:12, reserved
18217 //Bit  11:0,  embedding_strength_threshold_bg_9     default = 368
18218 #define   WM_EMBEDDING_STRENGTH_THRESHOLD_BG5      (0x31c6)
18219 #define P_WM_EMBEDDING_STRENGTH_THRESHOLD_BG5      (volatile uint32_t *)((0x31c6  << 2) + 0xff900000)
18220 //Bit  31:28, reserved
18221 //Bit  27:16, embedding_strength_threshold_bg_10        default = 372
18222 //Bit  15:12, reserved
18223 //Bit  11:0,  embedding_strength_threshold_bg_11        default = 380
18224 #define   WM_AM_LUT_DATA_PORT                      (0x31c7)
18225 #define P_WM_AM_LUT_DATA_PORT                      (volatile uint32_t *)((0x31c7  << 2) + 0xff900000)
18226 #define   WM_AM_LUT_ADDR_PORT                      (0x31c8)
18227 #define P_WM_AM_LUT_ADDR_PORT                      (volatile uint32_t *)((0x31c8  << 2) + 0xff900000)
18228 #define   WM_STATUS_RO                             (0x31c9)
18229 #define P_WM_STATUS_RO                             (volatile uint32_t *)((0x31c9  << 2) + 0xff900000)
18230 //Bit  31,  ro_resolution_changed
18231 //Bit  30:29, reserved
18232 //Bit  30:16, ro_hsize_in
18233 //Bit  15:13, reserved
18234 //Bit  8:0,   ro_vsize_in
18235 #define   WM_STATUS_RAM_RO                         (0x31ca)
18236 #define P_WM_STATUS_RAM_RO                         (volatile uint32_t *)((0x31ca  << 2) + 0xff900000)
18237 //Bit  31:9,  reserved
18238 //Bit  8:0,   ro_ram_addr
18239 #define   WM_THRES_ADDR_PORT                       (0x31cb)
18240 #define P_WM_THRES_ADDR_PORT                       (volatile uint32_t *)((0x31cb  << 2) + 0xff900000)
18241 #define   WM_THRES_DATA_PORT                       (0x31cd)
18242 #define P_WM_THRES_DATA_PORT                       (volatile uint32_t *)((0x31cd  << 2) + 0xff900000)
18243 //
18244 // Closing file:  vpp_wm_regs.h
18245 //
18246 // 8'hd0-8hef
18247 //
18248 // Reading file:  bt2020_regs.h
18249 //
18250 // synopsys translate_off
18251 // synopsys translate_on
18252 //    `define XVYCC_VCBUS_BASE     8'hfe
18253 //Bit 31:27 for all [31] for all eotf enable,[30] for matrix3x3 enable, [29:27] for eotf_ch0~3
18254 //Bit 17:6  for clock gating
18255 //Bit 5:4   pscale_mode ch2
18256 //Bit 3:2   pscale_mode ch1
18257 //Bit 1:0   pscale_mode ch0
18258 #define   VPP_EOTF_CTL                             (0x31d0)
18259 #define P_VPP_EOTF_CTL                             (volatile uint32_t *)((0x31d0  << 2) + 0xff900000)
18260 //Bit 28:16 coef00
18261 //Bit 12:0  coef01
18262 #define   VPP_EOTF_COEF00_01                       (0x31d1)
18263 #define P_VPP_EOTF_COEF00_01                       (volatile uint32_t *)((0x31d1  << 2) + 0xff900000)
18264 //Bit 28:16 coef02
18265 //Bit 12:0  coef10
18266 #define   VPP_EOTF_COEF02_10                       (0x31d2)
18267 #define P_VPP_EOTF_COEF02_10                       (volatile uint32_t *)((0x31d2  << 2) + 0xff900000)
18268 //Bit 28:16 coef11
18269 //Bit 12:0  coef12
18270 #define   VPP_EOTF_COEF11_12                       (0x31d3)
18271 #define P_VPP_EOTF_COEF11_12                       (volatile uint32_t *)((0x31d3  << 2) + 0xff900000)
18272 //Bit 28:16 coef20
18273 //Bit 12:0  coef21
18274 #define   VPP_EOTF_COEF20_21                       (0x31d4)
18275 #define P_VPP_EOTF_COEF20_21                       (volatile uint32_t *)((0x31d4  << 2) + 0xff900000)
18276 //Bit 28:16 coef22
18277 //Bit   2:0 coef_rs
18278 #define   VPP_EOTF_COEF22_RS                       (0x31d5)
18279 #define P_VPP_EOTF_COEF22_RS                       (volatile uint32_t *)((0x31d5  << 2) + 0xff900000)
18280 #define   VPP_EOTF_LUT_ADDR_PORT                   (0x31d6)
18281 #define P_VPP_EOTF_LUT_ADDR_PORT                   (volatile uint32_t *)((0x31d6  << 2) + 0xff900000)
18282 #define   VPP_EOTF_LUT_DATA_PORT                   (0x31d7)
18283 #define P_VPP_EOTF_LUT_DATA_PORT                   (volatile uint32_t *)((0x31d7  << 2) + 0xff900000)
18284 #define   VPP_EOTF_3X3_OFST_0                      (0x31d8)
18285 #define P_VPP_EOTF_3X3_OFST_0                      (volatile uint32_t *)((0x31d8  << 2) + 0xff900000)
18286 #define   VPP_EOTF_3X3_OFST_1                      (0x31d9)
18287 #define P_VPP_EOTF_3X3_OFST_1                      (volatile uint32_t *)((0x31d9  << 2) + 0xff900000)
18288 // synopsys translate_off
18289 // synopsys translate_on
18290 //
18291 // Closing file:  bt2020_regs.h
18292 //
18293 // synopsys translate_off
18294 // synopsys translate_on
18295 //
18296 // Closing file:  srscl_reg.h
18297 //
18298 // -----------------------------------------------
18299 // CBUS_BASE:  VPPC_VCBUS_BASE = 0x32
18300 // -----------------------------------------------
18301 //
18302 // Reading file:  srsharp_regs.h
18303 //
18304 // synopsys translate_off
18305 // synopsys translate_on
18306 // `define  VPPB_VCBUS_BASE   8'h31
18307 //VDIN0        8'h00 - 8'h7f
18308 //VDIN1        8'h80 - 8'hef
18309 #define  SRSHARP0_OFFSET   (0x00<<2)
18310 #define  SRSHARP1_OFFSET   (0x80<<2)
18311 
18312 //
18313 // Reading file:  sharp_regs.h
18314 //
18315 #define   SHARP_HVSIZE                             (0x3200)
18316 #define P_SHARP_HVSIZE                             (volatile uint32_t *)((0x3200  << 2) + 0xff900000)
18317 //Bit 31:29,        reserved
18318 //Bit 28:16,        reg_pknr_hsize                                                                                                              . unsigned  , default = 1920
18319 //Bit 15:13,        reserved
18320 //Bit 12: 0,        reg_pknr_vsize                                                                                                              . unsigned  , default = 1080
18321 #define   SHARP_HVBLANK_NUM                        (0x3201)
18322 #define P_SHARP_HVBLANK_NUM                        (volatile uint32_t *)((0x3201  << 2) + 0xff900000)
18323 //Bit 31:16,        reserved
18324 //Bit 15: 8,        reg_pknr_hblank_num                                                                                                         . unsigned  , default = 20
18325 //Bit  7: 0,        reg_pknr_vblank_num                                                                                                         . unsigned  , default = 73
18326 #define   NR_GAUSSIAN_MODE                         (0x3202)
18327 #define P_NR_GAUSSIAN_MODE                         (volatile uint32_t *)((0x3202  << 2) + 0xff900000)
18328 //Bit 31: 5,        reserved
18329 //Bit  4,            reg_nr_gau_ymode                            : 0 3x3 filter; 1: 5x5 filter                                                   . unsigned  , default = 1
18330 //Bit  3: 1,        reserved
18331 //Bit  0,            reg_nr_gau_cmode                            : 0 3x3 filter; 1: 5x5 filter                                                   . unsigned  , default = 1
18332 #define   PK_CON_2CIRHPGAIN_TH_RATE                (0x3205)
18333 #define P_PK_CON_2CIRHPGAIN_TH_RATE                (volatile uint32_t *)((0x3205  << 2) + 0xff900000)
18334 //Bit 31:24,        reg_pk_cirhpcon2gain0                       : threshold0 of curve to map hpcon to hpgain for circle hp filter (all 8 direction same). 0~255.. unsigned  , default = 25
18335 //Bit 23:16,        reg_pk_cirhpcon2gain1                       : threshold1 of curve to map hpcon to hpgain for circle hp filter (all 8 direction same). 0~255.. unsigned  , default = 60
18336 //Bit 15: 8,        reg_pk_cirhpcon2gain5                       : rate0 (for hpcon<th0) of curve to map hpcon to hpgain for circle hp filter (all 8 direction same). 0~255.. unsigned  , default = 80
18337 //Bit  7: 0,        reg_pk_cirhpcon2gain6                       : rate1 (for hpcon>th1) of curve to map hpcon to hpgain for circle hp filter (all 8 direction same). 0~255.. unsigned  , default = 20
18338 #define   PK_CON_2CIRHPGAIN_LIMIT                  (0x3206)
18339 #define P_PK_CON_2CIRHPGAIN_LIMIT                  (volatile uint32_t *)((0x3206  << 2) + 0xff900000)
18340 //Bit 31:24,        reg_pk_cirhpcon2gain2                       : level limit(for hpcon<th0) of curve to map hpcon to hpgain for circle hp filter (all 8 direction same). 0~255.. unsigned  , default = 155
18341 //Bit 23:16,        reg_pk_cirhpcon2gain3                       : level limit(for th0<hpcon<th1) of curve to map hpcon to hpgain for circle hp filter (all 8 direction same). 0~255.. unsigned  , default = 150
18342 //Bit 15: 8,        reg_pk_cirhpcon2gain4                       : level limit(for hpcon>th1) of curve to map hpcon to hpgain for circle hp filter (all 8 direction same). 0~255.. unsigned  , default = 5
18343 //Bit  7: 0,        reserved
18344 #define   PK_CON_2CIRBPGAIN_TH_RATE                (0x3207)
18345 #define P_PK_CON_2CIRBPGAIN_TH_RATE                (volatile uint32_t *)((0x3207  << 2) + 0xff900000)
18346 //Bit 31:24,        reg_pk_cirbpcon2gain0                       : threshold0 of curve to map bpcon to bpgain for circle bp filter (all 8 direction same). 0~255.. unsigned  , default = 20
18347 //Bit 23:16,        reg_pk_cirbpcon2gain1                       : threshold1 of curve to map bpcon to bpgain for circle bp filter (all 8 direction same).. unsigned  , default = 50
18348 //Bit 15: 8,        reg_pk_cirbpcon2gain5                       : rate0 (for bpcon<th0) of curve to map bpcon to bpgain for circle bp filter (all 8 direction same). 0~255.. unsigned  , default = 50
18349 //Bit  7: 0,        reg_pk_cirbpcon2gain6                       : rate1 (for bpcon>th1) of curve to map bpcon to bpgain for circle bp filter (all 8 direction same). 0~255.. unsigned  , default = 25
18350 #define   PK_CON_2CIRBPGAIN_LIMIT                  (0x3208)
18351 #define P_PK_CON_2CIRBPGAIN_LIMIT                  (volatile uint32_t *)((0x3208  << 2) + 0xff900000)
18352 //Bit 31:24,        reg_pk_cirbpcon2gain2                       : level limit(for bpcon<th0) of curve to map bpcon to bpgain for circle bp filter (all 8 direction same). 0~255.. unsigned  , default = 155
18353 //Bit 23:16,        reg_pk_cirbpcon2gain3                       : level limit(for th0<bpcon<th1) of curve to map bpcon to bpgain for circle bp filter (all 8 direction same). 0~255.. unsigned  , default = 150
18354 //Bit 15: 8,        reg_pk_cirbpcon2gain4                       : level limit(for bpcon>th1) of curve to map bpcon to bpgain for circle bp filter (all 8 direction same). 0~255.. unsigned  , default = 5
18355 //Bit  7: 0,        reserved
18356 #define   PK_CON_2DRTHPGAIN_TH_RATE                (0x3209)
18357 #define P_PK_CON_2DRTHPGAIN_TH_RATE                (volatile uint32_t *)((0x3209  << 2) + 0xff900000)
18358 //Bit 31:24,        reg_pk_drthpcon2gain0                       : threshold0 of curve to map hpcon to hpgain for directional hp filter (best direction). 0~255.. unsigned  , default = 25
18359 //Bit 23:16,        reg_pk_drthpcon2gain1                       : threshold1 of curve to map hpcon to hpgain for directional hp filter (best direction). 0~255.. unsigned  , default = 60
18360 //Bit 15: 8,        reg_pk_drthpcon2gain5                       : rate0 (for hpcon<th0) of curve to map hpcon to hpgain for directional hp filter (best direction). 0~255.. unsigned  , default = 80
18361 //Bit  7: 0,        reg_pk_drthpcon2gain6                       : rate1 (for hpcon>th1) of curve to map hpcon to hpgain for directional hp filter (best direction). 0~255.. unsigned  , default = 20
18362 #define   PK_CON_2DRTHPGAIN_LIMIT                  (0x320a)
18363 #define P_PK_CON_2DRTHPGAIN_LIMIT                  (volatile uint32_t *)((0x320a  << 2) + 0xff900000)
18364 //Bit 31:24,        reg_pk_drthpcon2gain2                       : level limit(for hpcon<th0) of curve to map hpcon to hpgain for directional hp filter (best direction).. unsigned  , default = 105
18365 //Bit 23:16,        reg_pk_drthpcon2gain3                       : level limit(for th0<hpcon<th1) of curve to map hpcon to hpgain for directional hp filter (best direction). 0~255.. unsigned  , default = 96
18366 //Bit 15: 8,        reg_pk_drthpcon2gain4                       : level limit(for hpcon>th1) of curve to map hpcon to hpgain for directional hp filter (best direction). 0~255.. unsigned  , default = 5
18367 //Bit  7: 0,        reserved
18368 #define   PK_CON_2DRTBPGAIN_TH_RATE                (0x320b)
18369 #define P_PK_CON_2DRTBPGAIN_TH_RATE                (volatile uint32_t *)((0x320b  << 2) + 0xff900000)
18370 //Bit 31:24,        reg_pk_drtbpcon2gain0                       : threshold0 of curve to map bpcon to bpgain for directional bp filter (best direction). 0~255.. unsigned  , default = 20
18371 //Bit 23:16,        reg_pk_drtbpcon2gain1                       : threshold1 of curve to map bpcon to bpgain for directional bp filter (best direction). 0~255.. unsigned  , default = 50
18372 //Bit 15: 8,        reg_pk_drtbpcon2gain5                       : rate0 (for bpcon<th0) of curve to map bpcon to bpgain for directional bp filter (best direction). 0~255.. unsigned  , default = 50
18373 //Bit  7: 0,        reg_pk_drtbpcon2gain6                       : rate1 (for bpcon>th1) of curve to map bpcon to bpgain for directional bp filter (best direction). 0~255.. unsigned  , default = 25
18374 #define   PK_CON_2DRTBPGAIN_LIMIT                  (0x320c)
18375 #define P_PK_CON_2DRTBPGAIN_LIMIT                  (volatile uint32_t *)((0x320c  << 2) + 0xff900000)
18376 //Bit 31:24,        reg_pk_drtbpcon2gain2                       : level limit(for bpcon<th0) of curve to map bpcon to bpgain for directional bp filter (best direction). 0~255.. unsigned  , default = 55
18377 //Bit 23:16,        reg_pk_drtbpcon2gain3                       : level limit(for th0<bpcon<th1) of curve to map bpcon to bpgain for directional bp filter (best direction). 0~255.. unsigned  , default = 40
18378 //Bit 15: 8,        reg_pk_drtbpcon2gain4                       : level limit(for bpcon>th1) of curve to map bpcon to bpgain for directional bp filter (best direction). 0~255.. unsigned  , default = 5
18379 //Bit  7: 0,        reserved
18380 #define   PK_CIRFB_LPF_MODE                        (0x320d)
18381 #define P_PK_CIRFB_LPF_MODE                        (volatile uint32_t *)((0x320d  << 2) + 0xff900000)
18382 //Bit 31:30,        reserved
18383 //Bit 29:28,        reg_cirhp_horz_mode                         : no horz filter on HP; 1: [1 2 1]/4; 2/3: [1 2 2 2 1]/8                        . unsigned  , default = 1
18384 //Bit 27:26,        reserved
18385 //Bit 25:24,        reg_cirhp_vert_mode                         : no vert filter on HP; 1: [1 2 1]/4; 2/3: [1 2 2 2 1]/8                        . unsigned  , default = 1
18386 //Bit 23:22,        reserved
18387 //Bit 21:20,        reg_cirhp_diag_mode                         : filter on HP; 1: [1 2 1]/4;                                                   . unsigned  , default = 1
18388 //Bit 19:14,        reserved
18389 //Bit 13:12,        reg_cirbp_horz_mode                         : no horz filter on BP; 1: [1 2 1]/4; 2/3: [1 2 2 2 1]/8                        . unsigned  , default = 1
18390 //Bit 11:10,        reserved
18391 //Bit  9: 8,        reg_cirbp_vert_mode                         : no vert filter on BP; 1: [1 2 1]/4; 2/3: [1 2 2 2 1]/8                        . unsigned  , default = 1
18392 //Bit  7: 6,        reserved
18393 //Bit  5: 4,        reg_cirbp_diag_mode                         : filter on BP; 1: [1 2 1]/4;                                                   . unsigned  , default = 1
18394 //Bit  3: 0,        reserved
18395 #define   PK_DRTFB_LPF_MODE                        (0x320e)
18396 #define P_PK_DRTFB_LPF_MODE                        (volatile uint32_t *)((0x320e  << 2) + 0xff900000)
18397 //Bit 31:30,        reserved
18398 //Bit 29:28,        reg_drthp_horz_mode                         : no horz filter on HP; 1: [1 2 1]/4; 2/3: [1 2 2 2 1]/8  2                     . unsigned  , default = 1
18399 //Bit 27:26,        reserved
18400 //Bit 25:24,        reg_drthp_vert_mode                         : no vert filter on HP; 1: [1 2 1]/4; 2/3: [1 2 2 2 1]/8  2                     . unsigned  , default = 1
18401 //Bit 23:22,        reserved
18402 //Bit 21:20,        reg_drthp_diag_mode                         : filter on HP; 1: [1 2 1]/4;                             1                     . unsigned  , default = 1
18403 //Bit 19:14,        reserved
18404 //Bit 13:12,        reg_drtbp_horz_mode                         : no horz filter on BP; 1: [1 2 1]/4; 2/3: [1 2 2 2 1]/8  2                     . unsigned  , default = 1
18405 //Bit 11:10,        reserved
18406 //Bit  9: 8,        reg_drtbp_vert_mode                         : no vert filter on BP; 1: [1 2 1]/4; 2/3: [1 2 2 2 1]/8  2                     . unsigned  , default = 1
18407 //Bit  7: 6,        reserved
18408 //Bit  5: 4,        reg_drtbp_diag_mode                         : filter on BP; 1: [1 2 1]/4;                             1                     . unsigned  , default = 1
18409 //Bit  3: 0,        reserved
18410 #define   PK_CIRFB_HP_CORING                       (0x320f)
18411 #define P_PK_CIRFB_HP_CORING                       (volatile uint32_t *)((0x320f  << 2) + 0xff900000)
18412 //Bit 31:22,        reserved
18413 //Bit 21:16,        reg_cirhp_horz_core                         : coring of HP for Horz                                                         . unsigned  , default = 0
18414 //Bit 15:14,        reserved
18415 //Bit 13: 8,        reg_cirhp_vert_core                         : coring of HP for Vert                                                         . unsigned  , default = 0
18416 //Bit  7: 6,        reserved
18417 //Bit  5: 0,        reg_cirhp_diag_core                         : coring of HP for Diag                                                         . unsigned  , default = 0
18418 #define   PK_CIRFB_BP_CORING                       (0x3210)
18419 #define P_PK_CIRFB_BP_CORING                       (volatile uint32_t *)((0x3210  << 2) + 0xff900000)
18420 //Bit 31:22,        reserved
18421 //Bit 21:16,        reg_cirbp_horz_core                         : coring of HP for Horz                                                         . unsigned  , default = 1
18422 //Bit 15:14,        reserved
18423 //Bit 13: 8,        reg_cirbp_vert_core                         : coring of HP for Vert                                                         . unsigned  , default = 1
18424 //Bit  7: 6,        reserved
18425 //Bit  5: 0,        reg_cirbp_diag_core                         : coring of HP for Diag                                                         . unsigned  , default = 1
18426 #define   PK_DRTFB_HP_CORING                       (0x3211)
18427 #define P_PK_DRTFB_HP_CORING                       (volatile uint32_t *)((0x3211  << 2) + 0xff900000)
18428 //Bit 31:22,        reserved
18429 //Bit 21:16,        reg_drthp_horz_core                         : coring of HP for Horz                                                         . unsigned  , default = 1
18430 //Bit 15:14,        reserved
18431 //Bit 13: 8,        reg_drthp_vert_core                         : coring of HP for Vert                                                         . unsigned  , default = 1
18432 //Bit  7: 6,        reserved
18433 //Bit  5: 0,        reg_drthp_diag_core                         : coring of HP for Diag                                                         . unsigned  , default = 1
18434 #define   PK_DRTFB_BP_CORING                       (0x3212)
18435 #define P_PK_DRTFB_BP_CORING                       (volatile uint32_t *)((0x3212  << 2) + 0xff900000)
18436 //Bit 31:22,        reserved
18437 //Bit 21:16,        reg_drtbp_horz_core                         : coring of HP for Horz                                                         . unsigned  , default = 1
18438 //Bit 15:14,        reserved
18439 //Bit 13: 8,        reg_drtbp_vert_core                         : coring of HP for Vert                                                         . unsigned  , default = 1
18440 //Bit  7: 6,        reserved
18441 //Bit  5: 0,        reg_drtbp_diag_core                         : coring of HP for Diag                                                         . unsigned  , default = 1
18442 #define   PK_CIRFB_BLEND_GAIN                      (0x3213)
18443 #define P_PK_CIRFB_BLEND_GAIN                      (volatile uint32_t *)((0x3213  << 2) + 0xff900000)
18444 //Bit 31:28,        reg_hp_cir_hgain                            : normalized 8 as '1'                                                           . unsigned  , default = 8
18445 //Bit 27:24,        reg_hp_cir_vgain                            : normalized 8 as '1'                                                           . unsigned  , default = 8
18446 //Bit 23:20,        reg_hp_cir_dgain                            : normalized 8 as '1'                                                           . unsigned  , default = 8
18447 //Bit 19:16,        reserved
18448 //Bit 15:12,        reg_bp_cir_hgain                            : normalized 8 as '1'                                                           . unsigned  , default = 8
18449 //Bit 11: 8,        reg_bp_cir_vgain                            : normalized 8 as '1'                                                           . unsigned  , default = 8
18450 //Bit  7: 4,        reg_bp_cir_dgain                            : normalized 8 as '1'                                                           . unsigned  , default = 8
18451 //Bit  3: 0,        reserved
18452 #define   NR_ALPY_SSD_GAIN_OFST                    (0x3214)
18453 #define P_NR_ALPY_SSD_GAIN_OFST                    (volatile uint32_t *)((0x3214  << 2) + 0xff900000)
18454 //Bit 31:16,        reserved
18455 //Bit 15: 8,        reg_nr_alp0_ssd_gain                        : gain to max ssd normalized 16 as '1'                                          . unsigned  , default = 16
18456 //Bit  7: 6,        reserved
18457 //Bit  5: 0,        reg_nr_alp0_ssd_ofst                        : offset to ssd before dividing to min_err                                      . signed    , default = -2
18458 #define   NR_ALP0Y_ERR2CURV_TH_RATE                (0x3215)
18459 #define P_NR_ALP0Y_ERR2CURV_TH_RATE                (volatile uint32_t *)((0x3215  << 2) + 0xff900000)
18460 //Bit 31:24,        reg_nr_alp0_minerr_ypar0                    : threshold0 of curve to map mierr to alp0 for luma channel, this will be set value of flat region mierr that no need blur. 0~255.. unsigned  , default = 10
18461 //Bit 23:16,        reg_nr_alp0_minerr_ypar1                    : threshold1 of curve to map mierr to alp0 for luma channel,this will be set value of texture region mierr that can not blur.. unsigned  , default = 25
18462 //Bit 15: 8,        reg_nr_alp0_minerr_ypar5                    : rate0 (for mierr<th0) of curve to map mierr to alp0 for luma channel. the larger of the value, the deep of the slope. 0~255.. unsigned  , default = 80
18463 //Bit  7: 0,        reg_nr_alp0_minerr_ypar6                    : rate1 (for mierr>th1) of curve to map mierr to alp0 for luma channel. the larger of the value, the deep of the slope. 0~255.. unsigned  , default = 64
18464 #define   NR_ALP0Y_ERR2CURV_LIMIT                  (0x3216)
18465 #define P_NR_ALP0Y_ERR2CURV_LIMIT                  (volatile uint32_t *)((0x3216  << 2) + 0xff900000)
18466 //Bit 31:24,        reg_nr_alp0_minerr_ypar2                    : level limit(for mierr<th0) of curve to map mierr to alp0 for luma channel, this will be set to alp0 that we can do for flat region. 0~255.. unsigned  , default = 63
18467 //Bit 23:16,        reg_nr_alp0_minerr_ypar3                    : level limit(for th0<mierr<th1) of curve to map mierr to alp0 for luma channel, this will be set to alp0 that we can do for misc region. 0~255.. unsigned  , default = 0
18468 //Bit 15: 8,        reg_nr_alp0_minerr_ypar4                    : level limit(for mierr>th1) of curve to map mierr to alp0 for luma channel, this will be set to alp0 that we can do for texture region. 0~255.. unsigned  , default = 63
18469 //Bit  7: 0,        reserved
18470 #define   NR_ALP0C_ERR2CURV_TH_RATE                (0x3217)
18471 #define P_NR_ALP0C_ERR2CURV_TH_RATE                (volatile uint32_t *)((0x3217  << 2) + 0xff900000)
18472 //Bit 31:24,        reg_nr_alp0_minerr_cpar0                    : threshold0 of curve to map mierr to alp0 for chroma channel, this will be set value of flat region mierr that no need blur.. unsigned  , default = 10
18473 //Bit 23:16,        reg_nr_alp0_minerr_cpar1                    : threshold1 of curve to map mierr to alp0 for chroma channel,this will be set value of texture region mierr that can not blur.. unsigned  , default = 25
18474 //Bit 15: 8,        reg_nr_alp0_minerr_cpar5                    : rate0 (for mierr<th0) of curve to map mierr to alp0 for chroma channel. the larger of the value, the deep of the slope. 0~255.. unsigned  , default = 80
18475 //Bit  7: 0,        reg_nr_alp0_minerr_cpar6                    : rate1 (for mierr>th1) of curve to map mierr to alp0 for chroma channel. the larger of the value, the deep of the slope. 0~255.. unsigned  , default = 64
18476 #define   NR_ALP0C_ERR2CURV_LIMIT                  (0x3218)
18477 #define P_NR_ALP0C_ERR2CURV_LIMIT                  (volatile uint32_t *)((0x3218  << 2) + 0xff900000)
18478 //Bit 31:24,        reg_nr_alp0_minerr_cpar2                    : level limit(for mierr<th0) of curve to map mierr to alp0 for chroma channel, this will be set to alp0 that we can do for flat region. 0~255.. unsigned  , default = 63
18479 //Bit 23:16,        reg_nr_alp0_minerr_cpar3                    : level limit(for th0<mierr<th1) of curve to map mierr to alp0 for chroma channel, this will be set to alp0 that we can do for misc region. 0~255.. unsigned  , default = 0
18480 //Bit 15: 8,        reg_nr_alp0_minerr_cpar4                    : level limit(for mierr>th1) of curve to map mierr to alp0 for chroma channel, this will be set to alp0 that we can do for texture region. 0~255.. unsigned  , default = 63
18481 //Bit  7: 0,        reserved
18482 #define   NR_ALP0_MIN_MAX                          (0x3219)
18483 #define P_NR_ALP0_MIN_MAX                          (volatile uint32_t *)((0x3219  << 2) + 0xff900000)
18484 //Bit 31:30,        reserved
18485 //Bit 29:24,        reg_nr_alp0_ymin                            : normalized to 64 as '1'                                                       . unsigned  , default = 0
18486 //Bit 23:22,        reserved
18487 //Bit 21:16,        reg_nr_alp0_ymax                            : normalized to 64 as '1'                                                       . unsigned  , default = 63
18488 //Bit 15:14,        reserved
18489 //Bit 13: 8,        reg_nr_alp0_cmin                            : normalized to 64 as '1'                                                       . unsigned  , default = 0
18490 //Bit  7: 6,        reserved
18491 //Bit  5: 0,        reg_nr_alp0_cmax                            : normalized to 64 as '1'                                                       . unsigned  , default = 63
18492 #define   NR_ALP1_MIERR_CORING                     (0x321a)
18493 #define P_NR_ALP1_MIERR_CORING                     (volatile uint32_t *)((0x321a  << 2) + 0xff900000)
18494 //Bit 31:17,        reserved
18495 //Bit 16,            reg_nr_alp1_maxerr_mode                     : 0 max err; 1: xerr                                                            . unsigned  , default = 0
18496 //Bit 15:14,        reserved
18497 //Bit 13: 8,        reg_nr_alp1_core_rate                       : normalized 64 as "1"                                                          . unsigned  , default = 0
18498 //Bit  7: 6,        reserved
18499 //Bit  5: 0,        reg_nr_alp1_core_ofst                       : normalized 64 as "1"                                                          . signed    , default = 3
18500 #define   NR_ALP1_ERR2CURV_TH_RATE                 (0x321b)
18501 #define P_NR_ALP1_ERR2CURV_TH_RATE                 (volatile uint32_t *)((0x321b  << 2) + 0xff900000)
18502 //Bit 31:24,        reg_nr_alp1_minerr_par0                     : threshold0 of curve to map mierr to alp1 for luma/chroma channel, this will be set value of flat region mierr that no need directional NR. 0~255.. unsigned  , default = 0
18503 //Bit 23:16,        reg_nr_alp1_minerr_par1                     : threshold1 of curve to map mierr to alp1 for luma/chroma  channel,this will be set value of texture region mierr that can not do directional NR. 0~255.. unsigned  , default = 24
18504 //Bit 15: 8,        reg_nr_alp1_minerr_par5                     : rate0 (for mierr<th0) of curve to map mierr to alp1 for luma/chroma  channel. the larger of the value, the deep of the slope.. unsigned  , default = 0
18505 //Bit  7: 0,        reg_nr_alp1_minerr_par6                     : rate1 (for mierr>th1) of curve to map mierr to alp1 for luma/chroma  channel. the larger of the value, the deep of the slope. 0~255. unsigned  , default = 20
18506 #define   NR_ALP1_ERR2CURV_LIMIT                   (0x321c)
18507 #define P_NR_ALP1_ERR2CURV_LIMIT                   (volatile uint32_t *)((0x321c  << 2) + 0xff900000)
18508 //Bit 31:24,        reg_nr_alp1_minerr_par2                     : level limit(for mierr<th0) of curve to map mierr to alp1 for luma/chroma  channel, this will be set to alp1 that we can do for flat region. 0~255.. unsigned  , default = 0
18509 //Bit 23:16,        reg_nr_alp1_minerr_par3                     : level limit(for th0<mierr<th1) of curve to map mierr to alp1 for luma/chroma  channel, this will be set to alp1 that we can do for misc region. 0~255.. unsigned  , default = 16
18510 //Bit 15: 8,        reg_nr_alp1_minerr_par4                     : level limit(for mierr>th1) of curve to map mierr to alp1 for luma/chroma  channel, this will be set to alp1 that we can do for texture region. 0~255.255 before. unsigned  , default = 63
18511 //Bit  7: 0,        reserved
18512 #define   NR_ALP1_MIN_MAX                          (0x321d)
18513 #define P_NR_ALP1_MIN_MAX                          (volatile uint32_t *)((0x321d  << 2) + 0xff900000)
18514 //Bit 31:30,        reserved
18515 //Bit 29:24,        reg_nr_alp1_ymin                            : normalized to 64 as '1'                                                       . unsigned  , default = 0
18516 //Bit 23:22,        reserved
18517 //Bit 21:16,        reg_nr_alp1_ymax                            : normalized to 64 as '1'                                                       . unsigned  , default = 63
18518 //Bit 15:14,        reserved
18519 //Bit 13: 8,        reg_nr_alp1_cmin                            : normalized to 64 as '1'                                                       . unsigned  , default = 0
18520 //Bit  7: 6,        reserved
18521 //Bit  5: 0,        reg_nr_alp1_cmax                            : normalized to 64 as '1'                                                       . unsigned  , default = 63
18522 #define   PK_ALP2_MIERR_CORING                     (0x321e)
18523 #define P_PK_ALP2_MIERR_CORING                     (volatile uint32_t *)((0x321e  << 2) + 0xff900000)
18524 //Bit 31:17,        reserved
18525 //Bit 16,            reg_pk_alp2_maxerr_mode                     : 0 max err; 1: xerr                                                            . unsigned  , default = 1
18526 //Bit 15:14,        reserved
18527 //Bit 13: 8,        reg_pk_alp2_core_rate                       : normalized 64 as "1"                                                          . unsigned  , default = 0
18528 //Bit  7: 6,        reserved
18529 //Bit  5: 0,        reg_pk_alp2_core_ofst                       : normalized 64 as "1"                                                          . signed    , default = 1
18530 #define   PK_ALP2_ERR2CURV_TH_RATE                 (0x321f)
18531 #define P_PK_ALP2_ERR2CURV_TH_RATE                 (volatile uint32_t *)((0x321f  << 2) + 0xff900000)
18532 //Bit 31:24,        reg_pk_alp2_minerr_par0                     : threshold0 of curve to map mierr to alp2 for luma channel, this will be set value of flat region mierr that no need peaking.. unsigned  , default = 0
18533 //Bit 23:16,        reg_pk_alp2_minerr_par1                     : threshold1 of curve to map mierr to alp2 for luma  channel,this will be set value of texture region mierr that can not do peaking. 0~255.. unsigned  , default = 24
18534 //Bit 15: 8,        reg_pk_alp2_minerr_par5                     : rate0 (for mierr<th0) of curve to map mierr to alp2 for luma  channel. the larger of the value, the deep of the slope. 0~255.. unsigned  , default = 0
18535 //Bit  7: 0,        reg_pk_alp2_minerr_par6                     : rate1 (for mierr>th1) of curve to map mierr to alp2 for luma  channel. the larger of the value, the deep of the slope. 0~255.. unsigned  , default = 20
18536 #define   PK_ALP2_ERR2CURV_LIMIT                   (0x3220)
18537 #define P_PK_ALP2_ERR2CURV_LIMIT                   (volatile uint32_t *)((0x3220  << 2) + 0xff900000)
18538 //Bit 31:24,        reg_pk_alp2_minerr_par2                     : level limit(for mierr<th0) of curve to map mierr to alp2 for luma  channel, this will be set to alp2 that we can do for flat region. 0~255.. unsigned  , default = 0
18539 //Bit 23:16,        reg_pk_alp2_minerr_par3                     : level limit(for th0<mierr<th1) of curve to map mierr to alp2 for luma  channel, this will be set to alp2 that we can do for misc region. 0~255.. unsigned  , default = 16
18540 //Bit 15: 8,        reg_pk_alp2_minerr_par4                     : level limit(for mierr>th1) of curve to map mierr to alp2 for luma  channel, this will be set to alp2 that we can do for texture region. 0~255. default = 32;. unsigned  , default = 32
18541 //Bit  7: 0,        reserved
18542 #define   PK_ALP2_MIN_MAX                          (0x3221)
18543 #define P_PK_ALP2_MIN_MAX                          (volatile uint32_t *)((0x3221  << 2) + 0xff900000)
18544 //Bit 31:14,        reserved
18545 //Bit 13: 8,        reg_pk_alp2_min                             : normalized to 64 as '1'                                                       . unsigned  , default = 0
18546 //Bit  7: 6,        reserved
18547 //Bit  5: 0,        reg_pk_alp2_max                             : normalized to 64 as '1'                                                       . unsigned  , default = 63
18548 #define   PK_FINALGAIN_HP_BP                       (0x3222)
18549 #define P_PK_FINALGAIN_HP_BP                       (volatile uint32_t *)((0x3222  << 2) + 0xff900000)
18550 //Bit 31:18,        reserved
18551 //Bit 17:16,        reg_final_gain_rs                           : s2: right shift bits for the gain normalization, 0 normal to 32 as 1; 1 normalize to 64 as 1; -2 normalized to 8 as 1; -1 normalize 16 as 1. default = 0
18552 //Bit 15: 8,        reg_hp_final_gain                           : gain to highpass boost result (including directional/circle blending), normalized 32 as '1', 0~255. 1.25 * 32. unsigned  , default = 40
18553 //Bit  7: 0,        reg_bp_final_gain                           : gain to bandpass boost result (including directional/circle blending), normalized 32 as '1', 0~255. 1.25 * 32. unsigned  , default = 30
18554 #define   PK_OS_HORZ_CORE_GAIN                     (0x3223)
18555 #define P_PK_OS_HORZ_CORE_GAIN                     (volatile uint32_t *)((0x3223  << 2) + 0xff900000)
18556 //Bit 31:24,        reg_pk_os_hsidecore                         : side coring (not to current pixel) to adaptive overshoot margin in horizontal direction. the larger of this value, the less overshoot admitted 0~255;. unsigned  , default = 8
18557 //Bit 23:16,        reg_pk_os_hsidegain                         : side gain (not to current pixel) to adaptive overshoot margin in horizontal direction. normalized to 32 as '1'. 0~255;. unsigned  , default = 20
18558 //Bit 15: 8,        reg_pk_os_hmidcore                          : midd coring (to current pixel) to adaptive overshoot margin in horizontal direction. the larger of this value, the less overshoot admitted 0~255;. unsigned  , default = 2
18559 //Bit  7: 0,        reg_pk_os_hmidgain                          : midd gain (to current pixel) to adaptive overshoot margin in horizontal direction. normalized to 32 as '1'. 0~255;. unsigned  , default = 20
18560 #define   PK_OS_VERT_CORE_GAIN                     (0x3224)
18561 #define P_PK_OS_VERT_CORE_GAIN                     (volatile uint32_t *)((0x3224  << 2) + 0xff900000)
18562 //Bit 31:24,        reg_pk_os_vsidecore                         : side coring (not to current pixel) to adaptive overshoot margin in vertical direction. the larger of this value, the less overshoot admitted 0~255;. unsigned  , default = 8
18563 //Bit 23:16,        reg_pk_os_vsidegain                         : side gain (not to current pixel) to adaptive overshoot margin in vertical direction. normalized to 32 as '1'. 0~255;. unsigned  , default = 20
18564 //Bit 15: 8,        reg_pk_os_vmidcore                          : midd coring (to current pixel) to adaptive overshoot margin in vertical direction. the larger of this value, the less overshoot admitted 0~255;. unsigned  , default = 2
18565 //Bit  7: 0,        reg_pk_os_vmidgain                          : midd gain (to current pixel) to adaptive overshoot margin in vertical direction. normalized to 32 as '1'. 0~255;. unsigned  , default = 20
18566 #define   PK_OS_ADPT_MISC                          (0x3225)
18567 #define P_PK_OS_ADPT_MISC                          (volatile uint32_t *)((0x3225  << 2) + 0xff900000)
18568 //Bit 31:24,        reg_pk_os_minerr_core                       : coring to minerr for adaptive overshoot margin. the larger of this value, the less overshoot admitted 0~255;. unsigned  , default = 40
18569 //Bit 23:16,        reg_pk_os_minerr_gain                       : gain to minerr based adaptive overshoot margin. normalized to 64 as '1'. 0~255;. unsigned  , default = 6
18570 //Bit 15: 8,        reg_pk_os_adpt_max                          : maximum limit adaptive overshoot margin (4x). 0~255;                          . unsigned  , default = 200
18571 //Bit  7: 0,        reg_pk_os_adpt_min                          : minimun limit adaptive overshoot margin (1x). 0~255;                          . unsigned  , default = 20
18572 #define   PK_OS_STATIC                             (0x3226)
18573 #define P_PK_OS_STATIC                             (volatile uint32_t *)((0x3226  << 2) + 0xff900000)
18574 //Bit 31:30,        reserved
18575 //Bit 29:28,        reg_pk_osh_mode                             : 0~3: (2x+1) window in H direction                                             . unsigned  , default = 2
18576 //Bit 27:26,        reserved
18577 //Bit 25:24,        reg_pk_osv_mode                             : 0~3: (2x+1) window in V direction                                             . unsigned  , default = 2
18578 //Bit 23:22,        reserved
18579 //Bit 21:12,        reg_pk_os_down                              : static negative overshoot margin. 0~1023;                                     . unsigned  , default = 200
18580 //Bit 11:10,        reserved
18581 //Bit  9: 0,        reg_pk_os_up                                : static positive overshoot margin. 0~1023;                                     . unsigned  , default = 200
18582 #define   PK_NR_ENABLE                             (0x3227)
18583 #define P_PK_NR_ENABLE                             (volatile uint32_t *)((0x3227  << 2) + 0xff900000)
18584 //Bit 31: 4,        reserved
18585 //Bit  3: 2,        reg_3d_mode                                 , 0: no 3D; 1: L/R; 2: T/B; 3: horizontal interleaved, dft = 0                                             //. unsigned  , default = 0
18586 //Bit  1,            reg_pk_en                                                                                                                   . unsigned  , default = 1
18587 //Bit  0,            reg_nr_en                                                                                                                   . unsigned  , default = 1
18588 #define   PK_DRT_SAD_MISC                          (0x3228)
18589 #define P_PK_DRT_SAD_MISC                          (volatile uint32_t *)((0x3228  << 2) + 0xff900000)
18590 //Bit 31:24,        reg_pk_sad_ver_gain                         : gain to sad[4], 16 normalized to "1";                                         . unsigned  , default = 32
18591 //Bit 23:16,        reg_pk_sad_hor_gain                         : gain to sad[0], 16 normalized to "1";                                         . unsigned  , default = 24
18592 //Bit 15:12,        reserved
18593 //Bit 11            reserved
18594 //Bit 10: 9,        reg_pk_bias_diag                            : bias towards diag                                                             . unsigned  , default = 0
18595 //Bit  8,           reserved
18596 //Bit  7: 5,        reserved
18597 //Bit  4: 0,        reg_pk_drt_force                            : force direction of drt peaking filter, h2b: 0:hp drt force, 1: bp drt force; 2: bp+hp drt force, 3: no force;. unsigned  , default = 24
18598 #define   NR_TI_DNLP_BLEND                         (0x3229)
18599 #define P_NR_TI_DNLP_BLEND                         (volatile uint32_t *)((0x3229  << 2) + 0xff900000)
18600 //Bit 31:11,        reserved
18601 //Bit 10: 8,        reg_dnlp_input_mode                         : dnlp input options. 0: org_y; 1: gau_y; 2: gauadp_y; 3: edgadplpf_y; 4: nr_y;5: lti_y; 6: pk_y (before os);7: pk_y (after os). unsigned  , default = 4
18602 //Bit  7: 4,        reserved
18603 //Bit  3: 2,        reg_nr_cti_blend_mode                       : blend mode of nr and lti result: 0: nr; 1:cti; 2: (nr+cti)/2; 3:cti + dlt_nr  . unsigned  , default = 1
18604 //Bit  1: 0,        reg_nr_lti_blend_mode                       : blend mode of nr and lti result: 0: nr; 1:lti; 2: (nr+lti)/2; 3:lti + dlt_nr  . unsigned  , default = 2
18605 ////////////////////////////////////////////////////////////////////////////////
18606 // new ti regsters from here
18607 ////////////////////////////////////////////////////////////////////////////////
18608 #define   LTI_DIR_CORE_ALPHA                       (0x322a)
18609 #define P_LTI_DIR_CORE_ALPHA                       (volatile uint32_t *)((0x322a  << 2) + 0xff900000)
18610 //Bit 31:30,        reserved
18611 //Bit 29:24,        reg_adp_lti_dir_alp_core_ofst               : ofst to min_err, alpha = (min_err - (max_err-min_err)*rate + ofst)/max_err*64;    dft=10. unsigned  , default = 10
18612 //Bit 23:20,        reserved
18613 //Bit 19:16,        reg_adp_lti_dir_alp_core_rate               : ofset to min_err, alpha = (min_err - (max_err-min_err)*rate + ofst)/max_err*64;   dft=0/32. unsigned  , default = 0
18614 //Bit 15:14,        reserved
18615 //Bit 13: 8,        reg_adp_lti_dir_alpmin                      : min value of alpha, alpha = (min_err+x +ofst)/max_err*64; dft=10              . unsigned  , default = 0
18616 //Bit  7: 6,        reserved
18617 //Bit  5: 0,        reg_adp_lti_dir_alpmax                      : max value of alpha, alpha = (min_err+x +ofst)/max_err*64; dft=63              . unsigned  , default = 63
18618 #define   CTI_DIR_ALPHA                            (0x322b)
18619 #define P_CTI_DIR_ALPHA                            (volatile uint32_t *)((0x322b  << 2) + 0xff900000)
18620 //Bit 31:30,        reserved
18621 //Bit 29:24,        reg_adp_cti_dir_alp_core_ofst               : ofst to min_err, alpha = (min_err - (max_err-min_err)*rate + ofst)/max_err*64;    dft=10. unsigned  , default = 5
18622 //Bit 23:20,        reserved
18623 //Bit 19:16,        reg_adp_cti_dir_alp_core_rate               : ofset to min_err, alpha = (min_err - (max_err-min_err)*rate + ofst)/max_err*64;   dft=0/32. unsigned  , default = 0
18624 //Bit 15:14,        reserved
18625 //Bit 13: 8,        reg_adp_cti_dir_alpmin                      : min value of alpha, alpha = (min_err +x+ofst)/max_err*64;  dft=10             . unsigned  , default = 0
18626 //Bit  7: 6,        reserved
18627 //Bit  5: 0,        reg_adp_cti_dir_alpmax                      : max value of alpha, alpha = (min_err +x+ofst)/max_err*64;  dft=63             . unsigned  , default = 63
18628 #define   LTI_CTI_DF_GAIN                          (0x322c)
18629 #define P_LTI_CTI_DF_GAIN                          (volatile uint32_t *)((0x322c  << 2) + 0xff900000)
18630 //Bit 31:30,        reserved
18631 //Bit 29:24,        reg_adp_lti_hdf_gain                        : 8 normalized to "1";  default = 12                                            . unsigned  , default = 12
18632 //Bit 23:22,        reserved
18633 //Bit 21:16,        reg_adp_lti_vdf_gain                        : 8 normalized to "1";  default = 12                                            . unsigned  , default = 12
18634 //Bit 15:14,        reserved
18635 //Bit 13: 8,        reg_adp_cti_hdf_gain                        : 8 normalized to "1";  default = 12                                            . unsigned  , default = 12
18636 //Bit  7: 6,        reserved
18637 //Bit  5: 0,        reg_adp_cti_vdf_gain                        : 8 normalized to "1";  default = 12                                            . unsigned  , default = 12
18638 #define   LTI_CTI_DIR_AC_DBG                       (0x322d)
18639 #define P_LTI_CTI_DIR_AC_DBG                       (volatile uint32_t *)((0x322d  << 2) + 0xff900000)
18640 //Bit 31,            reserved
18641 //Bit 30,            reg_adp_lti_dir_lpf                         : 0: no lpf; 1: [1 2 2 2 1]/8 lpf                                               . unsigned  , default = 1
18642 //Bit 29,            reserved
18643 //Bit 28,            reg_adp_lti_dir_difmode                     : 0: y_dif; 1: y_dif + (u_dif+v_dif)/2;                                         . unsigned  , default = 1
18644 //Bit 27,            reserved
18645 //Bit 26,            reg_adp_cti_dir_lpf                         : 0: no lpf; 1: [1 2 2 2 1]/8 lpf  dft=1                                        . unsigned  , default = 1
18646 //Bit 25:24,        reg_adp_cti_dir_difmode                     : 0: (u_dif+v_dif); 1: y_dif/2 + (u_dif+v_dif)*3/4; 2: y_dif + (u_dif+v_dif)/2; 3: y_dif*2 (not recomended). unsigned  , default = 2
18647 //Bit 23:22,        reg_adp_hvlti_dcblend_mode                  : 0: hlti_dc; 1:vlti_dc; 2: avg  3; blend on alpha                              . unsigned  , default = 3
18648 //Bit 21:20,        reg_adp_hvcti_dcblend_mode                  : 0: hcti_dc; 1:vcti_dc; 2: avg  3; blend on alpha                              . unsigned  , default = 2
18649 //Bit 19:18,        reg_adp_hvlti_acblend_mode                  : hlti_ac; 1:vlti_ac; 2: add  3;:adaptive to alpha                              . unsigned  , default = 3
18650 //Bit 17:16,        reg_adp_hvcti_acblend_mode                  : hcti_ac; 1:vcti_ac; 2: add  3;: adaptive to alpha                             . unsigned  , default = 2
18651 //Bit 15,            reserved
18652 //Bit 14:12,        reg_adp_hlti_debug                          , for hlti debug, default = 0                                                   . unsigned  , default = 0
18653 //Bit 11,            reserved
18654 //Bit 10: 8,        reg_adp_vlti_debug                          , for vlti debug, default = 0                                                   . unsigned  , default = 0
18655 //Bit  7,            reserved
18656 //Bit  6: 4,        reg_adp_hcti_debug                          , for hcti debug, default = 0                                                   . unsigned  , default = 0
18657 //Bit  3,            reserved
18658 //Bit  2: 0,        reg_adp_vcti_debug                          , for vcti debug, default = 0                                                   . unsigned  , default = 0
18659 #define   HCTI_FLT_CLP_DC                          (0x322e)
18660 #define P_HCTI_FLT_CLP_DC                          (volatile uint32_t *)((0x322e  << 2) + 0xff900000)
18661 //Bit 31:29,        reserved
18662 //Bit 28,            reg_adp_hcti_en                             , 0: no cti, 1: new cti, default = 1                                            . unsigned  , default = 1
18663 //Bit 27:26,        reg_adp_hcti_vdn_flt                        , 0: no lpf; 1:[0,2,4,2,0],  2 : [1 2 2 2 1]/8  3:[1 0 2 0 1]/4, default = 2    . unsigned  , default = 2
18664 //Bit 25:24,        reg_adp_hcti_hdn_flt                        , 0: no lpf; 1:[0, 0, 0, 4, 8, 4, 0, 0, 0], 2:[0, 0, 2, 4, 4, 4, 2, 0, 0], 3: [1, 2, 2, 2, 2, 2, 2, 2, 1], default = 2. unsigned  , default = 2
18665 //Bit 23:22,        reg_adp_hcti_ddn_flt                        , 0: no lpf; 1:[0,2,4,2,0],  2 : [1 2 2 2 1]/8 3:[1 0 2 0 1]/4, default = 2     . unsigned  , default = 2
18666 //Bit 21:20,        reg_adp_hcti_lpf0_flt                       , 0:no filter; 1:sigma=0.75, 2: sigma = 1.0, 3: sigma = 1.5, default = 1        . unsigned  , default = 1
18667 //Bit 19:18,        reg_adp_hcti_lpf1_flt                       , 0:no filter; 1:sigma= 2.0, 2: sigma = 3.0, 3: sigma = 4.0, default = 1        . unsigned  , default = 1
18668 //Bit 17:16,        reg_adp_hcti_lpf2_flt                       , 0:no filter; 1:sigma=5.0,  2: sigma = 9.0, 3: sigma = 13.0, default = 1       . unsigned  , default = 1
18669 //Bit 15:12,        reg_adp_hcti_hard_clp_win                   , window size, 0~8, default = 5                                                 . unsigned  , default = 5
18670 //Bit 11: 8,        reg_adp_hcti_hard_win_min                   , window size, 0~8, default = 3                                                 . unsigned  , default = 3
18671 //Bit  7: 5,        reserved
18672 //Bit  4,            reg_adp_hcti_clp_mode                       , 0: hard clip, 1: adaptive clip, default = 1                                   . unsigned  , default = 1
18673 //Bit  3,            reserved
18674 //Bit  2: 0,        reg_adp_hcti_dc_mode                        , 0:dn, 1:lpf0, 2:lpf1, 3:lpf2, 4: lpf3: 5: vdn result; 6/7:org, default = 0    . unsigned  , default = 0
18675 #define   HCTI_BST_GAIN                            (0x322f)
18676 #define P_HCTI_BST_GAIN                            (volatile uint32_t *)((0x322f  << 2) + 0xff900000)
18677 //Bit 31:24,        reg_adp_hcti_bst_gain0                      : gain of the bandpass 0 (lpf1-lpf2)- LBP, default = 80                         . unsigned  , default = 80
18678 //Bit 23:16,        reg_adp_hcti_bst_gain1                      : gain of the bandpass 1 (lpf0-lpf1)- BP, default = 96                          . unsigned  , default = 96
18679 //Bit 15: 8,        reg_adp_hcti_bst_gain2                      : gain of the bandpass 2 (hdn-lpf0)-  HP, default = 64                          . unsigned  , default = 64
18680 //Bit  7: 0,        reg_adp_hcti_bst_gain3                      : gain of the unsharp band (yuvin-hdn) - US, default = 16                       . unsigned  , default = 16
18681 #define   HCTI_BST_CORE                            (0x3230)
18682 #define P_HCTI_BST_CORE                            (volatile uint32_t *)((0x3230  << 2) + 0xff900000)
18683 //Bit 31:24,        reg_adp_hcti_bst_core0                      : core of the bandpass 0 (lpf1-lpf2)- LBP, default = 5                          . unsigned  , default = 5
18684 //Bit 23:16,        reg_adp_hcti_bst_core1                      : core of the bandpass 1 (lpf0-lpf1)- BP, default = 5                           . unsigned  , default = 5
18685 //Bit 15: 8,        reg_adp_hcti_bst_core2                      : core of the bandpass 2 (hdn-lpf0)-  HP, default = 5                           . unsigned  , default = 5
18686 //Bit  7: 0,        reg_adp_hcti_bst_core3                      : core of the unsharp band (yuvin-hdn) - US, default = 3                        . unsigned  , default = 5
18687 #define   HCTI_CON_2_GAIN_0                        (0x3231)
18688 #define P_HCTI_CON_2_GAIN_0                        (volatile uint32_t *)((0x3231  << 2) + 0xff900000)
18689 //Bit 31:29,        reg_adp_hcti_con_mode                       : con mode 0:[0, 0,-1, 1, 0, 0, 0]+[0, 0, 0, 1,-1, 0, 0], 1: [0, 0,-1, 0, 1, 0, 0], 2: [0,-1, 0, 0, 0, 1, 0], 3:[-1, 0, 0, 0, 0, 0, 1], 4: .... default = 1. unsigned  , default = 1
18690 //Bit 28:26,        reg_adp_hcti_dx_mode                        : dx mode 0: [-1 1 0]; 1~7: [-1 (2x+1)"0" 1], default = 2                       . unsigned  , default = 2
18691 //Bit 25:24,        reg_adp_hcti_con_lpf                        : lpf mode of the con: 0: [1 2 1]/4; 1:[1 2 2 2 1]/8, default = 0               . unsigned  , default = 0
18692 //Bit 23:16,        reg_adp_hcti_con_2_gain0                    , default = 25                                                                  . unsigned  , default = 25
18693 //Bit 15: 8,        reg_adp_hcti_con_2_gain1                    , default = 60                                                                  . unsigned  , default = 60
18694 //Bit  7: 0,        reg_adp_hcti_con_2_gain2                    0;, default = 5                                                                 . unsigned  , default = 5
18695 #define   HCTI_CON_2_GAIN_1                        (0x3232)
18696 #define P_HCTI_CON_2_GAIN_1                        (volatile uint32_t *)((0x3232  << 2) + 0xff900000)
18697 //Bit 31:24,        reg_adp_hcti_con_2_gain3                    96;, default = 96                                                               . unsigned  , default = 96
18698 //Bit 23:16,        reg_adp_hcti_con_2_gain4                    5;, default = 5                                                                 . unsigned  , default = 5
18699 //Bit 15: 8,        reg_adp_hcti_con_2_gain5                    80;, default = 80                                                               . unsigned  , default = 80
18700 //Bit  7: 0,        reg_adp_hcti_con_2_gain6                    20;, default = 20                                                               . unsigned  , default = 20
18701 #define   HCTI_OS_MARGIN                           (0x3233)
18702 #define P_HCTI_OS_MARGIN                           (volatile uint32_t *)((0x3233  << 2) + 0xff900000)
18703 //Bit 31: 8,        reserved
18704 //Bit  7: 0,        reg_adp_hcti_os_margin                      : margin for hcti overshoot, default = 0                                        . unsigned  , default = 0
18705 #define   HLTI_FLT_CLP_DC                          (0x3234)
18706 #define P_HLTI_FLT_CLP_DC                          (volatile uint32_t *)((0x3234  << 2) + 0xff900000)
18707 //Bit 31:29,        reserved
18708 //Bit 28,            reg_adp_hlti_en                             , 0: no cti, 1: new cti, default = 1                                            . unsigned  , default = 1
18709 //Bit 27:26,        reg_adp_hlti_vdn_flt                        , 0: no lpf; 1:[0,2,4,2,0],   2 : [1 2 2 2 1]/8 3:[1 0 2 0 1]/4, default = 2    . unsigned  , default = 2
18710 //Bit 25:24,        reg_adp_hlti_hdn_flt                        , 0: no lpf; 1:[0, 0, 0, 4, 8, 4, 0, 0, 0], 2:[0, 0, 2, 4, 4, 4, 2, 0, 0], 3: [1, 2, 2, 2, 2, 2, 2, 2, 1], default = 1. unsigned  , default = 1
18711 //Bit 23:22,        reg_adp_hlti_ddn_flt                        , 0: no lpf; 1:[0,2,4,2,0],   2 : [1 2 2 2 1]/8 3:[1 0 2 0 1]/4, default = 1    . unsigned  , default = 1
18712 //Bit 21:20,        reg_adp_hlti_lpf0_flt                       , 0:no filter; 1:sigma=0.75, 2: sigma = 1.0, 3: sigma = 1.5, default = 1        . unsigned  , default = 1
18713 //Bit 19:18,        reg_adp_hlti_lpf1_flt                       , 0:no filter; 1:sigma= 2.0, 2: sigma = 3.0, 3: sigma = 4.0, default = 1        . unsigned  , default = 1
18714 //Bit 17:16,        reg_adp_hlti_lpf2_flt                       , 0:no filter; 1:sigma=5.0,  2: sigma = 9.0, 3: sigma = 13.0, default = 1       . unsigned  , default = 1
18715 //Bit 15:12,        reg_adp_hlti_hard_clp_win                   , window size, 0~8, default = 2                                                 . unsigned  , default = 2
18716 //Bit 11: 8,        reg_adp_hlti_hard_win_min                   , window size, 0~8, default = 1                                                 . unsigned  , default = 1
18717 //Bit  7: 5,        reserved
18718 //Bit  4,            reg_adp_hlti_clp_mode                       , 0: hard clip, 1: adaptive clip, default = 0                                   . unsigned  , default = 0
18719 //Bit  3,            reserved
18720 //Bit  2: 0,        reg_adp_hlti_dc_mode                        , 0:dn, 1:lpf0, 2:lpf1, 3:lpf2, 4: lpf3: 5: vdn result; 6/7:org, default = 4    . unsigned  , default = 4
18721 #define   HLTI_BST_GAIN                            (0x3235)
18722 #define P_HLTI_BST_GAIN                            (volatile uint32_t *)((0x3235  << 2) + 0xff900000)
18723 //Bit 31:24,        reg_adp_hlti_bst_gain0                      : gain of the bandpass 0 (lpf1-lpf2)- LBP, default = 32                         . unsigned  , default = 32
18724 //Bit 23:16,        reg_adp_hlti_bst_gain1                      : gain of the bandpass 1 (lpf0-lpf1)- BP, default = 32                          . unsigned  , default = 32
18725 //Bit 15: 8,        reg_adp_hlti_bst_gain2                      : gain of the bandpass 2 (hdn-lpf0)-  HP, default = 28                          . unsigned  , default = 28
18726 //Bit  7: 0,        reg_adp_hlti_bst_gain3                      : gain of the unsharp band (yuvin-hdn) - US, default = 12                       . unsigned  , default = 12
18727 #define   HLTI_BST_CORE                            (0x3236)
18728 #define P_HLTI_BST_CORE                            (volatile uint32_t *)((0x3236  << 2) + 0xff900000)
18729 //Bit 31:24,        reg_adp_hlti_bst_core0                      : core of the bandpass 0 (lpf1-lpf2)- LBP, default = 5                          . unsigned  , default = 5
18730 //Bit 23:16,        reg_adp_hlti_bst_core1                      : core of the bandpass 1 (lpf0-lpf1)- BP, default = 5                           . unsigned  , default = 5
18731 //Bit 15: 8,        reg_adp_hlti_bst_core2                      : core of the bandpass 2 (hdn-lpf0)-  HP, default = 5                           . unsigned  , default = 5
18732 //Bit  7: 0,        reg_adp_hlti_bst_core3                      : core of the unsharp band (yuvin-hdn) - US, default = 3                        . unsigned  , default = 3
18733 #define   HLTI_CON_2_GAIN_0                        (0x3237)
18734 #define P_HLTI_CON_2_GAIN_0                        (volatile uint32_t *)((0x3237  << 2) + 0xff900000)
18735 //Bit 31:29,        reg_adp_hlti_con_mode                       : con mode 0:[0, 0,-1, 1, 0, 0, 0]+[0, 0, 0, 1,-1, 0, 0], 1: [0, 0,-1, 0, 1, 0, 0], 2: [0,-1, 0, 0, 0, 1, 0], 3:[-1, 0, 0, 0, 0, 0, 1], 4: ....., default = 1. unsigned  , default = 1
18736 //Bit 28:26,        reg_adp_hlti_dx_mode                        : dx mode 0: [-1 1 0]; 1~7: [-1 (2x+1)"0" 1], default = 1                       . unsigned  , default = 1
18737 //Bit 25:24,        reg_adp_hlti_con_lpf                        : lpf mode of the con: 0: [1 2 1]/4; 1:[1 2 2 2 1]/8, default = 0               . unsigned  , default = 0
18738 //Bit 23:16,        reg_adp_hlti_con_2_gain0                    25;, default = 25                                                               . unsigned  , default = 25
18739 //Bit 15: 8,        reg_adp_hlti_con_2_gain1                    60;, default = 60                                                               . unsigned  , default = 60
18740 //Bit  7: 0,        reg_adp_hlti_con_2_gain2                    0;, default = 5                                                                . unsigned  , default = 5
18741 #define   HLTI_CON_2_GAIN_1                        (0x3238)
18742 #define P_HLTI_CON_2_GAIN_1                        (volatile uint32_t *)((0x3238  << 2) + 0xff900000)
18743 //Bit 31:24,        reg_adp_hlti_con_2_gain3                    96;, default = 96                                                               . unsigned  , default = 96
18744 //Bit 23:16,        reg_adp_hlti_con_2_gain4                    5;, default = 95                                                                . unsigned  , default = 95
18745 //Bit 15: 8,        reg_adp_hlti_con_2_gain5                    80;, default = 80                                                               . unsigned  , default = 80
18746 //Bit  7: 0,        reg_adp_hlti_con_2_gain6                    20;, default = 20                                                               . unsigned  , default = 20
18747 #define   HLTI_OS_MARGIN                           (0x3239)
18748 #define P_HLTI_OS_MARGIN                           (volatile uint32_t *)((0x3239  << 2) + 0xff900000)
18749 //Bit 31: 8,        reserved
18750 //Bit  7: 0,        reg_adp_hlti_os_margin                      : margin for hlti overshoot, default = 0                                        . unsigned  , default = 0
18751 #define   VLTI_FLT_CON_CLP                         (0x323a)
18752 #define P_VLTI_FLT_CON_CLP                         (volatile uint32_t *)((0x323a  << 2) + 0xff900000)
18753 //Bit 31:15,        reserved
18754 //Bit 14,            reg_adp_vlti_en                             : enable bit of vlti, default = 1                                               . unsigned  , default = 1
18755 //Bit 13:12,        reg_adp_vlti_hxn_flt                        : 0: no dn; 1: [1 2 1]/4;  2 : [1 2 2 2 1]/8 3:[1 0 2 0 1]/4, default = 2       . unsigned  , default = 2
18756 //Bit 11:10,        reg_adp_vlti_dxn_flt                        : 0: no dn; 1: [1 2 1]/4;  2 : [1 2 2 2 1]/8 3:[1 0 2 0 1]/4, default = 2       . unsigned  , default = 2
18757 //Bit  9: 8,        reg_adp_vlti_han_flt                        : 0: no dn; 1: [1 2 1]/4;  2 : [1 2 2 2 1]/8 3:[1 0 2 0 1]/4, default = 2       . unsigned  , default = 2
18758 //Bit  7: 6,        reg_adp_vlti_dan_flt                        : 0: no dn; 1: [1 2 1]/4;  2 : [1 2 2 2 1]/8 3:[1 0 2 0 1]/4, default = 2       . unsigned  , default = 2
18759 //Bit  5: 4,        reg_adp_vlti_dx_mode                        : 0:[-1 1] 1:[-1 0 -1]; 2/3: [-1 0 0 0 -1], default = 1                         . unsigned  , default = 1
18760 //Bit  3,            reserved
18761 //Bit  2,            reg_adp_vlti_con_lpf                        : lpf mode of the con: 0: [1 2 1]/4; 1:[1 2 2 2 1]/8, default = 0               . unsigned  , default = 0
18762 //Bit  1,            reserved
18763 //Bit  0,            reg_adp_vlti_hard_clp_win                   : window size; 0: 1x3 window; 1: 1x5 window, default = 0                        . unsigned  , default = 0
18764 #define   VLTI_BST_GAIN                            (0x323b)
18765 #define P_VLTI_BST_GAIN                            (volatile uint32_t *)((0x323b  << 2) + 0xff900000)
18766 //Bit 31:24,        reserved
18767 //Bit 23:16,        reg_adp_vlti_bst_gain0                      : gain to boost filter [-1 2 -1];, default = 32                                 . unsigned  , default = 32
18768 //Bit 15: 8,        reg_adp_vlti_bst_gain1                      : gain to boost filter [-1 0 2 0 -1];, default = 32                             . unsigned  , default = 32
18769 //Bit  7: 0,        reg_adp_vlti_bst_gain2                      : gain to boost filter usf, default = 32                                        . unsigned  , default = 32
18770 #define   VLTI_BST_CORE                            (0x323c)
18771 #define P_VLTI_BST_CORE                            (volatile uint32_t *)((0x323c  << 2) + 0xff900000)
18772 //Bit 31:24,        reserved
18773 //Bit 23:16,        reg_adp_vlti_bst_core0                      : coring to boost filter [-1 2 -1];, default = 5                                . unsigned  , default = 5
18774 //Bit 15: 8,        reg_adp_vlti_bst_core1                      : coring to boost filter [-1 0 2 0 -1];, default = 5                            . unsigned  , default = 5
18775 //Bit  7: 0,        reg_adp_vlti_bst_core2                      : coring to boost filter usf, default = 3                                       . unsigned  , default = 3
18776 #define   VLTI_CON_2_GAIN_0                        (0x323d)
18777 #define P_VLTI_CON_2_GAIN_0                        (volatile uint32_t *)((0x323d  << 2) + 0xff900000)
18778 //Bit 31:24,        reg_adp_vlti_con_2_gain0                    25;, default = 25                                                               . unsigned  , default = 25
18779 //Bit 23:16,        reg_adp_vlti_con_2_gain1                    60;, default = 60                                                               . unsigned  , default = 60
18780 //Bit 15: 8,        reg_adp_vlti_con_2_gain2                    0;, default = 5                                                                . unsigned  , default = 5
18781 //Bit  7: 0,        reg_adp_vlti_con_2_gain3                    96;, default = 96                                                               . unsigned  , default = 96
18782 #define   VLTI_CON_2_GAIN_1                        (0x323e)
18783 #define P_VLTI_CON_2_GAIN_1                        (volatile uint32_t *)((0x323e  << 2) + 0xff900000)
18784 //Bit 31:24,        reg_adp_vlti_con_2_gain4                    5;, default = 95                                                                . unsigned  , default = 95
18785 //Bit 23:16,        reg_adp_vlti_con_2_gain5                    80;, default = 80                                                               . unsigned  , default = 80
18786 //Bit 15: 8,        reg_adp_vlti_con_2_gain6                    20;, default = 20                                                               . unsigned  , default = 20
18787 //Bit  7: 0,        reg_adp_vlti_os_margin                      : margin for vlti overshoot, default = 0                                        . unsigned  , default = 0
18788 #define   VCTI_FLT_CON_CLP                         (0x323f)
18789 #define P_VCTI_FLT_CON_CLP                         (volatile uint32_t *)((0x323f  << 2) + 0xff900000)
18790 //Bit 31:15,        reserved
18791 //Bit 14,            reg_adp_vcti_en                             : enable bit of vlti, default = 1                                               . unsigned  , default = 1
18792 //Bit 13:12,        reg_adp_vcti_hxn_flt                        : 0: no dn; 1: [1 2 1]/4;  2 : [1 2 2 2 1]/8 3:[1 0 2 0 1]/4, default = 2       . unsigned  , default = 2
18793 //Bit 11:10,        reg_adp_vcti_dxn_flt                        : 0: no dn; 1: [1 2 1]/4;  2 : [1 2 2 2 1]/8 3:[1 0 2 0 1]/4, default = 2       . unsigned  , default = 2
18794 //Bit  9: 8,        reg_adp_vcti_han_flt                        : 0: no dn; 1: [1 2 1]/4;  2 : [1 2 2 2 1]/8 3:[1 0 2 0 1]/4, default = 2       . unsigned  , default = 2
18795 //Bit  7: 6,        reg_adp_vcti_dan_flt                        : 0: no dn; 1: [1 2 1]/4;  2 : [1 2 2 2 1]/8 3:[1 0 2 0 1]/4, default = 2       . unsigned  , default = 2
18796 //Bit  5: 4,        reg_adp_vcti_dx_mode                        : 0:[-1 1] 1:[-1 0 -1]; 2/3: [-1 0 0 0 -1], default = 1                         . unsigned  , default = 1
18797 //Bit  3,            reserved
18798 //Bit  2,            reg_adp_vcti_con_lpf                        : lpf mode of the con: 0: [1 2 1]/4; 1:[1 2 2 2 1]/8, default = 0               . unsigned  , default = 0
18799 //Bit  1,            reserved
18800 //Bit  0,            reg_adp_vcti_hard_clp_win                   : window size; 0: 1x3 window; 1: 1x5 window, default = 0                        . unsigned  , default = 0
18801 #define   VCTI_BST_GAIN                            (0x3240)
18802 #define P_VCTI_BST_GAIN                            (volatile uint32_t *)((0x3240  << 2) + 0xff900000)
18803 //Bit 31:24,        reserved
18804 //Bit 23:16,        reg_adp_vcti_bst_gain0                      : gain to boost filter [-1 2 -1];, default = 16                                  . unsigned  , default = 16
18805 //Bit 15: 8,        reg_adp_vcti_bst_gain1                      : gain to boost filter [-1 0 2 0 -1];, default = 16                              . unsigned  , default = 16
18806 //Bit  7: 0,        reg_adp_vcti_bst_gain2                      : gain to boost filter usf, default = 16                                         . unsigned  , default = 16
18807 #define   VCTI_BST_CORE                            (0x3241)
18808 #define P_VCTI_BST_CORE                            (volatile uint32_t *)((0x3241  << 2) + 0xff900000)
18809 //Bit 31:24,        reserved
18810 //Bit 23:16,        reg_adp_vcti_bst_core0                      : coring to boost filter [-1 2 -1];, default = 5                                . unsigned  , default = 5
18811 //Bit 15: 8,        reg_adp_vcti_bst_core1                      : coring to boost filter [-1 0 2 0 -1];, default = 5                            . unsigned  , default = 5
18812 //Bit  7: 0,        reg_adp_vcti_bst_core2                      : coring to boost filter usf, default = 3                                       . unsigned  , default = 3
18813 #define   VCTI_CON_2_GAIN_0                        (0x3242)
18814 #define P_VCTI_CON_2_GAIN_0                        (volatile uint32_t *)((0x3242  << 2) + 0xff900000)
18815 //Bit 31:24,        reg_adp_vcti_con_2_gain0                    25;, default = 25                                                               . unsigned  , default = 25
18816 //Bit 23:16,        reg_adp_vcti_con_2_gain1                    60;, default = 60                                                               . unsigned  , default = 60
18817 //Bit 15: 8,        reg_adp_vcti_con_2_gain2                    0;, default = 5                                                                . unsigned  , default = 5
18818 //Bit  7: 0,        reg_adp_vcti_con_2_gain3                    96;, default = 96                                                               . unsigned  , default = 96
18819 #define   VCTI_CON_2_GAIN_1                        (0x3243)
18820 #define P_VCTI_CON_2_GAIN_1                        (volatile uint32_t *)((0x3243  << 2) + 0xff900000)
18821 //Bit 31:24,        reg_adp_vcti_con_2_gain4                    5;, default = 95                                                                . unsigned  , default = 95
18822 //Bit 23:16,        reg_adp_vcti_con_2_gain5                    80;, default = 80                                                               . unsigned  , default = 80
18823 //Bit 15: 8,        reg_adp_vcti_con_2_gain6                    20;, default = 20                                                               . unsigned  , default = 20
18824 //Bit  7: 0,        reg_adp_vcti_os_margin                      : margin for vcti overshoot, default = 0                                        . unsigned  , default = 0
18825 #define   SHARP_3DLIMIT                            (0x3244)
18826 #define P_SHARP_3DLIMIT                            (volatile uint32_t *)((0x3244  << 2) + 0xff900000)
18827 //Bit 31:29,        reserved
18828 //Bit 28:16,        reg_3d_mid_width                            ,width of left part of 3d input, dft = half size of input width  default = 0    . unsigned  , default = 960
18829 //Bit 15:13,        reserved
18830 //Bit 12: 0,        reg_3d_mid_height                           ,height of left part of 3d input, dft = half size of input height  default = 0  . unsigned  , default = 540
18831 #define   DNLP_EN                                  (0x3245)
18832 #define P_DNLP_EN                                  (volatile uint32_t *)((0x3245  << 2) + 0xff900000)
18833 //Bit 31: 1,        reserved
18834 //Bit  0,            reg_dnlp_en                                                                                                                 . unsigned  , default = 1
18835 #define   DNLP_00                                  (0x3246)
18836 #define P_DNLP_00                                  (volatile uint32_t *)((0x3246  << 2) + 0xff900000)
18837 //Bit 31: 0,        reg_dnlp_ygrid0                             : dnlp00                                                                        . unsigned  , default = 32'h08060402
18838 #define   DNLP_01                                  (0x3247)
18839 #define P_DNLP_01                                  (volatile uint32_t *)((0x3247  << 2) + 0xff900000)
18840 //Bit 31: 0,        reg_dnlp_ygrid1                             : dnlp01                                                                        . unsigned  , default = 32'h100e0c0a
18841 #define   DNLP_02                                  (0x3248)
18842 #define P_DNLP_02                                  (volatile uint32_t *)((0x3248  << 2) + 0xff900000)
18843 //Bit 31: 0,        reg_dnlp_ygrid2                             : dnlp02                                                                        . unsigned  , default = 32'h1a171412
18844 #define   DNLP_03                                  (0x3249)
18845 #define P_DNLP_03                                  (volatile uint32_t *)((0x3249  << 2) + 0xff900000)
18846 //Bit 31: 0,        reg_dnlp_ygrid3                             : dnlp03                                                                        . unsigned  , default = 32'h2824201d
18847 #define   DNLP_04                                  (0x324a)
18848 #define P_DNLP_04                                  (volatile uint32_t *)((0x324a  << 2) + 0xff900000)
18849 //Bit 31: 0,        reg_dnlp_ygrid4                             : dnlp04                                                                        . unsigned  , default = 32'h3834302c
18850 #define   DNLP_05                                  (0x324b)
18851 #define P_DNLP_05                                  (volatile uint32_t *)((0x324b  << 2) + 0xff900000)
18852 //Bit 31: 0,        reg_dnlp_ygrid5                             : dnlp05                                                                        . unsigned  , default = 32'h4b45403c
18853 #define   DNLP_06                                  (0x324c)
18854 #define P_DNLP_06                                  (volatile uint32_t *)((0x324c  << 2) + 0xff900000)
18855 //Bit 31: 0,        reg_dnlp_ygrid6                             : dnlp06                                                                        . unsigned  , default = 32'h605b5550
18856 #define   DNLP_07                                  (0x324d)
18857 #define P_DNLP_07                                  (volatile uint32_t *)((0x324d  << 2) + 0xff900000)
18858 //Bit 31: 0,        reg_dnlp_ygrid7                             : dnlp07                                                                        . unsigned  , default = 32'h80787068
18859 #define   DNLP_08                                  (0x324e)
18860 #define P_DNLP_08                                  (volatile uint32_t *)((0x324e  << 2) + 0xff900000)
18861 //Bit 31: 0,        reg_dnlp_ygrid8                             : dnlp08                                                                        . unsigned  , default = 32'ha0989088
18862 #define   DNLP_09                                  (0x324f)
18863 #define P_DNLP_09                                  (volatile uint32_t *)((0x324f  << 2) + 0xff900000)
18864 //Bit 31: 0,        reg_dnlp_ygrid9                             : dnlp09                                                                        . unsigned  , default = 32'hb8b2aca6
18865 #define   DNLP_10                                  (0x3250)
18866 #define P_DNLP_10                                  (volatile uint32_t *)((0x3250  << 2) + 0xff900000)
18867 //Bit 31: 0,        reg_dnlp_ygrid10                            : dnlp10                                                                        . unsigned  , default = 32'hc8c4c0bc
18868 #define   DNLP_11                                  (0x3251)
18869 #define P_DNLP_11                                  (volatile uint32_t *)((0x3251  << 2) + 0xff900000)
18870 //Bit 31: 0,        reg_dnlp_ygrid11                            : dnlp11                                                                        . unsigned  , default = 32'hd4d2cecb
18871 #define   DNLP_12                                  (0x3252)
18872 #define P_DNLP_12                                  (volatile uint32_t *)((0x3252  << 2) + 0xff900000)
18873 //Bit 31: 0,        reg_dnlp_ygrid12                            : dnlp12                                                                        . unsigned  , default = 32'hdad8d7d6
18874 #define   DNLP_13                                  (0x3253)
18875 #define P_DNLP_13                                  (volatile uint32_t *)((0x3253  << 2) + 0xff900000)
18876 //Bit 31: 0,        reg_dnlp_ygrid13                            : dnlp13                                                                        . unsigned  , default = 32'he2e0dedc
18877 #define   DNLP_14                                  (0x3254)
18878 #define P_DNLP_14                                  (volatile uint32_t *)((0x3254  << 2) + 0xff900000)
18879 //Bit 31: 0,        reg_dnlp_ygrid14                            : dnlp14                                                                        . unsigned  , default = 32'hf0ece8e4
18880 #define   DNLP_15                                  (0x3255)
18881 #define P_DNLP_15                                  (volatile uint32_t *)((0x3255  << 2) + 0xff900000)
18882 //Bit 31: 0,        reg_dnlp_ygrid15                            : dnlp15                                                                        . unsigned  , default = 32'hfffcf8f4
18883 #define   DEMO_CRTL                                (0x3256)
18884 #define P_DEMO_CRTL                                (volatile uint32_t *)((0x3256  << 2) + 0xff900000)
18885 //Bit 31:19,        reserved
18886 //Bit 18:17,        demo_disp_position                                                                                                          . unsigned  , default = 2
18887 //Bit 16,            demo_hsvsharp_enable                                                                                                        . unsigned  , default = 0
18888 //Bit 15:13,        reserved
18889 //Bit 12: 0,        demo_left_top_screen_width                  :                                                                               . unsigned  , default = 360
18890 #define   SHARP_SR2_CTRL                           (0x3257)
18891 #define P_SHARP_SR2_CTRL                           (volatile uint32_t *)((0x3257  << 2) + 0xff900000)
18892 //Bit 31:22,    reserved
18893 //Bit 21:16,    reg_sr2_pk_la_err_dis_rate         :     . unsigned  , low angle and high angle error should not be no less than nearby_error*rate/64; default = 24
18894 //Bit 15:8,     reg_sr2_pk_sad_diag_gain           :     . unsigned  , gain to sad[2] and sad[6], 16 normalized to "1"; default = 16
18895 //Bit 7,        reg_sr2_vert_outphs                :     . unsigned  , default = 0
18896 //Bit 6,        reg_sr2_horz_outphs                :     . unsigned  , default = 0
18897 //Bit 5,        reg_sr2_vert_ratio                 :     . unsigned  , default = 0
18898 //Bit 4,        reg_sr2_hori_ratio                 :     . unsigned  , default = 0
18899 //Bit 3,        reg_sr2_bic_norm                   :     . unsigned  , default = 1
18900 //Bit 2,        reg_sr2_enable                     :     . unsigned  , default = 0
18901 //Bit 1,        reg_sr2_sharp_prc_lr_hbic          :     . unsigned  , default = 0
18902 //Bit 0,        reg_sr2_sharp_prc_lr               : lti/cti/nr/peaking processing using LR grid, 0: on HR grid; 1:on LR grid, horizontally no upscale, but using simple bic   . unsigned  , default = 0
18903 #define   SHARP_SR2_YBIC_HCOEF0                    (0x3258)
18904 #define P_SHARP_SR2_YBIC_HCOEF0                    (volatile uint32_t *)((0x3258  << 2) + 0xff900000)
18905 //Bit 31:24, reg_sr2_y_bic_hcoef03            Horizontal bi-cubic filter of 1.0 phase of luma channel Filter will be normalized to 128 as 鈥?鈥? default=0
18906 //Bit 23:16, reg_sr2_y_bic_hcoef02            the same as above; default=0
18907 //Bit 15: 8, reg_sr2_y_bic_hcoef01            the same as above; default=64
18908 //Bit  7: 0, reg_sr2_y_bic_hcoef00            the same as above; default=0
18909 #define   SHARP_SR2_YBIC_HCOEF1                    (0x3259)
18910 #define P_SHARP_SR2_YBIC_HCOEF1                    (volatile uint32_t *)((0x3259  << 2) + 0xff900000)
18911 //Bit 31:24, reg_sr2_y_bic_hcoef13            Horizontal bi-cubic filter of 0.5 phase of luma channel,Filter will be normalized to 128 as 鈥?鈥? default=-4
18912 //Bit 23:16, reg_sr2_y_bic_hcoef12            the same as above; default=36
18913 //Bit 15: 8, reg_sr2_y_bic_hcoef11            the same as above; default=36
18914 //Bit  7: 0, reg_sr2_y_bic_hcoef10            the same as above; default=-4
18915 #define   SHARP_SR2_CBIC_HCOEF0                    (0x325a)
18916 #define P_SHARP_SR2_CBIC_HCOEF0                    (volatile uint32_t *)((0x325a  << 2) + 0xff900000)
18917 //Bit 31:24, reg_sr2_c_bic_hcoef03            Horizontal bi-cubic filter of 1.0 phase of luma channel ,Filter will be normalized to 128 as 鈥?鈥? default=0
18918 //Bit 23:16, reg_sr2_c_bic_hcoef02            the same as above; default=21
18919 //Bit 15: 8, reg_sr2_c_bic_hcoef01            the same as above; default=22
18920 //Bit  7: 0, reg_sr2_c_bic_hcoef00            the same as above; default=21
18921 #define   SHARP_SR2_CBIC_HCOEF1                    (0x325b)
18922 #define P_SHARP_SR2_CBIC_HCOEF1                    (volatile uint32_t *)((0x325b  << 2) + 0xff900000)
18923 //Bit 31:24, reg_sr2_c_bic_hcoef13            Horizontal bi-cubic filter of 0.5 phase of luma channel,Filter will be normalized to 128 as 鈥?鈥? default=-4
18924 //Bit 23:16, reg_sr2_c_bic_hcoef12            the same as above; default=36
18925 //Bit 15: 8, reg_sr2_c_bic_hcoef11            the same as above; default=36
18926 //Bit  7: 0, reg_sr2_c_bic_hcoef10            the same as above; default=-4
18927 #define   SHARP_SR2_YBIC_VCOEF0                    (0x325c)
18928 #define P_SHARP_SR2_YBIC_VCOEF0                    (volatile uint32_t *)((0x325c  << 2) + 0xff900000)
18929 //Bit 31:24, reg_sr2_y_bic_vcoef03            Horizontal bi-cubic filter of 1.0 phase of luma channel, Filter will be normalized to 128 as 鈥?鈥? default=0
18930 //Bit 23:16, reg_sr2_y_bic_vcoef02            the same as above; default=0
18931 //Bit 15: 8, reg_sr2_y_bic_vcoef01            the same as above; default=64
18932 //Bit  7: 0, reg_sr2_y_bic_vcoef00            the same as above; default=0
18933 #define   SHARP_SR2_YBIC_VCOEF1                    (0x325d)
18934 #define P_SHARP_SR2_YBIC_VCOEF1                    (volatile uint32_t *)((0x325d  << 2) + 0xff900000)
18935 //Bit 31:24, reg_sr2_y_bic_vcoef13            Horizontal bi-cubic filter of 0.5 phase of luma channe, lFilter will be normalized to 128 as 鈥?鈥? default=-4
18936 //Bit 23:16, reg_sr2_y_bic_vcoef12            the same as above; default=36
18937 //Bit 15: 8, reg_sr2_y_bic_vcoef11            the same as above; default=36
18938 //Bit  7: 0, reg_sr2_y_bic_vcoef10            the same as above; default=-4
18939 #define   SHARP_SR2_CBIC_VCOEF0                    (0x325e)
18940 #define P_SHARP_SR2_CBIC_VCOEF0                    (volatile uint32_t *)((0x325e  << 2) + 0xff900000)
18941 //Bit 31:24, reg_sr2_c_bic_vcoef03            Horizontal bi-cubic filter of 1.0 phase of luma channel, Filter will be normalized to 128 as 鈥?鈥? default=0
18942 //Bit 23:16, reg_sr2_c_bic_vcoef02            the same as above; default=21
18943 //Bit 15: 8, reg_sr2_c_bic_vcoef01            the same as above; default=22
18944 //Bit  7: 0, reg_sr2_c_bic_vcoef00            the same as above; default=21
18945 #define   SHARP_SR2_CBIC_VCOEF1                    (0x325f)
18946 #define P_SHARP_SR2_CBIC_VCOEF1                    (volatile uint32_t *)((0x325f  << 2) + 0xff900000)
18947 //Bit 31:24, reg_sr2_c_bic_vcoef13            Horizontal bi-cubic filter of 0.5 phase of luma channel,Filter will be normalized to 128 as 鈥?鈥? default=-4
18948 //Bit 23:16, reg_sr2_c_bic_vcoef12            the same as above; default=36
18949 //Bit 15: 8, reg_sr2_c_bic_vcoef11            the same as above; default=36
18950 //Bit  7: 0, reg_sr2_c_bic_vcoef10            the same as above; default=-4
18951 #define   SHARP_SR2_MISC                           (0x3260)
18952 #define P_SHARP_SR2_MISC                           (volatile uint32_t *)((0x3260  << 2) + 0xff900000)
18953 //Bit 31:2,   reserved
18954 //Bit 1,      reg_sr2_cmpmux_bef                 :     . unsigned  , default = 0,0 no swap anf for YUV->YUV; 1, swapped and for RGB->GBR;
18955 //Bit 0,      reg_sr2_cmpmux_aft                 :     . unsigned  , default = 0,0 no swap anf for YUV->YUV; 1, swapped and for GBR-RGB;
18956 #define   SHARP_SR3_SAD_CTRL                       (0x3261)
18957 #define P_SHARP_SR3_SAD_CTRL                       (volatile uint32_t *)((0x3261  << 2) + 0xff900000)
18958 //Bit 31:30 reserved
18959 //Bit 29:24 reg_sr3_pk_sad_core_rate         // u6: rate of coring for sad(theta) - sad(theta+pi/2)*rate/64
18960 //Bit 23:22 reserved
18961 //Bit 21:16 reg_sr3_lti_sad_core_rate        // u6: rate of coring for sad(theta) - sad(theta+pi/2)*rate/64 , default= 6
18962 //Bit 15:14 reserved
18963 //Bit 13:8  reg_sr3_cti_sad_core_rate        // u6: rate of coring for sad(theta) - sad(theta+pi/2)*rate/64 , default= 6
18964 //Bit 7,    reg_sr3_lti_hsad_mode            // u1: mode for hsad of lti caluclation; 0: block based; 1:othor shape; default= 1
18965 //Bit 6,    reg_sr3_cti_hsad_mode            // u1: mode for hsad of cti caluclation; 0: block based; 1:othor shape; default= 1
18966 //Bit 5,    reg_sr3_lti_dsad_mode            // u1: mode for dsad of lti caluclation, 0: block based; 1:othor shape; default= 1
18967 //Bit 4,    reg_sr3_cti_dsad_mode            // u1: mode for dsad of cti caluclation, 0: block based; 1:othor shape; default= 1
18968 //Bit 3,    reg_sr3_lti_vsad_mode            // u1: mode for vsad of lti caluclation, 0: block based; 1:othor shape; default= 1
18969 //Bit 2,    reg_sr3_cti_vsad_mode            // u1: mode for vsad of cti caluclation, 0: block based; 1:othor shape; default= 1
18970 //Bit 1,    reg_sr3_lti_hsad_hlpf            // u1: hlpf for hsad of lti caluclation, 0: no hlpf; 1: with [1 2 1] hlpf; default= 1
18971 //Bit 0,    reg_sr3_cti_hsad_hlpf            // u1: hlpf for hsad of cti caluclation, 0: no hlpf; 1: with [1 2 1] hlpf; default= 1
18972 #define   SHARP_SR3_PK_CTRL0                       (0x3262)
18973 #define P_SHARP_SR3_PK_CTRL0                       (volatile uint32_t *)((0x3262  << 2) + 0xff900000)
18974 //Bit 31:12 reserved
18975 //Bit 11,   reg_sr3_pk_sad_mode              // u1: mode for sad of peaking and noise reduction, 0: block based; 1:othor shape; default= 1
18976 //Bit 10,   reg_sr3_pk_hsad_hlpf             // u1: hlpf for hsad for peaking caluclation, 0: no hlpf; 1: with [1 2 2 2 1] hlpf; default= 1
18977 //Bit 9,    reg_sr3_pk_vsad_hlpf             // u1: hlpf for vsad for peaking caluclation, 0: no hlpf; 1: with [1 2 2 2 1] hlpf; default= 1
18978 //Bit 8,    reg_sr3_pk_dsad_hlpf             // u1: hlpf for dsad for peaking caluclation, 0: no hlpf; 1: with [1 2 2 2 1] hlpf; default= 1
18979 //Bit 7:6,  reg_sr3_pk_hpdrt_mode            // u2: mode for HPdrt filter:  default= 3
18980 //Bit 5:4,  reg_sr3_pk_bpdrt_mode            // u2: mode for BPdrt filter:  default= 3
18981 //Bit 3:2,  reg_sr3_pk_drtbld_range          // u2: range of the min2 and min direction distance; default =1
18982 //Bit 1,    reserved
18983 //Bit 0,    reg_sr3_pk_ti_blend_mode         // u1: blend mode of the TI and PK results: default = 0;
18984 #define   SHARP_SR3_PK_CTRL1                       (0x3263)
18985 #define P_SHARP_SR3_PK_CTRL1                       (volatile uint32_t *)((0x3263  << 2) + 0xff900000)
18986 //Bit 31,     reserved
18987 //Bit 30:28,  reg_sr3_pk_hp_hvcon_replace8_maxsad     //u3: replace HP hvcon by maxsad, default =1
18988 //Bit 27,     reserved
18989 //Bit 26:24,  reg_sr3_pk_bp_hvcon_replace8_maxsad     //u3: replace HP hvcon by maxsad, default =1
18990 //Bit 23:16,  reg_sr3_pk_hp_hvcon_replace8lv_gain     //u8: gain to local variant before calculating the hv gain for peaking, normalized to 32 as "1" default = 32;
18991 //Bit 15:8,   reg_sr3_pk_bp_hvcon_replace8lv_gain     //u8: gain to local variant before calculating the hv gain for peaking, normalized to 32 as "1" default = 32;
18992 //Bit 7,      reg_sr3_sad_intlev_mode                 //u1: interleave detection xerr mode: 0 max; 1:sum default=1
18993 //Bit 6,      reg_sr3_sad_intlev_mode1                //u1: mode 1 of using diagonal protection: 0: no digonal protection; 1: with diagonal protection default=1
18994 //Bit 5:0,    reg_sr3_sad_intlev_gain                 //u6: interleave detection for sad gain applied, normalized to 8 as 1  default=12
18995 #define   SHARP_DEJ_CTRL                           (0x3264)
18996 #define P_SHARP_DEJ_CTRL                           (volatile uint32_t *)((0x3264  << 2) + 0xff900000)
18997 //Bit 31:4    reserved
18998 //Bit 3:2,    reg_sr3_dejaggy_sameside_prtct   // u2:  enable of sr3 dejaggy same side curve protect from filter, [0] for proc, [1] for ctrl path,  default=3
18999 //Bit 1,      reg_sr3_dejaggy_sameside_mode    // u1: mode of the sameside flag decision: default =1
19000 //Bit 0,      reg_sr3_dejaggy_enable           // u1: enable of sr3 dejaggy: default =0
19001 #define   SHARP_DEJ_ALPHA                          (0x3265)
19002 #define P_SHARP_DEJ_ALPHA                          (volatile uint32_t *)((0x3265  << 2) + 0xff900000)
19003 //Bit 31:28,  reg_sr3_dejaggy_ctrlchrm_alpha_1  //u4: alpha for LR video LPF,  default = 0
19004 //Bit 27:24,  reg_sr3_dejaggy_ctrlchrm_alpha_0  //u4: alpha for LR video LPF,  default = 15
19005 //Bit 23:20,  reg_sr3_dejaggy_ctrlluma_alpha_1  //u4: alpha for LR video LPF,  default = 0
19006 //Bit 19:16,  reg_sr3_dejaggy_ctrlluma_alpha_0  //u4: alpha for LR video LPF,  default = 15
19007 //Bit 15:12,  reg_sr3_dejaggy_procchrm_alpha_1  //u4: alpha for LR video LPF,  default = 4
19008 //Bit 11:8,   reg_sr3_dejaggy_procchrm_alpha_0  //u4: alpha for LR video LPF,  default = 6
19009 //Bit 7:4,    reg_sr3_dejaggy_procluma_alpha_1  //u4: alpha for LR video LPF,  default = 4
19010 //Bit 3:0,    reg_sr3_dejaggy_procluma_alpha_0  //u4: alpha for LR video LPF,  default = 6
19011 #define   SHARP_SR3_DRTLPF_EN                      (0x3266)
19012 #define P_SHARP_SR3_DRTLPF_EN                      (volatile uint32_t *)((0x3266  << 2) + 0xff900000)
19013 //Bit 31:15   reserved
19014 //Bit 14:8,   reg_pk_debug_edge                . unsigned  , default = 0
19015 //Bit  7,     reserved
19016 //Bit  6:4,   reg_sr3_drtlpf_theta_en           //u1x3 theta (pure vertical and horizontal HF burst protection) enable. 0: not enable, 1:enable protection
19017 //Bit  3,     reserved
19018 //Bit  2:0    reg_sr3_drtlpf_enable             //u1x3 directional lpf on luma U and V channels, default = 7
19019 #define   SHARP_SR3_DRTLPF_ALPHA_0                 (0x3267)
19020 #define P_SHARP_SR3_DRTLPF_ALPHA_0                 (volatile uint32_t *)((0x3267  << 2) + 0xff900000)
19021 //Bit 31:30   reserved
19022 //Bit 29:24   reg_sr3_drtlpf_alpha3             //u6: directional lpf alpha coef for min_sad/max_sad comparied, default = 9
19023 //Bit 23:22   reserved
19024 //Bit 21:16   reg_sr3_drtlpf_alpha2             //u6: default =10
19025 //Bit 15:14   reserved
19026 //Bit 13:8    reg_sr3_drtlpf_alpha1             //u6: default = 11
19027 //Bit 7:6     reserved
19028 //Bit 5:0     reg_sr3_drtlpf_alpha0             //u6: default = 12
19029 #define   SHARP_SR3_DRTLPF_ALPHA_1                 (0x3268)
19030 #define P_SHARP_SR3_DRTLPF_ALPHA_1                 (volatile uint32_t *)((0x3268  << 2) + 0xff900000)
19031 //Bit 31:30   reserved
19032 //Bit 29:24   reg_sr3_drtlpf_alpha7             //u6: directional lpf alpha coef for min_sad/max_sad comparied, default = 1
19033 //Bit 23:22   reserved
19034 //Bit 21:16   reg_sr3_drtlpf_alpha6             //u6: default = 4
19035 //Bit 15:14   reserved
19036 //Bit 13:8    reg_sr3_drtlpf_alpha5             //u6: default = 7
19037 //Bit 7:6     reserved
19038 //Bit 5:0     reg_sr3_drtlpf_alpha4             //u6: default = 8
19039 #define   SHARP_SR3_DRTLPF_ALPHA_2                 (0x3269)
19040 #define P_SHARP_SR3_DRTLPF_ALPHA_2                 (volatile uint32_t *)((0x3269  << 2) + 0xff900000)
19041 //Bit 31:30   reserved
19042 //Bit 29:24   reg_sr3_drtlpf_alpha11            //u6: directional lpf alpha coef for min_sad/max_sad comparied, default = 0
19043 //Bit 23:22   reserved
19044 //Bit 21:16   reg_sr3_drtlpf_alpha10            //u6: default = 0
19045 //Bit 15:14   reserved
19046 //Bit 13:8    reg_sr3_drtlpf_alpha9             //u6: default = 0
19047 //Bit 7:6     reserved
19048 //Bit 5:0     reg_sr3_drtlpf_alpha8             //u6: default = 0
19049 #define   SHARP_SR3_DRTLPF_ALPHA_OFST              (0x326a)
19050 #define P_SHARP_SR3_DRTLPF_ALPHA_OFST              (volatile uint32_t *)((0x326a  << 2) + 0xff900000)
19051 //Bit 31:28   reg_sr3_drtlpf_alpha_ofst7        //s4: directional lpf alpha coef ofset of each directions, default = -8
19052 //Bit 27:24   reg_sr3_drtlpf_alpha_ofst6        //s4: default = -8
19053 //Bit 23:20   reg_sr3_drtlpf_alpha_ofst5        //s4: default = -8
19054 //Bit 19:16   reg_sr3_drtlpf_alpha_ofst4        //s4: default = -8
19055 //Bit 15:12   reg_sr3_drtlpf_alpha_ofst3        //s4: default = -8
19056 //Bit 11:8    reg_sr3_drtlpf_alpha_ofst2        //s4: default = -8
19057 //Bit 7:4     reg_sr3_drtlpf_alpha_ofst1        //s4: default = -8
19058 //Bit 3:0     reg_sr3_drtlpf_alpha_ofst0        //s4: default = -8
19059 #define   SHARP_SR3_DERING_CTRL                    (0x326b)
19060 #define P_SHARP_SR3_DERING_CTRL                    (volatile uint32_t *)((0x326b  << 2) + 0xff900000)
19061 //Bit 31      reserved
19062 //Bit 30:28   reg_sr3_dering_enable                  // u3: dering enable bits; default = 1
19063 //Bit 27      reserved
19064 //Bit 26:24   reg_sr3_dering_varlpf_mode             // u3: local variant LPF mode: 0 no filter, 1, errosion 3x3; 2: 3x3 lpf; 3 and up: 3x3 errosion + lpf default = 3
19065 //Bit 23:20   reg_sr3_dering_maxrange                // u4: maximum:range of dering in LR resolution, max to 12;  default = 9
19066 //Bit 19:18   reserved
19067 //Bit 17:16   reg_sr3_dering_lcvar_blend_mode        // u2: mode for lcvar calculation: 0: HVblend; 1: diagblend; 2: HVblend+V (for hring); 3: HVblend+ DiagBlend default = 2
19068 //Bit 15:8    reg_sr3_dering_lcvar_gain              // u8: gain to local variant and normalized to 32 as "1"  default = 64
19069 //Bit 7:0     reg_sr3_dering_lcvar_nearby_maxsad_th  // u8: threshold to use nearer side maxsad if that side sad is larger than this threshold, ortherwise, use the max one default = 28
19070 #define   SHARP_SR3_DERING_LUMA2PKGAIN_0TO3        (0x326c)
19071 #define P_SHARP_SR3_DERING_LUMA2PKGAIN_0TO3        (volatile uint32_t *)((0x326c  << 2) + 0xff900000)
19072 //Bit 31:24   reg_sr3_dering_luma2pkgain3             // u8: level limit(for th0<bpcon<th1) of curve for dering pkgain based on LPF luma level. default=255
19073 //Bit 23:16   reg_sr3_dering_luma2pkgain2             // u8: level limit(for bpcon<th0) of curve for dering pkgain based on LPF luma level. default=255
19074 //Bit 15:8    reg_sr3_dering_luma2pkgain1             // u8: threshold1 of curve for dering pkgain based on LPF luma level  default =200
19075 //Bit 7:0     reg_sr3_dering_luma2pkgain0             // u8: threshold0 of curve for dering pkgain based on LPF luma level. default =30
19076 #define   SHARP_SR3_DERING_LUMA2PKGAIN_4TO6        (0x326d)
19077 #define P_SHARP_SR3_DERING_LUMA2PKGAIN_4TO6        (volatile uint32_t *)((0x326d  << 2) + 0xff900000)
19078 //Bit 31:24   reserved
19079 //Bit 23:16   reg_sr3_dering_luma2pkgain6             // u8: rate1 (for bpcon>th1) of curve for dering pkgain based on LPF luma level. default =24
19080 //Bit 15:8    reg_sr3_dering_luma2pkgain5             // u8: rate0 (for bpcon<th0) of curve for dering pkgain based on LPF luma level. dfault =50
19081 //Bit 7:0     reg_sr3_dering_luma2pkgain4             // u8: level limit(for bpcon>th1) of curve for dering pkgain based on LPF luma level. default =255
19082 #define   SHARP_SR3_DERING_LUMA2PKOS_0TO3          (0x326e)
19083 #define P_SHARP_SR3_DERING_LUMA2PKOS_0TO3          (volatile uint32_t *)((0x326e  << 2) + 0xff900000)
19084 //Bit 31:24   reg_sr3_dering_luma2pkos3             // u8: level limit(for th0<bpcon<th1) of curve for dering pkOS based on LPF luma level. default=255
19085 //Bit 23:16   reg_sr3_dering_luma2pkos2             // u8: level limit(for bpcon<th0) of curve for dering pkOS based on LPF luma level. default=255
19086 //Bit 15:8    reg_sr3_dering_luma2pkos1             // u8: threshold1 of curve for dering pkOS based on LPF luma level  default =200
19087 //Bit 7:0     reg_sr3_dering_luma2pkos0             // u8: threshold0 of curve for dering pkOS based on LPF luma leve. default =30
19088 #define   SHARP_SR3_DERING_LUMA2PKOS_4TO6          (0x326f)
19089 #define P_SHARP_SR3_DERING_LUMA2PKOS_4TO6          (volatile uint32_t *)((0x326f  << 2) + 0xff900000)
19090 //Bit 31:24   reserved
19091 //Bit 23:16   reg_sr3_dering_luma2pkos6             // u8: rate1 (for bpcon>th1) of curve for dering pkOS based on LPF luma level. default =24
19092 //Bit 15:8    reg_sr3_dering_luma2pkos5             // u8: rate0 (for bpcon<th0) of curve for dering pkOS based on LPF luma level. dfault =50
19093 //Bit 7:0     reg_sr3_dering_luma2pkos4             // u8: level limit(for bpcon>th1) of curve for dering pkOS based on LPF luma level. default =255
19094 #define   SHARP_SR3_DERING_GAINVS_MADSAD           (0x3270)
19095 #define P_SHARP_SR3_DERING_GAINVS_MADSAD           (volatile uint32_t *)((0x3270  << 2) + 0xff900000)
19096 //Bit 31:28   reg_sr3_dering_gainvs_maxsad7        //u4: pkgain vs maxsad value, 8 node interpolations, default = 0
19097 //Bit 27:24   reg_sr3_dering_gainvs_maxsad6        //u4: default = 0
19098 //Bit 23:20   reg_sr3_dering_gainvs_maxsad5        //u4: default = 0
19099 //Bit 19:16   reg_sr3_dering_gainvs_maxsad4        //u4: default = 0
19100 //Bit 15:12   reg_sr3_dering_gainvs_maxsad3        //u4: default = 0
19101 //Bit 11:8    reg_sr3_dering_gainvs_maxsad2        //u4: default = 0
19102 //Bit 7:4     reg_sr3_dering_gainvs_maxsad1        //u4: default = 4
19103 //Bit 3:0     reg_sr3_dering_gainvs_maxsad0        //u4: default = 8
19104 #define   SHARP_SR3_DERING_GAINVS_VR2MAX           (0x3271)
19105 #define P_SHARP_SR3_DERING_GAINVS_VR2MAX           (volatile uint32_t *)((0x3271  << 2) + 0xff900000)
19106 //Bit 31:28   reg_sr3_dering_gainvs_vr2max7        //u4: pkgain vs ratio = max(local_var, floor)/maxsad nearby, default = 15
19107 //Bit 27:24   reg_sr3_dering_gainvs_vr2max6        //u4: default = 15
19108 //Bit 23:20   reg_sr3_dering_gainvs_vr2max5        //u4: default = 15
19109 //Bit 19:16   reg_sr3_dering_gainvs_vr2max4        //u4: default = 15
19110 //Bit 15:12   reg_sr3_dering_gainvs_vr2max3        //u4: default = 14
19111 //Bit 11:8    reg_sr3_dering_gainvs_vr2max2        //u4: default = 12
19112 //Bit 7:4     reg_sr3_dering_gainvs_vr2max1        //u4: default = 2
19113 //Bit 3:0     reg_sr3_dering_gainvs_vr2max0        //u4: default = 0
19114 #define   SHARP_SR3_DERING_PARAM0                  (0x3272)
19115 #define P_SHARP_SR3_DERING_PARAM0                  (volatile uint32_t *)((0x3272  << 2) + 0xff900000)
19116 //Bit 31:24   reserved
19117 //Bit 23:16   reg_sr3_dering_lcvar_floor        //u8: local varianet no smaller than this value to calculate dgain max(localvar,x)/maxsad. default = 10
19118 //Bit 15:8    reg_sr3_dering_vr2max_gain        //u8: gain to max(local_var, floor)/maxsad  before feeding to LUT. default = 32
19119 //Bit 7:6     reserved
19120 //Bit 5:0     reg_sr3_dering_vr2max_limt        //u6: limit of maxsad to max(local_var, floor)*(max(maxsad, lmit))/maxsad.  default = 16
19121 #define   SHARP_SR3_DRTLPF_THETA                   (0x3273)
19122 #define P_SHARP_SR3_DRTLPF_THETA                   (volatile uint32_t *)((0x3273  << 2) + 0xff900000)
19123 //Bit 31:0    reg_sr3_drtlpf_theta              //u4x8: directional lpf beta coef for min_sad/min2_sad compared to x=0:7 correspond to[1:8]/16;  0 means no drtLPF, 15: 100% alpha dependant drtLPF
19124 #define   SHARP_SATPRT_CTRL                        (0x3274)
19125 #define P_SHARP_SATPRT_CTRL                        (volatile uint32_t *)((0x3274  << 2) + 0xff900000)
19126 //Bit 31:24   reserved
19127 //Bit 23:16   reg_satprt_sat_core      //u8: 4x will be coring to cor(irgb_max-irgb_min) to calculate the oy_delt, the smaller the more protection to color, the larger only the rich color will be protected;
19128 //Bit 15:8    reg_satprt_sat_rate      //u8: rate to cor(irgb_max-irgb_min) to calculate the oy_delt, the larger the more protection to rich color; norm 16 as 1
19129 //Bit 7:4     reserved
19130 //Bit 3:2     reg_satprt_csc_mode      //u2: csc mode of current yuv input: 0:601, 1:709, 2:BT2020 NCL, 3:reserved
19131 //Bit 1       reg_satprt_is_lmt        //u1: flag telling the YUV is limited range data or full range data, 0 full range, 1: limited range
19132 //Bit 0       reg_satprt_enable        //u1: enable of saturation protection for dnlp adjustments
19133 #define   SHARP_SATPRT_DIVM                        (0x3275)
19134 #define P_SHARP_SATPRT_DIVM                        (volatile uint32_t *)((0x3275  << 2) + 0xff900000)
19135 //Bit 31:24   reserved
19136 //Bit 23:0    reg_satprt_div_m        //u8x3, 1/m, normalized to 128 as 1, default=1
19137 #define   SHARP_SATPRT_LMT_RGB                     (0x3276)
19138 #define P_SHARP_SATPRT_LMT_RGB                     (volatile uint32_t *)((0x3276  << 2) + 0xff900000)
19139 //Bit 31:30   reserved
19140 //Bit 29:0    reg_satprt_lmt_rgb      //u10x3, limit of the rgb channel, for limited range RGB, set to 960, otherwise set to 1023
19141 #define   SHARP_DB_FLT_CTRL                        (0x3277)
19142 #define P_SHARP_DB_FLT_CTRL                        (volatile uint32_t *)((0x3277  << 2) + 0xff900000)
19143 //Bit 31:27        reserved
19144 //Bit 26           reg_nrdeband_reset1
19145 //Bit 25           reg_nrdeband_reset0
19146 //Bit 24           reg_nrdeband_rgb          // unsigned , default = 0  0:yuv 1:RGB
19147 //Bit 23           reg_nrdeband_en11         // unsigned , default = 1  debanding registers of side lines, [0] for luma,   same for below
19148 //Bit 22           reg_nrdeband_en10         // unsigned , default = 1  debanding registers of side lines, [1] for chroma, same for below
19149 //Bit 21           reg_nrdeband_siderand     // unsigned , default = 1  options to use side two lines use the rand, instead of use for the YUV three component of middle line, 0: seed[3]/bandrand[3] for middle line yuv; 1: seed[3]/bandrand[3] for nearby three lines Y;
19150 //Bit 20           reg_nrdeband_randmode     // unsigned , default = 0  mode of rand noise adding, 0: same noise strength for all difs; else: strenght of noise will not exceed the difs, MIN((pPKReg->reg_nrdeband_bandrand[m]), noise[m])
19151 //Bit 19:17        reg_nrdeband_bandrand2    // unsigned , default = 6
19152 //Bit 16            reserved
19153 //Bit 15:13        reg_nrdeband_bandrand1    // unsigned , default = 6
19154 //Bit 12            reserved
19155 //Bit 11: 9        reg_nrdeband_bandrand0    // unsigned , default = 6
19156 //Bit  8            reserved
19157 //Bit  7           reg_nrdeband_hpxor1       // unsigned , default = 1   debanding random hp portion xor, [0] for luma
19158 //Bit  6           reg_nrdeband_hpxor0       // unsigned , default = 1   debanding random hp portion xor, [1] for chroma
19159 //Bit  5           reg_nrdeband_en1          // unsigned , default = 1   debanding registers,  for luma
19160 //Bit  4           reg_nrdeband_en0          // unsigned , default = 1   debanding registers,  for chroma
19161 //Bit  3: 2        reg_nrdeband_lpf_mode1    // unsigned , default = 2   lpf mode, 0: 3x3, 1:3x5; 2: 5x5; 3:5x7
19162 //Bit  1: 0        reg_nrdeband_lpf_mode0    // unsigned , default = 2   lpf mode, 0: 3x3, 1:3x5; 2: 5x5; 3:5x7
19163 #define   SHARP_DB_FLT_YC_THRD                     (0x3278)
19164 #define P_SHARP_DB_FLT_YC_THRD                     (volatile uint32_t *)((0x3278  << 2) + 0xff900000)
19165 //Bit 31:28        reg_nrdeband_luma_th3     // unsigned , default = 9   threshold to |Y-Ylpf|, if < th[0] use lpf
19166 //Bit 27:24        reg_nrdeband_luma_th2     // unsigned , default = 7   elseif <th[1] use (lpf*3 + y)/4
19167 //Bit 23:20        reg_nrdeband_luma_th1     // unsigned , default = 6   elseif <th[1] use (lpf*3 + y)/4elseif <th[2] (lpf*1 + y)/2
19168 //Bit 19:16        reg_nrdeband_luma_th0     // unsigned , default = 5   elseif <th[1] use (lpf*3 + y)/4elseif elseif <th[3] (lpf*1 + 3*y)/4; else
19169 //Bit 15:12        reg_nrdeband_chrm_th3     // unsigned , default = 9   threshold to |Y-Ylpf|, if < th[0] use lpf
19170 //Bit 11: 8        reg_nrdeband_chrm_th2     // unsigned , default = 7   elseif <th[1] use (lpf*3 + y)/4
19171 //Bit  7: 4        reg_nrdeband_chrm_th1     // unsigned , default = 6   elseif <th[1] use (lpf*3 + y)/4elseif <th[2] (lpf*1 + y)/2
19172 //Bit  3: 0        reg_nrdeband_chrm_th0     // unsigned , default = 5   elseif <th[1] use (lpf*3 + y)/4elseif elseif
19173 #define   SHARP_DB_FLT_RANDLUT                     (0x3279)
19174 #define P_SHARP_DB_FLT_RANDLUT                     (volatile uint32_t *)((0x3279  << 2) + 0xff900000)
19175 //Bit 31:24        reserved
19176 //Bit 23:21        reg_nrdebandslut7         // unsigned , default = 1   lut0
19177 //Bit 20:18        reg_nrdebandslut6         // unsigned , default = 1   lut0
19178 //Bit 17:15        reg_nrdebandslut5         // unsigned , default = 1   lut0
19179 //Bit 14:12        reg_nrdebandslut4         // unsigned , default = 1   lut0
19180 //Bit 11: 9        reg_nrdebandslut3         // unsigned , default = 1   lut0
19181 //Bit  8: 6        reg_nrdebandslut2         // unsigned , default = 1   lut0
19182 //Bit  5: 3        reg_nrdebandslut1         // unsigned , default = 1   lut0
19183 //Bit  2: 0        reg_nrdebandslut0         // unsigned , default = 1   lut0
19184 #define   SHARP_DB_FLT_PXI_THRD                    (0x327a)
19185 #define P_SHARP_DB_FLT_PXI_THRD                    (volatile uint32_t *)((0x327a  << 2) + 0xff900000)
19186 //Bit 31:26        reserved
19187 //Bit 25:16        reg_nrdeband_yc_th1       // unsigned , default = 0   to luma/|u/v| for using the denoise
19188 //Bit 15:10        reserved
19189 //Bit  9: 0        reg_nrdeband_yc_th0       // unsigned , default = 0   to luma/|u/v| for using the denoise
19190 #define   SHARP_DB_FLT_SEED_Y                      (0x327b)
19191 #define P_SHARP_DB_FLT_SEED_Y                      (volatile uint32_t *)((0x327b  << 2) + 0xff900000)
19192 //Bit 31: 0        reg_nrdeband_seed0        // unsigned , default = 1621438240  noise adding seed for Y. seed[0]= 0x60a52f20; as default
19193 #define   SHARP_DB_FLT_SEED_U                      (0x327c)
19194 #define P_SHARP_DB_FLT_SEED_U                      (volatile uint32_t *)((0x327c  << 2) + 0xff900000)
19195 //Bit 31: 0        reg_nrdeband_seed1        // unsigned , default = 1621438247  noise adding seed for U. seed[0]= 0x60a52f27; as default
19196 #define   SHARP_DB_FLT_SEED_V                      (0x327d)
19197 #define P_SHARP_DB_FLT_SEED_V                      (volatile uint32_t *)((0x327d  << 2) + 0xff900000)
19198 //Bit 31: 0        reg_nrdeband_seed2        // unsigned , default = 1621438242  noise adding seed for V. seed[0]= 0x60a52f22; as default
19199 #define   SHARP_PKGAIN_VSLUMA_LUT_L                (0x327e)
19200 #define P_SHARP_PKGAIN_VSLUMA_LUT_L                (volatile uint32_t *)((0x327e  << 2) + 0xff900000)
19201 //Bit 31:28       reg_pkgain_vsluma_lut7;
19202 //Bit 27:24       reg_pkgain_vsluma_lut6;
19203 //Bit 23:20       reg_pkgain_vsluma_lut5;
19204 //Bit 19:16       reg_pkgain_vsluma_lut4;
19205 //Bit 15:12       reg_pkgain_vsluma_lut3;
19206 //Bit 11: 8       reg_pkgain_vsluma_lut2;
19207 //Bit  7: 4       reg_pkgain_vsluma_lut1;
19208 //Bit  3: 0       reg_pkgain_vsluma_lut0;
19209 #define   SHARP_PKGAIN_VSLUMA_LUT_H                (0x327f)
19210 #define P_SHARP_PKGAIN_VSLUMA_LUT_H                (volatile uint32_t *)((0x327f  << 2) + 0xff900000)
19211 //Bit 31: 4       reserved;
19212 //Bit  3: 0       reg_pkgain_vsluma_lut8;
19213 #define   SHARP_PKOSHT_VSLUMA_LUT_L                (0x3203)
19214 #define P_SHARP_PKOSHT_VSLUMA_LUT_L                (volatile uint32_t *)((0x3203  << 2) + 0xff900000)
19215 //Bit 31:28       reg_pkosht_vsluma_lut7;
19216 //Bit 27:24       reg_pkosht_vsluma_lut6;
19217 //Bit 23:20       reg_pkosht_vsluma_lut5;
19218 //Bit 19:16       reg_pkosht_vsluma_lut4;
19219 //Bit 15:12       reg_pkosht_vsluma_lut3;
19220 //Bit 11: 8       reg_pkosht_vsluma_lut2;
19221 //Bit  7: 4       reg_pkosht_vsluma_lut1;
19222 //Bit  3: 0       reg_pkosht_vsluma_lut0;
19223 #define   SHARP_PKOSHT_VSLUMA_LUT_H                (0x3204)
19224 #define P_SHARP_PKOSHT_VSLUMA_LUT_H                (volatile uint32_t *)((0x3204  << 2) + 0xff900000)
19225 //Bit 31: 4       reserved;
19226 //Bit  3: 0       reg_pkosht_vsluma_lut8;
19227 //
19228 // Closing file:  sharp_regs.h
19229 //
19230 
19231 #define SRSHARP0_SHARP_HVSIZE                      (SRSHARP0_OFFSET + SHARP_HVSIZE                 )  //0x00  //
19232 #define SRSHARP0_SHARP_HVBLANK_NUM                 (SRSHARP0_OFFSET + SHARP_HVBLANK_NUM            )  //0x01  //
19233 #define SRSHARP0_NR_GAUSSIAN_MODE                  (SRSHARP0_OFFSET + NR_GAUSSIAN_MODE             )  //0x02  //
19234 //`define SRSHARP0_PK_HVCON_LPF_MODE                 (`SRSHARP0_OFFSET + `PK_HVCON_LPF_MODE            )  //8'h03  //
19235 //`define SRSHARP0_PK_CON_BLEND_GAIN                 (`SRSHARP0_OFFSET + `PK_CON_BLEND_GAIN            )  //8'h04  //
19236 #define SRSHARP0_PK_CON_2CIRHPGAIN_TH_RATE         (SRSHARP0_OFFSET + PK_CON_2CIRHPGAIN_TH_RATE    )  //0x05  //
19237 #define SRSHARP0_PK_CON_2CIRHPGAIN_LIMIT           (SRSHARP0_OFFSET + PK_CON_2CIRHPGAIN_LIMIT      )  //0x06  //
19238 #define SRSHARP0_PK_CON_2CIRBPGAIN_TH_RATE         (SRSHARP0_OFFSET + PK_CON_2CIRBPGAIN_TH_RATE    )  //0x07  //
19239 #define SRSHARP0_PK_CON_2CIRBPGAIN_LIMIT           (SRSHARP0_OFFSET + PK_CON_2CIRBPGAIN_LIMIT      )  //0x08  //
19240 #define SRSHARP0_PK_CON_2DRTHPGAIN_TH_RATE         (SRSHARP0_OFFSET + PK_CON_2DRTHPGAIN_TH_RATE    )  //0x09  //
19241 #define SRSHARP0_PK_CON_2DRTHPGAIN_LIMIT           (SRSHARP0_OFFSET + PK_CON_2DRTHPGAIN_LIMIT      )  //0x0a  //
19242 #define SRSHARP0_PK_CON_2DRTBPGAIN_TH_RATE         (SRSHARP0_OFFSET + PK_CON_2DRTBPGAIN_TH_RATE    )  //0x0b  //
19243 #define SRSHARP0_PK_CON_2DRTBPGAIN_LIMIT           (SRSHARP0_OFFSET + PK_CON_2DRTBPGAIN_LIMIT      )  //0x0c  //
19244 #define SRSHARP0_PK_CIRFB_LPF_MODE                 (SRSHARP0_OFFSET + PK_CIRFB_LPF_MODE            )  //0x0d  //
19245 #define SRSHARP0_PK_DRTFB_LPF_MODE                 (SRSHARP0_OFFSET + PK_DRTFB_LPF_MODE            )  //0x0e  //
19246 #define SRSHARP0_PK_CIRFB_HP_CORING                (SRSHARP0_OFFSET + PK_CIRFB_HP_CORING           )  //0x0f  //
19247 #define SRSHARP0_PK_CIRFB_BP_CORING                (SRSHARP0_OFFSET + PK_CIRFB_BP_CORING           )  //0x10  //
19248 #define SRSHARP0_PK_DRTFB_HP_CORING                (SRSHARP0_OFFSET + PK_DRTFB_HP_CORING           )  //0x11  //
19249 #define SRSHARP0_PK_DRTFB_BP_CORING                (SRSHARP0_OFFSET + PK_DRTFB_BP_CORING           )  //0x12  //
19250 #define SRSHARP0_PK_CIRFB_BLEND_GAIN               (SRSHARP0_OFFSET + PK_CIRFB_BLEND_GAIN          )  //0x13  //
19251 #define SRSHARP0_NR_ALPY_SSD_GAIN_OFST             (SRSHARP0_OFFSET + NR_ALPY_SSD_GAIN_OFST        )  //0x14  //
19252 #define SRSHARP0_NR_ALP0Y_ERR2CURV_TH_RATE         (SRSHARP0_OFFSET + NR_ALP0Y_ERR2CURV_TH_RATE    )  //0x15  //
19253 #define SRSHARP0_NR_ALP0Y_ERR2CURV_LIMIT           (SRSHARP0_OFFSET + NR_ALP0Y_ERR2CURV_LIMIT      )  //0x16  //
19254 #define SRSHARP0_NR_ALP0C_ERR2CURV_TH_RATE         (SRSHARP0_OFFSET + NR_ALP0C_ERR2CURV_TH_RATE    )  //0x17  //
19255 #define SRSHARP0_NR_ALP0C_ERR2CURV_LIMIT           (SRSHARP0_OFFSET + NR_ALP0C_ERR2CURV_LIMIT      )  //0x18  //
19256 #define SRSHARP0_NR_ALP0_MIN_MAX                   (SRSHARP0_OFFSET + NR_ALP0_MIN_MAX              )  //0x19  //
19257 #define SRSHARP0_NR_ALP1_MIERR_CORING              (SRSHARP0_OFFSET + NR_ALP1_MIERR_CORING         )  //0x1a  //
19258 #define SRSHARP0_NR_ALP1_ERR2CURV_TH_RATE          (SRSHARP0_OFFSET + NR_ALP1_ERR2CURV_TH_RATE     )  //0x1b  //
19259 #define SRSHARP0_NR_ALP1_ERR2CURV_LIMIT            (SRSHARP0_OFFSET + NR_ALP1_ERR2CURV_LIMIT       )  //0x1c  //
19260 #define SRSHARP0_NR_ALP1_MIN_MAX                   (SRSHARP0_OFFSET + NR_ALP1_MIN_MAX              )  //0x1d  //
19261 #define SRSHARP0_PK_ALP2_MIERR_CORING              (SRSHARP0_OFFSET + PK_ALP2_MIERR_CORING         )  //0x1e  //
19262 #define SRSHARP0_PK_ALP2_ERR2CURV_TH_RATE          (SRSHARP0_OFFSET + PK_ALP2_ERR2CURV_TH_RATE     )  //0x1f  //
19263 #define SRSHARP0_PK_ALP2_ERR2CURV_LIMIT            (SRSHARP0_OFFSET + PK_ALP2_ERR2CURV_LIMIT       )  //0x20  //
19264 #define SRSHARP0_PK_ALP2_MIN_MAX                   (SRSHARP0_OFFSET + PK_ALP2_MIN_MAX              )  //0x21  //
19265 #define SRSHARP0_PK_FINALGAIN_HP_BP                (SRSHARP0_OFFSET + PK_FINALGAIN_HP_BP           )  //0x22  //
19266 #define SRSHARP0_PK_OS_HORZ_CORE_GAIN              (SRSHARP0_OFFSET + PK_OS_HORZ_CORE_GAIN         )  //0x23  //
19267 #define SRSHARP0_PK_OS_VERT_CORE_GAIN              (SRSHARP0_OFFSET + PK_OS_VERT_CORE_GAIN         )  //0x24  //
19268 #define SRSHARP0_PK_OS_ADPT_MISC                   (SRSHARP0_OFFSET + PK_OS_ADPT_MISC              )  //0x25  //
19269 #define SRSHARP0_PK_OS_STATIC                      (SRSHARP0_OFFSET + PK_OS_STATIC                 )  //0x26  //
19270 #define SRSHARP0_PK_NR_ENABLE                      (SRSHARP0_OFFSET + PK_NR_ENABLE                 )  //0x27  //
19271 #define SRSHARP0_PK_DRT_SAD_MISC                   (SRSHARP0_OFFSET + PK_DRT_SAD_MISC              )  //0x28  //
19272 #define SRSHARP0_NR_TI_DNLP_BLEND                  (SRSHARP0_OFFSET + NR_TI_DNLP_BLEND             )  //0x29  //
19273 
19274 #define SRSHARP0_LTI_DIR_CORE_ALPHA                (SRSHARP0_OFFSET + LTI_DIR_CORE_ALPHA           )  //0x2a  //
19275 #define SRSHARP0_CTI_DIR_ALPHA                     (SRSHARP0_OFFSET + CTI_DIR_ALPHA                )  //0x2b  //
19276 #define SRSHARP0_LTI_CTI_DF_GAIN                   (SRSHARP0_OFFSET + LTI_CTI_DF_GAIN              )  //0x2c  //
19277 #define SRSHARP0_LTI_CTI_DIR_AC_DBG                (SRSHARP0_OFFSET + LTI_CTI_DIR_AC_DBG           )  //0x2d  //
19278 #define SRSHARP0_HCTI_FLT_CLP_DC                   (SRSHARP0_OFFSET + HCTI_FLT_CLP_DC              )  //0x2e  //
19279 #define SRSHARP0_HCTI_BST_GAIN                     (SRSHARP0_OFFSET + HCTI_BST_GAIN                )  //0x2f  //
19280 #define SRSHARP0_HCTI_BST_CORE                     (SRSHARP0_OFFSET + HCTI_BST_CORE                )  //0x30  //
19281 #define SRSHARP0_HCTI_CON_2_GAIN_0                 (SRSHARP0_OFFSET + HCTI_CON_2_GAIN_0            )  //0x31  //
19282 #define SRSHARP0_HCTI_CON_2_GAIN_1                 (SRSHARP0_OFFSET + HCTI_CON_2_GAIN_1            )  //0x32  //
19283 #define SRSHARP0_HCTI_OS_MARGIN                    (SRSHARP0_OFFSET + HCTI_OS_MARGIN               )  //0x33  //
19284 #define SRSHARP0_HLTI_FLT_CLP_DC                   (SRSHARP0_OFFSET + HLTI_FLT_CLP_DC              )  //0x34  //
19285 #define SRSHARP0_HLTI_BST_GAIN                     (SRSHARP0_OFFSET + HLTI_BST_GAIN                )  //0x35  //
19286 #define SRSHARP0_HLTI_BST_CORE                     (SRSHARP0_OFFSET + HLTI_BST_CORE                )  //0x36  //
19287 #define SRSHARP0_HLTI_CON_2_GAIN_0                 (SRSHARP0_OFFSET + HLTI_CON_2_GAIN_0            )  //0x37  //
19288 #define SRSHARP0_HLTI_CON_2_GAIN_1                 (SRSHARP0_OFFSET + HLTI_CON_2_GAIN_1            )  //0x38  //
19289 #define SRSHARP0_HLTI_OS_MARGIN                    (SRSHARP0_OFFSET + HLTI_OS_MARGIN               )  //0x39  //
19290 #define SRSHARP0_VLTI_FLT_CON_CLP                  (SRSHARP0_OFFSET + VLTI_FLT_CON_CLP             )  //0x3a  //
19291 #define SRSHARP0_VLTI_BST_GAIN                     (SRSHARP0_OFFSET + VLTI_BST_GAIN                )  //0x3b  //
19292 #define SRSHARP0_VLTI_BST_CORE                     (SRSHARP0_OFFSET + VLTI_BST_CORE                )  //0x3c  //
19293 #define SRSHARP0_VLTI_CON_2_GAIN_0                 (SRSHARP0_OFFSET + VLTI_CON_2_GAIN_0            )  //0x3d  //
19294 #define SRSHARP0_VLTI_CON_2_GAIN_1                 (SRSHARP0_OFFSET + VLTI_CON_2_GAIN_1            )  //0x3e  //
19295 #define SRSHARP0_VCTI_FLT_CON_CLP                  (SRSHARP0_OFFSET + VCTI_FLT_CON_CLP             )  //0x3f  //
19296 #define SRSHARP0_VCTI_BST_GAIN                     (SRSHARP0_OFFSET + VCTI_BST_GAIN                )  //0x40  //
19297 #define SRSHARP0_VCTI_BST_CORE                     (SRSHARP0_OFFSET + VCTI_BST_CORE                )  //0x41  //
19298 #define SRSHARP0_VCTI_CON_2_GAIN_0                 (SRSHARP0_OFFSET + VCTI_CON_2_GAIN_0            )  //0x42  //
19299 #define SRSHARP0_VCTI_CON_2_GAIN_1                 (SRSHARP0_OFFSET + VCTI_CON_2_GAIN_1            )  //0x43  //
19300 #define SRSHARP0_SHARP_3DLIMIT                     (SRSHARP0_OFFSET + SHARP_3DLIMIT                )  //0x44  //
19301 #define SRSHARP0_DNLP_EN                           (SRSHARP0_OFFSET + DNLP_EN                      )  //0x45  //
19302 #define SRSHARP0_DNLP_00                           (SRSHARP0_OFFSET + DNLP_00                      )  //0x46  //
19303 #define SRSHARP0_DNLP_01                           (SRSHARP0_OFFSET + DNLP_01                      )  //0x47  //
19304 #define SRSHARP0_DNLP_02                           (SRSHARP0_OFFSET + DNLP_02                      )  //0x48  //
19305 #define SRSHARP0_DNLP_03                           (SRSHARP0_OFFSET + DNLP_03                      )  //0x49  //
19306 #define SRSHARP0_DNLP_04                           (SRSHARP0_OFFSET + DNLP_04                      )  //0x4a  //
19307 #define SRSHARP0_DNLP_05                           (SRSHARP0_OFFSET + DNLP_05                      )  //0x4b  //
19308 #define SRSHARP0_DNLP_06                           (SRSHARP0_OFFSET + DNLP_06                      )  //0x4c  //
19309 #define SRSHARP0_DNLP_07                           (SRSHARP0_OFFSET + DNLP_07                      )  //0x4d  //
19310 #define SRSHARP0_DNLP_08                           (SRSHARP0_OFFSET + DNLP_08                      )  //0x4e  //
19311 #define SRSHARP0_DNLP_09                           (SRSHARP0_OFFSET + DNLP_09                      )  //0x4f  //
19312 #define SRSHARP0_DNLP_10                           (SRSHARP0_OFFSET + DNLP_10                      )  //0x50  //
19313 #define SRSHARP0_DNLP_11                           (SRSHARP0_OFFSET + DNLP_11                      )  //0x51  //
19314 #define SRSHARP0_DNLP_12                           (SRSHARP0_OFFSET + DNLP_12                      )  //0x52  //
19315 #define SRSHARP0_DNLP_13                           (SRSHARP0_OFFSET + DNLP_13                      )  //0x53  //
19316 #define SRSHARP0_DNLP_14                           (SRSHARP0_OFFSET + DNLP_14                      )  //0x54  //
19317 #define SRSHARP0_DNLP_15                           (SRSHARP0_OFFSET + DNLP_15                      )  //0x55  //
19318 #define SRSHARP0_DEMO_CRTL                         (SRSHARP0_OFFSET + DEMO_CRTL                    )  //0x56  //
19319 #define SRSHARP0_SHARP_SR2_CTRL                    (SRSHARP0_OFFSET + SHARP_SR2_CTRL               )  //0x57  //
19320 #define SRSHARP0_SHARP_SR2_YBIC_HCOEF0             (SRSHARP0_OFFSET + SHARP_SR2_YBIC_HCOEF0        )  //0x58
19321 #define SRSHARP0_SHARP_SR2_YBIC_HCOEF1             (SRSHARP0_OFFSET + SHARP_SR2_YBIC_HCOEF1        )  //0x59  //
19322 #define SRSHARP0_SHARP_SR2_CBIC_HCOEF0             (SRSHARP0_OFFSET + SHARP_SR2_CBIC_HCOEF0        )  //0x5a  //
19323 #define SRSHARP0_SHARP_SR2_CBIC_HCOEF1             (SRSHARP0_OFFSET + SHARP_SR2_CBIC_HCOEF1        )  //0x5b  //
19324 #define SRSHARP0_SHARP_SR2_YBIC_VCOEF0             (SRSHARP0_OFFSET + SHARP_SR2_YBIC_VCOEF0        )  //0x5c  //
19325 #define SRSHARP0_SHARP_SR2_YBIC_VCOEF1             (SRSHARP0_OFFSET + SHARP_SR2_YBIC_VCOEF1        )  //0x5d  //
19326 #define SRSHARP0_SHARP_SR2_CBIC_VCOEF0             (SRSHARP0_OFFSET + SHARP_SR2_CBIC_VCOEF0        )  //0x5e  //
19327 #define SRSHARP0_SHARP_SR2_CBIC_VCOEF1             (SRSHARP0_OFFSET + SHARP_SR2_CBIC_VCOEF1        )  //0x5f  //
19328 #define SRSHARP0_SHARP_SR2_MISC                    (SRSHARP0_OFFSET + SHARP_SR2_MISC               )  //0x60  //
19329 // `define SRSHARP0_SHARP_DEJ2_PRC                    (`SRSHARP0_OFFSET + `SHARP_DEJ2_PRC               )  //8'h61  //
19330 // `define SRSHARP0_SHARP_DEJ1_PRC                    (`SRSHARP0_OFFSET + `SHARP_DEJ1_PRC               )  //8'h62  //
19331 // `define SRSHARP0_SHARP_DEJ2_MISC                   (`SRSHARP0_OFFSET + `SHARP_DEJ2_MISC              )  //8'h63  //
19332 // `define SRSHARP0_SHARP_DEJ1_MISC                   (`SRSHARP0_OFFSET + `SHARP_DEJ1_MISC              )  //8'h64  //
19333 #define SRSHARP0_SR3_SAD_CTRL                   (SRSHARP0_OFFSET + SHARP_SR3_SAD_CTRL                 ) // 0x61  //
19334 #define SRSHARP0_SR3_PK_CTRL0                   (SRSHARP0_OFFSET + SHARP_SR3_PK_CTRL0                 ) // 0x62
19335 #define SRSHARP0_SR3_PK_CTRL1                   (SRSHARP0_OFFSET + SHARP_SR3_PK_CTRL1                 ) // 0x63
19336 #define SRSHARP0_DEJ_CTRL                       (SRSHARP0_OFFSET + SHARP_DEJ_CTRL                     ) // 0x64
19337 #define SRSHARP0_DEJ_ALPHA                      (SRSHARP0_OFFSET + SHARP_DEJ_ALPHA                    ) // 0x65
19338 #define SRSHARP0_SR3_DRTLPF_EN                  (SRSHARP0_OFFSET + SHARP_SR3_DRTLPF_EN                ) // 0x66
19339 #define SRSHARP0_SR3_DRTLPF_ALPHA_0             (SRSHARP0_OFFSET + SHARP_SR3_DRTLPF_ALPHA_0           ) // 0x67
19340 #define SRSHARP0_SR3_DRTLPF_ALPHA_1             (SRSHARP0_OFFSET + SHARP_SR3_DRTLPF_ALPHA_1           ) // 0x68
19341 #define SRSHARP0_SR3_DRTLPF_ALPHA_2             (SRSHARP0_OFFSET + SHARP_SR3_DRTLPF_ALPHA_2           ) // 0x69
19342 #define SRSHARP0_SR3_DRTLPF_ALPHA_OFST          (SRSHARP0_OFFSET + SHARP_SR3_DRTLPF_ALPHA_OFST        ) // 0x6a
19343 #define SRSHARP0_SR3_DERING_CTRL                (SRSHARP0_OFFSET + SHARP_SR3_DERING_CTRL              ) // 0x6b
19344 #define SRSHARP0_SR3_DERING_LUMA2PKGAIN_0TO3    (SRSHARP0_OFFSET + SHARP_SR3_DERING_LUMA2PKGAIN_0TO3  ) // 0x6c
19345 #define SRSHARP0_SR3_DERING_LUMA2PKGAIN_4TO6    (SRSHARP0_OFFSET + SHARP_SR3_DERING_LUMA2PKGAIN_4TO6  ) // 0x6d
19346 #define SRSHARP0_SR3_DERING_LUMA2PKOS_0TO3      (SRSHARP0_OFFSET + SHARP_SR3_DERING_LUMA2PKOS_0TO3    ) // 0x6e
19347 #define SRSHARP0_SR3_DERING_LUMA2PKOS_4TO6      (SRSHARP0_OFFSET + SHARP_SR3_DERING_LUMA2PKOS_4TO6    ) // 0x6f
19348 #define SRSHARP0_SR3_DERING_GAINVS_MADSAD       (SRSHARP0_OFFSET + SHARP_SR3_DERING_GAINVS_MADSAD     ) // 0x70
19349 #define SRSHARP0_SR3_DERING_GAINVS_VR2MAX       (SRSHARP0_OFFSET + SHARP_SR3_DERING_GAINVS_VR2MAX     ) // 0x71
19350 #define SRSHARP0_SR3_DERING_PARAM0              (SRSHARP0_OFFSET + SHARP_SR3_DERING_PARAM0            ) // 0x72
19351 #define SRSHARP0_SR3_DRTLPF_THETA               (SRSHARP0_OFFSET + SHARP_SR3_DRTLPF_THETA             ) // 0x73
19352 #define SRSHARP0_SATPRT_CTRL                    (SRSHARP0_OFFSET + SHARP_SATPRT_CTRL                  ) // 0x74
19353 #define SRSHARP0_SATPRT_DIVM                    (SRSHARP0_OFFSET + SHARP_SATPRT_DIVM                  ) // 0x75
19354 #define SRSHARP0_SATPRT_LMT_RGB                 (SRSHARP0_OFFSET + SHARP_SATPRT_LMT_RGB               ) // 0x76
19355 #define SRSHARP0_DB_FLT_CTRL                    (SRSHARP0_OFFSET + SHARP_DB_FLT_CTRL                  ) // 0x77
19356 #define SRSHARP0_DB_FLT_YC_THRD                 (SRSHARP0_OFFSET + SHARP_DB_FLT_YC_THRD               ) // 0x78
19357 #define SRSHARP0_DB_FLT_RANDLUT                 (SRSHARP0_OFFSET + SHARP_DB_FLT_RANDLUT               ) // 0x79
19358 #define SRSHARP0_DB_FLT_PXI_THRD                (SRSHARP0_OFFSET + SHARP_DB_FLT_PXI_THRD              ) // 0x7a
19359 #define SRSHARP0_DB_FLT_SEED_Y                  (SRSHARP0_OFFSET + SHARP_DB_FLT_SEED_Y                ) // 0x7b
19360 #define SRSHARP0_DB_FLT_SEED_U                  (SRSHARP0_OFFSET + SHARP_DB_FLT_SEED_U                ) // 0x7c
19361 #define SRSHARP0_DB_FLT_SEED_V                  (SRSHARP0_OFFSET + SHARP_DB_FLT_SEED_V                ) // 0x7d
19362 #define SRSHARP0_PKGAIN_VSLUMA_LUT_L            (SRSHARP0_OFFSET + SHARP_PKGAIN_VSLUMA_LUT_L          ) // 0x80
19363 #define SRSHARP0_PKGAIN_VSLUMA_LUT_H            (SRSHARP0_OFFSET + SHARP_PKGAIN_VSLUMA_LUT_H          ) // 0x81
19364 #define SRSHARP0_PKOSHT_VSLUMA_LUT_L            (SRSHARP0_OFFSET + SHARP_PKOSHT_VSLUMA_LUT_L          ) // 0x82
19365 #define SRSHARP0_PKOSHT_VSLUMA_LUT_H            (SRSHARP0_OFFSET + SHARP_PKOSHT_VSLUMA_LUT_H          ) // 0x83
19366 
19367 //// srsharp1 reg define
19368 
19369 #define SRSHARP1_SHARP_HVSIZE                      (SRSHARP1_OFFSET + SHARP_HVSIZE                 )  //0x00  //
19370 #define SRSHARP1_SHARP_HVBLANK_NUM                 (SRSHARP1_OFFSET + SHARP_HVBLANK_NUM            )  //0x01  //
19371 #define SRSHARP1_NR_GAUSSIAN_MODE                  (SRSHARP1_OFFSET + NR_GAUSSIAN_MODE             )  //0x02  //
19372 //`define SRSHARP1_PK_HVCON_LPF_MODE                 (`SRSHARP1_OFFSET + `PK_HVCON_LPF_MODE            )  //8'h03  //
19373 //`define SRSHARP1_PK_CON_BLEND_GAIN                 (`SRSHARP1_OFFSET + `PK_CON_BLEND_GAIN            )  //8'h04  //
19374 #define SRSHARP1_PK_CON_2CIRHPGAIN_TH_RATE         (SRSHARP1_OFFSET + PK_CON_2CIRHPGAIN_TH_RATE    )  //0x05  //
19375 #define SRSHARP1_PK_CON_2CIRHPGAIN_LIMIT           (SRSHARP1_OFFSET + PK_CON_2CIRHPGAIN_LIMIT      )  //0x06  //
19376 #define SRSHARP1_PK_CON_2CIRBPGAIN_TH_RATE         (SRSHARP1_OFFSET + PK_CON_2CIRBPGAIN_TH_RATE    )  //0x07  //
19377 #define SRSHARP1_PK_CON_2CIRBPGAIN_LIMIT           (SRSHARP1_OFFSET + PK_CON_2CIRBPGAIN_LIMIT      )  //0x08  //
19378 #define SRSHARP1_PK_CON_2DRTHPGAIN_TH_RATE         (SRSHARP1_OFFSET + PK_CON_2DRTHPGAIN_TH_RATE    )  //0x09  //
19379 #define SRSHARP1_PK_CON_2DRTHPGAIN_LIMIT           (SRSHARP1_OFFSET + PK_CON_2DRTHPGAIN_LIMIT      )  //0x0a  //
19380 #define SRSHARP1_PK_CON_2DRTBPGAIN_TH_RATE         (SRSHARP1_OFFSET + PK_CON_2DRTBPGAIN_TH_RATE    )  //0x0b  //
19381 #define SRSHARP1_PK_CON_2DRTBPGAIN_LIMIT           (SRSHARP1_OFFSET + PK_CON_2DRTBPGAIN_LIMIT      )  //0x0c  //
19382 #define SRSHARP1_PK_CIRFB_LPF_MODE                 (SRSHARP1_OFFSET + PK_CIRFB_LPF_MODE            )  //0x0d  //
19383 #define SRSHARP1_PK_DRTFB_LPF_MODE                 (SRSHARP1_OFFSET + PK_DRTFB_LPF_MODE            )  //0x0e  //
19384 #define SRSHARP1_PK_CIRFB_HP_CORING                (SRSHARP1_OFFSET + PK_CIRFB_HP_CORING           )  //0x0f  //
19385 #define SRSHARP1_PK_CIRFB_BP_CORING                (SRSHARP1_OFFSET + PK_CIRFB_BP_CORING           )  //0x10  //
19386 #define SRSHARP1_PK_DRTFB_HP_CORING                (SRSHARP1_OFFSET + PK_DRTFB_HP_CORING           )  //0x11  //
19387 #define SRSHARP1_PK_DRTFB_BP_CORING                (SRSHARP1_OFFSET + PK_DRTFB_BP_CORING           )  //0x12  //
19388 #define SRSHARP1_PK_CIRFB_BLEND_GAIN               (SRSHARP1_OFFSET + PK_CIRFB_BLEND_GAIN          )  //0x13  //
19389 #define SRSHARP1_NR_ALPY_SSD_GAIN_OFST             (SRSHARP1_OFFSET + NR_ALPY_SSD_GAIN_OFST        )  //0x14  //
19390 #define SRSHARP1_NR_ALP0Y_ERR2CURV_TH_RATE         (SRSHARP1_OFFSET + NR_ALP0Y_ERR2CURV_TH_RATE    )  //0x15  //
19391 #define SRSHARP1_NR_ALP0Y_ERR2CURV_LIMIT           (SRSHARP1_OFFSET + NR_ALP0Y_ERR2CURV_LIMIT      )  //0x16  //
19392 #define SRSHARP1_NR_ALP0C_ERR2CURV_TH_RATE         (SRSHARP1_OFFSET + NR_ALP0C_ERR2CURV_TH_RATE    )  //0x17  //
19393 #define SRSHARP1_NR_ALP0C_ERR2CURV_LIMIT           (SRSHARP1_OFFSET + NR_ALP0C_ERR2CURV_LIMIT      )  //0x18  //
19394 #define SRSHARP1_NR_ALP0_MIN_MAX                   (SRSHARP1_OFFSET + NR_ALP0_MIN_MAX              )  //0x19  //
19395 #define SRSHARP1_NR_ALP1_MIERR_CORING              (SRSHARP1_OFFSET + NR_ALP1_MIERR_CORING         )  //0x1a  //
19396 #define SRSHARP1_NR_ALP1_ERR2CURV_TH_RATE          (SRSHARP1_OFFSET + NR_ALP1_ERR2CURV_TH_RATE     )  //0x1b  //
19397 #define SRSHARP1_NR_ALP1_ERR2CURV_LIMIT            (SRSHARP1_OFFSET + NR_ALP1_ERR2CURV_LIMIT       )  //0x1c  //
19398 #define SRSHARP1_NR_ALP1_MIN_MAX                   (SRSHARP1_OFFSET + NR_ALP1_MIN_MAX              )  //0x1d  //
19399 #define SRSHARP1_PK_ALP2_MIERR_CORING              (SRSHARP1_OFFSET + PK_ALP2_MIERR_CORING         )  //0x1e  //
19400 #define SRSHARP1_PK_ALP2_ERR2CURV_TH_RATE          (SRSHARP1_OFFSET + PK_ALP2_ERR2CURV_TH_RATE     )  //0x1f  //
19401 #define SRSHARP1_PK_ALP2_ERR2CURV_LIMIT            (SRSHARP1_OFFSET + PK_ALP2_ERR2CURV_LIMIT       )  //0x20  //
19402 #define SRSHARP1_PK_ALP2_MIN_MAX                   (SRSHARP1_OFFSET + PK_ALP2_MIN_MAX              )  //0x21  //
19403 #define SRSHARP1_PK_FINALGAIN_HP_BP                (SRSHARP1_OFFSET + PK_FINALGAIN_HP_BP           )  //0x22  //
19404 #define SRSHARP1_PK_OS_HORZ_CORE_GAIN              (SRSHARP1_OFFSET + PK_OS_HORZ_CORE_GAIN         )  //0x23  //
19405 #define SRSHARP1_PK_OS_VERT_CORE_GAIN              (SRSHARP1_OFFSET + PK_OS_VERT_CORE_GAIN         )  //0x24  //
19406 #define SRSHARP1_PK_OS_ADPT_MISC                   (SRSHARP1_OFFSET + PK_OS_ADPT_MISC              )  //0x25  //
19407 #define SRSHARP1_PK_OS_STATIC                      (SRSHARP1_OFFSET + PK_OS_STATIC                 )  //0x26  //
19408 #define SRSHARP1_PK_NR_ENABLE                      (SRSHARP1_OFFSET + PK_NR_ENABLE                 )  //0x27  //
19409 #define SRSHARP1_PK_DRT_SAD_MISC                   (SRSHARP1_OFFSET + PK_DRT_SAD_MISC              )  //0x28  //
19410 #define SRSHARP1_NR_TI_DNLP_BLEND                  (SRSHARP1_OFFSET + NR_TI_DNLP_BLEND             )  //0x29  //
19411 #define SRSHARP1_LTI_DIR_CORE_ALPHA                (SRSHARP1_OFFSET + LTI_DIR_CORE_ALPHA           )  //0x2a  //
19412 #define SRSHARP1_CTI_DIR_ALPHA                     (SRSHARP1_OFFSET + CTI_DIR_ALPHA                )  //0x2b  //
19413 #define SRSHARP1_LTI_CTI_DF_GAIN                   (SRSHARP1_OFFSET + LTI_CTI_DF_GAIN              )  //0x2c  //
19414 #define SRSHARP1_LTI_CTI_DIR_AC_DBG                (SRSHARP1_OFFSET + LTI_CTI_DIR_AC_DBG           )  //0x2d  //
19415 #define SRSHARP1_HCTI_FLT_CLP_DC                   (SRSHARP1_OFFSET + HCTI_FLT_CLP_DC              )  //0x2e  //
19416 #define SRSHARP1_HCTI_BST_GAIN                     (SRSHARP1_OFFSET + HCTI_BST_GAIN                )  //0x2f  //
19417 #define SRSHARP1_HCTI_BST_CORE                     (SRSHARP1_OFFSET + HCTI_BST_CORE                )  //0x30  //
19418 #define SRSHARP1_HCTI_CON_2_GAIN_0                 (SRSHARP1_OFFSET + HCTI_CON_2_GAIN_0            )  //0x31  //
19419 #define SRSHARP1_HCTI_CON_2_GAIN_1                 (SRSHARP1_OFFSET + HCTI_CON_2_GAIN_1            )  //0x32  //
19420 #define SRSHARP1_HCTI_OS_MARGIN                    (SRSHARP1_OFFSET + HCTI_OS_MARGIN               )  //0x33  //
19421 #define SRSHARP1_HLTI_FLT_CLP_DC                   (SRSHARP1_OFFSET + HLTI_FLT_CLP_DC              )  //0x34  //
19422 #define SRSHARP1_HLTI_BST_GAIN                     (SRSHARP1_OFFSET + HLTI_BST_GAIN                )  //0x35  //
19423 #define SRSHARP1_HLTI_BST_CORE                     (SRSHARP1_OFFSET + HLTI_BST_CORE                )  //0x36  //
19424 #define SRSHARP1_HLTI_CON_2_GAIN_0                 (SRSHARP1_OFFSET + HLTI_CON_2_GAIN_0            )  //0x37  //
19425 #define SRSHARP1_HLTI_CON_2_GAIN_1                 (SRSHARP1_OFFSET + HLTI_CON_2_GAIN_1            )  //0x38  //
19426 #define SRSHARP1_HLTI_OS_MARGIN                    (SRSHARP1_OFFSET + HLTI_OS_MARGIN               )  //0x39  //
19427 #define SRSHARP1_VLTI_FLT_CON_CLP                  (SRSHARP1_OFFSET + VLTI_FLT_CON_CLP             )  //0x3a  //
19428 #define SRSHARP1_VLTI_BST_GAIN                     (SRSHARP1_OFFSET + VLTI_BST_GAIN                )  //0x3b  //
19429 #define SRSHARP1_VLTI_BST_CORE                     (SRSHARP1_OFFSET + VLTI_BST_CORE                )  //0x3c  //
19430 #define SRSHARP1_VLTI_CON_2_GAIN_0                 (SRSHARP1_OFFSET + VLTI_CON_2_GAIN_0            )  //0x3d  //
19431 #define SRSHARP1_VLTI_CON_2_GAIN_1                 (SRSHARP1_OFFSET + VLTI_CON_2_GAIN_1            )  //0x3e  //
19432 #define SRSHARP1_VCTI_FLT_CON_CLP                  (SRSHARP1_OFFSET + VCTI_FLT_CON_CLP             )  //0x3f  //
19433 #define SRSHARP1_VCTI_BST_GAIN                     (SRSHARP1_OFFSET + VCTI_BST_GAIN                )  //0x40  //
19434 #define SRSHARP1_VCTI_BST_CORE                     (SRSHARP1_OFFSET + VCTI_BST_CORE                )  //0x41  //
19435 #define SRSHARP1_VCTI_CON_2_GAIN_0                 (SRSHARP1_OFFSET + VCTI_CON_2_GAIN_0            )  //0x42  //
19436 #define SRSHARP1_VCTI_CON_2_GAIN_1                 (SRSHARP1_OFFSET + VCTI_CON_2_GAIN_1            )  //0x43  //
19437 #define SRSHARP1_SHARP_3DLIMIT                     (SRSHARP1_OFFSET + SHARP_3DLIMIT                )  //0x44  //
19438 #define SRSHARP1_DNLP_EN                           (SRSHARP1_OFFSET + DNLP_EN                      )  //0x45  //
19439 #define SRSHARP1_DNLP_00                           (SRSHARP1_OFFSET + DNLP_00                      )  //0x46  //
19440 #define SRSHARP1_DNLP_01                           (SRSHARP1_OFFSET + DNLP_01                      )  //0x47  //
19441 #define SRSHARP1_DNLP_02                           (SRSHARP1_OFFSET + DNLP_02                      )  //0x48  //
19442 #define SRSHARP1_DNLP_03                           (SRSHARP1_OFFSET + DNLP_03                      )  //0x49  //
19443 #define SRSHARP1_DNLP_04                           (SRSHARP1_OFFSET + DNLP_04                      )  //0x4a  //
19444 #define SRSHARP1_DNLP_05                           (SRSHARP1_OFFSET + DNLP_05                      )  //0x4b  //
19445 #define SRSHARP1_DNLP_06                           (SRSHARP1_OFFSET + DNLP_06                      )  //0x4c  //
19446 #define SRSHARP1_DNLP_07                           (SRSHARP1_OFFSET + DNLP_07                      )  //0x4d  //
19447 #define SRSHARP1_DNLP_08                           (SRSHARP1_OFFSET + DNLP_08                      )  //0x4e  //
19448 #define SRSHARP1_DNLP_09                           (SRSHARP1_OFFSET + DNLP_09                      )  //0x4f  //
19449 #define SRSHARP1_DNLP_10                           (SRSHARP1_OFFSET + DNLP_10                      )  //0x50  //
19450 #define SRSHARP1_DNLP_11                           (SRSHARP1_OFFSET + DNLP_11                      )  //0x51  //
19451 #define SRSHARP1_DNLP_12                           (SRSHARP1_OFFSET + DNLP_12                      )  //0x52  //
19452 #define SRSHARP1_DNLP_13                           (SRSHARP1_OFFSET + DNLP_13                      )  //0x53  //
19453 #define SRSHARP1_DNLP_14                           (SRSHARP1_OFFSET + DNLP_14                      )  //0x54  //
19454 #define SRSHARP1_DNLP_15                           (SRSHARP1_OFFSET + DNLP_15                      )  //0x55  //
19455 #define SRSHARP1_DEMO_CRTL                         (SRSHARP1_OFFSET + DEMO_CRTL                    )  //0x56  //
19456 #define SRSHARP1_SHARP_SR2_CTRL                    (SRSHARP1_OFFSET + SHARP_SR2_CTRL               )  //0x57  //
19457 #define SRSHARP1_SHARP_SR2_YBIC_HCOEF0             (SRSHARP1_OFFSET + SHARP_SR2_YBIC_HCOEF0        )  //0x58
19458 #define SRSHARP1_SHARP_SR2_YBIC_HCOEF1             (SRSHARP1_OFFSET + SHARP_SR2_YBIC_HCOEF1        )  //0x59  //
19459 #define SRSHARP1_SHARP_SR2_CBIC_HCOEF0             (SRSHARP1_OFFSET + SHARP_SR2_CBIC_HCOEF0        )  //0x5a  //
19460 #define SRSHARP1_SHARP_SR2_CBIC_HCOEF1             (SRSHARP1_OFFSET + SHARP_SR2_CBIC_HCOEF1        )  //0x5b  //
19461 #define SRSHARP1_SHARP_SR2_YBIC_VCOEF0             (SRSHARP1_OFFSET + SHARP_SR2_YBIC_VCOEF0        )  //0x5c  //
19462 #define SRSHARP1_SHARP_SR2_YBIC_VCOEF1             (SRSHARP1_OFFSET + SHARP_SR2_YBIC_VCOEF1        )  //0x5d  //
19463 #define SRSHARP1_SHARP_SR2_CBIC_VCOEF0             (SRSHARP1_OFFSET + SHARP_SR2_CBIC_VCOEF0        )  //0x5e  //
19464 #define SRSHARP1_SHARP_SR2_CBIC_VCOEF1             (SRSHARP1_OFFSET + SHARP_SR2_CBIC_VCOEF1        )  //0x5f  //
19465 #define SRSHARP1_SHARP_SR2_MISC                    (SRSHARP1_OFFSET + SHARP_SR2_MISC               )  //0x60  //
19466 // `define SRSHARP1_SHARP_DEJ2_PRC                    (`SRSHARP1_OFFSET + `SHARP_DEJ2_PRC               )  //8'h61  //
19467 // `define SRSHARP1_SHARP_DEJ1_PRC                    (`SRSHARP1_OFFSET + `SHARP_DEJ1_PRC               )  //8'h62  //
19468 // `define SRSHARP1_SHARP_DEJ2_MISC                   (`SRSHARP1_OFFSET + `SHARP_DEJ2_MISC              )  //8'h63  //
19469 // `define SRSHARP1_SHARP_DEJ1_MISC                   (`SRSHARP1_OFFSET + `SHARP_DEJ1_MISC              )  //8'h64  //
19470 
19471 #define SRSHARP1_SR3_SAD_CTRL                   (SRSHARP1_OFFSET + SHARP_SR3_SAD_CTRL                 ) // 0x61  //
19472 #define SRSHARP1_SR3_PK_CTRL0                   (SRSHARP1_OFFSET + SHARP_SR3_PK_CTRL0                 ) // 0x62
19473 #define SRSHARP1_SR3_PK_CTRL1                   (SRSHARP1_OFFSET + SHARP_SR3_PK_CTRL1                 ) // 0x63
19474 #define SRSHARP1_DEJ_CTRL                       (SRSHARP1_OFFSET + SHARP_DEJ_CTRL                     ) // 0x64
19475 #define SRSHARP1_DEJ_ALPHA                      (SRSHARP1_OFFSET + SHARP_DEJ_ALPHA                    ) // 0x65
19476 #define SRSHARP1_SR3_DRTLPF_EN                  (SRSHARP1_OFFSET + SHARP_SR3_DRTLPF_EN                ) // 0x66
19477 #define SRSHARP1_SR3_DRTLPF_ALPHA_0             (SRSHARP1_OFFSET + SHARP_SR3_DRTLPF_ALPHA_0           ) // 0x67
19478 #define SRSHARP1_SR3_DRTLPF_ALPHA_1             (SRSHARP1_OFFSET + SHARP_SR3_DRTLPF_ALPHA_1           ) // 0x68
19479 #define SRSHARP1_SR3_DRTLPF_ALPHA_2             (SRSHARP1_OFFSET + SHARP_SR3_DRTLPF_ALPHA_2           ) // 0x69
19480 #define SRSHARP1_SR3_DRTLPF_ALPHA_OFST          (SRSHARP1_OFFSET + SHARP_SR3_DRTLPF_ALPHA_OFST        ) // 0x6a
19481 #define SRSHARP1_SR3_DERING_CTRL                (SRSHARP1_OFFSET + SHARP_SR3_DERING_CTRL              ) // 0x6b
19482 #define SRSHARP1_SR3_DERING_LUMA2PKGAIN_0TO3    (SRSHARP1_OFFSET + SHARP_SR3_DERING_LUMA2PKGAIN_0TO3  ) // 0x6c
19483 #define SRSHARP1_SR3_DERING_LUMA2PKGAIN_4TO6    (SRSHARP1_OFFSET + SHARP_SR3_DERING_LUMA2PKGAIN_4TO6  ) // 0x6d
19484 #define SRSHARP1_SR3_DERING_LUMA2PKOS_0TO3      (SRSHARP1_OFFSET + SHARP_SR3_DERING_LUMA2PKOS_0TO3    ) // 0x6e
19485 #define SRSHARP1_SR3_DERING_LUMA2PKOS_4TO6      (SRSHARP1_OFFSET + SHARP_SR3_DERING_LUMA2PKOS_4TO6    ) // 0x6f
19486 #define SRSHARP1_SR3_DERING_GAINVS_MADSAD       (SRSHARP1_OFFSET + SHARP_SR3_DERING_GAINVS_MADSAD     ) // 0x70
19487 #define SRSHARP1_SR3_DERING_GAINVS_VR2MAX       (SRSHARP1_OFFSET + SHARP_SR3_DERING_GAINVS_VR2MAX     ) // 0x71
19488 #define SRSHARP1_SR3_DERING_PARAM0              (SRSHARP1_OFFSET + SHARP_SR3_DERING_PARAM0            ) // 0x72
19489 #define SRSHARP1_SR3_DRTLPF_THETA               (SRSHARP1_OFFSET + SHARP_SR3_DRTLPF_THETA             ) // 0x73
19490 #define SRSHARP1_SATPRT_CTRL                    (SRSHARP1_OFFSET + SHARP_SATPRT_CTRL                  ) // 0x74
19491 #define SRSHARP1_SATPRT_DIVM                    (SRSHARP1_OFFSET + SHARP_SATPRT_DIVM                  ) // 0x75
19492 #define SRSHARP1_SATPRT_LMT_RGB                 (SRSHARP1_OFFSET + SHARP_SATPRT_LMT_RGB               ) // 0x76
19493 #define SRSHARP1_DB_FLT_CTRL                    (SRSHARP1_OFFSET + SHARP_DB_FLT_CTRL                  ) // 0x77
19494 #define SRSHARP1_DB_FLT_YC_THRD                 (SRSHARP1_OFFSET + SHARP_DB_FLT_YC_THRD               ) // 0x78
19495 #define SRSHARP1_DB_FLT_RANDLUT                 (SRSHARP1_OFFSET + SHARP_DB_FLT_RANDLUT               ) // 0x79
19496 #define SRSHARP1_DB_FLT_PXI_THRD                (SRSHARP1_OFFSET + SHARP_DB_FLT_PXI_THRD              ) // 0x7a
19497 #define SRSHARP1_DB_FLT_SEED_Y                  (SRSHARP1_OFFSET + SHARP_DB_FLT_SEED_Y                ) // 0x7b
19498 #define SRSHARP1_DB_FLT_SEED_U                  (SRSHARP1_OFFSET + SHARP_DB_FLT_SEED_U                ) // 0x7c
19499 #define SRSHARP1_DB_FLT_SEED_V                  (SRSHARP1_OFFSET + SHARP_DB_FLT_SEED_V                ) // 0x7d
19500 #define SRSHARP1_PKGAIN_VSLUMA_LUT_L            (SRSHARP1_OFFSET + SHARP_PKGAIN_VSLUMA_LUT_L          ) // 0x80
19501 #define SRSHARP1_PKGAIN_VSLUMA_LUT_H            (SRSHARP1_OFFSET + SHARP_PKGAIN_VSLUMA_LUT_H          ) // 0x81
19502 #define SRSHARP1_PKOSHT_VSLUMA_LUT_L            (SRSHARP1_OFFSET + SHARP_PKOSHT_VSLUMA_LUT_L          ) // 0x82
19503 #define SRSHARP1_PKOSHT_VSLUMA_LUT_H            (SRSHARP1_OFFSET + SHARP_PKOSHT_VSLUMA_LUT_H          ) // 0x83
19504 
19505 // synopsys translate_off
19506 // synopsys translate_on
19507 //
19508 // Closing file:  srsharp_regs.h
19509 //
19510 //`define DOLBY0_VCBUS_BASE              8'h33
19511 //`include "dolby0_regs.h"
19512 // -----------------------------------------------
19513 // CBUS_BASE:  DOLBYTV_VCBUS_BASE = 0x33
19514 // -----------------------------------------------
19515 //
19516 // Reading file:  dolby_regs.h
19517 //
19518 // synopsys translate_off
19519 // synopsys translate_on
19520 #define   DOLBY_TV_REG_START                       (0x3300)
19521 #define P_DOLBY_TV_REG_START                       (volatile uint32_t *)((0x3300  << 2) + 0xff900000)
19522 // dolby register address 0~0xDA
19523 #define   DOLBY_TV_CLKGATE_CTRL                    (0x33f1)
19524 #define P_DOLBY_TV_CLKGATE_CTRL                    (volatile uint32_t *)((0x33f1  << 2) + 0xff900000)
19525 //bit[9:8]  R-RW 0~3 0  dma2axi_clkgate_ctrl         : 0 "auto gated clock", 1 "closed clock", 2&3 "free run clock"
19526 //bit[7:6]  R-RW 0~3 0  bl_dolby_swaps_clkgate_ctrl  : 0 "auto gated clock", 1 "closed clock", 2&3 "free run clock"
19527 //bit[5:4]  R-RW 0~3 0  el_swaps_clkgate_ctrl        : 0 "auto gated clock", 1 "closed clock", 2&3 "free run clock"
19528 //bit[3:2]  R-RW 0~3 0  el_buf_clkgate_ctrl          : 0 "auto gated clock", 1 "closed clock", 2&3 "free run clock"
19529 //bit[1:0]  R-RW 0~3 0  top_level_reg_clkgate_ctrl   : 0 "auto gated clock", 1 "closed clock", 2&3 "free run clock"
19530 #define   DOLBY_TV_SWAP_CTRL0                      (0x33f2)
19531 #define P_DOLBY_TV_SWAP_CTRL0                      (volatile uint32_t *)((0x33f2  << 2) + 0xff900000)
19532 //bit[2]  R-RW 0~1  0   el_41mode      : 1 "bl resolution : el resolution = 4:1", 0 "bl_res : el_res = 1:1"
19533 //bit[1]  R-RW 0~1  0   el_enable      : 1 "enhancement layer is supported", 0 "el is not supported"
19534 //bit[0]  R-RW 0~1  0   source_enable  : 1 "base layer is supported", 0 "bl is not supported"
19535 #define   DOLBY_TV_SWAP_CTRL1                      (0x33f3)
19536 #define P_DOLBY_TV_SWAP_CTRL1                      (volatile uint32_t *)((0x33f3  << 2) + 0xff900000)
19537 //bit[28:16]  R-RW  0~8191 0  htotal  : total pixels number in each line
19538 //bit[21:0]   R-RW  0~8191 0  vtotal  : total line number in each frame (only support progress frame)
19539 #define   DOLBY_TV_SWAP_CTRL2                      (0x33f4)
19540 #define P_DOLBY_TV_SWAP_CTRL2                      (volatile uint32_t *)((0x33f4  << 2) + 0xff900000)
19541 //bit[28:16]  R-RW  0~4096 0 hsize  : active pixels number in each line
19542 //bit[21:0]   R-RW  0~3840 0 vsize  : active lines number in each frame
19543 #define   DOLBY_TV_SWAP_CTRL3                      (0x33f5)
19544 #define P_DOLBY_TV_SWAP_CTRL3                      (volatile uint32_t *)((0x33f5  << 2) + 0xff900000)
19545 //bit[28:16]  R-RW  0~8191 0  hsync_width  : hsync signal width (high effective)
19546 //bit[21:0]   R-RW  0~8191 0  vsync_width  : vysnc singal width (high effective)
19547 #define   DOLBY_TV_SWAP_CTRL4                      (0x33f6)
19548 #define P_DOLBY_TV_SWAP_CTRL4                      (volatile uint32_t *)((0x33f6  << 2) + 0xff900000)
19549 //bit[28:16]  R-RW  0~8191 0  hsync_backporch  : pixels number between hsync and h_active_duration
19550 //bit[21:0]   R-RW  0~8191 0  vsync_backporch  : lines number between vsync and v_active_duration
19551 #define   DOLBY_TV_SWAP_CTRL5                      (0x33f7)
19552 #define P_DOLBY_TV_SWAP_CTRL5                      (volatile uint32_t *)((0x33f7  << 2) + 0xff900000)
19553 //[25:8]      R-RW                           :   reg_tunnel_sel for tunnel bit match swap
19554 //bit[4]      R-RW  0~1  0   bl_tunnel_mode  :   1 "hdmi input, source is 12bit422 tunnel in 8bit444", 0 "opt mode, 10 bit 444"
19555 //bit[3:2]    R-RW  0~3  0   bl_uv_mode      :   3 "uv=in_u", 2 "uv[0]=u[0],uv[1]=v[0]", 1 "uv[0]=v[0],uv[1]=u[0]", 0 "uv=in_v"
19556 //bit[1:0]    R-RW  0~3  0   el_uv_mode      :   3 "uv=in_u", 2 "uv[0]=u[0],uv[1]=v[0]", 1 "uv[0]=v[0],uv[1]=u[0]", 0 "uv=in_v"
19557 #define   DOLBY_TV_SWAP_CTRL6                      (0x33f8)
19558 #define P_DOLBY_TV_SWAP_CTRL6                      (volatile uint32_t *)((0x33f8  << 2) + 0xff900000)
19559 //bit[31]     R-RW  0~1      dm_uv_input     :   uv select
19560 //bit[23:16]  R-RW  0~1  0   dump_ctrl       :   1 "fixed output bitdepth as 12bit", 0 "output bitdepth based on vdr_bit_depth"
19561 //bit[15]     R-RW  0~1      datapath_reset_n_enable : manual reset control
19562 //bit[14]     R-RW  0~1      handshake_reset_n_enable : manual reset control
19563 //bit[13]     R-RW  0~1      axi_reset_n_enable : manual reset control
19564 //bit[5:2]    R-RW  0~15     vdr_bit_depth
19565 //bit[1:0]    R-RW  0~3      reg_hdmi_mode
19566 #define   DOLBY_TV_SWAP_CTRL7                      (0x33f9)
19567 #define P_DOLBY_TV_SWAP_CTRL7                      (volatile uint32_t *)((0x33f9  << 2) + 0xff900000)
19568 //reserved
19569 #define   DOLBY_TV_AXI2DMA_CTRL0                   (0x33fa)
19570 #define P_DOLBY_TV_AXI2DMA_CTRL0                   (volatile uint32_t *)((0x33fa  << 2) + 0xff900000)
19571 //bit[31]        R-RW   0~1  0    reg_req_en         :  enable req after line count
19572 //bit[30]        R-RW   0~1  0    reg_id_check       :  check the id of data path and req path
19573 //bit[29]        R-RW   0~1  0    reg_clear_fifo     :  manually reset bit
19574 //bit[28]        R-RW   0~1  0    reg_vsync_rst      :  soft_rst auto reset enable
19575 //bit[27]        R-RW   0~1  0    reg_update_addr    :  manually udpate start addr
19576 //bit[26]        R-RW   0~1  0    reg_addr_auto      :  auto update start addr enable
19577 //bit[25]        R-RW   0~1  0    reg_keep_receive   :  data path keep receive
19578 //bit[24:19]     R-RW   0~63 0    reg_req_th         :  fifo_room > req_th, then send the request
19579 //bit[18:16]     R-RW   0~7  0    reg_arsize         :  axi arsize
19580 //bit[14:12]     R-RW   0~7  0    reg_arprot         :  axi arprot
19581 //bit[11:8]      R-RW   0~15 0    reg_aruser         :  axi aruser
19582 //bit[5:4]       R-RW   0~3  0    reg_arid           :  axi arid
19583 //bit[3:0]       R-RW   0~2  0    reg_lens           :  default request lens, each burst has "reg_lens+1" data
19584 #define   DOLBY_TV_AXI2DMA_CTRL1                   (0x33fb)
19585 #define P_DOLBY_TV_AXI2DMA_CTRL1                   (volatile uint32_t *)((0x33fb  << 2) + 0xff900000)
19586 //bit[31]        R-RW   0~1     0 axi_addr_mode   :  1 "canvas mode", 0 "normal mode"
19587 //bit[27:16]     R-RW   0~4095  0 dma_size0       :  total data number in dma0
19588 //bit[11:0]      R-RW   0~4095  0 dma_size1       :  total data number in dma1
19589 #define   DOLBY_TV_AXI2DMA_CTRL2                   (0x33fc)
19590 #define P_DOLBY_TV_AXI2DMA_CTRL2                   (volatile uint32_t *)((0x33fc  << 2) + 0xff900000)
19591 //bit[31:0]      R-RW   0~4294967295  0 axi_start_addr : axi start address
19592 #define   DOLBY_TV_AXI2DMA_CTRL3                   (0x33fd)
19593 #define P_DOLBY_TV_AXI2DMA_CTRL3                   (volatile uint32_t *)((0x33fd  << 2) + 0xff900000)
19594 //bit[11:0]      R-RW   0~4095        0  hold_line     :  after hold_line the axi slave start requesting
19595 #define   DOLBY_TV_STATUS0                         (0x33fe)
19596 #define P_DOLBY_TV_STATUS0                         (volatile uint32_t *)((0x33fe  << 2) + 0xff900000)
19597 #define   DOLBY_TV_STATUS1                         (0x33ff)
19598 #define P_DOLBY_TV_STATUS1                         (volatile uint32_t *)((0x33ff  << 2) + 0xff900000)
19599 #define   DOLBY_TV_ADAPTIVE_SCALE_REGADDR          (0x33e0)
19600 #define P_DOLBY_TV_ADAPTIVE_SCALE_REGADDR          (volatile uint32_t *)((0x33e0  << 2) + 0xff900000)
19601 #define   DOLBY_TV_ADAPTIVE_SCALE_REGDATA          (0x33e1)
19602 #define P_DOLBY_TV_ADAPTIVE_SCALE_REGDATA          (volatile uint32_t *)((0x33e1  << 2) + 0xff900000)
19603 #define   DOLBY_TV_ADAPTIVE_SCALE_LUTADDR          (0x33e2)
19604 #define P_DOLBY_TV_ADAPTIVE_SCALE_LUTADDR          (volatile uint32_t *)((0x33e2  << 2) + 0xff900000)
19605 #define   DOLBY_TV_ADAPTIVE_SCALE_LUTDATA          (0x33e3)
19606 #define P_DOLBY_TV_ADAPTIVE_SCALE_LUTDATA          (volatile uint32_t *)((0x33e3  << 2) + 0xff900000)
19607 // synopsys translate_off
19608 // synopsys translate_on
19609 //
19610 // Closing file:  dolby_regs.h
19611 //
19612 // -----------------------------------------------
19613 // CBUS_BASE:  DOLBY1A_VCBUS_BASE = 0x34
19614 // -----------------------------------------------
19615 //
19616 // Reading file:  dolby1a_regs.h
19617 //
19618 // synopsys translate_off
19619 // synopsys translate_on
19620 #define   DOLBY_CORE2A_REG_START                   (0x3400)
19621 #define P_DOLBY_CORE2A_REG_START                   (volatile uint32_t *)((0x3400  << 2) + 0xff900000)
19622 #define   DOLBY_CORE2A_CLKGATE_CTRL                (0x3432)
19623 #define P_DOLBY_CORE2A_CLKGATE_CTRL                (volatile uint32_t *)((0x3432  << 2) + 0xff900000)
19624 #define   DOLBY_CORE2A_SWAP_CTRL0                  (0x3433)
19625 #define P_DOLBY_CORE2A_SWAP_CTRL0                  (volatile uint32_t *)((0x3433  << 2) + 0xff900000)
19626 #define   DOLBY_CORE2A_SWAP_CTRL1                  (0x3434)
19627 #define P_DOLBY_CORE2A_SWAP_CTRL1                  (volatile uint32_t *)((0x3434  << 2) + 0xff900000)
19628 #define   DOLBY_CORE2A_SWAP_CTRL2                  (0x3435)
19629 #define P_DOLBY_CORE2A_SWAP_CTRL2                  (volatile uint32_t *)((0x3435  << 2) + 0xff900000)
19630 #define   DOLBY_CORE2A_SWAP_CTRL3                  (0x3436)
19631 #define P_DOLBY_CORE2A_SWAP_CTRL3                  (volatile uint32_t *)((0x3436  << 2) + 0xff900000)
19632 #define   DOLBY_CORE2A_SWAP_CTRL4                  (0x3437)
19633 #define P_DOLBY_CORE2A_SWAP_CTRL4                  (volatile uint32_t *)((0x3437  << 2) + 0xff900000)
19634 #define   DOLBY_CORE2A_SWAP_CTRL5                  (0x3438)
19635 #define P_DOLBY_CORE2A_SWAP_CTRL5                  (volatile uint32_t *)((0x3438  << 2) + 0xff900000)
19636 #define   DOLBY_CORE2A_DMA_CTRL                    (0x3439)
19637 #define P_DOLBY_CORE2A_DMA_CTRL                    (volatile uint32_t *)((0x3439  << 2) + 0xff900000)
19638 #define   DOLBY_CORE2A_DMA_STATUS                  (0x343a)
19639 #define P_DOLBY_CORE2A_DMA_STATUS                  (volatile uint32_t *)((0x343a  << 2) + 0xff900000)
19640 #define   DOLBY_CORE2A_STATUS0                     (0x343b)
19641 #define P_DOLBY_CORE2A_STATUS0                     (volatile uint32_t *)((0x343b  << 2) + 0xff900000)
19642 #define   DOLBY_CORE2A_STATUS1                     (0x343c)
19643 #define P_DOLBY_CORE2A_STATUS1                     (volatile uint32_t *)((0x343c  << 2) + 0xff900000)
19644 #define   DOLBY_CORE2A_STATUS2                     (0x343d)
19645 #define P_DOLBY_CORE2A_STATUS2                     (volatile uint32_t *)((0x343d  << 2) + 0xff900000)
19646 #define   DOLBY_CORE2A_STATUS3                     (0x343e)
19647 #define P_DOLBY_CORE2A_STATUS3                     (volatile uint32_t *)((0x343e  << 2) + 0xff900000)
19648 #define   DOLBY_CORE2A_DMA_PORT                    (0x343f)
19649 #define P_DOLBY_CORE2A_DMA_PORT                    (volatile uint32_t *)((0x343f  << 2) + 0xff900000)
19650 #define   DOLBY_CORE2A_AXI2DMA_CTRL0               (0x3440)
19651 #define P_DOLBY_CORE2A_AXI2DMA_CTRL0               (volatile uint32_t *)((0x3440  << 2) + 0xff900000)
19652 #define   DOLBY_CORE2A_AXI2DMA_CTRL1               (0x3441)
19653 #define P_DOLBY_CORE2A_AXI2DMA_CTRL1               (volatile uint32_t *)((0x3441  << 2) + 0xff900000)
19654 #define   DOLBY_CORE2A_AXI2DMA_CTRL2               (0x3442)
19655 #define P_DOLBY_CORE2A_AXI2DMA_CTRL2               (volatile uint32_t *)((0x3442  << 2) + 0xff900000)
19656 #define   DOLBY_CORE2A_AXI2DMA_CTRL3               (0x3443)
19657 #define P_DOLBY_CORE2A_AXI2DMA_CTRL3               (volatile uint32_t *)((0x3443  << 2) + 0xff900000)
19658 // synopsys translate_off
19659 // synopsys translate_on
19660 //
19661 // Closing file:  dolby1a_regs.h
19662 //
19663 // -----------------------------------------------
19664 // CBUS_BASE:  DOLBY1B_VCBUS_BASE = 0x35
19665 // -----------------------------------------------
19666 //`include "dolby1b_regs.h"
19667 // -----------------------------------------------
19668 // CBUS_BASE:  DOLBY2_VCBUS_BASE = 0x36
19669 // -----------------------------------------------
19670 //
19671 // Reading file:  dolby2_regs.h
19672 //
19673 // synopsys translate_off
19674 // synopsys translate_on
19675 #define   DOLBY_CORE3_REG_START                    (0x3600)
19676 #define P_DOLBY_CORE3_REG_START                    (volatile uint32_t *)((0x3600  << 2) + 0xff900000)
19677 #define   DOLBY_CORE3_CLKGATE_CTRL                 (0x36f0)
19678 #define P_DOLBY_CORE3_CLKGATE_CTRL                 (volatile uint32_t *)((0x36f0  << 2) + 0xff900000)
19679 #define   DOLBY_CORE3_SWAP_CTRL0                   (0x36f1)
19680 #define P_DOLBY_CORE3_SWAP_CTRL0                   (volatile uint32_t *)((0x36f1  << 2) + 0xff900000)
19681 #define   DOLBY_CORE3_SWAP_CTRL1                   (0x36f2)
19682 #define P_DOLBY_CORE3_SWAP_CTRL1                   (volatile uint32_t *)((0x36f2  << 2) + 0xff900000)
19683 #define   DOLBY_CORE3_SWAP_CTRL2                   (0x36f3)
19684 #define P_DOLBY_CORE3_SWAP_CTRL2                   (volatile uint32_t *)((0x36f3  << 2) + 0xff900000)
19685 #define   DOLBY_CORE3_SWAP_CTRL3                   (0x36f4)
19686 #define P_DOLBY_CORE3_SWAP_CTRL3                   (volatile uint32_t *)((0x36f4  << 2) + 0xff900000)
19687 #define   DOLBY_CORE3_SWAP_CTRL4                   (0x36f5)
19688 #define P_DOLBY_CORE3_SWAP_CTRL4                   (volatile uint32_t *)((0x36f5  << 2) + 0xff900000)
19689 #define   DOLBY_CORE3_SWAP_CTRL5                   (0x36f6)
19690 #define P_DOLBY_CORE3_SWAP_CTRL5                   (volatile uint32_t *)((0x36f6  << 2) + 0xff900000)
19691 #define   DOLBY_CORE3_SWAP_CTRL6                   (0x36f7)
19692 #define P_DOLBY_CORE3_SWAP_CTRL6                   (volatile uint32_t *)((0x36f7  << 2) + 0xff900000)
19693 #define   DOLBY_CORE3_SWAP_CTRL7                   (0x36f8)
19694 #define P_DOLBY_CORE3_SWAP_CTRL7                   (volatile uint32_t *)((0x36f8  << 2) + 0xff900000)
19695 #define   DOLBY_CORE3_SWAP_CTRL8                   (0x36f9)
19696 #define P_DOLBY_CORE3_SWAP_CTRL8                   (volatile uint32_t *)((0x36f9  << 2) + 0xff900000)
19697 #define   DOLBY_CORE3_SWAP_CTRL9                   (0x36fa)
19698 #define P_DOLBY_CORE3_SWAP_CTRL9                   (volatile uint32_t *)((0x36fa  << 2) + 0xff900000)
19699 #define   DOLBY_CORE3_STATUS0                      (0x36fb)
19700 #define P_DOLBY_CORE3_STATUS0                      (volatile uint32_t *)((0x36fb  << 2) + 0xff900000)
19701 #define   DOLBY_CORE3_STATUS1                      (0x36fc)
19702 #define P_DOLBY_CORE3_STATUS1                      (volatile uint32_t *)((0x36fc  << 2) + 0xff900000)
19703 #define   DOLBY_CORE3_STATUS2                      (0x36fd)
19704 #define P_DOLBY_CORE3_STATUS2                      (volatile uint32_t *)((0x36fd  << 2) + 0xff900000)
19705 #define   DOLBY_CORE3_STATUS3                      (0x36fe)
19706 #define P_DOLBY_CORE3_STATUS3                      (volatile uint32_t *)((0x36fe  << 2) + 0xff900000)
19707 // synopsys translate_off
19708 // synopsys translate_on
19709 //
19710 // Closing file:  dolby2_regs.h
19711 //
19712 //`define MADC_VCBUS_BASE              8'h37
19713 //
19714 // Reading file:  vpu_madc_regs.h
19715 //
19716 // synopsys translate_off
19717 // synopsys translate_on
19718 // -----------------------------------------------
19719 // CBUS_BASE:  MADC_VCBUS_BASE = 0x37
19720 // -----------------------------------------------
19721 // 0x00-0x1f
19722 //
19723 // Reading file:  nr4_nm_regs.h
19724 //
19725 // synopsys translate_off
19726 // synopsys translate_on
19727 #define   NR4_MCNR_SAD_GAIN                        (0x3700)
19728 #define P_NR4_MCNR_SAD_GAIN                        (volatile uint32_t *)((0x3700  << 2) + 0xff900000)
19729 //Bit 31:25        reserved
19730 //Bit 24           reg_nr4_bld12vs3_usemaxsad     // unsigned , default = 0  use minsad/maxsad instead of minsad/avgsad to decision if it was texture or flat region, 1: use minsad/maxsad
19731 //Bit 23:16        reg_nr4_bld12vs3_rate_gain     // unsigned , default = 64  gain to minsad/maxsad or minsad/avgsad before LUT, 64 normalized as "1"
19732 //Bit 15: 8        reg_nr4_bld1vs2_rate_gain      // unsigned , default = 32  gain to minsad/maxsad or minsad/avgsad before the LUT, 64 normalized as"1"
19733 //Bit  7: 0        reg_nr4_coefblt_gain           // unsigned , default = 64  gain to final coefblt, normalized 64 as "1"
19734 #define   NR4_MCNR_LPF_CTRL                        (0x3701)
19735 #define P_NR4_MCNR_LPF_CTRL                        (volatile uint32_t *)((0x3701  << 2) + 0xff900000)
19736 //Bit 31            reserved
19737 //Bit 30:22        reg_nr4_preflt_alpofst         // signed , default = 0  pre filter alpha ofst
19738 //Bit 21:16        reg_nr4_preflt_alpgain         // unsigned , default = 16  pre filter alpha gain
19739 //Bit 15:14        reg_nr4_preflt_alpsel          // unsigned , default = 3  pre filter alpha selection for adaptive blending, 0: mv pointed sad, 1: weighted mv pointed sad, 2or3: coefblt
19740 //Bit 13: 8        reg_nr4_avgsad_gain            // unsigned , default = 8  gain for avg sad before luts
19741 //Bit  7            reserved
19742 //Bit  6           reg_nr4_maxsad_mod             // unsigned , default = 1  max sad select mode, 0: mx2_sad, 1: max sad
19743 //Bit  5           reg_nr4_minsad_mod             // unsigned , default = 1  min sad select mode, 0: sad with min err, 1: min sad
19744 //Bit  4           reg_nr4_minmaxsad_lpf          // unsigned , default = 1  mode of lpf for minmaxsad, 0: no LPF, 1: [1 2 1]/4
19745 //Bit  3           reg_nr4_avgsad_lpf             // unsigned , default = 1  mode of lpf for avgsad, 0: no LPF, 1: [1 2 1]/4
19746 //Bit  2           reg_nr4_minavgsad_ratio_lpf    // unsigned , default = 1  mode of lpf for minsad/avgsad and zmvsad/avgsad, 0: no LPF, 1: [1 2 1]/4
19747 //Bit  1           reg_nr4_bldvs_lut_lpf          // unsigned , default = 1  mode of lpf for bld12vs3 and bld1vs2 LUT results, 0: no LPF, 1: [1 2 1]/4
19748 //Bit  0           reg_nr4_final_coef_lpf         // unsigned , default = 1  mode of lpf for final coef_blt_blend123, 0: no LPF, 1: [1 2 1]/4
19749 #define   NR4_MCNR_BLD_VS3LUT0                     (0x3702)
19750 #define P_NR4_MCNR_BLD_VS3LUT0                     (volatile uint32_t *)((0x3702  << 2) + 0xff900000)
19751 //Bit 31:30        reserved
19752 //Bit 29:24        reg_nr4_bld12vs3_lut0     // unsigned , default = 0
19753 //Bit 23:22        reserved
19754 //Bit 21:16        reg_nr4_bld12vs3_lut1     // unsigned , default = 8
19755 //Bit 15:14        reserved
19756 //Bit 13: 8        reg_nr4_bld12vs3_lut2     // unsigned , default = 10
19757 //Bit  7: 6        reserved
19758 //Bit  5: 0        reg_nr4_bld12vs3_lut3     // unsigned , default = 11
19759 #define   NR4_MCNR_BLD_VS3LUT1                     (0x3703)
19760 #define P_NR4_MCNR_BLD_VS3LUT1                     (volatile uint32_t *)((0x3703  << 2) + 0xff900000)
19761 //Bit 31:30        reserved
19762 //Bit 29:24        reg_nr4_bld12vs3_lut4     // unsigned , default = 12
19763 //Bit 23:22        reserved
19764 //Bit 21:16        reg_nr4_bld12vs3_lut5     // unsigned , default = 14
19765 //Bit 15:14        reserved
19766 //Bit 13: 8        reg_nr4_bld12vs3_lut6     // unsigned , default = 16
19767 //Bit  7: 6        reserved
19768 //Bit  5: 0        reg_nr4_bld12vs3_lut7     // unsigned , default = 24
19769 #define   NR4_MCNR_BLD_VS3LUT2                     (0x3704)
19770 #define P_NR4_MCNR_BLD_VS3LUT2                     (volatile uint32_t *)((0x3704  << 2) + 0xff900000)
19771 //Bit 31:30        reserved
19772 //Bit 29:24        reg_nr4_bld12vs3_lut8     // unsigned , default = 50
19773 //Bit 23:22        reserved
19774 //Bit 21:16        reg_nr4_bld12vs3_lut9     // unsigned , default = 58
19775 //Bit 15:14        reserved
19776 //Bit 13: 8        reg_nr4_bld12vs3_lut10    // unsigned , default = 63
19777 //Bit  7: 6        reserved
19778 //Bit  5: 0        reg_nr4_bld12vs3_lut11    // unsigned , default = 63
19779 #define   NR4_MCNR_BLD_VS2LUT0                     (0x3705)
19780 #define P_NR4_MCNR_BLD_VS2LUT0                     (volatile uint32_t *)((0x3705  << 2) + 0xff900000)
19781 //Bit 31:30        reserved
19782 //Bit 29:24        reg_nr4_bld1vs2_lut0      // unsigned , default = 63
19783 //Bit 23:22        reserved
19784 //Bit 21:16        reg_nr4_bld1vs2_lut1      // unsigned , default = 32
19785 //Bit 15:14        reserved
19786 //Bit 13: 8        reg_nr4_bld1vs2_lut2      // unsigned , default = 16
19787 //Bit  7: 6        reserved
19788 //Bit  5: 0        reg_nr4_bld1vs2_lut3      // unsigned , default = 8
19789 #define   NR4_MCNR_BLD_VS2LUT1                     (0x3706)
19790 #define P_NR4_MCNR_BLD_VS2LUT1                     (volatile uint32_t *)((0x3706  << 2) + 0xff900000)
19791 //Bit 31:30        reserved
19792 //Bit 29:24        reg_nr4_bld1vs2_lut4      // unsigned , default = 4
19793 //Bit 23:22        reserved
19794 //Bit 21:16        reg_nr4_bld1vs2_lut5      // unsigned , default = 2
19795 //Bit 15:14        reserved
19796 //Bit 13: 8        reg_nr4_bld1vs2_lut6      // unsigned , default = 1
19797 //Bit  7: 6        reserved
19798 //Bit  5: 0        reg_nr4_bld1vs2_lut7      // unsigned , default = 0
19799 #define   NR4_COEFBLT_LUT10                        (0x3707)
19800 #define P_NR4_COEFBLT_LUT10                        (volatile uint32_t *)((0x3707  << 2) + 0xff900000)
19801 //Bit 31:24        reg_nr4_coefblt_lut10     // signed , default = -128
19802 //Bit 23:16        reg_nr4_coefblt_lut11     // signed , default = -128
19803 //Bit 15: 8        reg_nr4_coefblt_lut12     // signed , default = -126
19804 //Bit  7: 0        reg_nr4_coefblt_lut13     // signed , default = -124
19805 #define   NR4_COEFBLT_LUT11                        (0x3708)
19806 #define P_NR4_COEFBLT_LUT11                        (volatile uint32_t *)((0x3708  << 2) + 0xff900000)
19807 //Bit 31:24        reg_nr4_coefblt_lut14     // signed , default = -120
19808 //Bit 23:16        reg_nr4_coefblt_lut15     // signed , default = -110
19809 //Bit 15: 8        reg_nr4_coefblt_lut16     // signed , default = -100
19810 //Bit  7: 0        reg_nr4_coefblt_lut17     // signed , default = -90
19811 #define   NR4_COEFBLT_LUT12                        (0x3709)
19812 #define P_NR4_COEFBLT_LUT12                        (volatile uint32_t *)((0x3709  << 2) + 0xff900000)
19813 //Bit 31:24        reg_nr4_coefblt_lut18     // signed , default = -56
19814 //Bit 23:16        reg_nr4_coefblt_lut19     // signed , default = -32
19815 //Bit 15: 8        reg_nr4_coefblt_lut110    // signed , default = -64
19816 //Bit  7: 0        reg_nr4_coefblt_lut111    // signed , default = -128
19817 #define   NR4_COEFBLT_LUT20                        (0x370a)
19818 #define P_NR4_COEFBLT_LUT20                        (volatile uint32_t *)((0x370a  << 2) + 0xff900000)
19819 //Bit 31:24        reg_nr4_coefblt_lut20     // signed , default = -128
19820 //Bit 23:16        reg_nr4_coefblt_lut21     // signed , default = -120
19821 //Bit 15: 8        reg_nr4_coefblt_lut22     // signed , default = -112
19822 //Bit  7: 0        reg_nr4_coefblt_lut23     // signed , default = -104
19823 #define   NR4_COEFBLT_LUT21                        (0x370b)
19824 #define P_NR4_COEFBLT_LUT21                        (volatile uint32_t *)((0x370b  << 2) + 0xff900000)
19825 //Bit 31:24        reg_nr4_coefblt_lut24     // signed , default = -96
19826 //Bit 23:16        reg_nr4_coefblt_lut25     // signed , default = -88
19827 //Bit 15: 8        reg_nr4_coefblt_lut26     // signed , default = -76
19828 //Bit  7: 0        reg_nr4_coefblt_lut27     // signed , default = -64
19829 #define   NR4_COEFBLT_LUT22                        (0x370c)
19830 #define P_NR4_COEFBLT_LUT22                        (volatile uint32_t *)((0x370c  << 2) + 0xff900000)
19831 //Bit 31:24        reg_nr4_coefblt_lut28     // signed , default = -48
19832 //Bit 23:16        reg_nr4_coefblt_lut29     // signed , default = -32
19833 //Bit 15: 8        reg_nr4_coefblt_lut210    // signed , default = -64
19834 //Bit  7: 0        reg_nr4_coefblt_lut211    // signed , default = -108
19835 #define   NR4_COEFBLT_LUT30                        (0x370d)
19836 #define P_NR4_COEFBLT_LUT30                        (volatile uint32_t *)((0x370d  << 2) + 0xff900000)
19837 //Bit 31:24        reg_nr4_coefblt_lut30     // signed , default = 8
19838 //Bit 23:16        reg_nr4_coefblt_lut31     // signed , default = 16
19839 //Bit 15: 8        reg_nr4_coefblt_lut32     // signed , default = 24
19840 //Bit  7: 0        reg_nr4_coefblt_lut33     // signed , default = 30
19841 #define   NR4_COEFBLT_LUT31                        (0x370e)
19842 #define P_NR4_COEFBLT_LUT31                        (volatile uint32_t *)((0x370e  << 2) + 0xff900000)
19843 //Bit 31:24        reg_nr4_coefblt_lut34     // signed , default = 36
19844 //Bit 23:16        reg_nr4_coefblt_lut35     // signed , default = 48
19845 //Bit 15: 8        reg_nr4_coefblt_lut36     // signed , default = 70
19846 //Bit  7: 0        reg_nr4_coefblt_lut37     // signed , default = 96
19847 #define   NR4_COEFBLT_LUT32                        (0x370f)
19848 #define P_NR4_COEFBLT_LUT32                        (volatile uint32_t *)((0x370f  << 2) + 0xff900000)
19849 //Bit 31:24        reg_nr4_coefblt_lut38     // signed , default = 120
19850 //Bit 23:16        reg_nr4_coefblt_lut39     // signed , default = 64
19851 //Bit 15: 8        reg_nr4_coefblt_lut310    // signed , default = 16
19852 //Bit  7: 0        reg_nr4_coefblt_lut311    // signed , default = -8
19853 #define   NR4_COEFBLT_CONV                         (0x3710)
19854 #define P_NR4_COEFBLT_CONV                         (volatile uint32_t *)((0x3710  << 2) + 0xff900000)
19855 //Bit 31:24        reserved
19856 //Bit 23:16        reg_nr4_coefblt_convmin   // unsigned , default = 0  minimum of coef. bilateral conversion
19857 //Bit 15: 8        reg_nr4_coefblt_convmax   // unsigned , default = 255  maximum of coef. bilateral conversion
19858 //Bit  7: 0        reg_nr4_coefblt_convmid   // unsigned , default = 128  value at midpoint of coef. bilateral conversion
19859 #define   NR4_DBGWIN_YX0                           (0x3711)
19860 #define P_NR4_DBGWIN_YX0                           (volatile uint32_t *)((0x3711  << 2) + 0xff900000)
19861 //Bit 31:30        reserved
19862 //Bit 29:16        reg_nr4_dgbwin_yx0        // unsigned , default = 100  ystart for debug window
19863 //Bit 15:14        reserved
19864 //Bit 13: 0        reg_nr4_dgbwin_yx1        // unsigned , default = 160  yend   for debug window
19865 #define   NR4_DBGWIN_YX1                           (0x3712)
19866 #define P_NR4_DBGWIN_YX1                           (volatile uint32_t *)((0x3712  << 2) + 0xff900000)
19867 //Bit 31:30        reserved
19868 //Bit 29:16        reg_nr4_dgbwin_yx2        // unsigned , default = 200  xstart for debug window
19869 //Bit 15:14        reserved
19870 //Bit 13: 0        reg_nr4_dgbwin_yx3        // unsigned , default = 300  xend   for debug window
19871 #define   NR4_NM_X_CFG                             (0x3713)
19872 #define P_NR4_NM_X_CFG                             (volatile uint32_t *)((0x3713  << 2) + 0xff900000)
19873 //Bit 31:30        reserved
19874 //Bit 29:16        reg_nr4_nm_xst            // unsigned , default = 8  start for noise meter statistic, dft = 8
19875 //Bit 15:14        reserved
19876 //Bit 13: 0        reg_nr4_nm_xed            // unsigned , default = 711  end for noise meter statistic, dft = HSIZE-8-1;
19877 #define   NR4_NM_Y_CFG                             (0x3714)
19878 #define P_NR4_NM_Y_CFG                             (volatile uint32_t *)((0x3714  << 2) + 0xff900000)
19879 //Bit 31:30        reserved
19880 //Bit 29:16        reg_nr4_nm_yst            // unsigned , default = 8  start for noise meter statistic, dft = 8;
19881 //Bit 15:14        reserved
19882 //Bit 13: 0        reg_nr4_nm_yed            // unsigned , default = 231  end for noise meter statistic, dft = VSIZE-8-1;
19883 #define   NR4_NM_SAD_THD                           (0x3715)
19884 #define P_NR4_NM_SAD_THD                           (volatile uint32_t *)((0x3715  << 2) + 0xff900000)
19885 //Bit 31: 8        reserved
19886 //Bit  7: 0        reg_nr4_nm_sad_thd        // unsigned , default = 255  threshold for (flat region) sad count, dft = 4
19887 #define   NR4_MCNR_BANDSPLIT_PRAM                  (0x3716)
19888 #define P_NR4_MCNR_BANDSPLIT_PRAM                  (volatile uint32_t *)((0x3716  << 2) + 0xff900000)
19889 //Bit 31: 5        reserved
19890 //Bit  4           reg_nr4_mc_use_bandsplit     // unsigned , default = 1  separate lp and us for mc IIR filter, 0: no BS used; 1: use BS
19891 //Bit  3           reg_nr4_mc_apply_on_lp       // unsigned , default = 1  use mcnr only on lowpass portion;
19892 //Bit  2           reg_nr4_mc_apply_on_us       // unsigned , default = 1  use mcnr only on lp complimentary portion;
19893 //Bit  1: 0        reg_nr4_mc_zmvbs_use_adplpf  // unsigned , default = 1  use adapptive LPF for the zmv pointing data for MCNR, for abs(mvx)<th
19894 #define   NR4_MCNR_ALP1_SGN_COR                    (0x3717)
19895 #define P_NR4_MCNR_ALP1_SGN_COR                    (volatile uint32_t *)((0x3717  << 2) + 0xff900000)
19896 //Bit 31:24        reg_nr4_mc_aph1_sgn_coring0  // unsigned , default = 10  coring to cur-pre before do sgn decision
19897 //Bit 23:16        reg_nr4_mc_aph1_sgn_coring1  // unsigned , default = 7  coring to cur-pre before do sgn decision
19898 //Bit 15: 8        reg_nr4_mc_aph1_sgn_core_max0 // unsigned , default = 90  maximum of coring, default = 30/15
19899 //Bit  7: 0        reg_nr4_mc_aph1_sgn_core_max1 // unsigned , default = 15  maximum of coring, default = 30/15
19900 #define   NR4_MCNR_ALP1_SGN_PRAM                   (0x3718)
19901 #define P_NR4_MCNR_ALP1_SGN_PRAM                   (volatile uint32_t *)((0x3718  << 2) + 0xff900000)
19902 //Bit 31:11        reserved
19903 //Bit 10           reg_nr4_mc_alp1_sgn_half       // unsigned , default = 1  half block sgn sum mode enable, 0: only use 3x5 whole block sum of sgns; 1: use max(sgn_3x5, sqrt(sgn_left+sgn_righ))
19904 //Bit  9           reg_nr4_mc_alp1_sgn_frczmv   // unsigned , default = 1  force zmv to calculate the sign_sum;
19905 //Bit  8           reg_nr4_mc_alp1_sgnmvx_mode  // unsigned , default = 1  blend mode of sgnlut and mvxlut blend mode: 0: sgnlut+ mvxlut; 1: max(sgnlut, mvxlut), default =1
19906 //Bit  7: 4        reg_nr4_mc_aph1_sgn_crate0   // unsigned , default = 4  rate to var, norm to 16 as 1, default = 2
19907 //Bit  3: 0        reg_nr4_mc_aph1_sgn_crate1   // unsigned , default = 2  rate to var, norm to 16 as 1, default = 2
19908 #define   NR4_MCNR_ALP1_MVX_LUT1                   (0x3719)
19909 #define P_NR4_MCNR_ALP1_MVX_LUT1                   (volatile uint32_t *)((0x3719  << 2) + 0xff900000)
19910 //Bit 31:28        reg_nr4_mc_alp1_mvx_luty3  // unsigned , default = 14  alp1 of luma vas mvx(0~7), and alp1 vs mvy(0,1)
19911 //Bit 27:24        reg_nr4_mc_alp1_mvx_lutc3  // unsigned , default = 14  alp1 of chrm vas mvx(0~7), and alp1 vs mvy(0,1)
19912 //Bit 23:20        reg_nr4_mc_alp1_mvx_luty2  // unsigned , default = 12  alp1 of luma vas mvx(0~7), and alp1 vs mvy(0,1)
19913 //Bit 19:16        reg_nr4_mc_alp1_mvx_lutc2  // unsigned , default = 12  alp1 of chrm vas mvx(0~7), and alp1 vs mvy(0,1)
19914 //Bit 15:12        reg_nr4_mc_alp1_mvx_luty1  // unsigned , default = 5  alp1 of luma vas mvx(0~7), and alp1 vs mvy(0,1)
19915 //Bit 11: 8        reg_nr4_mc_alp1_mvx_lutc1  // unsigned , default = 5  alp1 of chrm vas mvx(0~7), and alp1 vs mvy(0,1)
19916 //Bit  7: 4        reg_nr4_mc_alp1_mvx_luty0  // unsigned , default = 3  alp1 of luma vas mvx(0~7), and alp1 vs mvy(0,1)
19917 //Bit  3: 0        reg_nr4_mc_alp1_mvx_lutc0  // unsigned , default = 3  alp1 of chrm vas mvx(0~7), and alp1 vs mvy(0,1)
19918 #define   NR4_MCNR_ALP1_MVX_LUT2                   (0x371a)
19919 #define P_NR4_MCNR_ALP1_MVX_LUT2                   (volatile uint32_t *)((0x371a  << 2) + 0xff900000)
19920 //Bit 31:28        reg_nr4_mc_alp1_mvx_luty7  // unsigned , default = 15  alp1 of luma vas mvx(0~7), and alp1 vs mvy(0,1)
19921 //Bit 27:24        reg_nr4_mc_alp1_mvx_lutc7  // unsigned , default = 15  alp1 of chrm vas mvx(0~7), and alp1 vs mvy(0,1)
19922 //Bit 23:20        reg_nr4_mc_alp1_mvx_luty6  // unsigned , default = 15  alp1 of luma vas mvx(0~7), and alp1 vs mvy(0,1)
19923 //Bit 19:16        reg_nr4_mc_alp1_mvx_lutc6  // unsigned , default = 15  alp1 of chrm vas mvx(0~7), and alp1 vs mvy(0,1)
19924 //Bit 15:12        reg_nr4_mc_alp1_mvx_luty5  // unsigned , default = 15  alp1 of luma vas mvx(0~7), and alp1 vs mvy(0,1)
19925 //Bit 11: 8        reg_nr4_mc_alp1_mvx_lutc5  // unsigned , default = 15  alp1 of chrm vas mvx(0~7), and alp1 vs mvy(0,1)
19926 //Bit  7: 4        reg_nr4_mc_alp1_mvx_luty4  // unsigned , default = 15  alp1 of luma vas mvx(0~7), and alp1 vs mvy(0,1)
19927 //Bit  3: 0        reg_nr4_mc_alp1_mvx_lutc4  // unsigned , default = 15  alp1 of chrm vas mvx(0~7), and alp1 vs mvy(0,1)
19928 #define   NR4_MCNR_ALP1_MVX_LUT3                   (0x371b)
19929 #define P_NR4_MCNR_ALP1_MVX_LUT3                   (volatile uint32_t *)((0x371b  << 2) + 0xff900000)
19930 //Bit 31: 8        reserved
19931 //Bit  7: 4        reg_nr4_mc_alp1_mvx_luty8  // unsigned , default = 6  alp1 of luma vas mvx(0~7), and alp1 vs mvy(0,1)
19932 //Bit  3: 0        reg_nr4_mc_alp1_mvx_lutc8  // unsigned , default = 6  alp1 of chrm vas mvx(0~7), and alp1 vs mvy(0,1)
19933 #define   NR4_MCNR_ALP1_LP_PRAM                    (0x371c)
19934 #define P_NR4_MCNR_ALP1_LP_PRAM                    (volatile uint32_t *)((0x371c  << 2) + 0xff900000)
19935 //Bit 31:18        reserved
19936 //Bit 17:16        reg_nr4_mc_alp1_lp_sel    // unsigned , default = 1  mode for alp1_lp for lp portion IIR, 0: apha1, 1:dc_dif vs ac analysis; 2: gain/ofst of alp1; 3: max of #1/#2 results
19937 //Bit 15: 8        reg_nr4_mc_alp1_lp_gain   // unsigned , default = 64  gain to alp1 to get the alp1_lp = alp1*gain/32 + ofset, default =64;
19938 //Bit  7: 0        reg_nr4_mc_alp1_lp_ofst   // signed , default = 0  offset to alp1 to get the alp1_lp = alp1*gain/32 + ofset, default =10;
19939 #define   NR4_MCNR_ALP1_SGN_LUT1                   (0x371d)
19940 #define P_NR4_MCNR_ALP1_SGN_LUT1                   (volatile uint32_t *)((0x371d  << 2) + 0xff900000)
19941 //Bit 31:28        reg_nr4_mc_alp1_sgn_lut0  // unsigned , default = 3  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19942 //Bit 27:24        reg_nr4_mc_alp1_sgn_lut1  // unsigned , default = 3  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19943 //Bit 23:20        reg_nr4_mc_alp1_sgn_lut2  // unsigned , default = 3  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19944 //Bit 19:16        reg_nr4_mc_alp1_sgn_lut3  // unsigned , default = 4  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19945 //Bit 15:12        reg_nr4_mc_alp1_sgn_lut4  // unsigned , default = 5  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19946 //Bit 11: 8        reg_nr4_mc_alp1_sgn_lut5  // unsigned , default = 6  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19947 //Bit  7: 4        reg_nr4_mc_alp1_sgn_lut6  // unsigned , default = 7  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19948 //Bit  3: 0        reg_nr4_mc_alp1_sgn_lut7  // unsigned , default = 8  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19949 #define   NR4_MCNR_ALP1_SGN_LUT2                   (0x371e)
19950 #define P_NR4_MCNR_ALP1_SGN_LUT2                   (volatile uint32_t *)((0x371e  << 2) + 0xff900000)
19951 //Bit 31:28        reg_nr4_mc_alp1_sgn_lut8   // unsigned , default = 9  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19952 //Bit 27:24        reg_nr4_mc_alp1_sgn_lut9   // unsigned , default = 10  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19953 //Bit 23:20        reg_nr4_mc_alp1_sgn_lut10  // unsigned , default = 11  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19954 //Bit 19:16        reg_nr4_mc_alp1_sgn_lut11  // unsigned , default = 12  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19955 //Bit 15:12        reg_nr4_mc_alp1_sgn_lut12  // unsigned , default = 13  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19956 //Bit 11: 8        reg_nr4_mc_alp1_sgn_lut13  // unsigned , default = 14  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19957 //Bit  7: 4        reg_nr4_mc_alp1_sgn_lut14  // unsigned , default = 15  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19958 //Bit  3: 0        reg_nr4_mc_alp1_sgn_lut15  // unsigned , default = 15  alp1 vs x=abs|sgn(cur-pre)|, if x is small, less possibility of flat region move
19959 #define   NR4_RO_NM_SAD_SUM                        (0x371f)
19960 #define P_NR4_RO_NM_SAD_SUM                        (volatile uint32_t *)((0x371f  << 2) + 0xff900000)
19961 //Bit 31: 0        ro_nr4_nm_sad_sum         // unsigned , default = 0  sum of sad, for scene change detectcion, in noise meter
19962 #define   NR4_RO_NM_SAD_CNT                        (0x3720)
19963 #define P_NR4_RO_NM_SAD_CNT                        (volatile uint32_t *)((0x3720  << 2) + 0xff900000)
19964 //Bit 31: 0        ro_nr4_nm_sad_cnt         // unsigned , default = 0  cnt of sad, for scene change detectcion, in noise meter
19965 #define   NR4_RO_NM_VAR_SUM                        (0x3721)
19966 #define P_NR4_RO_NM_VAR_SUM                        (volatile uint32_t *)((0x3721  << 2) + 0xff900000)
19967 //Bit 31: 0        ro_nr4_nm_var_sum         // unsigned , default = 0  sum of var, for noise level detection, in noise meter
19968 #define   NR4_RO_NM_VAR_SCNT                       (0x3722)
19969 #define P_NR4_RO_NM_VAR_SCNT                       (volatile uint32_t *)((0x3722  << 2) + 0xff900000)
19970 //Bit 31: 0        ro_nr4_nm_var_cnt         // unsigned , default = 0  cnt of var, for noise level detection, in noise meter
19971 #define   NR4_RO_NM_VAR_MIN_MAX                    (0x3723)
19972 #define P_NR4_RO_NM_VAR_MIN_MAX                    (volatile uint32_t *)((0x3723  << 2) + 0xff900000)
19973 //Bit 31:22        reserved
19974 //Bit 21:12        ro_nr4_nm_min_var         // unsigned , default = 1023  min of var, for noise level detection, in noise meter
19975 //Bit 11:10        reserved
19976 //Bit  9: 0        ro_nr4_nm_max_var         // unsigned , default = 0  max of var, for noise level detection, in noise meter
19977 #define   NR4_RO_NR4_DBGPIX_NUM                    (0x3724)
19978 #define P_NR4_RO_NR4_DBGPIX_NUM                    (volatile uint32_t *)((0x3724  << 2) + 0xff900000)
19979 //Bit 31:28        reserved
19980 //Bit 27: 0        ro_nr4_dbgpix_num         // unsigned , default = 0  number of pixels statistic invoved (removed?)
19981 #define   NR4_RO_NR4_BLDVS2_SUM                    (0x3725)
19982 #define P_NR4_RO_NR4_BLDVS2_SUM                    (volatile uint32_t *)((0x3725  << 2) + 0xff900000)
19983 //Bit 31: 0        ro_nr4_bld1vs2_sum        // unsigned , default = 0  sum of blend_1vs2 with the debug window
19984 #define   NR4_BLDVS3_SUM                           (0x3726)
19985 #define P_NR4_BLDVS3_SUM                           (volatile uint32_t *)((0x3726  << 2) + 0xff900000)
19986 //Bit 31: 0        ro_nr4_bld12vs3_sum       // unsigned , default = 0  sum of blend_12vs3 with the debug window
19987 #define   NR4_COEF12_SUM                           (0x3727)
19988 #define P_NR4_COEF12_SUM                           (volatile uint32_t *)((0x3727  << 2) + 0xff900000)
19989 //Bit 31: 0        ro_nr4_coef12_sum         // signed , default = 0  sum of coef_blt_blend12 with the debug window, under 8 bits precision
19990 #define   NR4_COEF123_SUM                          (0x3728)
19991 #define P_NR4_COEF123_SUM                          (volatile uint32_t *)((0x3728  << 2) + 0xff900000)
19992 //Bit 31: 0        ro_nr4_coef123_sum        // signed , default = 0  sum of coef_final with the debug window, under 8 bits precision
19993 // synopsys translate_off
19994 // synopsys translate_on
19995 //
19996 // Closing file:  nr4_nm_regs.h
19997 //
19998 // 0x28-0x38
19999 //
20000 // Reading file:  nr_deband_regs.h
20001 //
20002 // synopsys translate_off
20003 // synopsys translate_on
20004 #define   NR_DB_FLT_CTRL                           (0x3738)
20005 #define P_NR_DB_FLT_CTRL                           (volatile uint32_t *)((0x3738  << 2) + 0xff900000)
20006 //Bit 31:27        reserved
20007 //Bit 26           reg_nrdeband_reset1       // unsigned , default = 0  0 : no reset seed  1: reload chroma seed
20008 //Bit 25           reg_nrdeband_reset0       // unsigned , default = 0  0 : no reset seed  1: reload luma seed
20009 //Bit 24           reg_nrdeband_rgb          // unsigned , default = 0  0 : yuv 1: RGB
20010 //Bit 23           reg_nrdeband_en11         // unsigned , default = 1  debanding registers of side lines, [0] for luma,   same for below
20011 //Bit 22           reg_nrdeband_en10         // unsigned , default = 1  debanding registers of side lines, [1] for chroma, same for below
20012 //Bit 21           reg_nrdeband_siderand     // unsigned , default = 1  options to use side two lines use the rand, instead of use for the YUV three component of middle line, 0: seed[3]/bandrand[3] for middle line yuv; 1: seed[3]/bandrand[3] for nearby three lines Y;
20013 //Bit 20           reg_nrdeband_randmode     // unsigned , default = 0  mode of rand noise adding, 0: same noise strength for all difs; else: strenght of noise will not exceed the difs, MIN((pPKReg->reg_nrdeband_bandrand[m]), noise[m])
20014 //Bit 19:17        reg_nrdeband_bandrand2    // unsigned , default = 6
20015 //Bit 16            reserved
20016 //Bit 15:13        reg_nrdeband_bandrand1    // unsigned , default = 6
20017 //Bit 12            reserved
20018 //Bit 11: 9        reg_nrdeband_bandrand0    // unsigned , default = 6
20019 //Bit  8            reserved
20020 //Bit  7           reg_nrdeband_hpxor1       // unsigned , default = 1   debanding random hp portion xor, [0] for luma
20021 //Bit  6           reg_nrdeband_hpxor0       // unsigned , default = 1   debanding random hp portion xor, [1] for chroma
20022 //Bit  5           reg_nrdeband_en1          // unsigned , default = 1   debanding registers,  for luma
20023 //Bit  4           reg_nrdeband_en0          // unsigned , default = 1   debanding registers,  for chroma
20024 //Bit  3: 2        reg_nrdeband_lpf_mode1    // unsigned , default = 2   lpf mode, 0: 3x3, 1:3x5; 2: 5x5; 3:5x7
20025 //Bit  1: 0        reg_nrdeband_lpf_mode0    // unsigned , default = 2   lpf mode, 0: 3x3, 1:3x5; 2: 5x5; 3:5x7
20026 #define   NR_DB_FLT_YC_THRD                        (0x3739)
20027 #define P_NR_DB_FLT_YC_THRD                        (volatile uint32_t *)((0x3739  << 2) + 0xff900000)
20028 //Bit 31:28        reg_nrdeband_luma_th3     // unsigned , default = 9   threshold to |Y-Ylpf|, if < th[0] use lpf
20029 //Bit 27:24        reg_nrdeband_luma_th2     // unsigned , default = 7   elseif <th[1] use (lpf*3 + y)/4
20030 //Bit 23:20        reg_nrdeband_luma_th1     // unsigned , default = 6   elseif <th[1] use (lpf*3 + y)/4elseif <th[2] (lpf*1 + y)/2
20031 //Bit 19:16        reg_nrdeband_luma_th0     // unsigned , default = 5   elseif <th[1] use (lpf*3 + y)/4elseif elseif <th[3] (lpf*1 + 3*y)/4; else
20032 //Bit 15:12        reg_nrdeband_chrm_th3     // unsigned , default = 9   threshold to |Y-Ylpf|, if < th[0] use lpf
20033 //Bit 11: 8        reg_nrdeband_chrm_th2     // unsigned , default = 7   elseif <th[1] use (lpf*3 + y)/4
20034 //Bit  7: 4        reg_nrdeband_chrm_th1     // unsigned , default = 6   elseif <th[1] use (lpf*3 + y)/4elseif <th[2] (lpf*1 + y)/2
20035 //Bit  3: 0        reg_nrdeband_chrm_th0     // unsigned , default = 5   elseif <th[1] use (lpf*3 + y)/4elseif elseif
20036 #define   NR_DB_FLT_RANDLUT                        (0x373a)
20037 #define P_NR_DB_FLT_RANDLUT                        (volatile uint32_t *)((0x373a  << 2) + 0xff900000)
20038 //Bit 31:24        reserved
20039 //Bit 23:21        reg_nrdeband_randslut7    // unsigned , default = 1   lut0
20040 //Bit 20:18        reg_nrdeband_randslut6    // unsigned , default = 1   lut0
20041 //Bit 17:15        reg_nrdeband_randslut5    // unsigned , default = 1   lut0
20042 //Bit 14:12        reg_nrdeband_randslut4    // unsigned , default = 1   lut0
20043 //Bit 11: 9        reg_nrdeband_randslut3    // unsigned , default = 1   lut0
20044 //Bit  8: 6        reg_nrdeband_randslut2    // unsigned , default = 1   lut0
20045 //Bit  5: 3        reg_nrdeband_randslut1    // unsigned , default = 1   lut0
20046 //Bit  2: 0        reg_nrdeband_randslut0    // unsigned , default = 1   lut0
20047 #define   NR_DB_FLT_PXI_THRD                       (0x373b)
20048 #define P_NR_DB_FLT_PXI_THRD                       (volatile uint32_t *)((0x373b  << 2) + 0xff900000)
20049 //Bit 31:26        reserved
20050 //Bit 25:16        reg_nrdeband_yc_th1       // unsigned , default = 0   to luma/|u/v| for using the denoise
20051 //Bit 15:10        reserved
20052 //Bit  9: 0        reg_nrdeband_yc_th0       // unsigned , default = 0   to luma/|u/v| for using the denoise
20053 #define   NR_DB_FLT_SEED_Y                         (0x373c)
20054 #define P_NR_DB_FLT_SEED_Y                         (volatile uint32_t *)((0x373c  << 2) + 0xff900000)
20055 //Bit 31: 0        reg_nrdeband_seed0        // unsigned , default = 1621438240  noise adding seed for Y. seed[0]= 0x60a52f20; as default
20056 #define   NR_DB_FLT_SEED_U                         (0x373d)
20057 #define P_NR_DB_FLT_SEED_U                         (volatile uint32_t *)((0x373d  << 2) + 0xff900000)
20058 //Bit 31: 0        reg_nrdeband_seed1        // unsigned , default = 1621438247  noise adding seed for U. seed[0]= 0x60a52f27; as default
20059 #define   NR_DB_FLT_SEED_V                         (0x373e)
20060 #define P_NR_DB_FLT_SEED_V                         (volatile uint32_t *)((0x373e  << 2) + 0xff900000)
20061 //Bit 31: 0        reg_nrdeband_seed2        // unsigned , default = 1621438242  noise adding seed for V. seed[0]= 0x60a52f22; as default
20062 #define   NR_DB_FLT_SEED3                          (0x373f)
20063 #define P_NR_DB_FLT_SEED3                          (volatile uint32_t *)((0x373f  << 2) + 0xff900000)
20064 //Bit 31: 0        reg_nrdeband_seed3        // unsigned , default = 1621438242  noise adding seed for V. seed[0]= 0x60a52f22; as default
20065 // synopsys translate_off
20066 // synopsys translate_on
20067 //
20068 // Closing file:  nr_deband_regs.h
20069 //
20070 // synopsys translate_off
20071 // synopsys translate_on
20072 //
20073 // Closing file:  vpu_madc_regs.h
20074 //
20075 // -----------------------------------------------
20076 // CBUS_BASE:  NR4NM_VCBUS_BASE = 0x68
20077 // -----------------------------------------------
20078 // synopsys translate_off
20079 // synopsys translate_on
20080 //
20081 // Closing file:  ./vcbus_regs.h
20082 //
20083 //
20084 // Reading file:  ./ge2d_regs.h
20085 //
20086 // synopsys translate_off
20087 // synopsys translate_on
20088 //===========================================================================
20089 ////// GE2D Registers    0x8a0 - 0x8ff
20090 //address is 0xd016_0000 - 0xd0160000 - 0xd01603ff
20091 //===========================================================================
20092 // -----------------------------------------------
20093 // CBUS_BASE:  GE2D_GCBUS_BASE = 0x00
20094 // -----------------------------------------------
20095 //Bit 31, destination bytemask only if destination bitmask is enable
20096 //Bit 30, destination bitmask enable
20097 //Bit 29, source2 key  enable
20098 //Bit 28, source2 key  mode, 0: mask data when match, 1: mask data when unmatch
20099 //Bit 27, source1 key  enable
20100 //Bit 26, source1 key  mode, 0: mask data when match, 1: mask data when unmatch
20101 //Bit 25:24, dst1 8bit mode component selection,
20102 //            00: select Y(R), 01: Cb(G), 10: Cr(B), 11: Alpha
20103 //Bit 23  dst clip mode, 0: write inside clip window, 1: write outside clip window
20104 //Bit 22:17,  reserved
20105 //Bit 16:15, src2 8bit mode component selection,
20106 //            00: select Y(R), 01: Cb(G), 10: Cr(B), 11: Alpha
20107 //Bit 14     src2 fill mode, 0: repeat data, 1: fill default color
20108 //Bit 13:12  src2 picture struct, 00: frame, 10: even, 11: odd
20109 //Bit 11     src1 x direction yc ration, 0: 1:1, 1: 2:1
20110 //Bit 10,    reserved
20111 //Bit 9:7    reserved
20112 //Bit 6:5,   src1  8bit mode component selection,
20113 //            00: select Y(R), 01: Cb(G), 10: Cr(B), 11: Alpha
20114 //Bit 4      src1 fill mode, 0: repeat data, 1: fill default color
20115 //Bit 3      src1 lookup table enable
20116 //Bit 2:1    src1 picture struct, 00: frame, 10: even, 11: odd
20117 //Bit 0,     reserved
20118 #define   GE2D_GEN_CTRL0                           (0x00a0)
20119 #define P_GE2D_GEN_CTRL0                           (volatile uint32_t *)((0x00a0  << 2) + 0xff940000)
20120 //Bit 31, soft rst
20121 //Bit 30, dst write response counter reset
20122 //Bit 29, disable adding dst write response count to busy bit
20123 //Bit 28:27, reserved
20124 //Bit 26,    color_conversion_mode[1],
20125 //           mode[1:0]
20126 //           3:color_out = color;
20127 //           2:color_out = (color!=255) ? color: color + 1;
20128 //           1:color_out = (color<128)  ? color: color + 1;
20129 //           0:color_out = (color==0)   ? color: color + 1;
20130 //bit 25:24, interrupt control, if bit[0] true, generate interrupt when one command done,
20131 //                              if bit[1] true, generate interrupt when ge2d change from busy to not busy
20132 //Bit 23:22 src2 burst size control
20133 //Bit 21:16 src1 burst size control, 5:4, yfifo, 3:2, cbfifo, 1:0, crfifo
20134 //          each 2bit, 00: 24 64bitword, 01: 32 64bitword, 10: 48 64bitwords, 11: 64 64bitwords
20135 //Bit 15:14, dst1 picture struct, 00: frame, 10:top, 11: bottom
20136 //Bit 13:12, bit 13 if true, force read src1, bit 12 if true, force read src2
20137 //Bit 11, dst2 request urgent enable
20138 //Bit 10, src1 request urgent enable
20139 //Bit 9,  src2 request urgent enable
20140 //Bit 8,  dst1 request urgent enable
20141 //Bit 7:0 src1 global alpha
20142 #define   GE2D_GEN_CTRL1                           (0x00a1)
20143 #define P_GE2D_GEN_CTRL1                           (volatile uint32_t *)((0x00a1  << 2) + 0xff940000)
20144 //Bit31      alpha conversion mode[0] in alu,
20145 //           mode[1:0] 3,2: alpha_out = (alpha !=255) ? alpha : alpha+1;
20146 //                       0: alpha_out = (alpha !=0) ? alpha +1 : 0;
20147 //                       1: alpha_out = (alpha < 128) ? alpha: alpha + 1;
20148 //Bit30      color conversion mode[0] in alu
20149 ////         mode[1:0]
20150 //           3:color_out = color;
20151 //           2:color_out = (color!=255) ? color: color + 1;
20152 //           1:color_out = (color<128)  ? color: color + 1;
20153 //           0:color_out = (color==0)   ? color: color + 1;
20154 //Bit29      src1_gb_alpha_en, As = src1_gb_alpha_en ? Asr * Ag: Asr
20155 //Bit28      dst1_color_round_mode, 0: truncate, 1: + 0.5 rounding
20156 //Bit27      src2_color_expand_mode, 0: add 0, 1: add MSBs
20157 //Bit26      src2_alpha_expand_mode, 0: add 0, 1: add MSBs
20158 //Bit25      src1_color_expand_mode, 0: add 0, 1: add MSBs
20159 //Bit24      src1_alpha_expand_mode, 0: add 0, 1: add MSBs
20160 //Bit 23     if true, dst little endian, otherwise big endian
20161 //Bit 22:19 dst1 color_map
20162 //        dst1_format=0                  : output 8-bit;
20163 //        dst1_format=1, dst1_color_map=1: output 16-bit YCbCr  655;
20164 //        dst1_format=1, dst1_color_map=2: output 16-bit YCbCr  844;
20165 //        dst1_format=1, dst1_color_map=3: output 16-bit YCbCrA 6442;
20166 //        dst1_format=1, dst1_color_map=4: output 16-bit YCbCrA 4444;
20167 //        dst1_format=1, dst1_color_map=5: output 16-bit YCbCr  565;
20168 //        dst1_format=1, dst1_color_map=6: output 16-bit AYCbCr 4444;
20169 //        dst1_format=1, dst1_color_map=7: output 16-bit AYCbCr 1555;
20170 //        dst1_format=1, dst1_color_map=8: output 16-bit YCbCrA 4642;
20171 //        dst1_format=1, dst1_color_map=9: output 16-bit CbCr   88;
20172 //        dst1_format=1, dst1_color_map=10:output 16-bit CrCb   88;
20173 //        dst1_format=2, dst1_color_map=0: output 24-bit YCbCr  888;
20174 //        dst1_format=2, dst1_color_map=1: output 24-bit YCbCrA 5658;
20175 //        dst1_format=2, dst1_color_map=2: output 24-bit AYCbCr 8565;
20176 //        dst1_format=2, dst1_color_map=3: output 24-bit YCbCrA 6666;
20177 //        dst1_format=2, dst1_color_map=4: output 24-bit AYCbCr 6666;
20178 //        dst1_format=2, dst1_color_map=5: output 24-bit CrCbY  888;
20179 //        dst1_format=3, dst1_color_map=0: output 32-bit YCbCrA 8888;
20180 //        dst1_format=3, dst1_color_map=1: output 32-bit AYCbCr 8888;
20181 //        dst1_format=3, dst1_color_map=2: output 32-bit ACrCbY 8888;
20182 //        dst1_format=3, dst1_color_map=3: output 32-bit CrCbYA 8888.
20183 //Bit 18,alu_mult_mode ==1, mult result rounding else truncation
20184 //Bit 17:16 dst1_format,  00: 8bit, 01:16bit, 10:24bit, 11: 32bit
20185 //Bit 15    if true, src2 little endian, otherwise big endian
20186 //Bit 14:11  src2 color_map
20187 //        src2_format=0                 : output 8-bit;
20188 //        src2_format=1, src2_color_map=1: output 16-bit YCbCr  655;
20189 //        src2_format=1, src2_color_map=2: output 16-bit YCbCr  844;
20190 //        src2_format=1, src2_color_map=3: output 16-bit YCbCrA 6442;
20191 //        src2_format=1, src2_color_map=4: output 16-bit YCbCrA 4444;
20192 //        src2_format=1, src2_color_map=5: output 16-bit YCbCr  565;
20193 //        src2_format=1, src2_color_map=6: output 16-bit AYCbCr 4444;
20194 //        src2_format=1, src2_color_map=7: output 16-bit AYCbCr 1555;
20195 //        src2_format=1, src2_color_map=8: output 16-bit YCbCrA 4642;
20196 //        src2_format=2, src2_color_map=0: output 24-bit YCbCr  888;
20197 //        src2_format=2, src2_color_map=1: output 24-bit YCbCrA 5658;
20198 //        src2_format=2, src2_color_map=2: output 24-bit AYCbCr 8565;
20199 //        src2_format=2, src2_color_map=3: output 24-bit YCbCrA 6666;
20200 //        src2_format=2, src2_color_map=4: output 24-bit AYCbCr 6666;
20201 //        src2_format=2, src2_color_map=5: output 24-bit CrCbY  888;
20202 //        src2_format=3, src2_color_map=0: output 32-bit YCbCrA 8888;
20203 //        src2_format=3, src2_color_map=1: output 32-bit AYCbCr 8888;
20204 //        src2_format=3, src2_color_map=2: output 32-bit ACrCbY 8888;
20205 //        src2_format=3, src2_color_map=3: output 32-bit CrCbYA 8888.
20206 //Bit 10  alpha_conv_mode[1] == 1 in alu,
20207 //           mode[1:0] 3,2: alpha_out = (alpha !=255) ? alpha : alpha+1;
20208 //                       0: alpha_out = (alpha !=0) ? alpha +1 : 0;
20209 //                       1: alpha_out = (alpha < 128) ? alpha: alpha + 1;
20210 //Bit 9:8 src2 format, 00: 8bit, 01:16bit, 10:24bit 11: 32bit
20211 //Bit 7     if true, src1 little endian, otherwise big endian
20212 //Bit 6:3   src1 color_map
20213 //        src1_format=0                 : output 8-bit;
20214 //        src1_format=1, src1_color_map=0: output 4:2:2  (Y0Cb0Y1Cr0);
20215 //        src1_format=1, src1_color_map=1: output 16-bit YCbCr  655;
20216 //        src1_format=1, src1_color_map=2: output 16-bit YCbCr  844;
20217 //        src1_format=1, src1_color_map=3: output 16-bit YCbCrA 6442;
20218 //        src1_format=1, src1_color_map=4: output 16-bit YCbCrA 4444;
20219 //        src1_format=1, src1_color_map=5: output 16-bit YCbCr  565;
20220 //        src1_format=1, src1_color_map=6: output 16-bit AYCbCr 4444;
20221 //        src1_format=1, src1_color_map=7: output 16-bit AYCbCr 1555;
20222 //        src1_format=1, src2_color_map=8: output 16-bit YCbCrA 4642;
20223 //        src1_format=2, src1_color_map=0: output 24-bit YCbCr  888;
20224 //        src1_format=2, src1_color_map=1: output 24-bit YCbCrA 5658;
20225 //        src1_format=2, src1_color_map=2: output 24-bit AYCbCr 8565;
20226 //        src1_format=2, src1_color_map=3: output 24-bit YCbCrA 6666;
20227 //        src1_format=2, src1_color_map=4: output 24-bit AYCbCr 6666;
20228 //        src1_format=2, src1_color_map=5: output 24-bit CrCbY  888;
20229 //        src1_format=2, src1_color_map=14:output 8-bit Y and 16-bit CbCr;
20230 //        src1_format=2, src1_color_map=15:output 8-bit Y and 16-bit CrCb;
20231 //        src1_format=3, src1_color_map=0: output 32-bit YCbCrA 8888;
20232 //        src1_format=3, src1_color_map=1: output 32-bit AYCbCr 8888;
20233 //        src1_format=3, src1_color_map=2: output 32-bit ACrCbY 8888;
20234 //        src1_format=3, src1_color_map=3: output 32-bit CrCbYA 8888.
20235 //Bit 1:0 src1 format, 00: 8bit, 01:16bit/4:2:2, 10:24bit 11: 32bit
20236 #define   GE2D_GEN_CTRL2                           (0x00a2)
20237 #define P_GE2D_GEN_CTRL2                           (volatile uint32_t *)((0x00a2  << 2) + 0xff940000)
20238 //Bit 9     if true, all src2 data use default color
20239 //Bit 8     if true, all src1 data use default color
20240 //Bit 7     if true, dst x/y swap
20241 //Bit 6     if true, dst x direction reversely read
20242 //Bit 5     if true, dst y direction reversely read
20243 //Bit 4     if true, src2 x direction reversely read
20244 //Bit 3     if true, src2 y direction reversely read
20245 //Bit 2     if true, src1 x direction reversely read
20246 //Bit 1     if true, src1 y direction reversely read
20247 //Bit 0     cmd write
20248 #define   GE2D_CMD_CTRL                            (0x00a3)
20249 #define P_GE2D_CMD_CTRL                            (volatile uint32_t *)((0x00a3  << 2) + 0xff940000)
20250 //Read only
20251 //Bit 28:17 dst write response counter, for debug only
20252 //Bit 16:7  ge2d_dp status, for debug only
20253 //Bit 6     read src1 cmd ready
20254 //Bit 5     read src2 cmd ready
20255 //Bit 4     pre dpcmd ready
20256 //Bit 3     ge2d dpcmd ready
20257 //Bit 2     ge2d buffer command valid
20258 //Bit 1     ge2d current command valid
20259 //Bit 0     ge2d busy
20260 #define   GE2D_STATUS0                             (0x00a4)
20261 #define P_GE2D_STATUS0                             (volatile uint32_t *)((0x00a4  << 2) + 0xff940000)
20262 //
20263 //Read only
20264 // Bit 29:16 ge2d_dst1_status, for debug only
20265 // Bit    15 ge2d_rd_src2 core.fifo_empty
20266 // Bit    14 ge2d_rd_src2 core.fifo_overflow
20267 // Bit 13:12 ge2d_rd_src2 core.req_st
20268 // Bit    11 ge2d_rd_src2 cmd_if.cmd_err, true if cmd_format=1
20269 // Bit    10 ge2d_rd_src2 cmd_if.cmd_st, 0=IDLE state, 1=BUSY state
20270 // Bit     9 ge2d_rd_src1 luma_core(chroma_core).fifo_empty
20271 // Bit     8 ge2d_rd_src1 luma_core(chroma_core).fifo_overflow
20272 // Bit  7: 6 ge2d_rd_src1 chroma_core.req_st_cr
20273 // Bit  5: 4 ge2d_rd_src1 chroma_core.req_st_cb
20274 // Bit  3: 2 ge2d_rd_src1 luma_core.req_st_y
20275 // Bit     1 ge2d_rd_src1 cmd_if.stat_read_window_err, 1=reading/clipping window setting exceed limit
20276 // Bit     0 ge2d_rd_src1 cmd_if.cmd_st, 0=IDLE state, 1=BUSY state
20277 #define   GE2D_STATUS1                             (0x00a5)
20278 #define P_GE2D_STATUS1                             (volatile uint32_t *)((0x00a5  << 2) + 0xff940000)
20279 //SRC1 default clolor
20280 //{Y,Cb,Cr,A}/{R,G,B,A}
20281 #define   GE2D_SRC1_DEF_COLOR                      (0x00a6)
20282 #define P_GE2D_SRC1_DEF_COLOR                      (volatile uint32_t *)((0x00a6  << 2) + 0xff940000)
20283 //Bit 31, SRC1 clip x start extra, if true, one more data is read for chroma
20284 //Bit 28:16, SRC1 clip x start
20285 //Bit 15, SRC1 clip x end extra, if true, one more data is read for chroma
20286 //Bit 12:0, SRC1 clip x end
20287 #define   GE2D_SRC1_CLIPX_START_END                (0x00a7)
20288 #define P_GE2D_SRC1_CLIPX_START_END                (volatile uint32_t *)((0x00a7  << 2) + 0xff940000)
20289 //Bit 31, SRC1 clip y start extra, if true, one more data is read for chroma
20290 //Bit 28:16, SRC1 clip y start
20291 //Bit 15, SRC1 clip y end extra, if true, one more data is read for chroma
20292 //Bit 12:0, SRC1 clip y end
20293 #define   GE2D_SRC1_CLIPY_START_END                (0x00a8)
20294 #define P_GE2D_SRC1_CLIPY_START_END                (volatile uint32_t *)((0x00a8  << 2) + 0xff940000)
20295 //Bit 31:24, SRC1 canvas address0
20296 //Bit 23:16, SRC1 canvas address1
20297 //Bit 15:8, SRC1 canvas address2
20298 #define   GE2D_SRC1_CANVAS                         (0x00a9)
20299 #define P_GE2D_SRC1_CANVAS                         (volatile uint32_t *)((0x00a9  << 2) + 0xff940000)
20300 //Bit 31, SRC1 x start extra bit1, if true, one more chroma data is read for x even start chroma data when y/c ratio = 2
20301 //             or x even/odd start chroma extra data when y/c ratio = 1
20302 //Bit 30, SRC1 x start extra bit0, if true, one more chroma data is read for x odd start chroma data when y/c ratio = 2
20303 //Bit 29:16, SRC1 x start, signed data
20304 //Bit 15, SRC1 x end extra bit1, if true, one more chroma data is read for x odd end chroma data when y/c ratio = 2
20305 //             or x even/odd end chroma extra data when y/c ratio = 1
20306 //Bit 14, SRC1 x end extra bit0, if true, one more chroma data is read for x even end chroma data when y/c ratio = 2
20307 //Bit 13:0, SRC1 x end, signed data
20308 #define   GE2D_SRC1_X_START_END                    (0x00aa)
20309 #define P_GE2D_SRC1_X_START_END                    (volatile uint32_t *)((0x00aa  << 2) + 0xff940000)
20310 //Bit 31, SRC1 y start extra, if true, one more chroma data is read for y even start chroma data when y/c ratio = 2
20311 //             or y even/odd start chroma extra data when y/c ratio = 1
20312 //Bit 30, SRC1 y start extra, if true, one more chroma data is read for x odd start chroma data when y/c ratio = 2
20313 //Bit 28:16, SRC1 y start
20314 //Bit 15, SRC1 y end extra bit1, if true, one more chroma data is read for y odd end chroma data when y/c ratio = 2
20315 //             or y even/odd end chroma extra data when y/c ratio = 1
20316 //Bit 14, SRC1 y end extra bit0, if true, one more chroma data is read for y even end chroma data when y/c ratio = 2
20317 //Bit 12:0, SRC1 y end
20318 #define   GE2D_SRC1_Y_START_END                    (0x00ab)
20319 #define P_GE2D_SRC1_Y_START_END                    (volatile uint32_t *)((0x00ab  << 2) + 0xff940000)
20320 // Bit 31: 9 Reserved
20321 // Bit     8 RW, 0 = Write LUT, 1 = Read LUT
20322 // Bit  7: 0 RW, lut_addr
20323 #define   GE2D_SRC1_LUT_ADDR                       (0x00ac)
20324 #define P_GE2D_SRC1_LUT_ADDR                       (volatile uint32_t *)((0x00ac  << 2) + 0xff940000)
20325 // Bit 31:24 RW, Y or R
20326 // Bit 23:16 RW, Cb or G
20327 // Bit 15: 8 RW, Cr or B
20328 // Bit  7: 0 RW, Alpha
20329 #define   GE2D_SRC1_LUT_DAT                        (0x00ad)
20330 #define P_GE2D_SRC1_LUT_DAT                        (volatile uint32_t *)((0x00ad  << 2) + 0xff940000)
20331 //Bit 19, if true, horizontal formatter using repeat to get the pixel, otherwise using interpolation
20332 //Bit 18, horizontal formatter en
20333 //Bit 17, if true, vertical formatter using repeat to get the pixel, otherwise using interpolation
20334 //Bit 16, vertical formatter en
20335 //Bit 15:8 X direction chroma phase,
20336 //          [7:4] for x direction even start/end chroma phase when y/c ratio = 2
20337 //                or start/end even/odd chroma phase  when y/c ratio = 1
20338 //          [3:0] for x direction odd start/end chroma phase only when y/c ration = 2
20339 //Bit 7:0  Y direction chroma phase,
20340 //          [7:4] for y direction even start/end chroma phase when y/c ratio = 2
20341 //          or start/end even/odd chroma phase  when y/c ratio = 1
20342 //          [3:0] for y direction odd start/end chroma phase only when y/c ration = 2
20343 #define   GE2D_SRC1_FMT_CTRL                       (0x00ae)
20344 #define P_GE2D_SRC1_FMT_CTRL                       (volatile uint32_t *)((0x00ae  << 2) + 0xff940000)
20345 //SRC2 default clolor
20346 //{Y,Cb,Cr,A}/{R,G,B,A}
20347 #define   GE2D_SRC2_DEF_COLOR                      (0x00af)
20348 #define P_GE2D_SRC2_DEF_COLOR                      (volatile uint32_t *)((0x00af  << 2) + 0xff940000)
20349 //Bit 28:16, SRC2 clip x start
20350 //Bit 12:0, SRC2 clip x end
20351 #define   GE2D_SRC2_CLIPX_START_END                (0x00b0)
20352 #define P_GE2D_SRC2_CLIPX_START_END                (volatile uint32_t *)((0x00b0  << 2) + 0xff940000)
20353 //Bit 28:16, SRC2 clip y start
20354 //Bit 12:0, SRC2 clip y end
20355 #define   GE2D_SRC2_CLIPY_START_END                (0x00b1)
20356 #define P_GE2D_SRC2_CLIPY_START_END                (volatile uint32_t *)((0x00b1  << 2) + 0xff940000)
20357 //Bit 28:16, SRC2 x start
20358 //Bit 12:0, SRC2 x end
20359 #define   GE2D_SRC2_X_START_END                    (0x00b2)
20360 #define P_GE2D_SRC2_X_START_END                    (volatile uint32_t *)((0x00b2  << 2) + 0xff940000)
20361 //Bit 28:16, SRC2 y start
20362 //Bit 12:0, SRC2 y end
20363 #define   GE2D_SRC2_Y_START_END                    (0x00b3)
20364 #define P_GE2D_SRC2_Y_START_END                    (volatile uint32_t *)((0x00b3  << 2) + 0xff940000)
20365 //Bit 28:16, DST clip x start
20366 //Bit 12:0, DST clip x end
20367 #define   GE2D_DST_CLIPX_START_END                 (0x00b4)
20368 #define P_GE2D_DST_CLIPX_START_END                 (volatile uint32_t *)((0x00b4  << 2) + 0xff940000)
20369 //
20370 //Bit 28:16, DST clip y start
20371 //Bit 12:0, DST clip y end
20372 #define   GE2D_DST_CLIPY_START_END                 (0x00b5)
20373 #define P_GE2D_DST_CLIPY_START_END                 (volatile uint32_t *)((0x00b5  << 2) + 0xff940000)
20374 //Bit 28:16, DST x start
20375 //Bit 12:0, DST x end
20376 #define   GE2D_DST_X_START_END                     (0x00b6)
20377 #define P_GE2D_DST_X_START_END                     (volatile uint32_t *)((0x00b6  << 2) + 0xff940000)
20378 //
20379 //Bit 28:16, DST x start
20380 //Bit 12:0, DST x end
20381 #define   GE2D_DST_Y_START_END                     (0x00b7)
20382 #define P_GE2D_DST_Y_START_END                     (volatile uint32_t *)((0x00b7  << 2) + 0xff940000)
20383 //Bit 23:16 DST2 canvas address
20384 //Bit 15:8 SRC2 canvas address
20385 //Bit 7:0 DST1 canvas address
20386 #define   GE2D_SRC2_DST_CANVAS                     (0x00b8)
20387 #define P_GE2D_SRC2_DST_CANVAS                     (volatile uint32_t *)((0x00b8  << 2) + 0xff940000)
20388 //vertical scaler phase step
20389 //Bit 28:0,  5.24 format
20390 #define   GE2D_VSC_START_PHASE_STEP                (0x00b9)
20391 #define P_GE2D_VSC_START_PHASE_STEP                (volatile uint32_t *)((0x00b9  << 2) + 0xff940000)
20392 //phase slope
20393 //Bit 24:0, bit 24 signed bit
20394 #define   GE2D_VSC_PHASE_SLOPE                     (0x00ba)
20395 #define P_GE2D_VSC_PHASE_SLOPE                     (volatile uint32_t *)((0x00ba  << 2) + 0xff940000)
20396 //Bit 30:29, vertical repeat line0 number
20397 //Bit 23:0, vertical scaler initial phase
20398 #define   GE2D_VSC_INI_CTRL                        (0x00bb)
20399 #define P_GE2D_VSC_INI_CTRL                        (volatile uint32_t *)((0x00bb  << 2) + 0xff940000)
20400 //horizontal scaler phase step
20401 //Bit 28:0,  5.24 format
20402 #define   GE2D_HSC_START_PHASE_STEP                (0x00bc)
20403 #define P_GE2D_HSC_START_PHASE_STEP                (volatile uint32_t *)((0x00bc  << 2) + 0xff940000)
20404 //phase slope
20405 //Bit 24:0, bit 24 signed bit
20406 #define   GE2D_HSC_PHASE_SLOPE                     (0x00bd)
20407 #define P_GE2D_HSC_PHASE_SLOPE                     (volatile uint32_t *)((0x00bd  << 2) + 0xff940000)
20408 //Bit 30:29, horizontal repeat line0 number
20409 //Bit 23:0, horizontal scaler initial phase
20410 #define   GE2D_HSC_INI_CTRL                        (0x00be)
20411 #define P_GE2D_HSC_INI_CTRL                        (volatile uint32_t *)((0x00be  << 2) + 0xff940000)
20412 //Bit 31:24, advance number in this round, if horizontal scaler is working on dividing mode
20413 //Bit 23:0, horizontal scaler advance phase in this round, if horizontal scaler is working on dividing mode
20414 #define   GE2D_HSC_ADV_CTRL                        (0x00bf)
20415 #define P_GE2D_HSC_ADV_CTRL                        (volatile uint32_t *)((0x00bf  << 2) + 0xff940000)
20416 //Bit 30, vertical nearest mode enable, must set vt_bank_length = 4
20417 //Bit 29, horizontal nearest mode enable, must set hz_bank_length = 4
20418 //Bit 28, horizontal scaler dividing mode enable
20419 //Bit 27:15, horizontal dividing length, if bit 28 is enable
20420 //Bit 14, pre horizontal scaler enable
20421 //Bit 13, pre vertical scale enable
20422 //Bit 12, vertical scale enable
20423 //Bit 11, horizontal scaler enable
20424 //Bit 9, if true, treat horizontal repeat line number(GE2D_HSC_INI_CTRL bit 30:29) as repeating line,
20425 //        otherwise using treat horizontal repeat line number as minus line number.
20426 //Bit 8, if true, treat vertical repeat line number(GE2D_VSC_INI_CTRL bit 30:29) as repeating line,
20427 //        otherwise using treat vertical repeat line number as minus line number.
20428 //Bit 7, if true, always use phase0 in vertical scaler
20429 //Bit 6:4, vertical scaler bank length
20430 //Bit 3, if true, always use phase0 in horizontal scaler
20431 //Bit 2:0, horizontal scaler bank length
20432 #define   GE2D_SC_MISC_CTRL                        (0x00c0)
20433 #define P_GE2D_SC_MISC_CTRL                        (volatile uint32_t *)((0x00c0  << 2) + 0xff940000)
20434 //Read only
20435 //vertical scaler next round integer pixel pointer, signed data
20436 //Bit 13:0
20437 #define   GE2D_VSC_NRND_POINT                      (0x00c1)
20438 #define P_GE2D_VSC_NRND_POINT                      (volatile uint32_t *)((0x00c1  << 2) + 0xff940000)
20439 //Read only
20440 //vertical scaler next round phase
20441 //bit 23:0
20442 #define   GE2D_VSC_NRND_PHASE                      (0x00c2)
20443 #define P_GE2D_VSC_NRND_PHASE                      (volatile uint32_t *)((0x00c2  << 2) + 0xff940000)
20444 //Read only
20445 //horizontal scaler next round integer pixel pointer, signed data
20446 //Bit 13:0
20447 #define   GE2D_HSC_NRND_POINT                      (0x00c3)
20448 #define P_GE2D_HSC_NRND_POINT                      (volatile uint32_t *)((0x00c3  << 2) + 0xff940000)
20449 //Read only
20450 //horizontal scaler next round phase
20451 //bit 23:0
20452 #define   GE2D_HSC_NRND_PHASE                      (0x00c4)
20453 #define P_GE2D_HSC_NRND_PHASE                      (volatile uint32_t *)((0x00c4  << 2) + 0xff940000)
20454 //
20455 //Bit 28:20, pre_offset0
20456 //Bit 18:10, pre_offset1
20457 //Bit 8:0,   pre_offset2
20458 #define   GE2D_MATRIX_PRE_OFFSET                   (0x00c5)
20459 #define P_GE2D_MATRIX_PRE_OFFSET                   (volatile uint32_t *)((0x00c5  << 2) + 0xff940000)
20460 //Bit 28:16 coef00
20461 //Bit 12:0  coef01
20462 #define   GE2D_MATRIX_COEF00_01                    (0x00c6)
20463 #define P_GE2D_MATRIX_COEF00_01                    (volatile uint32_t *)((0x00c6  << 2) + 0xff940000)
20464 //Bit 28:16 coef02
20465 //Bit 12:0  coef10
20466 #define   GE2D_MATRIX_COEF02_10                    (0x00c7)
20467 #define P_GE2D_MATRIX_COEF02_10                    (volatile uint32_t *)((0x00c7  << 2) + 0xff940000)
20468 //Bit 28:16 coef11
20469 //Bit 12:0  coef12
20470 #define   GE2D_MATRIX_COEF11_12                    (0x00c8)
20471 #define P_GE2D_MATRIX_COEF11_12                    (volatile uint32_t *)((0x00c8  << 2) + 0xff940000)
20472 //Bit 28:16 coef20
20473 //Bit 12:0  coef21
20474 #define   GE2D_MATRIX_COEF20_21                    (0x00c9)
20475 #define P_GE2D_MATRIX_COEF20_21                    (volatile uint32_t *)((0x00c9  << 2) + 0xff940000)
20476 //Bit 28:16 coef22
20477 //Bit 7    input y/cb/cr saturation enable
20478 //Bit 0    conversion matrix enable
20479 #define   GE2D_MATRIX_COEF22_CTRL                  (0x00ca)
20480 #define P_GE2D_MATRIX_COEF22_CTRL                  (volatile uint32_t *)((0x00ca  << 2) + 0xff940000)
20481 //Bit 28:20, offset0
20482 //Bit 18:10, offset1
20483 //Bit 8:0,   offset2
20484 #define   GE2D_MATRIX_OFFSET                       (0x00cb)
20485 #define P_GE2D_MATRIX_OFFSET                       (volatile uint32_t *)((0x00cb  << 2) + 0xff940000)
20486 //Bit 26:25, SRC1 color multiplier alpha selection
20487 //           if 00, Cs = Csr
20488 //           if 01, Cs = Csr * Asr * Ag (if source is not premultiplied)
20489 //           if 10, Cs = Csr * Ag (if source is premultipied)
20490 //Bit 24    SRC2 color multiplier alpha selection
20491 //          if 0, no multiplier, Cd = Cdr,  otherwise, Cd = Cdr * Ad.
20492 //Bit 22:12 ALU color operation
20493 //          bit10:8 Blending Mode Parameter
20494 //            3'b000: ADD               Cs*Fs + Cd*Fd
20495 //            3'b001: SUBTRACT          Cs*Fs - Cd*Fd
20496 //            3'b010: REVERSE SUBTRACT  Cd*Fd - Cs*Fs
20497 //            3'b011: MIN               min(Cs*Fs, Cd*Fd)
20498 //            3'b100: MAX               max(Cs*Fs, Cd*Fd)
20499 //            3'b101: LOGIC OP          Cs op Cd
20500 //          bit7:4 Source Color Blending Factor CFs
20501 //            4'b0000: ZERO                        0
20502 //            4'b0001: ONE                         1
20503 //            4'b0010: SRC_COLOR                   Cs(RGBs)
20504 //            4'b0011: ONE_MINUS_SRC_COLOR         1 - Cs(RGBs)
20505 //            4'b0100: DST_COLOR                   Cd(RGBd)
20506 //            4'b0101: ONE_MINUS_DST_COLOR         1 - Cd(RGBd)
20507 //            4'b0110: SRC_ALPHA                   As
20508 //            4'b0111: ONE_MINUS_SRC_ALPHA         1 - As
20509 //            4'b1000: DST_ALPHA                   Ad
20510 //            4'b1001: ONE_MINUS_DST_ALPHA         1 - Ad
20511 //            4'b1010: CONST_COLOR                 Cc(RGBc)
20512 //            4'b1011: ONE_MINUS_CONST_COLOR       1 - Cc(RGBc)
20513 //            4'b1100: CONST_ALPHA                 Ac
20514 //            4'b1101: ONE_MINUS_CONST_ALPHA       1 - Ac
20515 //            4'b1110: SRC_ALPHA_SATURATE          min(As,1-Ad)
20516 //          bit3:0 dest Color Blending Factor CFd, when bit10:8 != LOGIC OP
20517 //            4'b0000: ZERO                        0
20518 //            4'b0001: ONE                         1
20519 //            4'b0010: SRC_COLOR                   Cs(RGBs)
20520 //            4'b0011: ONE_MINUS_SRC_COLOR         1 - Cs(RGBs)
20521 //            4'b0100: DST_COLOR                   Cd(RGBd)
20522 //            4'b0101: ONE_MINUS_DST_COLOR         1 - Cd(RGBd)
20523 //            4'b0110: SRC_ALPHA                   As
20524 //            4'b0111: ONE_MINUS_SRC_ALPHA         1 - As
20525 //            4'b1000: DST_ALPHA                   Ad
20526 //            4'b1001: ONE_MINUS_DST_ALPHA         1 - Ad
20527 //            4'b1010: CONST_COLOR                 Cc(RGBc)
20528 //            4'b1011: ONE_MINUS_CONST_COLOR       1 - Cc(RGBc)
20529 //            4'b1100: CONST_ALPHA                 Ac
20530 //            4'b1101: ONE_MINUS_CONST_ALPHA       1 - Ac
20531 //            4'b1110: SRC_ALPHA_SATURATE          min(As,1-Ad)
20532 //          bit3:0 logic operations, when bit10:8 == LOGIC OP
20533 //            4'b0000: CLEAR                       0
20534 //            4'b0001: COPY                        s
20535 //            4'b0010: NOOP                        d
20536 //            4'b0011: SET                         1
20537 //            4'b0100: COPY_INVERT                 ~s
20538 //            4'b0101: INVERT                      ~d
20539 //            4'b0110: AND_REVERSE                 s & ~d
20540 //            4'b0111: OR_REVERSE                  s | ~d
20541 //            4'b1000: AND                         s & d
20542 //            4'b1001: OR                          s | d
20543 //            4'b1010: NAND                        ~(s & d)
20544 //            4'b1011: NOR                         ~(s | d)
20545 //            4'b1100: XOR                         s ^ d
20546 //            4'b1101: EQUIV                       ~(s ^ d)
20547 //            4'b1110: AND_INVERTED                ~s & d
20548 //            4'b1111: OR_INVERTED                 ~s | d
20549 //Bit 10:0  ALU alpha operation
20550 //            bit10:8 Blending Equation Math Operation
20551 //              3'b000: ADD               As*Fs + Ad*Fd
20552 //              3'b001: SUBTRACT          As*Fs - Ad*Fd
20553 //              3'b010: REVERSE SUBTRACT  Ad*Fd - As*Fs
20554 //              3'b011: MIN               min(As*Fs, Ad*Fd)
20555 //              3'b100: MAX               max(As*Fs, Ad*Fd)
20556 //              3'b101: LOGIC OP          As op Ad
20557 //            bit7:4 Source alpha Blending Factor AFs
20558 //              4'b0000                       0
20559 //              4'b0001                       1
20560 //              4'b0010                       As
20561 //              4'b0011                       1 - As
20562 //              4'b0100                       Ad
20563 //              4'b0101                       1 - Ad
20564 //              4'b0110                       Ac
20565 //              4'b0111                       1 - Ac
20566 //               ....                         reserved
20567 //            bit3:0 Destination alpha Blending Factor AFd, when bit10:8 != LOGIC OP
20568 //              4'b0000                       0
20569 //              4'b0001                       1
20570 //              4'b0010                       As
20571 //              4'b0011                       1 - As
20572 //              4'b0100                       Ad
20573 //              4'b0101                       1 - Ad
20574 //              4'b0110                       Ac
20575 //              4'b0111                       1 - Ac
20576 //               ....                         reserved
20577 //            bit3:0 logic operations, when bit10:8 == LOGIC OP
20578 //              4'b0000: CLEAR                       0
20579 //              4'b0001: COPY                        s
20580 //              4'b0010: NOOP                        d
20581 //              4'b0011: SET                         1
20582 //              4'b0100: COPY_INVERT                 ~s
20583 //              4'b0101: INVERT                      ~d
20584 //              4'b0110: AND_REVERSE                 s & ~d
20585 //              4'b0111: OR_REVERSE                  s | ~d
20586 //              4'b1000: AND                         s & d
20587 //              4'b1001: OR                          s | d
20588 //              4'b1010: NAND                        ~(s & d)
20589 //              4'b1011: NOR                         ~(s | d)
20590 //              4'b1100: XOR                         s ^ d
20591 //              4'b1101: EQUIV                       ~(s ^ d)
20592 //              4'b1110: AND_INVERTED                ~s & d
20593 //              4'b1111: OR_INVERTED                 ~s | d
20594 #define   GE2D_ALU_OP_CTRL                         (0x00cc)
20595 #define P_GE2D_ALU_OP_CTRL                         (volatile uint32_t *)((0x00cc  << 2) + 0xff940000)
20596 //bit 31:0 (RGBA,YCBCRA)
20597 #define   GE2D_ALU_CONST_COLOR                     (0x00cd)
20598 #define P_GE2D_ALU_CONST_COLOR                     (volatile uint32_t *)((0x00cd  << 2) + 0xff940000)
20599 //SRC1 Key
20600 //31:0
20601 #define   GE2D_SRC1_KEY                            (0x00ce)
20602 #define P_GE2D_SRC1_KEY                            (volatile uint32_t *)((0x00ce  << 2) + 0xff940000)
20603 //SRC1 Key Mask
20604 //31:0
20605 #define   GE2D_SRC1_KEY_MASK                       (0x00cf)
20606 #define P_GE2D_SRC1_KEY_MASK                       (volatile uint32_t *)((0x00cf  << 2) + 0xff940000)
20607 //SRC2 Key
20608 //31:0
20609 #define   GE2D_SRC2_KEY                            (0x00d0)
20610 #define P_GE2D_SRC2_KEY                            (volatile uint32_t *)((0x00d0  << 2) + 0xff940000)
20611 //SRC2 Key Mask
20612 //31:0
20613 #define   GE2D_SRC2_KEY_MASK                       (0x00d1)
20614 #define P_GE2D_SRC2_KEY_MASK                       (volatile uint32_t *)((0x00d1  << 2) + 0xff940000)
20615 //Destination Bit Mask
20616 //31:0
20617 #define   GE2D_DST_BITMASK                         (0x00d2)
20618 #define P_GE2D_DST_BITMASK                         (volatile uint32_t *)((0x00d2  << 2) + 0xff940000)
20619 //Bit 31    DP onoff mode, 0: on_counter means how many pixels will output before ge2d turns off
20620 //                         1: on_counter means how many clocks will ge2d turn on before ge2d turns off
20621 //Bit 30:16     DP on counter
20622 //Bit 15        0: vd_format doesnt have onoff mode, 1: vd format has onoff mode
20623 //Bit 14:0      DP off counter
20624 #define   GE2D_DP_ONOFF_CTRL                       (0x00d3)
20625 #define P_GE2D_DP_ONOFF_CTRL                       (volatile uint32_t *)((0x00d3  << 2) + 0xff940000)
20626 //Because there are many coefficients used in the vertical filter and horizontal filters,
20627 //indirect access the coefficients of vertical filter and horizontal filter is used.
20628 //For vertical filter, there are 33x4 coefficients
20629 //For horizontal filter, there are 33x4 coefficients
20630 //Bit 15    index increment, if bit9 == 1  then (0: index increase 1, 1: index increase 2) else (index increase 2)
20631 //Bit 14    1: read coef through cbus enable, just for debug purpose in case when we wanna check the coef in ram in correct or not
20632 //Bit 9     if true, use 9bit resolution coef, other use 8bit resolution coef
20633 //Bit 8     type of index, 0: vertical coef
20634 //                         1: horizontal coef
20635 //Bit 6:0   coef index
20636 #define   GE2D_SCALE_COEF_IDX                      (0x00d4)
20637 #define P_GE2D_SCALE_COEF_IDX                      (volatile uint32_t *)((0x00d4  << 2) + 0xff940000)
20638 //coefficients for vertical filter and horizontal filter
20639 #define   GE2D_SCALE_COEF                          (0x00d5)
20640 #define P_GE2D_SCALE_COEF                          (volatile uint32_t *)((0x00d5  << 2) + 0xff940000)
20641 //Bit 24    src2 alpha fill mode: together with GE2D_GEN_CTRL0[4](fill_mode), define what alpha values are used
20642 //                                for the area outside the clipping window. As below:
20643 //                                fill_mode=0, alpha_fill_mode=0 : use inner alpha, (or default_alpha if src data have no alpha values);
20644 //                                fill_mode=0, alpha_fill_mode=1 : use outside_alpha;
20645 //                                fill_mode=1, alpha_fill_mode=0 : use default_alpha;
20646 //                                fill_mode=1, alpha_fill_mode=1 : use outside_alpha.
20647 //Bit 23:16 src2 outside alpha
20648 //Bit 8     src1 alpha fill mode, refer to src2 alpha fill mode above.
20649 //Bit 7:0   src1 outside alpha
20650 #define   GE2D_SRC_OUTSIDE_ALPHA                   (0x00d6)
20651 #define P_GE2D_SRC_OUTSIDE_ALPHA                   (volatile uint32_t *)((0x00d6  << 2) + 0xff940000)
20652 //Bit 31       antiflick enable
20653 //Bit 24       1: alpha value for the first line use repeated alpha, 0: use bit 23:16 as the first line alpha
20654 //Bit 23:16     register value for the first line alpha when bit 24 is 1
20655 //Bit 8        1: alpha value for the last line use repeated alpha, 0: use bit 7:0 as the last line alpha
20656 //Bit 7:0      register value for the last line alpha when bit 8 is 1
20657 #define   GE2D_ANTIFLICK_CTRL0                     (0x00d8)
20658 #define P_GE2D_ANTIFLICK_CTRL0                     (volatile uint32_t *)((0x00d8  << 2) + 0xff940000)
20659 //Bit 25,    rgb_sel, 1: antiflick RGBA, 0: antiflick YCbCrA
20660 //Bit 24,    cbcr_en, 1: also filter cbcr in case of antiflicking YCbCrA, 0: no filter on cbcr in case of antiflicking YCbCrA
20661 //Bit 23:16, R mult coef for converting RGB to Y
20662 //Bit 15:8,  G mult coef for converting RGB to Y
20663 //Bit 7:0,   B mult coef for converting RGB to Y
20664 //Y = (R * y_r + G * y_g + B * y_b) / 256
20665 #define   GE2D_ANTIFLICK_CTRL1                     (0x00d9)
20666 #define P_GE2D_ANTIFLICK_CTRL1                     (volatile uint32_t *)((0x00d9  << 2) + 0xff940000)
20667 //Bit 31:24, Y threhold1, when   0<Y<=th1, use filter0;
20668 //Bit 23:16, color antiflick filter0 n3
20669 //Bit 15:8,  color antiflick filter0 n2
20670 //Bit 7:0,   color antiflick filter0 n1
20671 //Y = (line_up * n1 + line_center * n2 + line_dn * n3) / 128
20672 #define   GE2D_ANTIFLICK_COLOR_FILT0               (0x00da)
20673 #define P_GE2D_ANTIFLICK_COLOR_FILT0               (volatile uint32_t *)((0x00da  << 2) + 0xff940000)
20674 //Bit 31:24, Y threhold2, when th1<Y<=th2, use filter1;
20675 //Bit 23:16, color antiflick filter1 n3
20676 //Bit 15:8,  color antiflick filter1 n2
20677 //Bit 7:0,   color antiflick filter1 n1
20678 #define   GE2D_ANTIFLICK_COLOR_FILT1               (0x00db)
20679 #define P_GE2D_ANTIFLICK_COLOR_FILT1               (volatile uint32_t *)((0x00db  << 2) + 0xff940000)
20680 //Bit 31:24, Y threhold3, when th2<Y<=th3, use filter2; Y>th3, use filter3
20681 //Bit 23:16, color antiflick filter2 n3
20682 //Bit 15:8,  color antiflick filter2 n2
20683 //Bit 7:0,   color antiflick filter2 n1
20684 #define   GE2D_ANTIFLICK_COLOR_FILT2               (0x00dc)
20685 #define P_GE2D_ANTIFLICK_COLOR_FILT2               (volatile uint32_t *)((0x00dc  << 2) + 0xff940000)
20686 //Bit 23:16, color antiflick filter3 n3
20687 //Bit 15:8,  color antiflick filter3 n2
20688 //Bit 7:0,   color antiflick filter3 n1
20689 #define   GE2D_ANTIFLICK_COLOR_FILT3               (0x00dd)
20690 #define P_GE2D_ANTIFLICK_COLOR_FILT3               (volatile uint32_t *)((0x00dd  << 2) + 0xff940000)
20691 //Bit 31:24, Alpha threhold1, when   0<Alpha<=th1, use filter0;
20692 //Bit 23:16, Alpha antiflick filter0 n3
20693 //Bit 15:8,  Alpha antiflick filter0 n2
20694 //Bit 7:0,   Alpha antiflick filter0 n1
20695 //Alpha = (line_up * n1 + line_center * n2 + line_dn * n3) / 128
20696 #define   GE2D_ANTIFLICK_ALPHA_FILT0               (0x00de)
20697 #define P_GE2D_ANTIFLICK_ALPHA_FILT0               (volatile uint32_t *)((0x00de  << 2) + 0xff940000)
20698 //Bit 31:24, Alpha threhold2, when th1<Alpha<=th2, use filter1;
20699 //Bit 23:16, Alpha antiflick filter1 n3
20700 //Bit 15:8,  Alpha antiflick filter1 n2
20701 //Bit 7:0,   Alpha antiflick filter1 n1
20702 #define   GE2D_ANTIFLICK_ALPHA_FILT1               (0x00df)
20703 #define P_GE2D_ANTIFLICK_ALPHA_FILT1               (volatile uint32_t *)((0x00df  << 2) + 0xff940000)
20704 //Bit 31:24, Alpha threhold3, when th2<Alpha<=th3, use filter2; Alpha>th3, use filter3
20705 //Bit 23:16, Alpha antiflick filter2 n3
20706 //Bit 15:8,  Alpha antiflick filter2 n2
20707 //Bit 7:0,   Alpha antiflick filter2 n1
20708 #define   GE2D_ANTIFLICK_ALPHA_FILT2               (0x00e0)
20709 #define P_GE2D_ANTIFLICK_ALPHA_FILT2               (volatile uint32_t *)((0x00e0  << 2) + 0xff940000)
20710 //Bit 23:16, Alpha antiflick filter3 n3
20711 //Bit 15:8,  Alpha antiflick filter3 n2
20712 //Bit 7:0,   Alpha antiflick filter3 n1
20713 #define   GE2D_ANTIFLICK_ALPHA_FILT3               (0x00e1)
20714 #define P_GE2D_ANTIFLICK_ALPHA_FILT3               (volatile uint32_t *)((0x00e1  << 2) + 0xff940000)
20715 //dout = clipto_0_255(((din + din_offset) * map_coef + ((1 << (map_sr - 1))) >> map_sr + dout_offset)
20716 //Bit 30:22 din_offset (signed data)
20717 //Bit 21:14 map_coef (unsigned data)
20718 //Bit 13:10 map_sr (unsigned data)
20719 //Bit 9:1   dout_offset (signed data)
20720 //Bit 0     enable
20721 #define   GE2D_SRC1_RANGE_MAP_Y_CTRL               (0x00e3)
20722 #define P_GE2D_SRC1_RANGE_MAP_Y_CTRL               (volatile uint32_t *)((0x00e3  << 2) + 0xff940000)
20723 //dout = clipto_0_255(((din + din_offset) * map_coef + ((1 << (map_sr - 1))) >> map_sr + dout_offset)
20724 //Bit 30:22 din_offset (signed data)
20725 //Bit 21:14 map_coef (unsigned data)
20726 //Bit 13:10 map_sr (unsigned data)
20727 //Bit 9:1   dout_offset (signed data)
20728 //Bit 0     enable
20729 #define   GE2D_SRC1_RANGE_MAP_CB_CTRL              (0x00e4)
20730 #define P_GE2D_SRC1_RANGE_MAP_CB_CTRL              (volatile uint32_t *)((0x00e4  << 2) + 0xff940000)
20731 //dout = clipto_0_255(((din + din_offset) * map_coef + ((1 << (map_sr - 1))) >> map_sr + dout_offset)
20732 //Bit 30:22 din_offset (signed data)
20733 //Bit 21:14 map_coef (unsigned data)
20734 //Bit 13:10 map_sr (unsigned data)
20735 //Bit 9:1   dout_offset (signed data)
20736 //Bit 0     enable
20737 #define   GE2D_SRC1_RANGE_MAP_CR_CTRL              (0x00e5)
20738 #define P_GE2D_SRC1_RANGE_MAP_CR_CTRL              (volatile uint32_t *)((0x00e5  << 2) + 0xff940000)
20739 //Bit 21:16     src1 prearbitor burst number
20740 //Bit 13:8      src2 prearbitor burst number
20741 //Bit 5:0       dst prearbitor burst number
20742 #define   GE2D_ARB_BURST_NUM                       (0x00e6)
20743 #define P_GE2D_ARB_BURST_NUM                       (volatile uint32_t *)((0x00e6  << 2) + 0xff940000)
20744 //each 6bit ID, high 4bit are thread ID, low 2bits are the token
20745 //Bit 21:16 src1 ID
20746 //Bit 13:8 src2 ID
20747 //Bit 5:0  dst ID
20748 #define   GE2D_TID_TOKEN                           (0x00e7)
20749 #define P_GE2D_TID_TOKEN                           (volatile uint32_t *)((0x00e7  << 2) + 0xff940000)
20750 //Bit 31:28 dst2_bytemask_val. 1-bit mask for each byte (8-bit). Applicable only if both dst_bitmask_en=1 and dst_bytemask_only=1.
20751 //Bit 27:26, dst2 picture struct, 00: frame, 10:top, 11: bottom
20752 //Bit 25:24, dst2 8bit mode component selection,
20753 //            00: select Y(R), 01: Cb(G), 10: Cr(B), 11: Alpha
20754 //Bit 22:19 dst2 color_map
20755 //        dst2_format=0                  : output 8-bit;
20756 //        dst2_format=1, dst2_color_map=1: output 16-bit YCbCr  655;
20757 //        dst2_format=1, dst2_color_map=2: output 16-bit YCbCr  844;
20758 //        dst2_format=1, dst2_color_map=3: output 16-bit YCbCrA 6442;
20759 //        dst2_format=1, dst2_color_map=4: output 16-bit YCbCrA 4444;
20760 //        dst2_format=1, dst2_color_map=5: output 16-bit YCbCr  565;
20761 //        dst2_format=1, dst2_color_map=6: output 16-bit AYCbCr 4444;
20762 //        dst2_format=1, dst2_color_map=7: output 16-bit AYCbCr 1555;
20763 //        dst2_format=1, dst2_color_map=8: output 16-bit YCbCrA 4642;
20764 //        dst2_format=1, dst2_color_map=9: output 16-bit CbCr   88;
20765 //        dst2_format=1, dst2_color_map=10:output 16-bit CrCb   88;
20766 //        dst2_format=2, dst2_color_map=0: output 24-bit YCbCr  888;
20767 //        dst2_format=2, dst2_color_map=1: output 24-bit YCbCrA 5658;
20768 //        dst2_format=2, dst2_color_map=2: output 24-bit AYCbCr 8565;
20769 //        dst2_format=2, dst2_color_map=3: output 24-bit YCbCrA 6666;
20770 //        dst2_format=2, dst2_color_map=4: output 24-bit AYCbCr 6666;
20771 //        dst2_format=2, dst2_color_map=5: output 24-bit CrCbY  888;
20772 //        dst2_format=3, dst2_color_map=0: output 32-bit YCbCrA 8888;
20773 //        dst2_format=3, dst2_color_map=1: output 32-bit AYCbCr 8888;
20774 //        dst2_format=3, dst2_color_map=2: output 32-bit ACrCbY 8888;
20775 //        dst2_format=3, dst2_color_map=3: output 32-bit CrCbYA 8888.
20776 //Bit 17:16 dst2_format,  00: 8bit, 01:16bit, 10:24bit, 11: 32bit
20777 //Bit 15     reserved
20778 //Bit 14     dst2_color_round_mode, 0: truncate, 1: + 0.5 rounding
20779 //Bit 13:12, dst2_x_discard_mode. 00: no discard; 10=discard even x; 11=discard odd x. Note: x is post reverse/rotation.
20780 //Bit 11:10, dst2_y_discard_mode. 00: no discard; 10=discard even y; 11=discard odd y. Note: y is post reverse/rotation.
20781 //Bit     9 reserved
20782 //Bit     8, dst2_enable. 0: disable dst2 (default); 1=enable dst2.
20783 //Bit  7: 6 reserved
20784 //Bit  5: 4, dst1_x_discard_mode. 00: no discard; 10=discard even x; 11=discard odd x. Note: x is post reverse/rotation.
20785 //Bit  3: 2, dst1_y_discard_mode. 00: no discard; 10=discard even y; 11=discard odd y. Note: y is post reverse/rotation.
20786 //Bit     1 reserved
20787 //Bit     0, dst1_enable. 0: disable dst1; 1=enable dst1 (default).
20788 #define   GE2D_GEN_CTRL3                           (0x00e8)
20789 #define P_GE2D_GEN_CTRL3                           (volatile uint32_t *)((0x00e8  << 2) + 0xff940000)
20790 //Read only
20791 // Bit 13:0 ge2d_dst2_status, for debug only
20792 #define   GE2D_STATUS2                             (0x00e9)
20793 #define P_GE2D_STATUS2                             (volatile uint32_t *)((0x00e9  << 2) + 0xff940000)
20794 //Bit 27:26  src1 Y fifo size control, 00: 512, 01: 256, 10: 128 11: 96
20795 //Bit 25:24  src2 fifo size control, 00: 512, 01: 256, 10: 128 11: 96
20796 //Bit 23:22  dst1 fifo size control, 00: 512, 01: 256, 10: 128 11: 64
20797 //Bit 21:20  dst2 fifo size control, 00: 512, 01: 256, 10: 128 11: 64
20798 //Bit 19:18, dst1 fifo burst control, 00: 24x64, 01: 32x64, 10: 48x64, 11:64x64
20799 //Bit 17:16, dst2 fifo burst control, 00: 24x64, 01: 32x64, 10: 48x64, 11:64x64
20800 //Bit 15:1, top_wrap_ctrl
20801 //bit 0, if true, disable bug fix about the dp_out_done/scale_out_done(test1823) hang issue when scaling down ratio is high.
20802 #define   GE2D_GEN_CTRL4                           (0x00ea)
20803 #define P_GE2D_GEN_CTRL4                           (volatile uint32_t *)((0x00ea  << 2) + 0xff940000)
20804 #define   GE2D_GCLK_CTRL0                          (0x00ef)
20805 #define P_GE2D_GCLK_CTRL0                          (volatile uint32_t *)((0x00ef  << 2) + 0xff940000)
20806 #define   GE2D_GCLK_CTRL1                          (0x00f0)
20807 #define P_GE2D_GCLK_CTRL1                          (volatile uint32_t *)((0x00f0  << 2) + 0xff940000)
20808 #define   GE2D_DST1_BADDR_CTRL                     (0x00f1)
20809 #define P_GE2D_DST1_BADDR_CTRL                     (volatile uint32_t *)((0x00f1  << 2) + 0xff940000)
20810 //Bit 31:0, dst1 base address in 64bits
20811 #define   GE2D_DST1_STRIDE_CTRL                    (0x00f2)
20812 #define P_GE2D_DST1_STRIDE_CTRL                    (volatile uint32_t *)((0x00f2  << 2) + 0xff940000)
20813 //Bit 19:0, dst1 stride size in 64bits
20814 #define   GE2D_SRC1_BADDR_CTRL                     (0x00f3)
20815 #define P_GE2D_SRC1_BADDR_CTRL                     (volatile uint32_t *)((0x00f3  << 2) + 0xff940000)
20816 //Bit 31:0, src1 base address in 64bits
20817 #define   GE2D_SRC1_STRIDE_CTRL                    (0x00f4)
20818 #define P_GE2D_SRC1_STRIDE_CTRL                    (volatile uint32_t *)((0x00f4  << 2) + 0xff940000)
20819 //Bit 19:0, src1 stride size in 64bits
20820 #define   GE2D_SRC2_BADDR_CTRL                     (0x00f5)
20821 #define P_GE2D_SRC2_BADDR_CTRL                     (volatile uint32_t *)((0x00f5  << 2) + 0xff940000)
20822 //Bit 31:0, src2 base address in 64bits
20823 #define   GE2D_SRC2_STRIDE_CTRL                    (0x00f6)
20824 #define P_GE2D_SRC2_STRIDE_CTRL                    (volatile uint32_t *)((0x00f6  << 2) + 0xff940000)
20825 //Bit 19:0, src2 stride size in 64bits
20826 // synopsys translate_off
20827 // synopsys translate_on
20828 //
20829 // Closing file:  ./ge2d_regs.h
20830 //
20831 
20832 //
20833 //
20834 // -------------------merge the mmc register to soc_regster.h--------------------------------------------
20835 //
20836 //
20837 
20838 
20839 #ifdef MMC_REG_DEFINE
20840 #else
20841 #define MMC_REG_DEFINE
20842 
20843 //
20844 // Reading file:  ./mmc_reg.vh
20845 //
20846 //
20847 // Reading file:  ../mmc/dmc/rtl/dmc_reg.vh
20848 //
20849 // -----------------------------------------------
20850 // REG_BASE:  DMC_REG_BASE = 0xff638000
20851 // -----------------------------------------------
20852 #define   DMC_REQ_CTRL                             (0x0000)
20853 #define P_DMC_REQ_CTRL                             (volatile uint32_t *)((0x0000  << 2) + 0xff638000)
20854   //bit 14.  enable dmc request of chan 15. Reserved for GE2D interface. Async interface.
20855   //bit 14.  enable dmc request of chan 14. DOS HCODEC  interface   Sync interface.
20856   //bit 13.  enable dmc request of chan 13. DOS VDEC  interface   Sync interface.
20857   //bit 12.  enable dmc request of chan 12. VPU write interface 1  Sync interface.
20858   //bit 11.  enable dmc request of chan 11. VPU write interface 0  Sync interface.
20859   //bit 10.  enable dmc request of chan 10. VPU read interface 2.   Sync interface.
20860   //bit 9.   enable dmc request of chan 9.  VPU read interface 1.   Sync interface.
20861   //bit 8.   enable dmc request of chan 8.  VPU read interface 0.  Sync interface.
20862   //bit 7.   enable dmc request of chan 7.  DEVICE.    Async interface.
20863   //bit 6.   enable dmc request of chan 6.  not used.
20864   //bit 5.   enable dmc request of chan 5.  not used.
20865   //bit 4.   enable dmc request of chan 4.  HEVC sync interface.
20866   //bit 3.   enable dmc request of chan 3.  HDCP/HDMI  32bits. Async interface.
20867   //bit 2.   enable dmc request of chan 2.  Mali 1   Sync interface.
20868   //bit 1.   enable dmc request of chan 1.  Mali 0.  Sync interface.
20869   //bit 0.   enable dmc request of chan 0.  CPU/A53   Sync interface.
20870 #define   DMC_SOFT_RST                             (0x0001)
20871 #define P_DMC_SOFT_RST                             (volatile uint32_t *)((0x0001  << 2) + 0xff638000)
20872   //bit 31~30.  reserved for future.
20873   //bit 29.  DMC test soft reset_n.  0 : reset. 1 : normal working mode.
20874   //bit 28.  DMC low power control moudle soft reset_n.    0 : reset. 1 : normal working mode.
20875   //bit 27.  DMC QOS monitor module soft reset_n.   0 : reset. 1 : normal working mode.
20876   //bit 26.  DMC register modle soft reset_n.       0 : reset. 1 : normal working mode.
20877   //bit 25.  DMC canvas transfer module soft reset_n.  0 : reset. 1 : normal working mode.
20878   //bit 24.  DMC command buffers and command generation modules soft reset.  0 = reset. 1:
20879   //bit 16.  DDR channel 0 PCTL module n_clk domain soft reset_n. 0 : reset. 1 : normal working mode.
20880   //bit 15:0. 16 input chan inteface  n_clk domain reset control.  if the channel is asynchronous FIFO interface, then both side of the clocks must be turn off before reset this module. If the channel is synchronous interface, you can reset it any time.
20881   //bit 15.  n_clk domain  chan 15 soft reset_n control. 0 : reset. 1: normal working mode.
20882   //bit 14.  n_clk domain  chan 14 soft reset_n control. 0 : reset. 1: normal working mode.
20883   //bit 13.  n_clk domain  chan 13 soft reset_n control. 0 : reset. 1: normal working mode.
20884   //bit 12.  n_clk domain  chan 12 soft reset_n control. 0 : reset. 1: normal working mode.
20885   //bit 11.  n_clk domain  chan 11 soft reset_n control. 0 : reset. 1: normal working mode.
20886   //bit 10.  n_clk domain  chan 10 soft reset_n control. 0 : reset. 1: normal working mode.
20887   //bit  9.  n_clk domain  chan  9 soft reset_n control. 0 : reset. 1: normal working mode.
20888   //bit  8.  n_clk domain  chan  8 soft reset_n control. 0 : reset. 1: normal working mode.
20889   //bit  7.  n_clk domain  chan  7 soft reset_n control. 0 : reset. 1: normal working mode.
20890   //bit  6.  n_clk domain  chan  6 soft reset_n control. 0 : reset. 1: normal working mode.
20891   //bit  5.  n_clk domain  chan  5 soft reset_n control. 0 : reset. 1: normal working mode.
20892   //bit  4.  n_clk domain  chan  4 soft reset_n control. 0 : reset. 1: normal working mode.
20893   //bit  3.  n_clk domain  chan  3 soft reset_n control. 0 : reset. 1: normal working mode.
20894   //bit  2.  n_clk domain  chan  2 soft reset_n control. 0 : reset. 1: normal working mode.
20895   //bit  1.  n_clk domain  chan  1 soft reset_n control. 0 : reset. 1: normal working mode.
20896   //bit  0.  n_clk domain  chan  0 soft reset_n control. 0 : reset. 1: normal working mode.
20897 #define   DMC_SOFT_RST1                            (0x0002)
20898 #define P_DMC_SOFT_RST1                            (volatile uint32_t *)((0x0002  << 2) + 0xff638000)
20899   //bit 31~16 not used.
20900   //bit 15:0.  if the chan interface is asynchronous interface, then the related bit is for the main clock domain reset control. if the interface is synchronouse interface, this bit is not used.
20901   //bit 15:   input chan 15 main clock domain soft reset_n.  0 : reset. 1: normal working mode.
20902   //bit 14:8.  not used in GX. All those channels are synchronous interface.
20903   //bit 7:    input chan 7 main clock domain soft reset_n.
20904   //bit 6:4.  not used in GX. no input connectted.
20905   //bit 3.    input chan 3 main clock domain soft reset_n.
20906   //bit 2:0.  not used in GX. All those channels are synchronous interface.
20907 
20908 #define   DMC_RST_STS1                             (0x0004)
20909 #define P_DMC_RST_STS1                             (volatile uint32_t *)((0x0004  << 2) + 0xff638000)
20910   //31~16.  not used.
20911   //15~0.   Read only.  the DMC_SOFT_RST1 signal in n_clk domain. the purpose of this register is when one of the 2 clocks is too slow or too fast,  we can read this register to make sure another clock domain reset is done.
20912 
20913 #define   DMC_VERSION                              (0x0005)
20914 #define P_DMC_VERSION                              (volatile uint32_t *)((0x0005  << 2) + 0xff638000)
20915    //read only 32'h00010000.  for A113 version 1.0
20916 
20917 #define   DMC_RAM_PD                               (0x0011)
20918 #define P_DMC_RAM_PD                               (volatile uint32_t *)((0x0011  << 2) + 0xff638000)
20919    //5:4.   DDR channel 1 READ/WRITE data path SRAMS in power down control. 2'b11: power down. 2'b00 : working mode.
20920    //3:2.   DDR channel 0 READ/WRITE data path SRAMS in power down control. 2'b11 : power down. 2'b00 : working mode.
20921    //1:0.   CANVAS LUT memories in power down mode control. 2'b11 : power down. 2'b00 : working mode.
20922 
20923 #define   DMC_REFR_CTRL1                           (0x0023)
20924 #define P_DMC_REFR_CTRL1                           (volatile uint32_t *)((0x0023  << 2) + 0xff638000)
20925   //bit 15    DMC ddr1 PVT request enable if bit3 enabled.
20926   //bit 14    DMC ddr0  PVT request enable if bit3 enabled
20927   //bit 13    ddr1 DDR ZQCS comand generation enable.
20928   //bit 12    ddr0 DDR ZQCS command generation enable.
20929   //bit 11    ddr1 refesh enable while PCTL in config state. 1: enable. 0: disable.
20930   //bit 10    ddr0 refesh enable while PCTL in config state. 1: enable. 0: disable.
20931   //bit 7     dmc to control auto_refresh enable
20932   //bit 6:4   refresh number per refresh cycle..
20933   //bit 3     DMC controlled pvt enable 1 : PVT request generated by DMC tPVTI of refresh period. 0 : PVT generated every time refresh command.
20934   //bit 2     DMC controlled DDR ZQCS genreation enable.  1 : ZQCS request generated by DMC tZQCI refresh period.  0 : no DMC controlled ZQCS.
20935   //bit 1      ddr1 auto refresh dmc control select.
20936   //bit 0      ddr0 auto refresh dmc control select.
20937 
20938 #define   DMC_REFR_CTRL2                           (0x0024)
20939 #define P_DMC_REFR_CTRL2                           (volatile uint32_t *)((0x0024  << 2) + 0xff638000)
20940   //bit 31:24   tZQCI
20941   //bit 23:16   tPVTI
20942   //bit 15:8    tREFI
20943   //bit 7:0     t100ns
20944 
20945 
20946 #define   DMC_MON_CTRL1                            (0x0025)
20947 #define P_DMC_MON_CTRL1                            (volatile uint32_t *)((0x0025  << 2) + 0xff638000)
20948    //bit 31:16.  qos monitor 0 channel select.   16 port selection. 1 bit for one port.
20949    //bit 15:0.   port select for the selected channel.
20950 
20951 #define   DMC_MON_CTRL2                            (0x0026)
20952 #define P_DMC_MON_CTRL2                            (volatile uint32_t *)((0x0026  << 2) + 0xff638000)
20953    //bit 31.   qos_mon_en.    write 1 to trigger the enable. polling this bit 0, means finished.  or use interrupt to check finish.
20954    //bit 30.   qos_mon interrupt clear.  clear the qos monitor result.  read 1 = qos mon finish interrupt.
20955    //bit 20.   qos_mon_trig_sel. 0: always use DMC_MON_CTRL3 defined timer.
20956    //bit 3.    qos monitor 3 enable.
20957    //bit 2.    qos monitor 2 enable.
20958    //bit 1.    qos monitor 1 enable.
20959    //bit 0.    qos monitor 0 enable.
20960 #define   DMC_MON_CTRL3                            (0x0027)
20961 #define P_DMC_MON_CTRL3                            (volatile uint32_t *)((0x0027  << 2) + 0xff638000)
20962   // qos_mon_clk_timer.   How long to measure the bandwidth.
20963 
20964 #define   DMC_MON_CTRL4                            (0x0018)
20965 #define P_DMC_MON_CTRL4                            (volatile uint32_t *)((0x0018  << 2) + 0xff638000)
20966    //bit 31:16.  qos monitor 1 channel select.   16 port selection. 1 bit for one port.
20967    //bit 15:0.   port select for the selected channel.
20968 #define   DMC_MON_CTRL5                            (0x0019)
20969 #define P_DMC_MON_CTRL5                            (volatile uint32_t *)((0x0019  << 2) + 0xff638000)
20970    //bit 31:16.  qos monitor 2 channel select.   16 port selection. 1 bit for one port.
20971    //bit 15:0.   port select for the selected channel.
20972 #define   DMC_MON_CTRL6                            (0x001a)
20973 #define P_DMC_MON_CTRL6                            (volatile uint32_t *)((0x001a  << 2) + 0xff638000)
20974    //bit 31:16.  qos monitor 3 channel select.   16 port selection. 1 bit for one port.
20975    //bit 15:0.   port select for the selected channel.
20976 
20977 
20978 #define   DMC_MON_ALL_REQ_CNT                      (0x0028)
20979 #define P_DMC_MON_ALL_REQ_CNT                      (volatile uint32_t *)((0x0028  << 2) + 0xff638000)
20980   // at the test period,  the whole MMC request time.
20981 #define   DMC_MON_ALL_GRANT_CNT                    (0x0029)
20982 #define P_DMC_MON_ALL_GRANT_CNT                    (volatile uint32_t *)((0x0029  << 2) + 0xff638000)
20983   // at the test period,  the whole MMC granted data cycles. 64bits unit.
20984 #define   DMC_MON_ONE_GRANT_CNT                    (0x002a)
20985 #define P_DMC_MON_ONE_GRANT_CNT                    (volatile uint32_t *)((0x002a  << 2) + 0xff638000)
20986   // at the test period,  the granted data cycles for the selected channel and ports.
20987 #define   DMC_MON_SEC_GRANT_CNT                    (0x002b)
20988 #define P_DMC_MON_SEC_GRANT_CNT                    (volatile uint32_t *)((0x002b  << 2) + 0xff638000)
20989   // at the test period,  the granted data cycles for the selected channel and ports.
20990 #define   DMC_MON_THD_GRANT_CNT                    (0x002c)
20991 #define P_DMC_MON_THD_GRANT_CNT                    (volatile uint32_t *)((0x002c  << 2) + 0xff638000)
20992   // at the test period,  the granted data cycles for the selected channel and ports.
20993 #define   DMC_MON_FOR_GRANT_CNT                    (0x002d)
20994 #define P_DMC_MON_FOR_GRANT_CNT                    (volatile uint32_t *)((0x002d  << 2) + 0xff638000)
20995   // at the test period,  the granted data cycles for the selected channel and ports.
20996 
20997 #define   DMC_CLKG_CTRL0                           (0x0030)
20998 #define P_DMC_CLKG_CTRL0                           (volatile uint32_t *)((0x0030  << 2) + 0xff638000)
20999   //bit 29.  enalbe auto clock gating for write rsp generation.
21000   //bit 28.  enalbe auto clock gating for read rsp generation.
21001   //bit 27.  enalbe auto clock gating for ddr1 read back data buffer.
21002   //bit 26.  enalbe auto clock gating for ddr0 read back data buffer.
21003   //bit 25.  enalbe auto clock gating for ddr1 command filter.
21004   //bit 24.  enalbe auto clock gating for ddr0 command filter.
21005   //bit 23.  enalbe auto clock gating for ddr1 write reorder buffer.
21006   //bit 22.  enalbe auto clock gating for ddr0 write reorder buffer.
21007   //bit 21.  enalbe auto clock gating for ddr1 write data buffer.
21008   //bit 20.  enalbe auto clock gating for ddr0 write data buffer.
21009   //bit 19.  enalbe auto clock gating for ddr1 read reorder buffer.
21010   //bit 18.  enalbe auto clock gating for ddr0 read reorder buffer.
21011   //bit 17.  enalbe auto clock gating for read canvas.
21012   //bit 16.  enalbe auto clock gating for write canvas.
21013   //bit 15.  enalbe auto clock gating for chan 15.
21014   //bit 14.  enalbe auto clock gating for chan 14.
21015   //bit 13.  enalbe auto clock gating for chan 13.
21016   //bit 12.  enalbe auto clock gating for chan 12.
21017   //bit 11.  enalbe auto clock gating for chan 11.
21018   //bit 10.  enalbe auto clock gating for chan 10.
21019   //bit 9.   enalbe auto clock gating for chan 9.
21020   //bit 8.   enalbe auto clock gating for chan 8.
21021   //bit 7.   enalbe auto clock gating for chan 7.
21022   //bit 6.   enalbe auto clock gating for chan 6.
21023   //bit 5.   enalbe auto clock gating for chan 5.
21024   //bit 4.   enalbe auto clock gating for chan 4.
21025   //bit 3.   enalbe auto clock gating for chan 3.
21026   //bit 2.   enalbe auto clock gating for chan 2.
21027   //bit 1.   enalbe auto clock gating for chan 1.
21028   //bit 0.   enalbe auto clock gating for chan 0.
21029 #define   DMC_CLKG_CTRL1                           (0x0031)
21030 #define P_DMC_CLKG_CTRL1                           (volatile uint32_t *)((0x0031  << 2) + 0xff638000)
21031   //bit 29.  force to disalbe the clock of write rsp generation.
21032   //bit 28.  force to disalbe the clock of read rsp generation.
21033   //bit 27.  force to disalbe the clock of ddr1 read back data buffer.
21034   //bit 26.  force to disalbe the clock of ddr0 read back data buffer.
21035   //bit 25.  force to disalbe the clock of ddr1 command filter.
21036   //bit 24.  force to disalbe the clock of ddr0 command filter.
21037   //bit 23.  force to disalbe the clock of ddr1 write reorder buffer.
21038   //bit 22.  force to disalbe the clock of ddr0 write reorder buffer.
21039   //bit 21.  force to disalbe the clock of ddr1 write data buffer.
21040   //bit 20.  force to disalbe the clock of ddr0 write data buffer.
21041   //bit 19.  force to disalbe the clock of ddr1 read reorder buffer.
21042   //bit 18.  force to disalbe the clock of ddr0 read reorder buffer.
21043   //bit 17.  force to disalbe the clock of read canvas.
21044   //bit 16.  force to disalbe the clock of write canvas.
21045   //bit 15.  force to disalbe the clock of chan 15.
21046   //bit 14.  force to disalbe the clock of chan 14.
21047   //bit 13.  force to disalbe the clock of chan 13.
21048   //bit 12.  force to disalbe the clock of chan 12.
21049   //bit 11.  force to disalbe the clock of chan 11.
21050   //bit 10.  force to disalbe the clock of chan 10.
21051   //bit 9.   force to disalbe the clock of chan 9.
21052   //bit 8.   force to disalbe the clock of chan 8.
21053   //bit 7.   force to disalbe the clock of chan 7.
21054   //bit 6.   force to disalbe the clock of chan 6.
21055   //bit 5.   force to disalbe the clock of chan 5.
21056   //bit 4.   force to disalbe the clock of chan 4.
21057   //bit 3.   force to disalbe the clock of chan 3.
21058   //bit 2.   force to disalbe the clock of chan 2.
21059   //bit 1.   force to disalbe the clock of chan 1.
21060   //bit 0.   force to disalbe the clock of chan 0.
21061 #define   DMC_N_CLK_CTRL                           (0x0033)
21062 #define P_DMC_N_CLK_CTRL                           (volatile uint32_t *)((0x0033  << 2) + 0xff638000)
21063   //bit 6 maunal control for hdcp n_clk.   1: enable clock. 0 : disable clock.
21064   //bit 5 maunal control for device n_clk  1: enable clock. 0 : disable clock.
21065   //bit 4 maunal control for ge2d n_clk.   1: enable clock. 0 : disable clock.
21066   //bit 3 maunal control for Mali n_clk.   1: enable clock. 0 : disable clock.
21067   //bit 2 maunal control for vpu n_clk.    1: enable clock. 0 : disable clock.
21068   //bit 1 maunal control for dos n_clk.    1: enable clock. 0 : disable clock.
21069   //bit 0.maunal control for cpu n_clk.    1: enable clock. 0 : disable clock.
21070 
21071 #define   DMC_CHAN_STS                             (0x0032)
21072 #define P_DMC_CHAN_STS                             (volatile uint32_t *)((0x0032  << 2) + 0xff638000)
21073   // read only regsiter.
21074   //bit 19      ddr0 write data buffer idle. 1 : idle 0: busy.
21075   //bit 18      ddr0 write data buffer idle. 1 : idle 0: busy.
21076   //bit 17       ddr1 wbuf idle.              1 : idle 0: busy.
21077   //bit 16       ddr0 wbuf idle.              1 : idle 0: busy.
21078   //bit 15:8     ambus channel idle.          1 : idle 0: busy.
21079   //bit 7:0.     axibus channel idle.         1 : idle 0: busy.
21080 
21081 #define   DMC_CMD_FILTER_CTRL1                     (0x0040)
21082 #define P_DMC_CMD_FILTER_CTRL1                     (volatile uint32_t *)((0x0040  << 2) + 0xff638000)
21083    //bit 30.   1 : use DDR4 special filter.
21084    //bit 29:20  nugt read buf full access limit
21085    //bit 19:10.  ugt read access limit.
21086    //bit 9:0  nugt read access limit
21087 
21088 #define   DMC_CMD_FILTER_CTRL2                     (0x0041)
21089 #define P_DMC_CMD_FILTER_CTRL2                     (volatile uint32_t *)((0x0041  << 2) + 0xff638000)
21090    //bit 29:20  ugt read buf full access limit
21091    //bit 9:0  nugt write access pending limit
21092    //bit 19:10.  ugt write access pending limit.
21093 
21094 #define   DMC_CMD_FILTER_CTRL3                     (0x0042)
21095 #define P_DMC_CMD_FILTER_CTRL3                     (volatile uint32_t *)((0x0042  << 2) + 0xff638000)
21096   //bit 31.    force wbuf empty.
21097   //bit 30:26  wbuf high level number
21098   //bit 25:21  wbuf mid  level number
21099   //bit 20:16  wbuf low level number
21100   //bit 14:10  rbuf high level number
21101   //bit 9:5    rbuf middle level number
21102   //bit 4:0    rbuf low level number
21103 
21104 #define   DMC_CMD_FILTER_CTRL4                     (0x0043)
21105 #define P_DMC_CMD_FILTER_CTRL4                     (volatile uint32_t *)((0x0043  << 2) + 0xff638000)
21106   //bit 23:16.  tAP.   auto precharge timer when bank is idle.
21107   //bit 14:10.  tMISS latency. page miss command latency for next same page not hit command.
21108   //bit 9:0.    rbuf idle timer to let the wbuf output.
21109 
21110 #define   DMC_CMD_FILTER_CTRL5                     (0x0044)
21111 #define P_DMC_CMD_FILTER_CTRL5                     (volatile uint32_t *)((0x0044  << 2) + 0xff638000)
21112   //bit 31:24   Once ddr data bus switch to read, the maxmum read command number to give up the bus when there's write request pending for write buffer.
21113   //bit 23:16   Once ddr data bus switch to write, the maxmum write command number to give up the bus when there's read request pending too long.
21114   //bit 15:8.   Once ddr data bus switch to read, the minimum read command number to transfer back to write stage if there's still pending read request.
21115   //bit 7:0.    Once ddr data bus switch to write, the minimum write command number to transfer back to read stage if there's still pending write request.
21116 
21117 
21118 #define   DMC_CMD_BUFFER_CTRL                      (0x0045)
21119 #define P_DMC_CMD_BUFFER_CTRL                      (volatile uint32_t *)((0x0045  << 2) + 0xff638000)
21120   //bit 31:26  total write buffer number. default 32.
21121   //bit 25:20  total read buffer number. default 32.
21122   //bit 19:8    reserved.
21123   //bit 7:0    aw_pending_inc_num.  incease write ugent level 1 when write command waiting to in write buffer that long.
21124 
21125 #define   DMC_CMD_BUFFER_CTRL1                     (0x0035)
21126 #define P_DMC_CMD_BUFFER_CTRL1                     (volatile uint32_t *)((0x0035  << 2) + 0xff638000)
21127   //bit 29:24  read buffer number in non-urgent request.
21128   //bit 23:16  read buffer bank miss watch dog threshold.
21129   //bit 15:12  read buffer urgent level 3 counter inc weight.
21130   //bit 11:8   read buffer urgent level 2 counter inc weight.
21131   //bit 7:4    read buffer urgent level 1 counter inc weight.
21132   //bit 3:0    read buffer urgent level 0 counter inc weight.
21133 
21134 #define   DMC_CMD_FILTER_CTRL6                     (0x0036)
21135 #define P_DMC_CMD_FILTER_CTRL6                     (volatile uint32_t *)((0x0036  << 2) + 0xff638000)
21136   //bit 31:24   write urgent 3 request pending hold num.
21137   //bit 23:16   write urgent 2 request pending hold num.
21138   //bit 15:8.   write urgent 1 request pending hold num.
21139   //bit 7:0.    write urgent 0 request pending hold num.
21140 
21141 #define   DMC_PCTL_LP_CTRL                         (0x0046)
21142 #define P_DMC_PCTL_LP_CTRL                         (volatile uint32_t *)((0x0046  << 2) + 0xff638000)
21143   //bit 15   1: enable dmc to send dfi_lp_data_req_en to DDR PHY. 0 : disable this feature.
21144   //bit 13   force disable pctl cmu module clock. 1 : force disable. 0 : not forced.
21145   //bit 12   force disable pctl reg module clock. 1 : force disable. 0 : not forced.
21146   //bit 11   force disable pctl dcu module clock. 1 : force disable. 0 : not forced.
21147   //bit 10   force disable pctl dpu module clock. 1 : force disable. 0 : not forced.
21148   //bit 9   force disable pctl sel module clock. 1 : force disable. 0 : not forced.
21149   //bit 8   force disable pctl upd module clock. 1 : force disable. 0 : not forced.
21150   //bit 5   force enable pctl cmu module clock. 1 : enable. 0 : use auto logic to control if not force to disable.
21151   //bit 4   force enable pctl reg module clock. 1 : enable. 0 : use auto logic to control if not force to disable.
21152   //bit 3   force enable pctl dcu module clock. 1 : enable. 0 : use auto logic to control if not force to disable.
21153   //bit 2   force enable pctl dpu module clock. 1 : enable. 0 : use auto logic to control if not force to disable
21154   //bit 1   force enable pctl sel module clock. 1 : enable. 0 : use auto logic to control if not force to disable.
21155   //bit 0   force enable pctl upd module clock. 1 : enable. 0 : use auto logic to control if not force to disable.
21156 
21157 #define   DMC_RDDBUF_CTRL                          (0x0047)
21158 #define P_DMC_RDDBUF_CTRL                          (volatile uint32_t *)((0x0047  << 2) + 0xff638000)
21159   //bit 9:5   read data BUFFER empty limit with no data output.
21160   //bit 4:0   read data BUFFER empty limit with data outputing.
21161 
21162 #define   DMC_ARB_CTRL                             (0x0050)
21163 #define P_DMC_ARB_CTRL                             (volatile uint32_t *)((0x0050  << 2) + 0xff638000)
21164 
21165 #define   DMC_AXI0_CHAN_CTRL                       (0x00b0)
21166 #define P_DMC_AXI0_CHAN_CTRL                       (volatile uint32_t *)((0x00b0  << 2) + 0xff638000)
21167   //bit 31       enable to incr 2 urgent levels if the pending cycles is doubled.
21168   //bit 29:20.   write request pending cycle number  to inc urgent level if not granted.
21169   //bit 19.      axi0 default urgent control : 1 use AWUGT/ARUGT pins in the port. 0 : use bit[15:14] of this register..
21170   //bit 18.      force this channel all request to be super urgent request.
21171   //bit 17.      force this channel all request to be urgent request.
21172   //bit 16.      force this channel all request to be non urgent request.
21173   //bit 15:14    axi0 default urgent level.
21174   //bit 13:4.    read request pending cycle number  to inc urgent level if not granted.
21175   //bit 3:0      arbiter weight
21176 #define   DMC_AXI0_HOLD_CTRL                       (0x00b1)
21177 #define P_DMC_AXI0_HOLD_CTRL                       (volatile uint32_t *)((0x00b1  << 2) + 0xff638000)
21178     //31:24 write hold num.   max outstanding request number.
21179     //23:16  write hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21180     //15:8 read hold num.   max outstanding request number.
21181     //7:0  read hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21182 #define   DMC_AXI0_CHAN_CTRL1                      (0x00b9)
21183 #define P_DMC_AXI0_CHAN_CTRL1                      (volatile uint32_t *)((0x00b9  << 2) + 0xff638000)
21184   //bit 19:16.  FIQ status
21185   //bit 15:12.  IRQ status.
21186   //bit 11  ARM  FIQ controlled super urgent enable.
21187   //bit 10  ARM  FIQ controlled urgent enable.
21188   //bit  9. ARM IRQ controlled super urgent enable.
21189   //bit  8. ARM IRQ controlled urgent enable.
21190   //bit  7.  IRQ/FIQ controll enable.
21191   //bit  6:5.  not used.
21192   //bit 4. enable AXI0 auto urgent enable. When there's no other request, treat the AXI0 as super urgent request. other wise, use the bit3:0 to set the urgent.
21193   //bit 3:2 A9 urgent if there's VIU request.
21194   //bit 1:0 A9 urgent if there's request other than VIU
21195 
21196 
21197 #define   DMC_AXI1_CHAN_CTRL                       (0x00ba)
21198 #define P_DMC_AXI1_CHAN_CTRL                       (volatile uint32_t *)((0x00ba  << 2) + 0xff638000)
21199   //bit 31       enable to incr 2 urgent levels if the pending cycles is doubled.
21200   //bit 30.   Not used.
21201   //bit 29:20.   write request pending cycle number  to inc urgent level if not granted.
21202   //bit 19.      axi0 default urgent control : 1 use AWUGT/ARUGT pins in the port. 0 : use bit[15:14] of this register..
21203   //bit 18.      force this channel all request to be super urgent request.
21204   //bit 17.      force this channel all request to be urgent request.
21205   //bit 16.      force this channel all request to be non urgent request.
21206   //bit 15:14    axi1 default urgent level.
21207   //bit 13:4.    read request pending cycle number  to inc urgent level if not granted.
21208   //bit 3:0      canvas arbiter arbiter weight
21209 #define   DMC_AXI1_HOLD_CTRL                       (0x00bb)
21210 #define P_DMC_AXI1_HOLD_CTRL                       (volatile uint32_t *)((0x00bb  << 2) + 0xff638000)
21211     //31:24 write hold num.   max outstanding request number.
21212     //23:16  write hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21213     //15:8 read hold num.   max outstanding request number.
21214     //7:0  read hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21215 
21216 #define   DMC_AXI2_CHAN_CTRL                       (0x00c4)
21217 #define P_DMC_AXI2_CHAN_CTRL                       (volatile uint32_t *)((0x00c4  << 2) + 0xff638000)
21218   //bit 31       enable to incr 2 urgent levels if the pending cycles is doubled.
21219   //bit 30.   Not used.
21220   //bit 29:20.   write request pending cycle number  to inc urgent level if not granted.
21221   //bit 19.      axi0 default urgent control : 1 use AWUGT/ARUGT pins in the port. 0 : use bit[15:14] of this register..
21222   //bit 18.      force this channel all request to be super urgent request.
21223   //bit 17.      force this channel all request to be urgent request.
21224   //bit 16.      force this channel all request to be non urgent request.
21225   //bit 15:14    axi1 default urgent level.
21226   //bit 13:4.    read request pending cycle number  to inc urgent level if not granted.
21227   //bit 3:0      canvas arbiter arbiter weight
21228 #define   DMC_AXI2_HOLD_CTRL                       (0x00c5)
21229 #define P_DMC_AXI2_HOLD_CTRL                       (volatile uint32_t *)((0x00c5  << 2) + 0xff638000)
21230     //31:24 write hold num.   max outstanding request number.
21231     //23:16  write hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21232     //15:8 read hold num.   max outstanding request number.
21233     //7:0  read hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21234 
21235 #define   DMC_AXI3_CHAN_CTRL                       (0x00ce)
21236 #define P_DMC_AXI3_CHAN_CTRL                       (volatile uint32_t *)((0x00ce  << 2) + 0xff638000)
21237   //bit 31       enable to incr 2 urgent levels if the pending cycles is doubled.
21238   //bit 30.   Not used.
21239   //bit 29:20.   write request pending cycle number  to inc urgent level if not granted.
21240   //bit 19.      axi0 default urgent control : 1 use AWUGT/ARUGT pins in the port. 0 : use bit[15:14] of this register..
21241   //bit 18.      force this channel all request to be super urgent request.
21242   //bit 17.      force this channel all request to be urgent request.
21243   //bit 16.      force this channel all request to be non urgent request.
21244   //bit 15:14    axi1 default urgent level.
21245   //bit 13:4.    read request pending cycle number  to inc urgent level if not granted.
21246   //bit 3:0      canvas arbiter arbiter weight
21247 #define   DMC_AXI3_HOLD_CTRL                       (0x00cf)
21248 #define P_DMC_AXI3_HOLD_CTRL                       (volatile uint32_t *)((0x00cf  << 2) + 0xff638000)
21249     //31:24 write hold num.   max outstanding request number.
21250     //23:16  write hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21251     //15:8 read hold num.   max outstanding request number.
21252     //7:0  read hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21253 
21254 #define   DMC_AXI4_CHAN_CTRL                       (0x00d8)
21255 #define P_DMC_AXI4_CHAN_CTRL                       (volatile uint32_t *)((0x00d8  << 2) + 0xff638000)
21256   //bit 31       enable to incr 2 urgent levels if the pending cycles is doubled.
21257   //bit 30.   Not used.
21258   //bit 29:20.   write request pending cycle number  to inc urgent level if not granted.
21259   //bit 19.      axi0 default urgent control : 1 use AWUGT/ARUGT pins in the port. 0 : use bit[15:14] of this register..
21260   //bit 18.      force this channel all request to be super urgent request.
21261   //bit 17.      force this channel all request to be urgent request.
21262   //bit 16.      force this channel all request to be non urgent request.
21263   //bit 15:14    axi1 default urgent level.
21264   //bit 13:4.    read request pending cycle number  to inc urgent level if not granted.
21265   //bit 3:0      canvas arbiter arbiter weight
21266 #define   DMC_AXI4_HOLD_CTRL                       (0x00d9)
21267 #define P_DMC_AXI4_HOLD_CTRL                       (volatile uint32_t *)((0x00d9  << 2) + 0xff638000)
21268     //31:24 write hold num.   max outstanding request number.
21269     //23:16  write hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21270     //15:8 read hold num.   max outstanding request number.
21271     //7:0  read hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21272 
21273 
21274 #define   DMC_AXI5_CHAN_CTRL                       (0x00e2)
21275 #define P_DMC_AXI5_CHAN_CTRL                       (volatile uint32_t *)((0x00e2  << 2) + 0xff638000)
21276   //bit 31       enable to incr 2 urgent levels if the pending cycles is doubled.
21277   //bit 30.   Not used.
21278   //bit 29:20.   write request pending cycle number  to inc urgent level if not granted.
21279   //bit 19.      axi0 default urgent control : 1 use AWUGT/ARUGT pins in the port. 0 : use bit[15:14] of this register..
21280   //bit 18.      force this channel all request to be super urgent request.
21281   //bit 17.      force this channel all request to be urgent request.
21282   //bit 16.      force this channel all request to be non urgent request.
21283   //bit 15:14    axi1 default urgent level.
21284   //bit 13:4.    read request pending cycle number  to inc urgent level if not granted.
21285   //bit 3:0      canvas arbiter arbiter weight
21286 #define   DMC_AXI5_HOLD_CTRL                       (0x00e3)
21287 #define P_DMC_AXI5_HOLD_CTRL                       (volatile uint32_t *)((0x00e3  << 2) + 0xff638000)
21288     //31:24 write hold num.   max outstanding request number.
21289     //23:16  write hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21290     //15:8 read hold num.   max outstanding request number.
21291     //7:0  read hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21292 
21293 
21294 #define   DMC_AXI6_CHAN_CTRL                       (0x00ec)
21295 #define P_DMC_AXI6_CHAN_CTRL                       (volatile uint32_t *)((0x00ec  << 2) + 0xff638000)
21296   //bit 31       enable to incr 2 urgent levels if the pending cycles is doubled.
21297   //bit 30.   Not used.
21298   //bit 29:20.   write request pending cycle number  to inc urgent level if not granted.
21299   //bit 19.      axi0 default urgent control : 1 use AWUGT/ARUGT pins in the port. 0 : use bit[15:14] of this register..
21300   //bit 18.      force this channel all request to be super urgent request.
21301   //bit 17.      force this channel all request to be urgent request.
21302   //bit 16.      force this channel all request to be non urgent request.
21303   //bit 15:14    axi1 default urgent level.
21304   //bit 13:4.    read request pending cycle number  to inc urgent level if not granted.
21305   //bit 3:0      canvas arbiter arbiter weight
21306 #define   DMC_AXI6_HOLD_CTRL                       (0x00ed)
21307 #define P_DMC_AXI6_HOLD_CTRL                       (volatile uint32_t *)((0x00ed  << 2) + 0xff638000)
21308     //31:24 write hold num.   max outstanding request number.
21309     //23:16  write hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21310     //15:8 read hold num.   max outstanding request number.
21311     //7:0  read hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21312 
21313 #define   DMC_AXI7_CHAN_CTRL                       (0x00f6)
21314 #define P_DMC_AXI7_CHAN_CTRL                       (volatile uint32_t *)((0x00f6  << 2) + 0xff638000)
21315   //bit 31       enable to incr 2 urgent levels if the pending cycles is doubled.
21316   //bit 30.   Not used.
21317   //bit 29:20.   write request pending cycle number  to inc urgent level if not granted.
21318   //bit 19.      axi0 default urgent control : 1 use AWUGT/ARUGT pins in the port. 0 : use bit[15:14] of this register..
21319   //bit 18.      force this channel all request to be super urgent request.
21320   //bit 17.      force this channel all request to be urgent request.
21321   //bit 16.      force this channel all request to be non urgent request.
21322   //bit 15:14    axi1 default urgent level.
21323   //bit 13:4.    read request pending cycle number  to inc urgent level if not granted.
21324   //bit 3:0      canvas arbiter arbiter weight
21325 #define   DMC_AXI7_HOLD_CTRL                       (0x00f7)
21326 #define P_DMC_AXI7_HOLD_CTRL                       (volatile uint32_t *)((0x00f7  << 2) + 0xff638000)
21327     //31:24 write hold num.   max outstanding request number.
21328     //23:16  write hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21329     //15:8 read hold num.   max outstanding request number.
21330     //7:0  read hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21331 
21332 #define   DMC_AXI8_CHAN_CTRL                       (0x00f8)
21333 #define P_DMC_AXI8_CHAN_CTRL                       (volatile uint32_t *)((0x00f8  << 2) + 0xff638000)
21334   //bit 31       enable to incr 2 urgent levels if the pending cycles is doubled.
21335   //bit 30.   Not used.
21336   //bit 29:20.   write request pending cycle number  to inc urgent level if not granted.
21337   //bit 19.      axi0 default urgent control : 1 use AWUGT/ARUGT pins in the port. 0 : use bit[15:14] of this register..
21338   //bit 18.      force this channel all request to be super urgent request.
21339   //bit 17.      force this channel all request to be urgent request.
21340   //bit 16.      force this channel all request to be non urgent request.
21341   //bit 15:14    axi1 default urgent level.
21342   //bit 13:4.    read request pending cycle number  to inc urgent level if not granted.
21343   //bit 3:0      canvas arbiter arbiter weight
21344 #define   DMC_AXI8_HOLD_CTRL                       (0x00f9)
21345 #define P_DMC_AXI8_HOLD_CTRL                       (volatile uint32_t *)((0x00f9  << 2) + 0xff638000)
21346     //31:24 write hold num.   max outstanding request number.
21347     //23:16  write hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21348     //15:8 read hold num.   max outstanding request number.
21349     //7:0  read hold release num. if the outstanding request == hold num, then hold this request unless the outstanding request number bellow the hold release number, then continue to request.
21350 
21351 #define   DMC_AXI8_CHAN_CTRL1                      (0x00fa)
21352 #define P_DMC_AXI8_CHAN_CTRL1                      (volatile uint32_t *)((0x00fa  << 2) + 0xff638000)
21353   //bit 1  enable increment side band urgent control.
21354   //bit 0  enable decrement side band urgent control.
21355 
21356 //
21357 // Closing file:  ../mmc/dmc/rtl/dmc_reg.vh
21358 //
21359 //
21360 // Reading file:  ../mmc/dmc/rtl/dmc_sec.vh
21361 //
21362 // -----------------------------------------------
21363 // REG_BASE:  DMC_SEC_REG_BASE = 0xff638800
21364 // -----------------------------------------------
21365 #define   DMC_SEC_CTRL                             (0x0000)
21366 #define P_DMC_SEC_CTRL                             (volatile uint32_t *)((0x0000  << 2) + 0xff638800)
21367   //bit 31.  write 1 to update the security range register to be used.
21368   //security range defination have to be atom option.  all the range controll register  will be shadowed.
21369 
21370 
21371 
21372 //DMC use 14bits ID to identify the input ports and ID.
21373 // bit 13:10.
21374 // 0 : ARM.
21375 // 1 : pcie0
21376 // 2 : pcie 1.
21377 // 3 : GPU.
21378 // 4 : AUDIO.
21379 // 5 : TEST.
21380 // 6 : USB
21381 // 7:  Device.
21382 // 8:  VPU
21383 
21384 
21385 #define   DMC_SEC_RANGE0_CTRL                      (0x0001)
21386 #define P_DMC_SEC_RANGE0_CTRL                      (volatile uint32_t *)((0x0001  << 2) + 0xff638800)
21387   //bit 31:16   :   range 0 end address  higher 16bits.
21388   //bit 15:0    :   range 0 start address higher 16bits.
21389 #define   DMC_SEC_RANGE1_CTRL                      (0x0002)
21390 #define P_DMC_SEC_RANGE1_CTRL                      (volatile uint32_t *)((0x0002  << 2) + 0xff638800)
21391   //bit 31:16   :   range 1 end address  higher 16bits.
21392   //bit 15:0    :   range 1 start address higher 16bits.
21393 #define   DMC_SEC_RANGE2_CTRL                      (0x0003)
21394 #define P_DMC_SEC_RANGE2_CTRL                      (volatile uint32_t *)((0x0003  << 2) + 0xff638800)
21395   //bit 31:16   :   range 2 end address  higher 16bits.
21396   //bit 15:0    :   range 2 start address higher 16bits.
21397 #define   DMC_SEC_RANGE3_CTRL                      (0x0004)
21398 #define P_DMC_SEC_RANGE3_CTRL                      (volatile uint32_t *)((0x0004  << 2) + 0xff638800)
21399   //bit 31:16   :   range 3 end address  higher 16bits.
21400   //bit 15:0    :   range 3 start address higher 16bits.
21401 #define   DMC_SEC_RANGE4_CTRL                      (0x0005)
21402 #define P_DMC_SEC_RANGE4_CTRL                      (volatile uint32_t *)((0x0005  << 2) + 0xff638800)
21403   //bit 31:16   :   range 4 end address  higher 16bits.
21404   //bit 15:0    :   range 4 start address higher 16bits.
21405 #define   DMC_SEC_RANGE5_CTRL                      (0x0006)
21406 #define P_DMC_SEC_RANGE5_CTRL                      (volatile uint32_t *)((0x0006  << 2) + 0xff638800)
21407   //bit 31:16   :   range 5 end address  higher 16bits.
21408   //bit 15:0    :   range 5 start address higher 16bits.
21409 #define   DMC_SEC_RANGE_CTRL                       (0x0007)
21410 #define P_DMC_SEC_RANGE_CTRL                       (volatile uint32_t *)((0x0007  << 2) + 0xff638800)
21411   //bit 31:7   :  not used
21412   //bit 6 :  default range security level.     1 : secure region. 0 : non secure region.
21413   //bit 5 :  range 5 security level. 1 : secure region. 0 : non secure region.
21414   //bit 4 :  range 4 security level. 1 : secure region. 0 : non secure region.
21415   //bit 3 :  range 3 security level. 1 : secure region. 0 : non secure region.
21416   //bit 2 :  range 2 security level. 1 : secure region. 0 : non secure region.
21417   //bit 1 :  range 1 security level. 1 : secure region. 0 : non secure region.
21418   //bit 0 :  range 0 security level. 1 : secure region. 0 : non secure region.
21419 
21420 #define   DMC_SEC_AXI_READ_CTRL                    (0x000e)
21421 #define P_DMC_SEC_AXI_READ_CTRL                    (volatile uint32_t *)((0x000e  << 2) + 0xff638800)
21422   //bit 31~30.   not used.
21423   //bit 17. AXI port8 (VIDEO )  secure region read access enable bit. 1: enable. 0 : disable.
21424   //bit 16. AXI port8 (VIDEO )  non secure region read access enable bit.  1: enable.  0 : disable.
21425   //bit 15.  not used.
21426   //bit 14.  not used.
21427   //bit 13. AXI port6 (USB )  secure region read access enable bit. 1: enable. 0 : disable.
21428   //bit 12. AXI port6 (USB )  non secure region read access enable bit.  1: enable.  0 : disable.
21429   //bit 11. AXI port5 (TEST/SHA )  secure region read access enable bit. 1: enable. 0 : disable.
21430   //bit 10. AXI port5 (TEST/SHA )  non secure region read access enable bit.  1: enable.  0 : disable.
21431   //bit 9. NOT USED.
21432   //bit 8.  NOT USED.
21433   //bit 7. AXI port3 (GPU )  secure region read access enable bit. 1: enable. 0 : disable.
21434   //bit 6. AXI port3 (GPU )  non secure region read access enable bit.  1: enable.  0 : disable.
21435   //bit 5. AXI port2 (PCIE1) secure region read access enable bit. 1: enable. 0 : disable.
21436   //bit 4. AXI port2 (PCIE1) non secure region read access enable bit.  1: enable.  0 : disable.
21437   //bit 3. AXI port1 (PCIE0) secure region read access enable bit. 1: enable. 0 : disable.
21438   //bit 2. AXI port1 (PCIE0) non secure region read access enable bit.  1: enable.  0 : disable.
21439   //bit 1. AXI port0 (CPU)    secure region read access enable bit. 1: enable. 0 : disable.
21440   //bit 0. AXI port0 (CPU)    non secure region read access enable bit.  1: enable.  0 : disable.
21441 
21442 #define   DMC_SEC_AXI_WRITE_CTRL                   (0x000f)
21443 #define P_DMC_SEC_AXI_WRITE_CTRL                   (volatile uint32_t *)((0x000f  << 2) + 0xff638800)
21444   //bit 31~30.   not used.
21445   //bit 17. AXI port8 (VIDEO )  secure region read access enable bit. 1: enable. 0 : disable.
21446   //bit 16. AXI port8 (VIDEO )  non secure region read access enable bit.  1: enable.  0 : disable.
21447   //bit 15.  not used.
21448   //bit 14.  not used.
21449   //bit 13. AXI port6 (USB )  secure region read access enable bit. 1: enable. 0 : disable.
21450   //bit 12. AXI port6 (USB )  non secure region read access enable bit.  1: enable.  0 : disable.
21451   //bit 11. AXI port5 (TEST/SHA )  secure region read access enable bit. 1: enable. 0 : disable.
21452   //bit 10. AXI port5 (TEST/SHA )  non secure region read access enable bit.  1: enable.  0 : disable.
21453   //bit 9. NOT USED.
21454   //bit 8.  NOT USED.
21455   //bit 7. AXI port3 (GPU )  secure region read access enable bit. 1: enable. 0 : disable.
21456   //bit 6. AXI port3 (GPU )  non secure region read access enable bit.  1: enable.  0 : disable.
21457   //bit 5. AXI port2 (PCIE1) secure region read access enable bit. 1: enable. 0 : disable.
21458   //bit 4. AXI port2 (PCIE1) non secure region read access enable bit.  1: enable.  0 : disable.
21459   //bit 3. AXI port1 (PCIE0) secure region read access enable bit. 1: enable. 0 : disable.
21460   //bit 2. AXI port1 (PCIE0) non secure region read access enable bit.  1: enable.  0 : disable.
21461   //bit 1. AXI port0 (CPU)    secure region read access enable bit. 1: enable. 0 : disable.
21462   //bit 0. AXI port0 (CPU)    non secure region read access enable bit.  1: enable.  0 : disable.
21463 
21464 
21465 #define   DMC_DEV_SEC_READ_CTRL                    (0x0036)
21466 #define P_DMC_DEV_SEC_READ_CTRL                    (volatile uint32_t *)((0x0036  << 2) + 0xff638800)
21467   //16 device subID read access security control bits.  each subID 2 bits.
21468 #define   DMC_DEV_SEC_WRITE_CTRL                   (0x0037)
21469 #define P_DMC_DEV_SEC_WRITE_CTRL                   (volatile uint32_t *)((0x0037  << 2) + 0xff638800)
21470   //16 device subID write access security control bits.  each subID 2 bits.
21471 
21472 
21473 #define   DMC_BLKMV_SEC_CTRL                       (0x0038)
21474 #define P_DMC_BLKMV_SEC_CTRL                       (volatile uint32_t *)((0x0038  << 2) + 0xff638800)
21475   // BLKMV ID bit 3:1 for BLKMV Threads.
21476   //31:16.  8 blkmv threads(6 in real blkmv RTL) write  secruity ctrl.
21477   //31.     1: thread 7 write enable for security range. 0 : not allowed to write to security range.
21478   //30.     1: thread 7 write enable for non_sec range.  0:  not allowed to write to non-sec range.
21479   //29.     1: thread 6 write enable for security range. 0 : not allowed to write to security range.
21480   //28.     1: thread 6 write enable for non_sec range.  0:  not allowed to write to non-sec range.
21481   // ....
21482   //15:0.   8 blkmv threads read security ctrl..
21483   //15.     1: thread 7 read enable for security range. 0 : not allowed to read from security range.
21484   //14.     1: thread 7 read enable for non_sec range.  0:  not allowed to read from non-sec range.
21485   //13.     1: thread 6 read enable for security range. 0 : not allowed to read from security range.
21486   //12.     1: thread 6 read enable for non_sec range.  0:  not allowed to read from non-sec range.
21487   //.....
21488 
21489 #define   DMC_M3_SEC_CTRL                          (0x0039)
21490 #define P_DMC_M3_SEC_CTRL                          (volatile uint32_t *)((0x0039  << 2) + 0xff638800)
21491   // Privilege  AO_CPU ID bit 0
21492   //7.   M3 privilege security memory write enable.
21493   //6.   M3 privilege non-sec memory write enable.
21494   //5.   M3 normal mode security memory write enable.
21495   //4.   M3 normal mode  no_secl memory write enable.
21496   //3.   M3 privilege security memory read enable.
21497   //2.   M3 privilege non-sec memory read enable.
21498   //1.   M3 normal mode security memory read enable.
21499   //0.   M3 normal mode  no_secl memory read enable.
21500 
21501 #define   DMC_AUD_SEC_READ_CTRL                    (0x003a)
21502 #define P_DMC_AUD_SEC_READ_CTRL                    (volatile uint32_t *)((0x003a  << 2) + 0xff638800)
21503   //16 AUDIO subID read access security control bits.  each subID 2 bits.
21504 #define   DMC_AUD_SEC_WRITE_CTRL                   (0x003b)
21505 #define P_DMC_AUD_SEC_WRITE_CTRL                   (volatile uint32_t *)((0x003b  << 2) + 0xff638800)
21506   //16 AUDIO subID write access security control bits.  each subID 2 bits.
21507 
21508 
21509 
21510 //per range per sub ID access enable.
21511 #define   DMC_SEC_RANGE0_RID_CTRL0                 (0x0040)
21512 #define P_DMC_SEC_RANGE0_RID_CTRL0                 (volatile uint32_t *)((0x0040  << 2) + 0xff638800)
21513    //31:18 not used.
21514    //17:    M3 previlige read enable.
21515    //16:    M3 normal read enable.
21516    //15:8:   BLKMV 8 threads.
21517    //7. AXI PORT 8
21518    //6. AXI PORT 6
21519    //5. AXI port 5
21520    //4. AXI port 3.
21521    //3  AXI port 2.
21522    //2  AXI port 1.
21523    //1  ARM secure access.
21524    //0  ARM non-secure access.
21525 #define   DMC_SEC_RANGE0_RID_CTRL1                 (0x0041)
21526 #define P_DMC_SEC_RANGE0_RID_CTRL1                 (volatile uint32_t *)((0x0041  << 2) + 0xff638800)
21527   // 31:16.  for 16 DEVICE read subids.
21528   // 15:0    for 16 AUDIO subids read access.
21529 
21530 
21531 #define   DMC_SEC_RANGE1_RID_CTRL0                 (0x0043)
21532 #define P_DMC_SEC_RANGE1_RID_CTRL0                 (volatile uint32_t *)((0x0043  << 2) + 0xff638800)
21533    //31:18 not used.
21534    //17:    M3 previlige read enable.
21535    //16:    M3 normal read enable.
21536    //15:8:   BLKMV 8 threads.
21537    //7. AXI PORT 8
21538    //6. AXI PORT 6
21539    //5. AXI port 5
21540    //4. AXI port 3.
21541    //3  AXI port 2.
21542    //2  AXI port 1.
21543    //1  ARM secure access.
21544    //0  ARM non-secure access.
21545 #define   DMC_SEC_RANGE1_RID_CTRL1                 (0x0044)
21546 #define P_DMC_SEC_RANGE1_RID_CTRL1                 (volatile uint32_t *)((0x0044  << 2) + 0xff638800)
21547   // 31:16.  for 16 Device read subids.
21548   // 15:0    for 16 Audio subids read access.
21549 
21550 #define   DMC_SEC_RANGE2_RID_CTRL0                 (0x0046)
21551 #define P_DMC_SEC_RANGE2_RID_CTRL0                 (volatile uint32_t *)((0x0046  << 2) + 0xff638800)
21552   //same as range0 read define.
21553 #define   DMC_SEC_RANGE2_RID_CTRL1                 (0x0047)
21554 #define P_DMC_SEC_RANGE2_RID_CTRL1                 (volatile uint32_t *)((0x0047  << 2) + 0xff638800)
21555   //same as range0 read define.
21556 #define   DMC_SEC_RANGE3_RID_CTRL0                 (0x0049)
21557 #define P_DMC_SEC_RANGE3_RID_CTRL0                 (volatile uint32_t *)((0x0049  << 2) + 0xff638800)
21558   //same as range0 read define.
21559 #define   DMC_SEC_RANGE3_RID_CTRL1                 (0x004a)
21560 #define P_DMC_SEC_RANGE3_RID_CTRL1                 (volatile uint32_t *)((0x004a  << 2) + 0xff638800)
21561   //same as range0 read define.
21562 #define   DMC_SEC_RANGE4_RID_CTRL0                 (0x004c)
21563 #define P_DMC_SEC_RANGE4_RID_CTRL0                 (volatile uint32_t *)((0x004c  << 2) + 0xff638800)
21564   //same as range0 read define.
21565 #define   DMC_SEC_RANGE4_RID_CTRL1                 (0x004d)
21566 #define P_DMC_SEC_RANGE4_RID_CTRL1                 (volatile uint32_t *)((0x004d  << 2) + 0xff638800)
21567   //same as range0 read define.
21568 #define   DMC_SEC_RANGE5_RID_CTRL0                 (0x004f)
21569 #define P_DMC_SEC_RANGE5_RID_CTRL0                 (volatile uint32_t *)((0x004f  << 2) + 0xff638800)
21570   //same as range0 read define.
21571 #define   DMC_SEC_RANGE5_RID_CTRL1                 (0x0050)
21572 #define P_DMC_SEC_RANGE5_RID_CTRL1                 (volatile uint32_t *)((0x0050  << 2) + 0xff638800)
21573   //same as range0 read define.
21574 #define   DMC_SEC_RANGE6_RID_CTRL0                 (0x0052)
21575 #define P_DMC_SEC_RANGE6_RID_CTRL0                 (volatile uint32_t *)((0x0052  << 2) + 0xff638800)
21576   //same as range0 read define.
21577 #define   DMC_SEC_RANGE6_RID_CTRL1                 (0x0053)
21578 #define P_DMC_SEC_RANGE6_RID_CTRL1                 (volatile uint32_t *)((0x0053  << 2) + 0xff638800)
21579   //same as range0 read define.
21580 
21581 #define   DMC_SEC_RANGE0_WID_CTRL0                 (0x0060)
21582 #define P_DMC_SEC_RANGE0_WID_CTRL0                 (volatile uint32_t *)((0x0060  << 2) + 0xff638800)
21583    //31:18 not used.
21584    //17:    M3 previlige write enable.
21585    //16:    M3 normal write enable.
21586    //15:8:   BLKMV 8 threads.
21587    //7.    AXI port 8
21588    //6.    AXI port 6
21589    //5.    AXI port 5.
21590    //4.     AXI port 3.
21591    //3      AXI port 2.
21592    //2      AXI port 1.
21593    //1      ARM secure access.
21594    //0      ARM non-secure access.
21595 #define   DMC_SEC_RANGE0_WID_CTRL1                 (0x0061)
21596 #define P_DMC_SEC_RANGE0_WID_CTRL1                 (volatile uint32_t *)((0x0061  << 2) + 0xff638800)
21597   // 31:16.  for 16 device write subids.
21598   // 15:0    for 16 AUDIO subids write access.
21599 
21600 #define   DMC_SEC_RANGE1_WID_CTRL0                 (0x0063)
21601 #define P_DMC_SEC_RANGE1_WID_CTRL0                 (volatile uint32_t *)((0x0063  << 2) + 0xff638800)
21602   //same as range0 write define.
21603 #define   DMC_SEC_RANGE1_WID_CTRL1                 (0x0064)
21604 #define P_DMC_SEC_RANGE1_WID_CTRL1                 (volatile uint32_t *)((0x0064  << 2) + 0xff638800)
21605   //same as range0 write define.
21606 #define   DMC_SEC_RANGE2_WID_CTRL0                 (0x0066)
21607 #define P_DMC_SEC_RANGE2_WID_CTRL0                 (volatile uint32_t *)((0x0066  << 2) + 0xff638800)
21608   //same as range0 write define.
21609 #define   DMC_SEC_RANGE2_WID_CTRL1                 (0x0067)
21610 #define P_DMC_SEC_RANGE2_WID_CTRL1                 (volatile uint32_t *)((0x0067  << 2) + 0xff638800)
21611   //same as range0 write define.
21612 #define   DMC_SEC_RANGE3_WID_CTRL0                 (0x0069)
21613 #define P_DMC_SEC_RANGE3_WID_CTRL0                 (volatile uint32_t *)((0x0069  << 2) + 0xff638800)
21614   //same as range0 write define.
21615 #define   DMC_SEC_RANGE3_WID_CTRL1                 (0x006a)
21616 #define P_DMC_SEC_RANGE3_WID_CTRL1                 (volatile uint32_t *)((0x006a  << 2) + 0xff638800)
21617   //same as range0 write define.
21618 #define   DMC_SEC_RANGE4_WID_CTRL0                 (0x006c)
21619 #define P_DMC_SEC_RANGE4_WID_CTRL0                 (volatile uint32_t *)((0x006c  << 2) + 0xff638800)
21620   //same as range0 write define.
21621 #define   DMC_SEC_RANGE4_WID_CTRL1                 (0x006d)
21622 #define P_DMC_SEC_RANGE4_WID_CTRL1                 (volatile uint32_t *)((0x006d  << 2) + 0xff638800)
21623   //same as range0 write define.
21624 #define   DMC_SEC_RANGE5_WID_CTRL0                 (0x006f)
21625 #define P_DMC_SEC_RANGE5_WID_CTRL0                 (volatile uint32_t *)((0x006f  << 2) + 0xff638800)
21626   //same as range0 write define.
21627 #define   DMC_SEC_RANGE5_WID_CTRL1                 (0x0070)
21628 #define P_DMC_SEC_RANGE5_WID_CTRL1                 (volatile uint32_t *)((0x0070  << 2) + 0xff638800)
21629   //same as range0 write define.
21630 #define   DMC_SEC_RANGE6_WID_CTRL0                 (0x0072)
21631 #define P_DMC_SEC_RANGE6_WID_CTRL0                 (volatile uint32_t *)((0x0072  << 2) + 0xff638800)
21632   //same as range0 write define.
21633 #define   DMC_SEC_RANGE6_WID_CTRL1                 (0x0073)
21634 #define P_DMC_SEC_RANGE6_WID_CTRL1                 (volatile uint32_t *)((0x0073  << 2) + 0xff638800)
21635   //same as range0 write define.
21636 
21637 
21638 //2 DES key one for secure region and one for non-secure region.
21639 #define   DMC_DES_KEY0_H                           (0x0090)
21640 #define P_DMC_DES_KEY0_H                           (volatile uint32_t *)((0x0090  << 2) + 0xff638800)
21641 #define   DMC_DES_KEY0_L                           (0x0091)
21642 #define P_DMC_DES_KEY0_L                           (volatile uint32_t *)((0x0091  << 2) + 0xff638800)
21643   //64bits data descrable key for security level 0 ( DES key)
21644 
21645 #define   DMC_DES_KEY1_H                           (0x0092)
21646 #define P_DMC_DES_KEY1_H                           (volatile uint32_t *)((0x0092  << 2) + 0xff638800)
21647 #define   DMC_DES_KEY1_L                           (0x0093)
21648 #define P_DMC_DES_KEY1_L                           (volatile uint32_t *)((0x0093  << 2) + 0xff638800)
21649   //64bits data descrable key for security level 1( DES key)
21650 
21651 #define   DMC_DES_PADDING                          (0x009a)
21652 #define P_DMC_DES_PADDING                          (volatile uint32_t *)((0x009a  << 2) + 0xff638800)
21653   //32bits address padding used for DES data generation.
21654 
21655 #define   DMC_CA_REMAP_L                           (0x009b)
21656 #define P_DMC_CA_REMAP_L                           (volatile uint32_t *)((0x009b  << 2) + 0xff638800)
21657 #define   DMC_CA_REMAP_H                           (0x009c)
21658 #define P_DMC_CA_REMAP_H                           (volatile uint32_t *)((0x009c  << 2) + 0xff638800)
21659   //This is a 16x4 address remap look up table.
21660   //the column address bit 7:4 would be the index input and be replace with the value stored in these register.
21661   //{DMC_CA_REMAP_H, DMC_CA_REMAP_L}
21662   //bit 63:60: new address for index 15
21663   //bit 59:56: new address for index 14
21664   //bit 55:52: new address for index 13
21665   //bit 51:48: new address for index 12
21666   //bit 47:44: new address for index 11
21667   //bit 43:40: new address for index 10
21668   //bit 39:36: new address for index 9
21669   //bit 35:32: new address for index 8
21670   //bit 31:28: new address for index 7
21671   //bit 27:24: new address for index 6
21672   //bit 23:20: new address for index 5
21673   //bit 19:16: new address for index 4
21674   //bit 15:12: new address for index 3
21675   //bit 11:8: new address for index 2
21676   //bit 7:4: new address for index 1
21677   //bit 3:0: new address for index 0
21678 
21679 #define   DMC_DES_CTRL                             (0x009d)
21680 #define P_DMC_DES_CTRL                             (volatile uint32_t *)((0x009d  << 2) + 0xff638800)
21681  //bit 1   DES enable.  1: DES enable. 0 : DES disable.  default is 1.
21682  //bit 0.  DES register mask. if write 1 only. after write 1, DES_CTRL, DES_KEY,  DES_padding, and CFG_CA_REMAP regsiter can't be write and read.
21683 
21684 
21685 // two range protection function.
21686 #define   DMC_PROT0_RANGE                          (0x00a0)
21687 #define P_DMC_PROT0_RANGE                          (volatile uint32_t *)((0x00a0  << 2) + 0xff638800)
21688   //protection 0 address range. the range define is 64Kbyte boundary.  current address [31:16] >= start address && current address [31:16] <= end address.
21689   //bit 31:16 :   range end address.
21690   //bit 15:0  :   range start address
21691 #define   DMC_PROT0_CTRL                           (0x00a1)
21692 #define P_DMC_PROT0_CTRL                           (volatile uint32_t *)((0x00a1  << 2) + 0xff638800)
21693   //bit 19.  protection 0 for write access enable bit.
21694   //bit 18.  protection 0 for read access enable bit.
21695   //bit 17.  protection 0  write access block function. if enabled, the access wouldn't write to the DDR SDRAM.  if not enabled only generate a interrupt, but the access still wrote to DDR.
21696  //bit 16. not used.
21697  //bit 15:0  each bit to enable one of the 15 channel input for the protection function.
21698 
21699 #define   DMC_PROT1_RANGE                          (0x00a2)
21700 #define P_DMC_PROT1_RANGE                          (volatile uint32_t *)((0x00a2  << 2) + 0xff638800)
21701   //protection 1 address range. the range define is 64Kbyte boundary.  current address [31:16] >= start address && current address [31:16] <= end address.
21702   //bit 31:16 :   range end address.
21703   //bit 15:0  :   range start address
21704 #define   DMC_PROT1_CTRL                           (0x00a3)
21705 #define P_DMC_PROT1_CTRL                           (volatile uint32_t *)((0x00a3  << 2) + 0xff638800)
21706   //bit 19.  protection 1 for write access enable bit.
21707   //bit 18.  protection 1 for read access enable bit.
21708   //bit 17.  protection 1  write access block function. if enabled, the access wouldn't write to the DDR SDRAM.  if not enabled only generate a interrupt, but the access still wrote to DDR.
21709 //two data point
21710 #define   DMC_WTCH0_D0                             (0x00a4)
21711 #define P_DMC_WTCH0_D0                             (volatile uint32_t *)((0x00a4  << 2) + 0xff638800)
21712   //WTCH0 will watch upto 128bits data access.
21713 #define   DMC_WTCH0_D1                             (0x00a5)
21714 #define P_DMC_WTCH0_D1                             (volatile uint32_t *)((0x00a5  << 2) + 0xff638800)
21715 #define   DMC_WTCH0_D2                             (0x00a6)
21716 #define P_DMC_WTCH0_D2                             (volatile uint32_t *)((0x00a6  << 2) + 0xff638800)
21717 #define   DMC_WTCH0_D3                             (0x00a7)
21718 #define P_DMC_WTCH0_D3                             (volatile uint32_t *)((0x00a7  << 2) + 0xff638800)
21719   // the watch point 0 data {d3, d2,d1,d0}
21720 #define   DMC_WTCH0_RANGE                          (0x00a8)
21721 #define P_DMC_WTCH0_RANGE                          (volatile uint32_t *)((0x00a8  << 2) + 0xff638800)
21722   //address range. 64Kbyte boundary.
21723   // 31:16  start address high 16.
21724   // 15:0  start address high 16.
21725 #define   DMC_WTCH0_CTRL                           (0x00a9)
21726 #define P_DMC_WTCH0_CTRL                           (volatile uint32_t *)((0x00a9  << 2) + 0xff638800)
21727   //bit 31:16.  16bits write data strb.
21728   //bit 15:0.   16bits input channels select.
21729 #define   DMC_WTCH0_CTRL1                          (0x00aa)
21730 #define P_DMC_WTCH0_CTRL1                          (volatile uint32_t *)((0x00aa  << 2) + 0xff638800)
21731   //bit 2. watch point 0 enable.
21732   //bit 1:0. watch point0 type.   2'b00 : double bytes. only watchpoint data 15:0 and data strb 1:0 is valid. 2'b01: 4 bytes.  2'b10: 8 bytes. 2'b11, all 16bytes.
21733 
21734 #define   DMC_WTCH1_D0                             (0x00ab)
21735 #define P_DMC_WTCH1_D0                             (volatile uint32_t *)((0x00ab  << 2) + 0xff638800)
21736 #define   DMC_WTCH1_D1                             (0x00ac)
21737 #define P_DMC_WTCH1_D1                             (volatile uint32_t *)((0x00ac  << 2) + 0xff638800)
21738 #define   DMC_WTCH1_D2                             (0x00ad)
21739 #define P_DMC_WTCH1_D2                             (volatile uint32_t *)((0x00ad  << 2) + 0xff638800)
21740 #define   DMC_WTCH1_D3                             (0x00ae)
21741 #define P_DMC_WTCH1_D3                             (volatile uint32_t *)((0x00ae  << 2) + 0xff638800)
21742   // the watch point 1 data {d3, d2,d1,d0}
21743 #define   DMC_WTCH1_RANGE                          (0x00af)
21744 #define P_DMC_WTCH1_RANGE                          (volatile uint32_t *)((0x00af  << 2) + 0xff638800)
21745   //address range. 64Kbyte boundary.
21746   // 31:16  start address high 16.
21747   // 15:0  start address high 16.
21748 #define   DMC_WTCH1_CTRL                           (0x00b0)
21749 #define P_DMC_WTCH1_CTRL                           (volatile uint32_t *)((0x00b0  << 2) + 0xff638800)
21750   //bit 31:16.  16bits write data strb.
21751   //bit 15:0.   16bits input channels select.
21752 #define   DMC_WTCH1_CTRL1                          (0x00b1)
21753 #define P_DMC_WTCH1_CTRL1                          (volatile uint32_t *)((0x00b1  << 2) + 0xff638800)
21754   //bit 2. watch point 0 enable.
21755   //bit 1:0. watch point0 type.   2'b00 : double bytes. only watchpoint data 15:0 and data strb 1:0 is valid. 2'b01: 4 bytes.  2'b10: 8 bytes. 2'b11, all 16bytes.
21756 
21757 
21758 //trap function: all the enable the port ID read access or enable PORT ID and subID read access must be in the predefine range. otherwire the read access would be blocked.
21759 // and an error will be generated.
21760 #define   DMC_TRAP0_RANGE                          (0x00b2)
21761 #define P_DMC_TRAP0_RANGE                          (volatile uint32_t *)((0x00b2  << 2) + 0xff638800)
21762   // address trap0 range register.
21763   //31:16.  trap0  end address
21764   //15:0    start0 address.
21765 #define   DMC_TRAP0_CTRL                           (0x00b3)
21766 #define P_DMC_TRAP0_CTRL                           (volatile uint32_t *)((0x00b3  << 2) + 0xff638800)
21767   //bit 30 trap0 port ID 2 enable.
21768   //bit 29 trap0 port ID 1 enable.
21769   //bit 28 trap0 port ID 0 enable.
21770   //bit 27 trap0 port ID 2 subid enable.
21771   //bit 26 trap0 port ID 1 subid enable.
21772   //bit 25 trap0 port ID 0 subid enable.
21773   //bit 23:20. trap0 port ID 2  ID number.
21774   //bit 19:16. trap0 port ID 2  subID ID number.
21775   //bit 15:12. trap0 port ID 1 ID number.
21776   //bit 11:8.  trap0 port ID 1 subID ID number.
21777   //bit 7:4.   trap0 port ID 0 ID number.
21778   //bit 3:0.   trap0 port ID 0 subID ID number.
21779 
21780 #define   DMC_TRAP1_RANGE                          (0x00b4)
21781 #define P_DMC_TRAP1_RANGE                          (volatile uint32_t *)((0x00b4  << 2) + 0xff638800)
21782   //address trap range register.
21783   //31:16.  trap end address
21784   //15:0    start address.
21785 #define   DMC_TRAP1_CTRL                           (0x00b5)
21786 #define P_DMC_TRAP1_CTRL                           (volatile uint32_t *)((0x00b5  << 2) + 0xff638800)
21787   //bit 30 trap1 port ID 2 enable.
21788   //bit 29 trap1 port ID 1 enable.
21789   //bit 28 trap1 port ID 0 enable.
21790   //bit 27 trap1 port ID 2 subid enable.
21791   //bit 26 trap1 port ID 1 subid enable.
21792   //bit 25 trap1 port ID 0 subid enable.
21793   //bit 23:20. trap1 port ID 2  ID number.
21794   //bit 19:16. trap1 port ID 2  subID ID number.
21795   //bit 15:12. trap1 port ID 1 ID number.
21796   //bit 11:8.  trap1 port ID 1 subID ID number.
21797   //bit 7:4.   trap1 port ID 0 ID number.
21798   //bit 3:0.   trap1 port ID 0 subID ID number.
21799 
21800 
21801 //registers to check the security protection and watch point error information.
21802 #define   DMC_SEC_STATUS                           (0x00b6)
21803 #define P_DMC_SEC_STATUS                           (volatile uint32_t *)((0x00b6  << 2) + 0xff638800)
21804  //bit 31~2. not used.
21805  //bit 1   write security violation.
21806  //bit 0.  read security violation.
21807 
21808 #define   DMC_VIO_ADDR0                            (0x00b7)
21809 #define P_DMC_VIO_ADDR0                            (volatile uint32_t *)((0x00b7  << 2) + 0xff638800)
21810   //ddr0 write secure violation address.
21811 #define   DMC_VIO_ADDR1                            (0x00b8)
21812 #define P_DMC_VIO_ADDR1                            (volatile uint32_t *)((0x00b8  << 2) + 0xff638800)
21813   //22     ddr0 secure check violation.
21814   //21     ddr0 protection 1 vilation.
21815   //20     ddr0 protection 0 vilation.
21816   //19     ddr0 watch 1 catch
21817   //18.    ddr0 watch 0 catch.
21818   //17     ddr0 write address overflow. write out of DDR size.
21819   //16:14. ddr0 write violation AWPROT bits.
21820   //13:0   ddr0_write violation ID.
21821 #define   DMC_VIO_ADDR2                            (0x00b9)
21822 #define P_DMC_VIO_ADDR2                            (volatile uint32_t *)((0x00b9  << 2) + 0xff638800)
21823   //ddr1 write seure violation address
21824 #define   DMC_VIO_ADDR3                            (0x00ba)
21825 #define P_DMC_VIO_ADDR3                            (volatile uint32_t *)((0x00ba  << 2) + 0xff638800)
21826   //23     ddr0 write subids per range protection violation.
21827   //22     ddr1 write secure check violation.
21828   //21     ddr1 write protection 1 vilation.
21829   //20     ddr1 write protection 0 vilation.
21830   //19     ddr1 watch 1 catch
21831   //18.    ddr1 watch 0 catch.
21832   //17     ddr1 write address overflow. write out of DDR size.
21833   //16:14. ddr1 write violation AWPROT bits.
21834   //13:0   ddr1_write violation ID.
21835 
21836 #define   DMC_VIO_ADDR4                            (0x00bb)
21837 #define P_DMC_VIO_ADDR4                            (volatile uint32_t *)((0x00bb  << 2) + 0xff638800)
21838   //ddr0 read seure violation address
21839 #define   DMC_VIO_ADDR5                            (0x00bc)
21840 #define P_DMC_VIO_ADDR5                            (volatile uint32_t *)((0x00bc  << 2) + 0xff638800)
21841   //23     ddr0 read subids per range protection violation.
21842   //22     ddr0 read secure check violation.
21843   //21     ddr0 read protection 1 violation.
21844   //20     ddr0 read protection 0 violation.
21845   //19     ddr0 read trap1 violation
21846   //18     ddr0 read trap0 violation
21847   //17     ddr 0 read address overflow. write out of DDR size.
21848   //16:14. ddr 0 read violation ARPROT bits.
21849   //13:0   ddr 0 read violation ID.
21850 
21851 #define   DMC_VIO_ADDR6                            (0x00bd)
21852 #define P_DMC_VIO_ADDR6                            (volatile uint32_t *)((0x00bd  << 2) + 0xff638800)
21853   //ddr1 read seure violation address
21854 
21855 #define   DMC_VIO_ADDR7                            (0x00be)
21856 #define P_DMC_VIO_ADDR7                            (volatile uint32_t *)((0x00be  << 2) + 0xff638800)
21857   //22     ddr1 read secure check violation.
21858   //21     ddr1 read protection 1 violation.
21859   //20     ddr1 read protection 0 violation.
21860   //19     ddr1 read trap1 violation
21861   //18     ddr1 read trap0 violation
21862   //17     ddr 1 read address overflow. write out of DDR size.
21863   //16:14. ddr 1 read violation ARPROT bits.
21864   //13:0   ddr 1 read violation ID.
21865 
21866 //each row bank and rank address can be selected from any address.
21867 #define   DDR0_ADDRMAP_4                           (0x00d4)
21868 #define P_DDR0_ADDRMAP_4                           (volatile uint32_t *)((0x00d4  << 2) + 0xff638800)
21869   //29:25 ra16 for DDR4 SDRAM
21870   //24:20 bg1  for DDR4 SDRAM.
21871   //19:15 ba2.    or bg0 for DDR4.
21872   //14:10 ba1.
21873   //9:5   ba0.
21874   //4:0   ra15.
21875 #define   DDR0_ADDRMAP_3                           (0x00d3)
21876 #define P_DDR0_ADDRMAP_3                           (volatile uint32_t *)((0x00d3  << 2) + 0xff638800)
21877   //29:25 ra14.
21878   //24:20 ra13.
21879   //19:15 ra12.
21880   //14:10 ra11.
21881   //9:5   ra10.
21882   //4:0   ra9.
21883 #define   DDR0_ADDRMAP_2                           (0x00d2)
21884 #define P_DDR0_ADDRMAP_2                           (volatile uint32_t *)((0x00d2  << 2) + 0xff638800)
21885   //29:25 ra8.
21886   //24:20 ra7.
21887   //19:15 ra6.
21888   //14:10 ra5.
21889   //9:5   ra4.
21890   //4:0   ra3.
21891 #define   DDR0_ADDRMAP_1                           (0x00d1)
21892 #define P_DDR0_ADDRMAP_1                           (volatile uint32_t *)((0x00d1  << 2) + 0xff638800)
21893   //29:25 ra2.
21894   //24:20 ra1.
21895   //19:15 ra0.
21896   //14:10 ca11.
21897   //9:5   ca10.
21898   //4:0   ca9.
21899 
21900 #define   DDR0_ADDRMAP_0                           (0x00d0)
21901 #define P_DDR0_ADDRMAP_0                           (volatile uint32_t *)((0x00d0  << 2) + 0xff638800)
21902   //29:25 ca8.
21903   //24:20 ca7.
21904   //19:15 ca6.
21905   //14:10 ca5.
21906   //9:5   ca4.
21907   //4:0   ca3.
21908 
21909 #define   DDR1_ADDRMAP_4                           (0x00d9)
21910 #define P_DDR1_ADDRMAP_4                           (volatile uint32_t *)((0x00d9  << 2) + 0xff638800)
21911   //29:25 ra16 for DDR4 SDRAM
21912   //24:20 bg1  for DDR4 SDRAM.
21913   //19:15 ba2  or bg0 for DDR4 SDRAM..
21914   //14:10 ba1.
21915   //9:5   ba0.
21916   //4:0   ra15.
21917 #define   DDR1_ADDRMAP_3                           (0x00d8)
21918 #define P_DDR1_ADDRMAP_3                           (volatile uint32_t *)((0x00d8  << 2) + 0xff638800)
21919   //29:25 ra14.
21920   //24:20 ra13.
21921   //19:15 ra12.
21922   //14:10 ra11.
21923   //9:5   ra10.
21924   //4:0   ra9.
21925 #define   DDR1_ADDRMAP_2                           (0x00d7)
21926 #define P_DDR1_ADDRMAP_2                           (volatile uint32_t *)((0x00d7  << 2) + 0xff638800)
21927   //29:25 ra8.
21928   //24:20 ra7.
21929   //19:15 ra6.
21930   //14:10 ra5.
21931   //9:5   ra4.
21932   //4:0   ra3.
21933 #define   DDR1_ADDRMAP_1                           (0x00d6)
21934 #define P_DDR1_ADDRMAP_1                           (volatile uint32_t *)((0x00d6  << 2) + 0xff638800)
21935   //29:25 ra2.
21936   //24:20 ra1.
21937   //19:15 ra0.
21938   //14:10 ca11.
21939   //9:5   ca10.
21940   //4:0   ca9.
21941 #define   DDR1_ADDRMAP_0                           (0x00d5)
21942 #define P_DDR1_ADDRMAP_0                           (volatile uint32_t *)((0x00d5  << 2) + 0xff638800)
21943   //29:25 ca8.
21944   //24:20 ca7.
21945   //19:15 ca6.
21946   //14:10 ca5.
21947   //9:5   ca4.
21948   //4:0   ca3.
21949 #define   DMC_DDR_CTRL                             (0x00da)
21950 #define P_DMC_DDR_CTRL                             (volatile uint32_t *)((0x00da  << 2) + 0xff638800)
21951    //bit 28.   1 : cavnas use 64bytes boundary ( only support blk_mode == 2 and linear mode.  line width must be in 64bytes boundary.
21952               // 0 : canvas use 32bytes boundary.(support all old mode. line width must be in 32bytes boundary)
21953    //bit 22.   DDR4 SDRAM enable. use DDR4 protocal.
21954    //bit 21.   rank1 enable bit. if 1,  rank1 used the address map is as bit 5:3 defined.
21955    //bit 20.   BG group 1 enable for DDR4 SDRAM.
21956    //bit 18:   always 0.
21957    //bit 16.   1 only use 16bits data in a 32bits phy data interface. 0 : normal data interface.
21958   //bit 5:3 :  DDR rank 1 size.
21959      //3'b000 : DDR rank 1 is 128Mbyte.
21960      //3'b001 : DDR rank 1 is 256Mbyte.
21961      //3'b010 : DDR rank 1 is 512Mbyte.
21962      //3'b011 : DDR rank 1 is 1Gbyte.
21963      //3'b100 : DDR rank 1 is 2Gbyte.
21964      //3'b101 : DDR rank 1 is 4Gbyte.
21965      //others :  reserved.
21966   //bit 2:0  :  DDR rank 0 size.
21967      //3'b000 : DDR rank 0 is 128Mbyte.
21968      //3'b001 : DDR rank 0 is 256Mbyte.
21969      //3'b010 : DDR rank 0 is 512Mbyte.
21970      //3'b011 : DDR rank 0 is 1Gbyte.
21971      //3'b100 : DDR rank 0 is 2Gbyte.
21972      //3'b101 : DDR rank 0 is 4Gbyte.
21973      //others :  reserved.
21974 
21975 
21976 
21977 #define   DMC_TEST_STA                             (0x00e0)
21978 #define P_DMC_TEST_STA                             (volatile uint32_t *)((0x00e0  << 2) + 0xff638800)
21979   //test start address.  for non-sha mode,  the last 5 bits would be ignored. the test address at 32bytes boundary.
21980   //                     for sha mode,      address must be in 64 bytes boundary. that mean the last 6 bits must be 0.
21981 
21982 #define   DMC_TEST_EDA                             (0x00e1)
21983 #define P_DMC_TEST_EDA                             (volatile uint32_t *)((0x00e1  << 2) + 0xff638800)
21984   //test end address.  for non-sha mode,  the last 5 bits would be ignored. the test address at 32bytes boundary.
21985   //                   for sha mode,       address must be in 64 bytes boundary. that mean the last 6bits must be 1.
21986 #define   DMC_TEST_CTRL                            (0x00e2)
21987 #define P_DMC_TEST_CTRL                            (volatile uint32_t *)((0x00e2  << 2) + 0xff638800)
21988    //bit 31.  enable test.
21989    //bit 30.  when enable test, enable the write to DDR function.
21990    //bit 29.  when enable test, enable the read from DDR function.
21991    //bit 28.  when enable test,  enable the sha calculation function  must be same as read enable but without write function.
21992    //bit 27.  enabe to compare data.  when do the read enable to enable the error comparaion. suppose the read data should be same as the data in the write buffer.
21993    //bit 26.   reserved.
21994    //bit 25.  address generation type.  0: continuous increase the address in the range of test start address and test end address.
21995    //                                   1: test module would pick the random address from test start address  and test end address.
21996    //bit 24.  done type.      0 : use the DMC_TEST_NUM register as the counter of test numbers.
21997    //                             for write if the write command number == the DMC_TEST_NUM, the write is done.
21998    //                             for read if the read command number == the DMC TEST_num, the read id done. for one read command can be repeated repeat number times.
21999    //                         1 : finshed at end address.
22000    //bit 23.  wdata type.     1 : the first write is {WD3, WD2,WD1,WD0}, then the latter is the previous data plus a pattern.( { + WD7,  + WD6, + WD5, + WD4}).
22001    //                         0 : the WDATA is the data in write register.
22002    //bit 23.  reserved.
22003    //bit 22:20.   read repeat times.  for non-sha function, we can define multi times of the read. the test module would repeat the same adddress repeat times.
22004    //bit 19.     limit write.  0: no outstanding write request limitation.
22005    //                          1: limit the outstanding write commands to the number of bits [15:8]
22006    //bit 18.     limit read.   0. no outstanding read request limitation.
22007    //                          1. limit the read outstanding request to the number of bits[7:0].
22008    //bit 17:16.  sha mode for sha function enabled.  00 : not used.  01 : sha1. 2: sha2-256. 3: sha2_224. not used in GXL fixed to be  Sha 2.
22009    //bit 15:8.   write outstanding commands limit.
22010    //bit 7:0.    read  outstanding commands limit.
22011 #define   DMC_TEST_NUM                             (0x00e3)
22012 #define P_DMC_TEST_NUM                             (volatile uint32_t *)((0x00e3  << 2) + 0xff638800)
22013    // how many test command for the test if the DMC_TEST_CTRL bit 24 is 0.
22014 #define   DMC_TEST_WD0                             (0x00e4)
22015 #define P_DMC_TEST_WD0                             (volatile uint32_t *)((0x00e4  << 2) + 0xff638800)
22016    // write data 0 for write command. also for read back data comparision.
22017 #define   DMC_TEST_WD1                             (0x00e5)
22018 #define P_DMC_TEST_WD1                             (volatile uint32_t *)((0x00e5  << 2) + 0xff638800)
22019    // write data 1 for write command. also for read back data comparision.
22020 #define   DMC_TEST_WD2                             (0x00e6)
22021 #define P_DMC_TEST_WD2                             (volatile uint32_t *)((0x00e6  << 2) + 0xff638800)
22022    // write data 2 for write command. also for read back data comparision.
22023 #define   DMC_TEST_WD3                             (0x00e7)
22024 #define P_DMC_TEST_WD3                             (volatile uint32_t *)((0x00e7  << 2) + 0xff638800)
22025    // write data 3 for write command. also for read back data comparision.
22026 #define   DMC_TEST_WD4                             (0x00e8)
22027 #define P_DMC_TEST_WD4                             (volatile uint32_t *)((0x00e8  << 2) + 0xff638800)
22028    // write data 4 for write command. also for read back data comparision.
22029 #define   DMC_TEST_WD5                             (0x00e9)
22030 #define P_DMC_TEST_WD5                             (volatile uint32_t *)((0x00e9  << 2) + 0xff638800)
22031    // write data 5 for write command. also for read back data comparision.
22032 #define   DMC_TEST_WD6                             (0x00ea)
22033 #define P_DMC_TEST_WD6                             (volatile uint32_t *)((0x00ea  << 2) + 0xff638800)
22034    // write data 6 for write command. also for read back data comparision.
22035 #define   DMC_TEST_WD7                             (0x00eb)
22036 #define P_DMC_TEST_WD7                             (volatile uint32_t *)((0x00eb  << 2) + 0xff638800)
22037    // write data 7 for write command. also for read back data comparision.
22038 #define   DMC_TEST_RD0                             (0x00ec)
22039 #define P_DMC_TEST_RD0                             (volatile uint32_t *)((0x00ec  << 2) + 0xff638800)
22040    // the read back data 0.  if error happens, it would capture the first error data.
22041 #define   DMC_TEST_RD1                             (0x00ed)
22042 #define P_DMC_TEST_RD1                             (volatile uint32_t *)((0x00ed  << 2) + 0xff638800)
22043    // the read back data 1.  if error happens, it would capture the first error data.
22044 #define   DMC_TEST_RD2                             (0x00ee)
22045 #define P_DMC_TEST_RD2                             (volatile uint32_t *)((0x00ee  << 2) + 0xff638800)
22046    // the read back data 2.  if error happens, it would capture the first error data.
22047 #define   DMC_TEST_RD3                             (0x00ef)
22048 #define P_DMC_TEST_RD3                             (volatile uint32_t *)((0x00ef  << 2) + 0xff638800)
22049    // the read back data 3.  if error happens, it would capture the first error data.
22050 #define   DMC_TEST_RD4                             (0x00f0)
22051 #define P_DMC_TEST_RD4                             (volatile uint32_t *)((0x00f0  << 2) + 0xff638800)
22052    // the read back data 4.  if error happens, it would capture the first error data.
22053 #define   DMC_TEST_RD5                             (0x00f1)
22054 #define P_DMC_TEST_RD5                             (volatile uint32_t *)((0x00f1  << 2) + 0xff638800)
22055    // the read back data 5.  if error happens, it would capture the first error data.
22056 #define   DMC_TEST_RD6                             (0x00f2)
22057 #define P_DMC_TEST_RD6                             (volatile uint32_t *)((0x00f2  << 2) + 0xff638800)
22058    // the read back data 6.  if error happens, it would capture the first error data.
22059 #define   DMC_TEST_RD7                             (0x00f3)
22060 #define P_DMC_TEST_RD7                             (volatile uint32_t *)((0x00f3  << 2) + 0xff638800)
22061    // the read back data 7.  if error happens, it would capture the first error data.
22062 
22063 #define   DMC_TEST_ERR_ADDR                        (0x00f4)
22064 #define P_DMC_TEST_ERR_ADDR                        (volatile uint32_t *)((0x00f4  << 2) + 0xff638800)
22065   // it capature the first error address.
22066 #define   DMC_TEST_ERR_CNT                         (0x00f5)
22067 #define P_DMC_TEST_ERR_CNT                         (volatile uint32_t *)((0x00f5  << 2) + 0xff638800)
22068   // how many data error happens in the whole test period.
22069 #define   DMC_TEST_STS                             (0x00f6)
22070 #define P_DMC_TEST_STS                             (volatile uint32_t *)((0x00f6  << 2) + 0xff638800)
22071   //bit 31,   test done bit. write 1 to clean.
22072   //bit 30,   indicate address err
22073   //bit 29~5.  not used.
22074   //bit 4,    sha done.     write 1 to clean.
22075   //bit 3,    write done.   write 1 to clean.
22076   //bit 2,    read done.    write 1 to clean
22077   //bit 1,    write watchdog triggered.   write 1 to clean
22078   //bit 0,    read watchdog triggered.    write 1 to clean.
22079 #define   DMC_TEST_SHA_MSG0                        (0x00f8)
22080 #define P_DMC_TEST_SHA_MSG0                        (volatile uint32_t *)((0x00f8  << 2) + 0xff638800)
22081   //the final sha message byte 3~0.
22082 #define   DMC_TEST_SHA_MSG1                        (0x00f9)
22083 #define P_DMC_TEST_SHA_MSG1                        (volatile uint32_t *)((0x00f9  << 2) + 0xff638800)
22084   //the final sha message byte 7~4.
22085 #define   DMC_TEST_SHA_MSG2                        (0x00fa)
22086 #define P_DMC_TEST_SHA_MSG2                        (volatile uint32_t *)((0x00fa  << 2) + 0xff638800)
22087   //the final sha message byte 11~8.
22088 #define   DMC_TEST_SHA_MSG3                        (0x00fb)
22089 #define P_DMC_TEST_SHA_MSG3                        (volatile uint32_t *)((0x00fb  << 2) + 0xff638800)
22090   //the final sha message byte 15~12.
22091 #define   DMC_TEST_SHA_MSG4                        (0x00fc)
22092 #define P_DMC_TEST_SHA_MSG4                        (volatile uint32_t *)((0x00fc  << 2) + 0xff638800)
22093   //the final sha message byte 19~16.
22094 #define   DMC_TEST_SHA_MSG5                        (0x00fd)
22095 #define P_DMC_TEST_SHA_MSG5                        (volatile uint32_t *)((0x00fd  << 2) + 0xff638800)
22096   //the final sha message byte 23~20.
22097 #define   DMC_TEST_SHA_MSG6                        (0x00fe)
22098 #define P_DMC_TEST_SHA_MSG6                        (volatile uint32_t *)((0x00fe  << 2) + 0xff638800)
22099   //the final sha message byte 27~24.
22100 #define   DMC_TEST_SHA_MSG7                        (0x00ff)
22101 #define P_DMC_TEST_SHA_MSG7                        (volatile uint32_t *)((0x00ff  << 2) + 0xff638800)
22102   //the final sha message byte 31~28.
22103 
22104 #define   DMC_TEST_WRCMD_ADDR                      (0x00dc)
22105 #define P_DMC_TEST_WRCMD_ADDR                      (volatile uint32_t *)((0x00dc  << 2) + 0xff638800)
22106   // the current write cmd address.
22107 #define   DMC_TEST_RDRSP_ADDR                      (0x00dd)
22108 #define P_DMC_TEST_RDRSP_ADDR                      (volatile uint32_t *)((0x00dd  << 2) + 0xff638800)
22109   // the failed read response address(for error data )
22110 #define   DMC_TEST_RDCMD_ADDR                      (0x00de)
22111 #define P_DMC_TEST_RDCMD_ADDR                      (volatile uint32_t *)((0x00de  << 2) + 0xff638800)
22112    // the current read command address.
22113 
22114 #define   DMC_TEST_WDG                             (0x00df)
22115 #define P_DMC_TEST_WDG                             (volatile uint32_t *)((0x00df  << 2) + 0xff638800)
22116   //31:16.  write response watch dog.
22117   //15:0.   read response  watch dog.
22118 
22119 
22120 //
22121 // Closing file:  ../mmc/dmc/rtl/dmc_sec.vh
22122 //
22123 //
22124 // Reading file:  ../mmc/dmc/rtl/dmc_sticky_reg.vh
22125 //
22126 // -----------------------------------------------
22127 // REG_BASE:  DMC_REG_BASE = 0xff639800
22128 // -----------------------------------------------
22129 #define   DMC_STICKY_0                             (0x0000)
22130 #define P_DMC_STICKY_0                             (volatile uint32_t *)((0x0000  << 2) + 0xff639800)
22131 #define   DMC_STICKY_1                             (0x0001)
22132 #define P_DMC_STICKY_1                             (volatile uint32_t *)((0x0001  << 2) + 0xff639800)
22133 #define   DMC_STICKY_2                             (0x0002)
22134 #define P_DMC_STICKY_2                             (volatile uint32_t *)((0x0002  << 2) + 0xff639800)
22135 #define   DMC_STICKY_3                             (0x0003)
22136 #define P_DMC_STICKY_3                             (volatile uint32_t *)((0x0003  << 2) + 0xff639800)
22137 #define   DMC_STICKY_4                             (0x0004)
22138 #define P_DMC_STICKY_4                             (volatile uint32_t *)((0x0004  << 2) + 0xff639800)
22139 #define   DMC_STICKY_5                             (0x0005)
22140 #define P_DMC_STICKY_5                             (volatile uint32_t *)((0x0005  << 2) + 0xff639800)
22141 #define   DMC_STICKY_6                             (0x0006)
22142 #define P_DMC_STICKY_6                             (volatile uint32_t *)((0x0006  << 2) + 0xff639800)
22143 #define   DMC_STICKY_7                             (0x0007)
22144 #define P_DMC_STICKY_7                             (volatile uint32_t *)((0x0007  << 2) + 0xff639800)
22145 #define   DMC_STICKY_8                             (0x0008)
22146 #define P_DMC_STICKY_8                             (volatile uint32_t *)((0x0008  << 2) + 0xff639800)
22147 #define   DMC_STICKY_9                             (0x0009)
22148 #define P_DMC_STICKY_9                             (volatile uint32_t *)((0x0009  << 2) + 0xff639800)
22149 #define   DMC_STICKY_10                            (0x000a)
22150 #define P_DMC_STICKY_10                            (volatile uint32_t *)((0x000a  << 2) + 0xff639800)
22151 #define   DMC_STICKY_11                            (0x000b)
22152 #define P_DMC_STICKY_11                            (volatile uint32_t *)((0x000b  << 2) + 0xff639800)
22153 #define   DMC_STICKY_12                            (0x000c)
22154 #define P_DMC_STICKY_12                            (volatile uint32_t *)((0x000c  << 2) + 0xff639800)
22155 #define   DMC_STICKY_13                            (0x000d)
22156 #define P_DMC_STICKY_13                            (volatile uint32_t *)((0x000d  << 2) + 0xff639800)
22157 #define   DMC_STICKY_14                            (0x000e)
22158 #define P_DMC_STICKY_14                            (volatile uint32_t *)((0x000e  << 2) + 0xff639800)
22159 #define   DMC_STICKY_15                            (0x000f)
22160 #define P_DMC_STICKY_15                            (volatile uint32_t *)((0x000f  << 2) + 0xff639800)
22161 #define   DMC_STICKY_16                            (0x0010)
22162 #define P_DMC_STICKY_16                            (volatile uint32_t *)((0x0010  << 2) + 0xff639800)
22163 #define   DMC_STICKY_17                            (0x0011)
22164 #define P_DMC_STICKY_17                            (volatile uint32_t *)((0x0011  << 2) + 0xff639800)
22165 #define   DMC_STICKY_18                            (0x0012)
22166 #define P_DMC_STICKY_18                            (volatile uint32_t *)((0x0012  << 2) + 0xff639800)
22167 #define   DMC_STICKY_19                            (0x0013)
22168 #define P_DMC_STICKY_19                            (volatile uint32_t *)((0x0013  << 2) + 0xff639800)
22169 #define   DMC_STICKY_20                            (0x0014)
22170 #define P_DMC_STICKY_20                            (volatile uint32_t *)((0x0014  << 2) + 0xff639800)
22171 #define   DMC_STICKY_21                            (0x0015)
22172 #define P_DMC_STICKY_21                            (volatile uint32_t *)((0x0015  << 2) + 0xff639800)
22173 #define   DMC_STICKY_22                            (0x0016)
22174 #define P_DMC_STICKY_22                            (volatile uint32_t *)((0x0016  << 2) + 0xff639800)
22175 #define   DMC_STICKY_23                            (0x0017)
22176 #define P_DMC_STICKY_23                            (volatile uint32_t *)((0x0017  << 2) + 0xff639800)
22177 #define   DMC_STICKY_24                            (0x0018)
22178 #define P_DMC_STICKY_24                            (volatile uint32_t *)((0x0018  << 2) + 0xff639800)
22179 #define   DMC_STICKY_25                            (0x0019)
22180 #define P_DMC_STICKY_25                            (volatile uint32_t *)((0x0019  << 2) + 0xff639800)
22181 #define   DMC_STICKY_26                            (0x001a)
22182 #define P_DMC_STICKY_26                            (volatile uint32_t *)((0x001a  << 2) + 0xff639800)
22183 #define   DMC_STICKY_27                            (0x001b)
22184 #define P_DMC_STICKY_27                            (volatile uint32_t *)((0x001b  << 2) + 0xff639800)
22185 #define   DMC_STICKY_28                            (0x001c)
22186 #define P_DMC_STICKY_28                            (volatile uint32_t *)((0x001c  << 2) + 0xff639800)
22187 #define   DMC_STICKY_29                            (0x001d)
22188 #define P_DMC_STICKY_29                            (volatile uint32_t *)((0x001d  << 2) + 0xff639800)
22189 #define   DMC_STICKY_30                            (0x001e)
22190 #define P_DMC_STICKY_30                            (volatile uint32_t *)((0x001e  << 2) + 0xff639800)
22191 #define   DMC_STICKY_31                            (0x001f)
22192 #define P_DMC_STICKY_31                            (volatile uint32_t *)((0x001f  << 2) + 0xff639800)
22193 #define   DMC_STICKY_32                            (0x0020)
22194 #define P_DMC_STICKY_32                            (volatile uint32_t *)((0x0020  << 2) + 0xff639800)
22195 #define   DMC_STICKY_33                            (0x0021)
22196 #define P_DMC_STICKY_33                            (volatile uint32_t *)((0x0021  << 2) + 0xff639800)
22197 #define   DMC_STICKY_34                            (0x0022)
22198 #define P_DMC_STICKY_34                            (volatile uint32_t *)((0x0022  << 2) + 0xff639800)
22199 #define   DMC_STICKY_35                            (0x0023)
22200 #define P_DMC_STICKY_35                            (volatile uint32_t *)((0x0023  << 2) + 0xff639800)
22201 #define   DMC_STICKY_36                            (0x0024)
22202 #define P_DMC_STICKY_36                            (volatile uint32_t *)((0x0024  << 2) + 0xff639800)
22203 #define   DMC_STICKY_37                            (0x0025)
22204 #define P_DMC_STICKY_37                            (volatile uint32_t *)((0x0025  << 2) + 0xff639800)
22205 #define   DMC_STICKY_38                            (0x0026)
22206 #define P_DMC_STICKY_38                            (volatile uint32_t *)((0x0026  << 2) + 0xff639800)
22207 #define   DMC_STICKY_39                            (0x0027)
22208 #define P_DMC_STICKY_39                            (volatile uint32_t *)((0x0027  << 2) + 0xff639800)
22209 #define   DMC_STICKY_40                            (0x0028)
22210 #define P_DMC_STICKY_40                            (volatile uint32_t *)((0x0028  << 2) + 0xff639800)
22211 #define   DMC_STICKY_41                            (0x0029)
22212 #define P_DMC_STICKY_41                            (volatile uint32_t *)((0x0029  << 2) + 0xff639800)
22213 #define   DMC_STICKY_42                            (0x002a)
22214 #define P_DMC_STICKY_42                            (volatile uint32_t *)((0x002a  << 2) + 0xff639800)
22215 #define   DMC_STICKY_43                            (0x002b)
22216 #define P_DMC_STICKY_43                            (volatile uint32_t *)((0x002b  << 2) + 0xff639800)
22217 #define   DMC_STICKY_44                            (0x002c)
22218 #define P_DMC_STICKY_44                            (volatile uint32_t *)((0x002c  << 2) + 0xff639800)
22219 #define   DMC_STICKY_45                            (0x002d)
22220 #define P_DMC_STICKY_45                            (volatile uint32_t *)((0x002d  << 2) + 0xff639800)
22221 #define   DMC_STICKY_46                            (0x002e)
22222 #define P_DMC_STICKY_46                            (volatile uint32_t *)((0x002e  << 2) + 0xff639800)
22223 #define   DMC_STICKY_47                            (0x002f)
22224 #define P_DMC_STICKY_47                            (volatile uint32_t *)((0x002f  << 2) + 0xff639800)
22225 #define   DMC_STICKY_48                            (0x0030)
22226 #define P_DMC_STICKY_48                            (volatile uint32_t *)((0x0030  << 2) + 0xff639800)
22227 #define   DMC_STICKY_49                            (0x0031)
22228 #define P_DMC_STICKY_49                            (volatile uint32_t *)((0x0031  << 2) + 0xff639800)
22229 #define   DMC_STICKY_50                            (0x0032)
22230 #define P_DMC_STICKY_50                            (volatile uint32_t *)((0x0032  << 2) + 0xff639800)
22231 #define   DMC_STICKY_51                            (0x0033)
22232 #define P_DMC_STICKY_51                            (volatile uint32_t *)((0x0033  << 2) + 0xff639800)
22233 #define   DMC_STICKY_52                            (0x0034)
22234 #define P_DMC_STICKY_52                            (volatile uint32_t *)((0x0034  << 2) + 0xff639800)
22235 #define   DMC_STICKY_53                            (0x0035)
22236 #define P_DMC_STICKY_53                            (volatile uint32_t *)((0x0035  << 2) + 0xff639800)
22237 #define   DMC_STICKY_54                            (0x0036)
22238 #define P_DMC_STICKY_54                            (volatile uint32_t *)((0x0036  << 2) + 0xff639800)
22239 #define   DMC_STICKY_55                            (0x0037)
22240 #define P_DMC_STICKY_55                            (volatile uint32_t *)((0x0037  << 2) + 0xff639800)
22241 #define   DMC_STICKY_56                            (0x0038)
22242 #define P_DMC_STICKY_56                            (volatile uint32_t *)((0x0038  << 2) + 0xff639800)
22243 #define   DMC_STICKY_57                            (0x0039)
22244 #define P_DMC_STICKY_57                            (volatile uint32_t *)((0x0039  << 2) + 0xff639800)
22245 #define   DMC_STICKY_58                            (0x003a)
22246 #define P_DMC_STICKY_58                            (volatile uint32_t *)((0x003a  << 2) + 0xff639800)
22247 #define   DMC_STICKY_59                            (0x003b)
22248 #define P_DMC_STICKY_59                            (volatile uint32_t *)((0x003b  << 2) + 0xff639800)
22249 #define   DMC_STICKY_60                            (0x003c)
22250 #define P_DMC_STICKY_60                            (volatile uint32_t *)((0x003c  << 2) + 0xff639800)
22251 #define   DMC_STICKY_61                            (0x003d)
22252 #define P_DMC_STICKY_61                            (volatile uint32_t *)((0x003d  << 2) + 0xff639800)
22253 #define   DMC_STICKY_62                            (0x003e)
22254 #define P_DMC_STICKY_62                            (volatile uint32_t *)((0x003e  << 2) + 0xff639800)
22255 #define   DMC_STICKY_63                            (0x003f)
22256 #define P_DMC_STICKY_63                            (volatile uint32_t *)((0x003f  << 2) + 0xff639800)
22257 //
22258 // Closing file:  ../mmc/dmc/rtl/dmc_sticky_reg.vh
22259 //
22260 //
22261 // Reading file:  ../mmc/upctl_1rank/src/dmc_upctl_define.vh
22262 //
22263 
22264 // -----------------------------------------------
22265 // REG_BASE:  DMC_UPCTL_REG_BASE = 0xff639000
22266 // -----------------------------------------------
22267 #define   DMC_UPCTL_SCFG                           (0x0000)
22268 #define P_DMC_UPCTL_SCFG                           (volatile uint32_t *)((0x0000  << 2) + 0xff639000)
22269    //bit 16:12.  additional delay onto the assertion of ac_pdd.
22270    //bit 7.      Enable assertion of ac_pdd to indicate to the PHY of an opportunty to switch to  low power state.
22271    //bit 0.      to enable the hardware low power interface.(not used ).
22272 
22273 #define   DMC_UPCTL_SCTL                           (0x0001)
22274 #define P_DMC_UPCTL_SCTL                           (volatile uint32_t *)((0x0001  << 2) + 0xff639000)
22275   //bit 2:0.  to control the UPCTL state.
22276      // 3'b000:   INIT.
22277      // 3'b001:   CFG.
22278      // 3'b010:   Go
22279      // 3'b011:   SLEEP.
22280      // 3'b100:   WAKEUP.
22281 
22282 #define   DMC_UPCTL_TMRD                           (0x0006)
22283 #define P_DMC_UPCTL_TMRD                           (volatile uint32_t *)((0x0006  << 2) + 0xff639000)
22284   //bit 2:0 tMRD. MRS command clock cycle number in DDR clock.
22285 #define   DMC_UPCTL_TRFC                           (0x0007)
22286 #define P_DMC_UPCTL_TRFC                           (volatile uint32_t *)((0x0007  << 2) + 0xff639000)
22287   //bit 9:0.  tRFC  in DDR clock.
22288 #define   DMC_UPCTL_TRP                            (0x0008)
22289 #define P_DMC_UPCTL_TRP                            (volatile uint32_t *)((0x0008  << 2) + 0xff639000)
22290   //bit 21:16.  tRP for all bank precharge.
22291   //bit 5:0.    tRP for per bank precharge.
22292 #define   DMC_UPCTL_TRTW                           (0x0009)
22293 #define P_DMC_UPCTL_TRTW                           (volatile uint32_t *)((0x0009  << 2) + 0xff639000)
22294   //bit 3:0.  tRTW.
22295 #define   DMC_UPCTL_TCL                            (0x000b)
22296 #define P_DMC_UPCTL_TCL                            (volatile uint32_t *)((0x000b  << 2) + 0xff639000)
22297   //bit 4:0 tCL.  read latency.
22298 #define   DMC_UPCTL_TCWL                           (0x000c)
22299 #define P_DMC_UPCTL_TCWL                           (volatile uint32_t *)((0x000c  << 2) + 0xff639000)
22300   //bit 4:0.  tCWL.  write latency.
22301 #define   DMC_UPCTL_TRAS                           (0x000d)
22302 #define P_DMC_UPCTL_TRAS                           (volatile uint32_t *)((0x000d  << 2) + 0xff639000)
22303   //bit 6:0.  tRAS.  Minimum Active to Precharge command time.
22304 
22305 #define   DMC_UPCTL_TRC                            (0x000e)
22306 #define P_DMC_UPCTL_TRC                            (volatile uint32_t *)((0x000e  << 2) + 0xff639000)
22307   //bit 6:0.  tRC.  active to active/Auto refresh command time  must = tRAS + tRP.
22308 
22309 #define   DMC_UPCTL_TRCD                           (0x000f)
22310 #define P_DMC_UPCTL_TRCD                           (volatile uint32_t *)((0x000f  << 2) + 0xff639000)
22311   //bit 6:0.  tRCD  active to read/write command time.
22312 
22313 #define   DMC_UPCTL_TRRD                           (0x0010)
22314 #define P_DMC_UPCTL_TRRD                           (volatile uint32_t *)((0x0010  << 2) + 0xff639000)
22315   //bit 19:16. tRRD_l.   tRRD between same bank group for DDR4.
22316   //bit 3:0.   tRRD_s.   tRRD between different bank group for DDR4. tRRD for other DDR type. Active bank to Active bank command time.
22317 
22318 #define   DMC_UPCTL_TFAW                           (0x0011)
22319 #define P_DMC_UPCTL_TFAW                           (volatile uint32_t *)((0x0011  << 2) + 0xff639000)
22320   //bit 7:0.  tFAW.    Four Bank Activate window.
22321 
22322 #define   DMC_UPCTL_TRTP                           (0x0012)
22323 #define P_DMC_UPCTL_TRTP                           (volatile uint32_t *)((0x0012  << 2) + 0xff639000)
22324   //bit 3:0.  tRTP.   read command to precharge command time.
22325 
22326 #define   DMC_UPCTL_TWR                            (0x0013)
22327 #define P_DMC_UPCTL_TWR                            (volatile uint32_t *)((0x0013  << 2) + 0xff639000)
22328   //bit 4:0.  tWR.    write recovery time.
22329 
22330 #define   DMC_UPCTL_TWTR                           (0x0014)
22331 #define P_DMC_UPCTL_TWTR                           (volatile uint32_t *)((0x0014  << 2) + 0xff639000)
22332   //bit 3:0.  tWTR.  write command to precharge command time.
22333 
22334 #define   DMC_UPCTL_TEXSR                          (0x0015)
22335 #define P_DMC_UPCTL_TEXSR                          (volatile uint32_t *)((0x0015  << 2) + 0xff639000)
22336   //bit 9:0.  tEXSR.  Exit selfrefresh to first valid command delay.
22337 
22338 #define   DMC_UPCTL_TXP                            (0x0016)
22339 #define P_DMC_UPCTL_TXP                            (volatile uint32_t *)((0x0016  << 2) + 0xff639000)
22340   //bit 3:0. tXP.   Exit power down to first valid command delay.
22341 
22342 #define   DMC_UPCTL_TXPDLL                         (0x0017)
22343 #define P_DMC_UPCTL_TXPDLL                         (volatile uint32_t *)((0x0017  << 2) + 0xff639000)
22344   //bit 5:0. tXPDLL.  exit precharge power down to read or write command.
22345 
22346 #define   DMC_UPCTL_TZQCS                          (0x0018)
22347 #define P_DMC_UPCTL_TZQCS                          (volatile uint32_t *)((0x0018  << 2) + 0xff639000)
22348  //bit 6:0. tZQCS.  short ZQ CAL command  time
22349 #define   DMC_UPCTL_TZQCSI                         (0x0019)
22350 #define P_DMC_UPCTL_TZQCSI                         (volatile uint32_t *)((0x0019  << 2) + 0xff639000)
22351   //bit 31:0. tZQinit.  the first time DDR3 long ZQ CAL command time.
22352 #define   DMC_UPCTL_TCKSRE                         (0x001a)
22353 #define P_DMC_UPCTL_TCKSRE                         (volatile uint32_t *)((0x001a  << 2) + 0xff639000)
22354   //bit 4:0.  tEXSR.   valid clock requirement after self refresh enter.
22355 
22356 #define   DMC_UPCTL_TCKSRX                         (0x001b)
22357 #define P_DMC_UPCTL_TCKSRX                         (volatile uint32_t *)((0x001b  << 2) + 0xff639000)
22358   //bit 4:0.  tCKSRX.  valid clock requirement before self refresh exit.
22359 
22360 #define   DMC_UPCTL_TCKE                           (0x001c)
22361 #define P_DMC_UPCTL_TCKE                           (volatile uint32_t *)((0x001c  << 2) + 0xff639000)
22362   //bit 2:0.  tCKE    CKE singal minmum low/high width.
22363 
22364 #define   DMC_UPCTL_TMOD                           (0x001d)
22365 #define P_DMC_UPCTL_TMOD                           (volatile uint32_t *)((0x001d  << 2) + 0xff639000)
22366   //bit 4:0  tMODE.     LOAD MODE command(MRS command) to non-LOAD MODE( not MRS command) cycle time
22367 
22368 #define   DMC_UPCTL_TDQS                           (0x001e)
22369 #define P_DMC_UPCTL_TDQS                           (volatile uint32_t *)((0x001e  << 2) + 0xff639000)
22370   //bit 3:0  tDQS.   Additional data turnaround time for access different ranks.
22371 
22372 #define   DMC_UPCTL_TRSTL                          (0x001f)
22373 #define P_DMC_UPCTL_TRSTL                          (volatile uint32_t *)((0x001f  << 2) + 0xff639000)
22374   //bit 6:0. tRSTL.  memory reset low time.
22375 
22376 #define   DMC_UPCTL_TZQCL                          (0x0020)
22377 #define P_DMC_UPCTL_TZQCL                          (volatile uint32_t *)((0x0020  << 2) + 0xff639000)
22378   //bit 9:0. LPDDR3/LPDDR2 ZQ CAL (long) period
22379 
22380 #define   DMC_UPCTL_TMRR                           (0x0021)
22381 #define P_DMC_UPCTL_TMRR                           (volatile uint32_t *)((0x0021  << 2) + 0xff639000)
22382   //tMRR.  not support for new PCTL.
22383 
22384 #define   DMC_UPCTL_TCKESR                         (0x0022)
22385 #define P_DMC_UPCTL_TCKESR                         (volatile uint32_t *)((0x0022  << 2) + 0xff639000)
22386   //bit 3:0.  minmum Self refresh entry to self refresh exit timing.
22387 
22388 #define   DMC_UPCTL_TREFI                          (0x0024)
22389 #define P_DMC_UPCTL_TREFI                          (volatile uint32_t *)((0x0024  << 2) + 0xff639000)
22390   //how many number of REFRESH command for one TREFI period.
22391 
22392 #define   DMC_UPCTL_TDPD                           (0x0025)
22393 #define P_DMC_UPCTL_TDPD                           (volatile uint32_t *)((0x0025  << 2) + 0xff639000)
22394   //bit 9:0.  Minimum Deep power time for LPDDR2/LPDDR3.  unit is us.
22395 
22396 #define   DMC_UPCTL_DFITCTRLDELAY                  (0x0026)
22397 #define P_DMC_UPCTL_DFITCTRLDELAY                  (volatile uint32_t *)((0x0026  << 2) + 0xff639000)
22398   //bit 3:0.  tctrl_delay for PHY.
22399 
22400 #define   DMC_UPCTL_DFIODTCFG                      (0x0027)
22401 #define P_DMC_UPCTL_DFIODTCFG                      (volatile uint32_t *)((0x0027  << 2) + 0xff639000)
22402   //bit 12.  rank1 ODT default. default vulue for ODT[1] pins if theres no read/write activity.
22403   //bit 11.  rank1 ODT write sel.  enable ODT[1] if there's write occur in rank1.
22404   //bit 10.  rank1 ODT write nsel. enable ODT[1] if theres's write occur in rank0.
22405   //bit 9.   rank1 odt read sel.   enable ODT[1] if there's read occur in rank1.
22406   //bit 8.   rank1 odt read nsel.  enable ODT[1] if there's read occure in rank0.
22407   //bit 4.   rank0 ODT default.    default vulue for ODT[0] pins if theres no read/write activity.
22408   //bit 3.   rank0 ODT write sel.  enable ODT[0] if there's write occur in rank0.
22409   //bit 2.   rank0 ODT write nsel. enable ODT[0] if theres's write occur in rank1.
22410   //bit 1.   rank0 odt read sel.   enable ODT[0] if there's read occur in rank0.
22411   //bit 0.   rank0 odt read nsel.  enable ODT[0] if there's read occure in rank1.
22412 #define   DMC_UPCTL_DFIODTCFG1                     (0x0028)
22413 #define P_DMC_UPCTL_DFIODTCFG1                     (volatile uint32_t *)((0x0028  << 2) + 0xff639000)
22414   //bit 27:24  ODT length for BL8 read transfer.
22415   //bit 19:16. ODT length for BL8 write transfer.
22416   //bit 12:8.  ODT latency for reads.  suppose to be 0.
22417   //bit 4:0.   ODT latency for writes.  suppose to be 0.
22418 
22419 #define   DMC_UPCTL_DFITPHYWRDATA                  (0x002a)
22420 #define P_DMC_UPCTL_DFITPHYWRDATA                  (volatile uint32_t *)((0x002a  << 2) + 0xff639000)
22421   //bit 4:0.  tphy_wrdata for DFI interface PHY.
22422 #define   DMC_UPCTL_DFITPHYWRLAT                   (0x002b)
22423 #define P_DMC_UPCTL_DFITPHYWRLAT                   (volatile uint32_t *)((0x002b  << 2) + 0xff639000)
22424   //bit 4:0.  tphy_wrlat.
22425 #define   DMC_UPCTL_DFITRDDATAEN                   (0x002c)
22426 #define P_DMC_UPCTL_DFITRDDATAEN                   (volatile uint32_t *)((0x002c  << 2) + 0xff639000)
22427   //bit 5:0.  tphy_rddataen
22428 #define   DMC_UPCTL_DFITPHYRDLAT                   (0x002d)
22429 #define P_DMC_UPCTL_DFITPHYRDLAT                   (volatile uint32_t *)((0x002d  << 2) + 0xff639000)
22430   //bit 5:0  tphy_rdlat
22431 #define   DMC_UPCTL_DFITPHYUPDTYPE0                (0x002e)
22432 #define P_DMC_UPCTL_DFITPHYUPDTYPE0                (volatile uint32_t *)((0x002e  << 2) + 0xff639000)
22433   //bit 13:0.   maximum number of DFI clock cycles that the dfi_phyupd_req signal may remain asserted after the assertion of the dfi_phyupd_ack signals for dfi_phyupd_type = 0x0.
22434 #define   DMC_UPCTL_DFITPHYUPDTYPE1                (0x002f)
22435 #define P_DMC_UPCTL_DFITPHYUPDTYPE1                (volatile uint32_t *)((0x002f  << 2) + 0xff639000)
22436   //bit 13:0.   maximum number of DFI clock cycles that the dfi_phyupd_req signal may remain asserted after the assertion of the dfi_phyupd_ack signals for dfi_phyupd_type = 0x1.
22437 #define   DMC_UPCTL_DFITPHYUPDTYPE2                (0x0030)
22438 #define P_DMC_UPCTL_DFITPHYUPDTYPE2                (volatile uint32_t *)((0x0030  << 2) + 0xff639000)
22439   //bit 13:0.   maximum number of DFI clock cycles that the dfi_phyupd_req signal may remain asserted after the assertion of the dfi_phyupd_ack signals for dfi_phyupd_type = 0x2.
22440 #define   DMC_UPCTL_DFITPHYUPDTYPE3                (0x0031)
22441 #define P_DMC_UPCTL_DFITPHYUPDTYPE3                (volatile uint32_t *)((0x0031  << 2) + 0xff639000)
22442   //bit 13:0.   maximum number of DFI clock cycles that the dfi_phyupd_req signal may remain asserted after the assertion of the dfi_phyupd_ack signals for dfi_phyupd_type = 0x3.
22443 #define   DMC_UPCTL_DFITCTRLUPDMIN                 (0x0032)
22444 #define P_DMC_UPCTL_DFITCTRLUPDMIN                 (volatile uint32_t *)((0x0032  << 2) + 0xff639000)
22445   //bit 15:0 specifies the minimum number of DFI clock cycles that the dfi_ctrlupd_req signal must be asserted.
22446 
22447 #define   DMC_UPCTL_DFITCTRLUPDMAX                 (0x0033)
22448 #define P_DMC_UPCTL_DFITCTRLUPDMAX                 (volatile uint32_t *)((0x0033  << 2) + 0xff639000)
22449   //bit 15:0 specifies the maximum number of DFI clock cycles that the dfi_ctrlupd_req signal can asserted.
22450 
22451 #define   DMC_UPCTL_DFITCTRLUPDDLY                 (0x0034)
22452 #define P_DMC_UPCTL_DFITCTRLUPDDLY                 (volatile uint32_t *)((0x0034  << 2) + 0xff639000)
22453   //bit 3:0.  Delay in DFI clock cycles between time a UPCTL-initiated update could be started and time upctl-initated update actually starts.
22454 
22455 #define   DMC_UPCTL_DFIUPDCFG                      (0x0035)
22456 #define P_DMC_UPCTL_DFIUPDCFG                      (volatile uint32_t *)((0x0035  << 2) + 0xff639000)
22457   //bit 2. enable the generation of uPCTL-initiated updates during Wakeup(from low_power to Access state).
22458   //bit 1. dfi_phyupd_en.  enables the support for acknowledging PHY-initiated updates.
22459   //bit 0. dfi_ctlupd_en.  enable the generation of uPCTL-initiated updates.
22460 
22461 #define   DMC_UPCTL_DFITREFMSKI                    (0x0036)
22462 #define P_DMC_UPCTL_DFITREFMSKI                    (volatile uint32_t *)((0x0036  << 2) + 0xff639000)
22463   //12:0.  time period of the masked refresh interval.
22464 
22465 #define   DMC_UPCTL_DFITCTRLUPDI                   (0x0037)
22466 #define P_DMC_UPCTL_DFITCTRLUPDI                   (volatile uint32_t *)((0x0037  << 2) + 0xff639000)
22467  //31:0. DFI upctl-iitiated updates interval, measured in terms of Refresh interval units.
22468 
22469 #define   DMC_UPCTL_DFITRCFG0                      (0x0038)
22470 #define P_DMC_UPCTL_DFITRCFG0                      (volatile uint32_t *)((0x0038  << 2) + 0xff639000)
22471  //bit 19:16 dfi_rdlvl_rank_sel  Determines the value to drive on the output singal dfi_wrlvl_cs_n.
22472  //bit 12:4  dfi_rdlvl_edge      Determines the value to drive on the output signal dfi_rdlvl_edge.
22473  //bit 3:0.  dfi_rdlvl_rank_sel  Determines the value to drive on the output signal dfi_rdlvl_cs_n.
22474 
22475 #define   DMC_UPCTL_DFITRWRLVLEN                   (0x0039)
22476 #define P_DMC_UPCTL_DFITRWRLVLEN                   (volatile uint32_t *)((0x0039  << 2) + 0xff639000)
22477   //bit 8:0.  dfi_wrlvl_en.  Determines the value to drive on the output signal dfi_wrlvl_en.
22478 
22479 #define   DMC_UPCTL_DFITRRDLVLEN                   (0x003a)
22480 #define P_DMC_UPCTL_DFITRRDLVLEN                   (volatile uint32_t *)((0x003a  << 2) + 0xff639000)
22481   //bit 8:0. dfi_rdlvl_en.  Determines the value to drive on the output signal dfi_rdlvl_en.
22482 
22483 #define   DMC_UPCTL_DFITRRDLVLGATEEN               (0x003b)
22484 #define P_DMC_UPCTL_DFITRRDLVLGATEEN               (volatile uint32_t *)((0x003b  << 2) + 0xff639000)
22485   //bit 8:0. dfi_rdlvl_gate_en  . Determines the value to drive on the output signal dfi_rdlvl_gate_en.
22486 
22487 #define   DMC_UPCTL_DFISTCFG0                      (0x003c)
22488 #define P_DMC_UPCTL_DFISTCFG0                      (volatile uint32_t *)((0x003c  << 2) + 0xff639000)
22489   //bit 2 enables the driving of the dfi_data_byte_disable signal.
22490   //bit 1 enables the driving of the dfi_freq_ratio signals.
22491   //bit 0 dfi_init_start  set the value of the dfi_init_start signal.
22492 
22493 #define   DMC_UPCTL_DFISTCFG1                      (0x003d)
22494 #define P_DMC_UPCTL_DFISTCFG1                      (volatile uint32_t *)((0x003d  << 2) + 0xff639000)
22495   //bit 1 . enables support of the dfi_dram-clk_disable signal with Deep Power down for LPDDR2.
22496   //bit 0.  enables support of the dfi_dram_clk_disable with self refresh.
22497 
22498 #define   DMC_UPCTL_DFITDRAMCLKEN                  (0x003e)
22499 #define P_DMC_UPCTL_DFITDRAMCLKEN                  (volatile uint32_t *)((0x003e  << 2) + 0xff639000)
22500   //bit 3:0.  t_dram_clk_enable.  number of DFI clock cycles from the de-assertion of the dfi_dram_clk_disable signal on the DFI until the first valid rising edge of the clock to the dram memory device.
22501 #define   DMC_UPCTL_DFITDRAMCLKDIS                 (0x003f)
22502 #define P_DMC_UPCTL_DFITDRAMCLKDIS                 (volatile uint32_t *)((0x003f  << 2) + 0xff639000)
22503   //bit 3:0. t_dram_clk_disable. number of DFI clock cycles from the assertionof the dfi_dram_clk_disable signal on the DFI until the clock to the DRAM memory device, maintains a low vale.
22504 
22505 #define   DMC_UPCTL_DFILPCFG0                      (0x0040)
22506 #define P_DMC_UPCTL_DFILPCFG0                      (volatile uint32_t *)((0x0040  << 2) + 0xff639000)
22507   //bit 31:28. dfi_lp_wakeup_dpd.  value to drive on dfi_lp_wakeup signal when Deep power down mode is entered.
22508          //4'b0000 -16 cycels.
22509          //4'b0001 -32 cycels.
22510          //4'b0010 -64 cycels.
22511          //4'b0011 -128 cycels.
22512          //4'b0100 -256 cycels.
22513          //4'b0101 -512 cycels.
22514          //4'b0110 -1024 cycels.
22515          //4'b0111 -2048 cycels.
22516   //bit 24. dfi_lp_en_dpd.  Enables DFI low power interface handshading during Deep power down mode.
22517   //bit 19:16.  setting for tlp_resp time.
22518   //bit 15:12. dfi_lp_wakeup_dr.  value to drive on dfi_lp_wakeup signals when self refresh mode is entered.
22519   //bit 8.     dfi_lp_en_sr.  enables DFI low power interface handshading during self refresh.
22520   //bit 7:4.   dfi_lp_wakeup_pd value to drive on dfi_lp_wakeup signal when Power Down mode is entered.
22521   //bit 0.     dfi_lp_en_pd.  enable DFI low power interface handshading during power down entry/exit.
22522 #define   DMC_UPCTL_MCFG                           (0x0041)
22523 #define P_DMC_UPCTL_MCFG                           (volatile uint32_t *)((0x0041  << 2) + 0xff639000)
22524   //bit 31:24.  clock stop idle period in n_clk cycles. for LPDDR2 and LPDDR3 . 0 to disalbe.
22525   //bit 21:20.   LPDDR2/LPDDR3 burst lenght.  must ot be 2'b10. only support BL8.
22526   //bit 17.  PD_exit mode.  0 slow exit.  1: fast exit.
22527   //bit 16.  pd_type.   0 precharge power down. 1 active power down.
22528   //bit 15:8.  pd_idle.  power down idle perild in n_clk cycles. memory puts to power down mode if the PCTL is ile for pd_idle n_clk cycles.
22529   //bit 7.  always 0.
22530   //bit 6:4.  DDR type.
22531       //3'b000:  DDR3 mode.
22532       //3'b001:  DDR4 mode.
22533       //3'b010:  LPDDR3 mode.
22534       //3'b011:  LPDDR2 mode.
22535   //bit 3.   2T mode. for DDR3 and DDR4 we can sett to 1T or 2T.  for LPDDR3, we must set it to 2T for DMC generating command..
22536   //bit 2  always 0.
22537   //bit 0. burst length. always 1 for burst 8.  (GXL only suport burst 8.)
22538 
22539 #define   DMC_UPCTL_MCFG1                          (0x0042)
22540 #define P_DMC_UPCTL_MCFG1                          (volatile uint32_t *)((0x0042  << 2) + 0xff639000)
22541   //bit 0.  disable DMC traffic to PCTL and DFI interface.
22542 
22543 #define   DMC_UPCTL_PPCFG                          (0x0043)
22544 #define P_DMC_UPCTL_PPCFG                          (volatile uint32_t *)((0x0043  << 2) + 0xff639000)
22545   //bit 0. ppmem enablel.  0 : ddr sdram is 32 data bits mode.  1: ddr sdram is 16 data bits mode.
22546 
22547 #define   DMC_UPCTL_ZQCFG                          (0x0044)
22548 #define P_DMC_UPCTL_ZQCFG                          (volatile uint32_t *)((0x0044  << 2) + 0xff639000)
22549   //bit 31:24. zqcl_op.   for LPDDR2/LPDDR3 mode. value to drive on memory address bit [19:12] for an automatic hardware generated ZQCL commands.
22550   //bit 23:16. zqcl_ma.   for LPDDR2/LPDDR3 mode. value to drive on memory address bits [[11:4] for an automatic hardware generated ZQCL command.
22551   //bit 15:8.  zqcs_op.   for LPDDr2/LPDDR3 mode. value to drive on memory address bit [19:12] for automatic hardware generated ZQCS command.
22552   //bit 7:0.   zqcs_ma.   for LPDDR2/LPDDR3 mode. value to drive on memory address bits [[11:4] for an automatic hardware generated ZQCS command.
22553 
22554 #define   DMC_UPCTL_DFISTSTAT0                     (0x0046)
22555 #define P_DMC_UPCTL_DFISTSTAT0                     (volatile uint32_t *)((0x0046  << 2) + 0xff639000)
22556   //bit 24:16.  DFI data byte disable. reports the value of the output signal dfi_data_byte_disable.
22557   //bit 5:4.    report the value of the output signal of dfi_freq_ratio.
22558   //bit 1.     dfi_init_start.  reports the value of the value of the dfi_init_start output.
22559   //bit 0.     dfi_init_complete. init finish.
22560 
22561 #define   DMC_UPCTL_STAT                           (0x0048)
22562 #define P_DMC_UPCTL_STAT                           (volatile uint32_t *)((0x0048  << 2) + 0xff639000)
22563   //bit 31:15.  not used.
22564   //bit 14.  dmc to pctl inteface is idle.  1 = idle. 0: not idle.
22565   //bit 13.  pctl dpu is idle. 1 : idle. 0 : not idle.
22566   //bit 12.   pctl dcu is idle. 1 : idle. 0 : not idle.
22567   //bit 11:9  not used.
22568   //bit 8.   auto power down stats. 1 : SDRAM in power down state  0: not..
22569   //bit 7.
22570   //bit 6:4.  Lower power state trigger state.  bit 6:     software drive.
22571   //                                        bit 5:    hardware driven due to hardware low power interface.
22572                                           //bit 4:    hardware driven due to auto self refresh(MCFG1.sr_idle >> 0).
22573   //bit 2:0.  current operation state of uPCTL.
22574      //3'b000 = init_mem.
22575      //3'b001 = config.
22576      //3'b010 = config_req.
22577      //3'b011 = access.
22578      //3'b100 = access_req.
22579      //3'b101 = Low_power.
22580      //3'b110 = low_power _entry_req.
22581      //3'b111 = low power exit _req.
22582 
22583 #define   DMC_UPCTL_TAL                            (0x0050)
22584 #define P_DMC_UPCTL_TAL                            (volatile uint32_t *)((0x0050  << 2) + 0xff639000)
22585    //need to be deleted.
22586 
22587 #define   DMC_UPCTL_ODTRANK_MAP                    (0x0051)
22588 #define P_DMC_UPCTL_ODTRANK_MAP                    (volatile uint32_t *)((0x0051  << 2) + 0xff639000)
22589    // need to be deleted.
22590 
22591 #define   DMC_UPCTL_TCCD                           (0x0052)
22592 #define P_DMC_UPCTL_TCCD                           (volatile uint32_t *)((0x0052  << 2) + 0xff639000)
22593    //bit 19:16:   tCCD_l.
22594    //bit 3:0 :    tCCD_s.
22595 
22596 
22597 
22598 //
22599 // Closing file:  ../mmc/upctl_1rank/src/dmc_upctl_define.vh
22600 //
22601 //
22602 // Reading file:  ../mmc/ddr_ip/rtl/mmc_reg_define.vh
22603 //
22604 
22605 // -----------------------------------------------
22606 // REG_BASE:  MMC_REG_BASE = 0xff637000
22607 // -----------------------------------------------
22608 #define   AM_DDR_PLL_CNTL0                         (0x0000)
22609 #define P_AM_DDR_PLL_CNTL0                         (volatile uint32_t *)((0x0000  << 2) + 0xff637000)
22610   //bit 31 :     DDR DPLL_EN
22611   //bit 30 :     DDR_DPLL_RESET
22612   //bit 29:28 :  DDR_DPLL_CLK_EN
22613   //bit 27:21 :  Not used.
22614   //bit 20:16 :  DDR_DPLL_N
22615   //bit 12:4  :  DDR_DPLL_M
22616   //bit 3:2   :  DDR_DPLL_OD
22617   //bit 1:0   :  DDR_DPLL_OD1
22618 #define   AM_DDR_PLL_CNTL1                         (0x0001)
22619 #define P_AM_DDR_PLL_CNTL1                         (volatile uint32_t *)((0x0001  << 2) + 0xff637000)
22620   //bit 31:22  : Not used.
22621   //bit 21     : DDR_DPLL_DPFD_LMODE
22622   //bit 20:19  : DDR_DPLL_DCVC_IN
22623   //bit 18     : DDR_DPLL_DIV_MODE
22624   //bit 17     : DDR_DPLL_DCO_SDM_EN
22625   //bit 16:15  : DDR_DPLL_DCO_SDMCK_SEL
22626   //bit 14     : DDR_DPLL_DCO_M_EN
22627   //bit 13     : DDR_DPLL_DCO_BAND_OPT
22628   //bit 12:10  : DDR_DPLL_DATA_SEL
22629   //bit 9:8    : DDR_DPLL_AFC_NT
22630   //bit 7:6    : DDR_DPLL_AFC_HOLD_T
22631   //bit 5:4    : DDR_DPLL_AFC_DSEL_IN
22632   //bit 3      : DDR_DPLL_AFC_DSEL_BYPASS
22633   //bit 2      : DDR_DPLL_AFC_CLK_SEL
22634   //bit 1:0    : DDR_DPLL_ACQ_R_CTR
22635 #define   AM_DDR_PLL_CNTL2                         (0x0002)
22636 #define P_AM_DDR_PLL_CNTL2                         (volatile uint32_t *)((0x0002  << 2) + 0xff637000)
22637   //bit 31:28  : DDR_DPLL_FILTER_PVT2
22638   //bit 27:24  : DDR_DPLL_FILTER_PVT1
22639   //bit 23:22  : not used.
22640   //bit 21:11  : DDR_DPLL_FILTER_ACQ2
22641   //bit 10:0   : DDR_DPLL_FILTER_ACQ1
22642 #define   AM_DDR_PLL_CNTL3                         (0x0003)
22643 #define P_AM_DDR_PLL_CNTL3                         (volatile uint32_t *)((0x0003  << 2) + 0xff637000)
22644   //bit 31     : DDR_DPLL_SDMNC_EN
22645   //bit 30     : DDR_DPLL_SDMNC_MODE
22646   //bit 29     : DDR_DPLL_SDMNC_RANGE
22647   //bit 28:27  : not used.
22648   //bit 26:20  : DDR_DPLL_SDMNC_POWER
22649   //bit 19:17  : DDR_DPLL_SDMNC_ULMS
22650   //bit 16     : DDR_DPLL_LOCK_BYPASSN
22651   //bit 15:12  : DDR_DPLL_LM_W
22652   //bit 11:6   : DDR_DPLL_LM_S
22653   //bit 5      : DDR_DPLL_IIR_BYPASS_N
22654   //bit 4      : DDR_DPLL_FREQ_SHIFT_EN
22655   //bit 3:2    : DDR_DPLL_FREQ_SHIFT_V
22656   //bit 1:0    : DDR_DPLL_FREQ_SEL
22657 #define   AM_DDR_PLL_CNTL4                         (0x0004)
22658 #define P_AM_DDR_PLL_CNTL4                         (volatile uint32_t *)((0x0004  << 2) + 0xff637000)
22659   //bit 31     : DDR_DPLL_SSEN
22660   //bit 30:28  : DDR_DPLL_SS_AMP
22661   //bit 27     : DDR_DPLL_SS_CLK_SEL
22662   //bit 26     : not used.
22663   //bit 25:21  : DDR_DPLL_SS_CLK
22664   //bit 20     : DDR_DPLL_SSC_EN
22665   //bit 19:16  : DDR_DPLL_SSC_DEP_SEL
22666   //bit 15:14  : DDR_DPLL_SSC_MODE
22667   //bit 13:12  : DDR_DPLL_SSC_OFFSET
22668   //bit 11:10  : DDR_DPLL_SSC_STR_M
22669   //bit 9      : not used.
22670   //bit 8      : DDR_DPLL_TDC_EN
22671   //bit 7      : DDR_DPLL_TDC_CAL_EN
22672   //bit 6      : DDR_DPLL_CODE_NEW
22673   //bit 5:4    : DDR_DPLL_TDC_DELAY_C
22674   //bit 3:2    : DDR_DPLL_TDC_OFF_C
22675   //bit 1:0    : DDR_DPLL_VBG_CT_VC
22676 #define   AM_DDR_PLL_CNTL5                         (0x0005)
22677 #define P_AM_DDR_PLL_CNTL5                         (volatile uint32_t *)((0x0005  << 2) + 0xff637000)
22678   //bit 32:29  : DDR_DPLL_VBG_PTAT_VC
22679   //bit 28:27  : not used.
22680   //bit 26     : DDR_DPLL_PVT_FIX_EN
22681   //bit 25:24  : DDR_DPLL_FB_OD
22682   //bit 23:12  : DDR_DPLL_DIV_FRAC
22683   //bit 11:0   : DDR_DPLL_REVE
22684 #define   AM_DDR_PLL_STS                           (0x0006)
22685 #define P_AM_DDR_PLL_STS                           (volatile uint32_t *)((0x0006  << 2) + 0xff637000)
22686   //bit 31     : DDR_PLL_LOCK
22687   //bit 30:19  : not used.
22688   //bit 18     : DDR_AFC_DONE
22689   //bit 17     : DDR_PLL_LOCK
22690   //bit 16:7   : DDR_DPLL_OUT_RSV
22691   //bit 6:0    : DDR_SDMNC_MONITOR
22692 
22693 #define   DDR_CLK_CNTL                             (0x0007)
22694 #define P_DDR_CLK_CNTL                             (volatile uint32_t *)((0x0007  << 2) + 0xff637000)
22695   //bit 31     ddr_pll_clk enable. enable the clock from DDR_PLL to clock generateion.
22696   // whenever change the DDR_PLL frequency, disable the clock, after the DDR_PLL locked, then enable it again.
22697   //bit 30.    ddr_pll_prod_test_en.  enable the clock to clock/32 which to clock frequency measurement and production test pin.
22698   //bit 29.    ddr_phy_ctl_clk enable.
22699   //bit 28.    clock generation logic soft reset. 0 = reset.
22700   //bit 27.    phy_4xclk phase inverter..
22701   //bit 26.    pll_freq divide/2. 1:  use pll div/2 clock as the n_clk. 0: use pll clock as n_clk.  this setting is used for the synopsys DDR PHY PLL fast lock mode.
22702   //bit 3. force to disable PUB PCLK.
22703   //bit 2. PUB auto ctrl n_clk clock gating enable. when the DFI_LP_REQ and DFI_LP_ACK detected , auto gated PUB n_clk.
22704   //bit 1. force to disable PUB PCLK.
22705   //bit 0. PUB pclk auto clock gating enable.  when the IP detected PCTL enter power down mode,  use this bit to gating pub pclk.
22706   //
22707 
22708 #define   DDR0_SOFT_RESET                          (0x0008)
22709 #define P_DDR0_SOFT_RESET                          (volatile uint32_t *)((0x0008  << 2) + 0xff637000)
22710 //bit 3. pub n_clk domain soft reset.  1 active.
22711 //bit 2. pub p_clk domain soft reset.
22712 
22713 #define   DDR0_APD_CTRL                            (0x0009)
22714 #define P_DDR0_APD_CTRL                            (volatile uint32_t *)((0x0009  << 2) + 0xff637000)
22715 //bit 23:16.   power down enter latency. when IP checked the dfi_lp_req && dfi_lp_ack,  give PCTL and pub additional latency let them settle down, then gating the clock.
22716 //bit 14    AC ctl_clk auto clock gating enable.
22717 //bit 13    AC ddr_clk auto clock gating enable.
22718 //bit 12    AC rdclk auto clock gating enable.
22719 //bit 11:8  DX ctl_clk auto clock gating enable.  1 = enable. 0 = disable.
22720 //bit 7:4.  DX ddr_clk auto clock gating enable.  1 = enable. 0 = disable.
22721 //bit 3:0.  DX rd_clk auto clock gating enable.   1 = enable. 0 = disable.
22722 
22723 #define   DDR0_PHY_CLK_CNTL0                       (0x000a)
22724 #define P_DDR0_PHY_CLK_CNTL0                       (volatile uint32_t *)((0x000a  << 2) + 0xff637000)
22725 // this final pin result is 1, means enable this clock. the final pin result is 0. means disable this clock.
22726 // if use auto, means the hardware will disable this clock if there's no traffic in DFI and PHY is in LOW power mode.
22727 // PUB_CGCR regsiter is used to control if use this pins. so please check PUB data book for CGCR register define.
22728 //bit 31.     not used.
22729 //bit 30      PHY_TOP AC ctl_clk clock gating auto generate enable 1 = auto 0 : 0.
22730 //bit 29      PHY_TOP AC ddr_clk clock gating auto generate enable 1 = auto 0 : 0.
22731 //bit 28      PHY_TOP AC rdclk   clock gating auto generate enable 1 = auto 0 : 0.
22732 //bit 27:24   PHY_TOP DX ctl_clk clock gating auto generate enable 1 = auto 0 : 0.
22733 //bit 23:20.  PHY_TOP DX ddr_clk clock gating auto generate enable 1 = auto 0 : 0.
22734 //bit 19:16.  PHY_TOP DX rd_clk  clock gating auto generate enable 1 = auto 0 : 0.
22735 //bit 15.   not used.
22736 //bit 14    PHY_TOP AC ctl_clk clock enable pin high 1 : pin = 1. 0 : use auto ctrol
22737 //bit 13    PHY_TOP AC ddr_clk clock enable pin high 1 : pin = 1. 0 : use auto ctrol
22738 //bit 12    PHY_TOP AC rdclk   clock enable pin high 1 : pin = 1. 0 : use auto ctrol
22739 //bit 11:8  PHY_TOP DX ctl_clk clock enable pin high 1 : pin = 1. 0 : use auto ctrol
22740 //bit 7:4.  PHY_TOP DX ddr_clk clock enable pin high 1 : pin = 1. 0 : use auto ctrol
22741 //bit 3:0.  PHY_TOP DX rd_clk  clock enable pin high 1 : pin = 1. 0 : use auto ctrol
22742 
22743 #define   DDR0_PHY_CLK_CNTL1                       (0x000b)
22744 #define P_DDR0_PHY_CLK_CNTL1                       (volatile uint32_t *)((0x000b  << 2) + 0xff637000)
22745 // this final pin result is 1, means enable this clock. the final pin result is 0. means disable this clock.
22746 // if use auto, means the hardware will disable this clock if there's no traffic in DFI and PHY is in LOW power mode.
22747 // PUB_CGCR regsiter is used to control if use this pins.
22748 //bit 10    PUB global logic auto clock gating enable. 1 = auto. 0 : pin = 0.
22749 //bit 9     PUB DFI auto clock gating enable.          1 = auto. 0 : pin = 0.
22750 //bit 8     PUB SCH auto clock gating enable.          1 = auto. 0 : pin = 0.
22751 //bit 7     PUB global logic clock gating enable.   1 = pin = 1. 0 : use auto ctrl.
22752 //bit 6     PUB schedule clock gating enable        1 = pin = 1. 0 : use auto ctrl.
22753 //bit 5     PUB DFI clock gating enable             1 = pin = 1. 0 : use auto ctrl.
22754 //bit 4     PUB config logic gating clock enable.   1 = pin = 1. 0 : pin = 0.
22755 //bit 3     PUB initialization gating clock enable. 1 = pin = 1. 0 : pin = 0.
22756 //bit 2     PUB trainning clock gating enable.      1 = pin = 1. 0 : pin = 0.
22757 //bit 1     PUB bist clock gating enable.           1 = pin = 1. 0 : pin = 0.
22758 //bit 0     PUB dcu clock gating enable.            1 = pin = 1. 0 : pin = 0.
22759 
22760 #define   DDR0_FRQ_CHG                             (0x000c)
22761 #define P_DDR0_FRQ_CHG                             (volatile uint32_t *)((0x000c  << 2) + 0xff637000)
22762 //bit 31    enable PLL fast frequncy change.  write 1 to start. after this bit cleaned, it finished.
22763 //bit 30.   tinit_start watch dog timeout error status.  write 1 to clean.   after dfi_init_start high, there's no dfi_init_complete response from PHY.
22764 //bit 29.   tinit_complete watch dog timeout error status. write 1 to clean.  after dfi_init_start low. there's no dfi_init_complete response from PHY.
22765 //bit 22:   disable PUB n_clk when hardare change AMPLL OD.   1 : disable. 0 not.
22766 //bit 21:   disable PHY n_clk when hardare change AMPLL OD.   1 : dsiable. 0 not.
22767 //bit 20:   disable DMC(SYSTEM) n_clk when hardare change AMPLL OD.   1 : dsiable. 0 not.
22768 //bit 19:4.  wait cycles for the PLL stable after change PLL OD OD1 value. suppose should be several cycles.
22769 //bit 3:2.   new value of the PLL OD pin . After FFC, this value copied to AM_DDR_PLL_CNTL0 3:2 .
22770 //bit 1:0.   new value of the PLL OD1 pin. After FFC, this value copied to AM_DDR_PLL_CNTL0 1:0.
22771 #define   DDR0_FRQ_PTR0                            (0x000d)
22772 #define P_DDR0_FRQ_PTR0                            (volatile uint32_t *)((0x000d  << 2) + 0xff637000)
22773  //bit 31:16. not used.
22774  //bit 15:0.  tinit_start(tDFI_INIT_START) for frequency change.
22775 #define   DDR0_FRQ_PTR1                            (0x000e)
22776 #define P_DDR0_FRQ_PTR1                            (volatile uint32_t *)((0x000e  << 2) + 0xff637000)
22777  //bit 31:0.  tinit_complete(tDFI_INIT_COMPLETE) for frequency change.
22778 
22779 #define   DDR0_PHY_IO_CTRL0                        (0x0010)
22780 #define P_DDR0_PHY_IO_CTRL0                        (volatile uint32_t *)((0x0010  << 2) + 0xff637000)
22781  //bit 31.   dj for cs_n[0] pin
22782  //bit 30.   et for cs_n[0] pin
22783  //bit 29.   oj for cs_n[0] pin
22784  //bit 28.   sj for cs_n[0] pin
22785  //bit 27.   dj for odt[1] pin
22786  //bit 26.   et for odt[1] pin
22787  //bit 25.   oj for odt[1] pin
22788  //bit 24.   sj for odt[1] pin
22789  //bit 23.   dj for odt[0] pin
22790  //bit 22.   et for odt[0] pin
22791  //bit 21.   oj for odt[0] pin
22792  //bit 20.   sj for odt[0] pin
22793  //bit 19.   dj for cke[1] pin
22794  //bit 18.   et for cke[1] pin
22795  //bit 17.   oj for cke[1] pin
22796  //bit 16.   sj for cke[1] pin
22797  //bit 15.   dj for cke[0] pin
22798  //bit 14.   et for cke[0] pin
22799  //bit 13.   oj for cke[0] pin
22800  //bit 12.   sj for cke[0] pin
22801  //bit 11.   dj for ck_n pin
22802  //bit 10.   et for ck_n pin
22803  //bit 9.    oj for ck_n pin
22804  //bit 8.    sj for ck_n pin
22805  //bit 7.    dj for ck pin
22806  //bit 6.    et for ck pin
22807  //bit 5.    oj for ck pin
22808  //bit 4.    sj for ck pin
22809  //bit 3.    dj for mem_rst_n pin
22810  //bit 2.    et for mem_rst_n pin
22811  //bit 1.    oj for mem_rst_n pin
22812  //bit 0.    sj for mem_rst_n pin
22813 
22814 #define   DDR0_PHY_IO_CTRL1                        (0x0011)
22815 #define P_DDR0_PHY_IO_CTRL1                        (volatile uint32_t *)((0x0011  << 2) + 0xff637000)
22816  //bit 7.   dj for act_n pin
22817  //bit 6.   et for act_n pin
22818  //bit 5.   oj for act_n pin
22819  //bit 4.   sj for act_n pin
22820  //bit 4.   dj for cs_n[1] pin
22821  //bit 3.   et for cs_n[1] pin
22822  //bit 2.   oj for cs_n[1] pin
22823  //bit 1.   sj for cs_n[1] pin
22824 #define   DDR0_PHY_IO_CTRL2                        (0x0012)
22825 #define P_DDR0_PHY_IO_CTRL2                        (volatile uint32_t *)((0x0012  << 2) + 0xff637000)
22826 #define   DDR0_PHY_IO_CTRL3                        (0x0013)
22827 #define P_DDR0_PHY_IO_CTRL3                        (volatile uint32_t *)((0x0013  << 2) + 0xff637000)
22828 #define   DDR0_PHY_IO_CTRL4                        (0x0014)
22829 #define P_DDR0_PHY_IO_CTRL4                        (volatile uint32_t *)((0x0014  << 2) + 0xff637000)
22830 #define   DDR0_PHY_IO_CTRL5                        (0x0015)
22831 #define P_DDR0_PHY_IO_CTRL5                        (volatile uint32_t *)((0x0015  << 2) + 0xff637000)
22832 #define   DDR0_PHY_IO_CTRL6                        (0x0016)
22833 #define P_DDR0_PHY_IO_CTRL6                        (volatile uint32_t *)((0x0016  << 2) + 0xff637000)
22834 #define   DDR0_PHY_IO_CTRL7                        (0x0017)
22835 #define P_DDR0_PHY_IO_CTRL7                        (volatile uint32_t *)((0x0017  << 2) + 0xff637000)
22836 #define   DDR0_PHY_IO_CTRL8                        (0x0018)
22837 #define P_DDR0_PHY_IO_CTRL8                        (volatile uint32_t *)((0x0018  << 2) + 0xff637000)
22838 #define   DDR0_PHY_IO_CTRL9                        (0x0019)
22839 #define P_DDR0_PHY_IO_CTRL9                        (volatile uint32_t *)((0x0019  << 2) + 0xff637000)
22840 #define   DDR0_PHY_IO_ST0                          (0x001a)
22841 #define P_DDR0_PHY_IO_ST0                          (volatile uint32_t *)((0x001a  << 2) + 0xff637000)
22842 #define   DDR0_PHY_IO_ST1                          (0x001b)
22843 #define P_DDR0_PHY_IO_ST1                          (volatile uint32_t *)((0x001b  << 2) + 0xff637000)
22844 #define   DDR0_PHY_IO_ST2                          (0x001c)
22845 #define P_DDR0_PHY_IO_ST2                          (volatile uint32_t *)((0x001c  << 2) + 0xff637000)
22846 
22847 
22848 //
22849 // Closing file:  ../mmc/ddr_ip/rtl/mmc_reg_define.vh
22850 //
22851 //
22852 // Reading file:  ../mmc/ddr_ip/rtl/ddr_phy_pub_reg.vh
22853 //
22854 
22855 // -----------------------------------------------
22856 // REG_BASE:  DDR0_PUB_REG_BASE = 0xff636000
22857 // -----------------------------------------------
22858 
22859 
22860 #define   DDR0_PUB_RIDR                            (0x0000)
22861 #define P_DDR0_PUB_RIDR                            (volatile uint32_t *)((0x0000  << 2) + 0xff636000)
22862 #define   DDR0_PUB_PIR                             (0x0001)
22863 #define P_DDR0_PUB_PIR                             (volatile uint32_t *)((0x0001  << 2) + 0xff636000)
22864 #define   DDR0_PUB_CGCR                            (0x0002)
22865 #define P_DDR0_PUB_CGCR                            (volatile uint32_t *)((0x0002  << 2) + 0xff636000)
22866 #define   DDR0_PUB_CGCR1                           (0x0003)
22867 #define P_DDR0_PUB_CGCR1                           (volatile uint32_t *)((0x0003  << 2) + 0xff636000)
22868 #define   DDR0_PUB_PGCR0                           (0x0004)
22869 #define P_DDR0_PUB_PGCR0                           (volatile uint32_t *)((0x0004  << 2) + 0xff636000)
22870 #define   DDR0_PUB_PGCR1                           (0x0005)
22871 #define P_DDR0_PUB_PGCR1                           (volatile uint32_t *)((0x0005  << 2) + 0xff636000)
22872 #define   DDR0_PUB_PGCR2                           (0x0006)
22873 #define P_DDR0_PUB_PGCR2                           (volatile uint32_t *)((0x0006  << 2) + 0xff636000)
22874 #define   DDR0_PUB_PGCR3                           (0x0007)
22875 #define P_DDR0_PUB_PGCR3                           (volatile uint32_t *)((0x0007  << 2) + 0xff636000)
22876 #define   DDR0_PUB_PGCR4                           (0x0008)
22877 #define P_DDR0_PUB_PGCR4                           (volatile uint32_t *)((0x0008  << 2) + 0xff636000)
22878 #define   DDR0_PUB_PGCR5                           (0x0009)
22879 #define P_DDR0_PUB_PGCR5                           (volatile uint32_t *)((0x0009  << 2) + 0xff636000)
22880 #define   DDR0_PUB_PGCR6                           (0x000a)
22881 #define P_DDR0_PUB_PGCR6                           (volatile uint32_t *)((0x000a  << 2) + 0xff636000)
22882 #define   DDR0_PUB_PGCR7                           (0x000b)
22883 #define P_DDR0_PUB_PGCR7                           (volatile uint32_t *)((0x000b  << 2) + 0xff636000)
22884 #define   DDR0_PUB_PGCR8                           (0x000c)
22885 #define P_DDR0_PUB_PGCR8                           (volatile uint32_t *)((0x000c  << 2) + 0xff636000)
22886 #define   DDR0_PUB_PGSR0                           (0x000d)
22887 #define P_DDR0_PUB_PGSR0                           (volatile uint32_t *)((0x000d  << 2) + 0xff636000)
22888 #define   DDR0_PUB_PGSR1                           (0x000e)
22889 #define P_DDR0_PUB_PGSR1                           (volatile uint32_t *)((0x000e  << 2) + 0xff636000)
22890 #define   DDR0_PUB_PTR0                            (0x0010)
22891 #define P_DDR0_PUB_PTR0                            (volatile uint32_t *)((0x0010  << 2) + 0xff636000)
22892 #define   DDR0_PUB_PTR1                            (0x0011)
22893 #define P_DDR0_PUB_PTR1                            (volatile uint32_t *)((0x0011  << 2) + 0xff636000)
22894 #define   DDR0_PUB_PTR2                            (0x0012)
22895 #define P_DDR0_PUB_PTR2                            (volatile uint32_t *)((0x0012  << 2) + 0xff636000)
22896 #define   DDR0_PUB_PTR3                            (0x0013)
22897 #define P_DDR0_PUB_PTR3                            (volatile uint32_t *)((0x0013  << 2) + 0xff636000)
22898 #define   DDR0_PUB_PTR4                            (0x0014)
22899 #define P_DDR0_PUB_PTR4                            (volatile uint32_t *)((0x0014  << 2) + 0xff636000)
22900 #define   DDR0_PUB_PTR5                            (0x0015)
22901 #define P_DDR0_PUB_PTR5                            (volatile uint32_t *)((0x0015  << 2) + 0xff636000)
22902 #define   DDR0_PUB_PTR6                            (0x0016)
22903 #define P_DDR0_PUB_PTR6                            (volatile uint32_t *)((0x0016  << 2) + 0xff636000)
22904 #define   DDR0_PUB_PLLCR                           (0x0020)
22905 #define P_DDR0_PUB_PLLCR                           (volatile uint32_t *)((0x0020  << 2) + 0xff636000)
22906 #define   DDR0_PUB_PLLCR0                          (0x001a)
22907 #define P_DDR0_PUB_PLLCR0                          (volatile uint32_t *)((0x001a  << 2) + 0xff636000)
22908 #define   DDR0_PUB_PLLCR1                          (0x001b)
22909 #define P_DDR0_PUB_PLLCR1                          (volatile uint32_t *)((0x001b  << 2) + 0xff636000)
22910 #define   DDR0_PUB_PLLCR2                          (0x001c)
22911 #define P_DDR0_PUB_PLLCR2                          (volatile uint32_t *)((0x001c  << 2) + 0xff636000)
22912 #define   DDR0_PUB_PLLCR3                          (0x001d)
22913 #define P_DDR0_PUB_PLLCR3                          (volatile uint32_t *)((0x001d  << 2) + 0xff636000)
22914 #define   DDR0_PUB_PLLCR4                          (0x001e)
22915 #define P_DDR0_PUB_PLLCR4                          (volatile uint32_t *)((0x001e  << 2) + 0xff636000)
22916 #define   DDR0_PUB_PLLCR5                          (0x001f)
22917 #define P_DDR0_PUB_PLLCR5                          (volatile uint32_t *)((0x001f  << 2) + 0xff636000)
22918 #define   DDR0_PUB_DXCCR                           (0x0022)
22919 #define P_DDR0_PUB_DXCCR                           (volatile uint32_t *)((0x0022  << 2) + 0xff636000)
22920 #define   DDR0_PUB_DSGCR                           (0x0024)
22921 #define P_DDR0_PUB_DSGCR                           (volatile uint32_t *)((0x0024  << 2) + 0xff636000)
22922 #define   DDR0_PUB_ODTCR                           (0x0026)
22923 #define P_DDR0_PUB_ODTCR                           (volatile uint32_t *)((0x0026  << 2) + 0xff636000)
22924 #define   DDR0_PUB_AACR                            (0x0028)
22925 #define P_DDR0_PUB_AACR                            (volatile uint32_t *)((0x0028  << 2) + 0xff636000)
22926 #define   DDR0_PUB_GPR0                            (0x0030)
22927 #define P_DDR0_PUB_GPR0                            (volatile uint32_t *)((0x0030  << 2) + 0xff636000)
22928 #define   DDR0_PUB_GPR1                            (0x0031)
22929 #define P_DDR0_PUB_GPR1                            (volatile uint32_t *)((0x0031  << 2) + 0xff636000)
22930 #define   DDR0_PUB_DCR                             (0x0040)
22931 #define P_DDR0_PUB_DCR                             (volatile uint32_t *)((0x0040  << 2) + 0xff636000)
22932 #define   DDR0_PUB_DTPR0                           (0x0044)
22933 #define P_DDR0_PUB_DTPR0                           (volatile uint32_t *)((0x0044  << 2) + 0xff636000)
22934 #define   DDR0_PUB_DTPR1                           (0x0045)
22935 #define P_DDR0_PUB_DTPR1                           (volatile uint32_t *)((0x0045  << 2) + 0xff636000)
22936 #define   DDR0_PUB_DTPR2                           (0x0046)
22937 #define P_DDR0_PUB_DTPR2                           (volatile uint32_t *)((0x0046  << 2) + 0xff636000)
22938 #define   DDR0_PUB_DTPR3                           (0x0047)
22939 #define P_DDR0_PUB_DTPR3                           (volatile uint32_t *)((0x0047  << 2) + 0xff636000)
22940 #define   DDR0_PUB_DTPR4                           (0x0048)
22941 #define P_DDR0_PUB_DTPR4                           (volatile uint32_t *)((0x0048  << 2) + 0xff636000)
22942 #define   DDR0_PUB_DTPR5                           (0x0049)
22943 #define P_DDR0_PUB_DTPR5                           (volatile uint32_t *)((0x0049  << 2) + 0xff636000)
22944 #define   DDR0_PUB_DTPR6                           (0x004a)
22945 #define P_DDR0_PUB_DTPR6                           (volatile uint32_t *)((0x004a  << 2) + 0xff636000)
22946 #define   DDR0_PUB_RDIMMGCR0                       (0x0050)
22947 #define P_DDR0_PUB_RDIMMGCR0                       (volatile uint32_t *)((0x0050  << 2) + 0xff636000)
22948 #define   DDR0_PUB_RDIMMGCR1                       (0x0051)
22949 #define P_DDR0_PUB_RDIMMGCR1                       (volatile uint32_t *)((0x0051  << 2) + 0xff636000)
22950 #define   DDR0_PUB_RDIMMGCR2                       (0x0052)
22951 #define P_DDR0_PUB_RDIMMGCR2                       (volatile uint32_t *)((0x0052  << 2) + 0xff636000)
22952 #define   DDR0_PUB_RDIMMCR0                        (0x0054)
22953 #define P_DDR0_PUB_RDIMMCR0                        (volatile uint32_t *)((0x0054  << 2) + 0xff636000)
22954 #define   DDR0_PUB_RDIMMCR1                        (0x0055)
22955 #define P_DDR0_PUB_RDIMMCR1                        (volatile uint32_t *)((0x0055  << 2) + 0xff636000)
22956 #define   DDR0_PUB_RDIMMCR2                        (0x0056)
22957 #define P_DDR0_PUB_RDIMMCR2                        (volatile uint32_t *)((0x0056  << 2) + 0xff636000)
22958 #define   DDR0_PUB_RDIMMCR3                        (0x0057)
22959 #define P_DDR0_PUB_RDIMMCR3                        (volatile uint32_t *)((0x0057  << 2) + 0xff636000)
22960 #define   DDR0_PUB_RDIMMCR4                        (0x0058)
22961 #define P_DDR0_PUB_RDIMMCR4                        (volatile uint32_t *)((0x0058  << 2) + 0xff636000)
22962 #define   DDR0_PUB_SCHCR0                          (0x005a)
22963 #define P_DDR0_PUB_SCHCR0                          (volatile uint32_t *)((0x005a  << 2) + 0xff636000)
22964 #define   DDR0_PUB_SCHCR1                          (0x005b)
22965 #define P_DDR0_PUB_SCHCR1                          (volatile uint32_t *)((0x005b  << 2) + 0xff636000)
22966 #define   DDR0_PUB_MR0                             (0x0060)
22967 #define P_DDR0_PUB_MR0                             (volatile uint32_t *)((0x0060  << 2) + 0xff636000)
22968 #define   DDR0_PUB_MR1                             (0x0061)
22969 #define P_DDR0_PUB_MR1                             (volatile uint32_t *)((0x0061  << 2) + 0xff636000)
22970 #define   DDR0_PUB_MR2                             (0x0062)
22971 #define P_DDR0_PUB_MR2                             (volatile uint32_t *)((0x0062  << 2) + 0xff636000)
22972 #define   DDR0_PUB_MR3                             (0x0063)
22973 #define P_DDR0_PUB_MR3                             (volatile uint32_t *)((0x0063  << 2) + 0xff636000)
22974 #define   DDR0_PUB_MR4                             (0x0064)
22975 #define P_DDR0_PUB_MR4                             (volatile uint32_t *)((0x0064  << 2) + 0xff636000)
22976 #define   DDR0_PUB_MR5                             (0x0065)
22977 #define P_DDR0_PUB_MR5                             (volatile uint32_t *)((0x0065  << 2) + 0xff636000)
22978 #define   DDR0_PUB_MR6                             (0x0066)
22979 #define P_DDR0_PUB_MR6                             (volatile uint32_t *)((0x0066  << 2) + 0xff636000)
22980 #define   DDR0_PUB_MR7                             (0x0067)
22981 #define P_DDR0_PUB_MR7                             (volatile uint32_t *)((0x0067  << 2) + 0xff636000)
22982 #define   DDR0_PUB_MR11                            (0x006b)
22983 #define P_DDR0_PUB_MR11                            (volatile uint32_t *)((0x006b  << 2) + 0xff636000)
22984 #define   DDR0_PUB_DTCR0                           (0x0080)
22985 #define P_DDR0_PUB_DTCR0                           (volatile uint32_t *)((0x0080  << 2) + 0xff636000)
22986 #define   DDR0_PUB_DTCR1                           (0x0081)
22987 #define P_DDR0_PUB_DTCR1                           (volatile uint32_t *)((0x0081  << 2) + 0xff636000)
22988 #define   DDR0_PUB_DTAR0                           (0x0082)
22989 #define P_DDR0_PUB_DTAR0                           (volatile uint32_t *)((0x0082  << 2) + 0xff636000)
22990 #define   DDR0_PUB_DTAR1                           (0x0083)
22991 #define P_DDR0_PUB_DTAR1                           (volatile uint32_t *)((0x0083  << 2) + 0xff636000)
22992 #define   DDR0_PUB_DTAR2                           (0x0084)
22993 #define P_DDR0_PUB_DTAR2                           (volatile uint32_t *)((0x0084  << 2) + 0xff636000)
22994 #define   DDR0_PUB_DTDR0                           (0x0086)
22995 #define P_DDR0_PUB_DTDR0                           (volatile uint32_t *)((0x0086  << 2) + 0xff636000)
22996 #define   DDR0_PUB_DTDR1                           (0x0087)
22997 #define P_DDR0_PUB_DTDR1                           (volatile uint32_t *)((0x0087  << 2) + 0xff636000)
22998 #define   DDR0_PUB_UDDR0                           (0x0088)
22999 #define P_DDR0_PUB_UDDR0                           (volatile uint32_t *)((0x0088  << 2) + 0xff636000)
23000 #define   DDR0_PUB_UDDR1                           (0x0089)
23001 #define P_DDR0_PUB_UDDR1                           (volatile uint32_t *)((0x0089  << 2) + 0xff636000)
23002 #define   DDR0_PUB_DTEDR0                          (0x008c)
23003 #define P_DDR0_PUB_DTEDR0                          (volatile uint32_t *)((0x008c  << 2) + 0xff636000)
23004 #define   DDR0_PUB_DTEDR1                          (0x008d)
23005 #define P_DDR0_PUB_DTEDR1                          (volatile uint32_t *)((0x008d  << 2) + 0xff636000)
23006 #define   DDR0_PUB_DTEDR2                          (0x008e)
23007 #define P_DDR0_PUB_DTEDR2                          (volatile uint32_t *)((0x008e  << 2) + 0xff636000)
23008 #define   DDR0_PUB_VTDR                            (0x008f)
23009 #define P_DDR0_PUB_VTDR                            (volatile uint32_t *)((0x008f  << 2) + 0xff636000)
23010 #define   DDR0_PUB_CATR0                           (0x0090)
23011 #define P_DDR0_PUB_CATR0                           (volatile uint32_t *)((0x0090  << 2) + 0xff636000)
23012 #define   DDR0_PUB_CATR1                           (0x0091)
23013 #define P_DDR0_PUB_CATR1                           (volatile uint32_t *)((0x0091  << 2) + 0xff636000)
23014 #define   DDR0_PUB_DQSDR0                          (0x0094)
23015 #define P_DDR0_PUB_DQSDR0                          (volatile uint32_t *)((0x0094  << 2) + 0xff636000)
23016 #define   DDR0_PUB_DQSDR1                          (0x0095)
23017 #define P_DDR0_PUB_DQSDR1                          (volatile uint32_t *)((0x0095  << 2) + 0xff636000)
23018 #define   DDR0_PUB_DQSDR2                          (0x0096)
23019 #define P_DDR0_PUB_DQSDR2                          (volatile uint32_t *)((0x0096  << 2) + 0xff636000)
23020 #define   DDR0_PUB_DCUAR                           (0x00c0)
23021 #define P_DDR0_PUB_DCUAR                           (volatile uint32_t *)((0x00c0  << 2) + 0xff636000)
23022 #define   DDR0_PUB_DCUDR                           (0x00c1)
23023 #define P_DDR0_PUB_DCUDR                           (volatile uint32_t *)((0x00c1  << 2) + 0xff636000)
23024 #define   DDR0_PUB_DCURR                           (0x00c2)
23025 #define P_DDR0_PUB_DCURR                           (volatile uint32_t *)((0x00c2  << 2) + 0xff636000)
23026 #define   DDR0_PUB_DCULR                           (0x00c3)
23027 #define P_DDR0_PUB_DCULR                           (volatile uint32_t *)((0x00c3  << 2) + 0xff636000)
23028 #define   DDR0_PUB_DCUGCR                          (0x00c4)
23029 #define P_DDR0_PUB_DCUGCR                          (volatile uint32_t *)((0x00c4  << 2) + 0xff636000)
23030 #define   DDR0_PUB_DCUTPR                          (0x00c5)
23031 #define P_DDR0_PUB_DCUTPR                          (volatile uint32_t *)((0x00c5  << 2) + 0xff636000)
23032 #define   DDR0_PUB_DCUSR0                          (0x00c6)
23033 #define P_DDR0_PUB_DCUSR0                          (volatile uint32_t *)((0x00c6  << 2) + 0xff636000)
23034 #define   DDR0_PUB_DCUSR1                          (0x00c7)
23035 #define P_DDR0_PUB_DCUSR1                          (volatile uint32_t *)((0x00c7  << 2) + 0xff636000)
23036 #define   DDR0_PUB_BISTRR                          (0x0100)
23037 #define P_DDR0_PUB_BISTRR                          (volatile uint32_t *)((0x0100  << 2) + 0xff636000)
23038 #define   DDR0_PUB_BISTWCR                         (0x0101)
23039 #define P_DDR0_PUB_BISTWCR                         (volatile uint32_t *)((0x0101  << 2) + 0xff636000)
23040 #define   DDR0_PUB_BISTMSKR0                       (0x0102)
23041 #define P_DDR0_PUB_BISTMSKR0                       (volatile uint32_t *)((0x0102  << 2) + 0xff636000)
23042 #define   DDR0_PUB_BISTMSKR1                       (0x0103)
23043 #define P_DDR0_PUB_BISTMSKR1                       (volatile uint32_t *)((0x0103  << 2) + 0xff636000)
23044 #define   DDR0_PUB_BISTMSKR2                       (0x0104)
23045 #define P_DDR0_PUB_BISTMSKR2                       (volatile uint32_t *)((0x0104  << 2) + 0xff636000)
23046 #define   DDR0_PUB_BISTLSR                         (0x0105)
23047 #define P_DDR0_PUB_BISTLSR                         (volatile uint32_t *)((0x0105  << 2) + 0xff636000)
23048 #define   DDR0_PUB_BISTAR0                         (0x0106)
23049 #define P_DDR0_PUB_BISTAR0                         (volatile uint32_t *)((0x0106  << 2) + 0xff636000)
23050 #define   DDR0_PUB_BISTAR1                         (0x0107)
23051 #define P_DDR0_PUB_BISTAR1                         (volatile uint32_t *)((0x0107  << 2) + 0xff636000)
23052 #define   DDR0_PUB_BISTAR2                         (0x0108)
23053 #define P_DDR0_PUB_BISTAR2                         (volatile uint32_t *)((0x0108  << 2) + 0xff636000)
23054 #define   DDR0_PUB_BISTAR3                         (0x0109)
23055 #define P_DDR0_PUB_BISTAR3                         (volatile uint32_t *)((0x0109  << 2) + 0xff636000)
23056 #define   DDR0_PUB_BISTAR4                         (0x010a)
23057 #define P_DDR0_PUB_BISTAR4                         (volatile uint32_t *)((0x010a  << 2) + 0xff636000)
23058 #define   DDR0_PUB_BISTUDPR                        (0x010b)
23059 #define P_DDR0_PUB_BISTUDPR                        (volatile uint32_t *)((0x010b  << 2) + 0xff636000)
23060 #define   DDR0_PUB_BISTGSR                         (0x010c)
23061 #define P_DDR0_PUB_BISTGSR                         (volatile uint32_t *)((0x010c  << 2) + 0xff636000)
23062 #define   DDR0_PUB_BISTWER0                        (0x010d)
23063 #define P_DDR0_PUB_BISTWER0                        (volatile uint32_t *)((0x010d  << 2) + 0xff636000)
23064 #define   DDR0_PUB_BISTWER1                        (0x010e)
23065 #define P_DDR0_PUB_BISTWER1                        (volatile uint32_t *)((0x010e  << 2) + 0xff636000)
23066 #define   DDR0_PUB_BISTBER0                        (0x010f)
23067 #define P_DDR0_PUB_BISTBER0                        (volatile uint32_t *)((0x010f  << 2) + 0xff636000)
23068 #define   DDR0_PUB_BISTBER1                        (0x0110)
23069 #define P_DDR0_PUB_BISTBER1                        (volatile uint32_t *)((0x0110  << 2) + 0xff636000)
23070 #define   DDR0_PUB_BISTBER2                        (0x0111)
23071 #define P_DDR0_PUB_BISTBER2                        (volatile uint32_t *)((0x0111  << 2) + 0xff636000)
23072 #define   DDR0_PUB_BISTBER3                        (0x0112)
23073 #define P_DDR0_PUB_BISTBER3                        (volatile uint32_t *)((0x0112  << 2) + 0xff636000)
23074 #define   DDR0_PUB_BISTBER4                        (0x0113)
23075 #define P_DDR0_PUB_BISTBER4                        (volatile uint32_t *)((0x0113  << 2) + 0xff636000)
23076 #define   DDR0_PUB_BISTWCSR                        (0x0114)
23077 #define P_DDR0_PUB_BISTWCSR                        (volatile uint32_t *)((0x0114  << 2) + 0xff636000)
23078 #define   DDR0_PUB_BISTFWR0                        (0x0115)
23079 #define P_DDR0_PUB_BISTFWR0                        (volatile uint32_t *)((0x0115  << 2) + 0xff636000)
23080 #define   DDR0_PUB_BISTFWR1                        (0x0116)
23081 #define P_DDR0_PUB_BISTFWR1                        (volatile uint32_t *)((0x0116  << 2) + 0xff636000)
23082 #define   DDR0_PUB_BISTFWR2                        (0x0117)
23083 #define P_DDR0_PUB_BISTFWR2                        (volatile uint32_t *)((0x0117  << 2) + 0xff636000)
23084 #define   DDR0_PUB_BISTBER5                        (0x0118)
23085 #define P_DDR0_PUB_BISTBER5                        (volatile uint32_t *)((0x0118  << 2) + 0xff636000)
23086 #define   DDR0_PUB_RANKIDR                         (0x0137)
23087 #define P_DDR0_PUB_RANKIDR                         (volatile uint32_t *)((0x0137  << 2) + 0xff636000)
23088 #define   DDR0_PUB_RIOCR0                          (0x0138)
23089 #define P_DDR0_PUB_RIOCR0                          (volatile uint32_t *)((0x0138  << 2) + 0xff636000)
23090 #define   DDR0_PUB_RIOCR1                          (0x0139)
23091 #define P_DDR0_PUB_RIOCR1                          (volatile uint32_t *)((0x0139  << 2) + 0xff636000)
23092 #define   DDR0_PUB_RIOCR2                          (0x013a)
23093 #define P_DDR0_PUB_RIOCR2                          (volatile uint32_t *)((0x013a  << 2) + 0xff636000)
23094 #define   DDR0_PUB_RIOCR3                          (0x013b)
23095 #define P_DDR0_PUB_RIOCR3                          (volatile uint32_t *)((0x013b  << 2) + 0xff636000)
23096 #define   DDR0_PUB_RIOCR4                          (0x013c)
23097 #define P_DDR0_PUB_RIOCR4                          (volatile uint32_t *)((0x013c  << 2) + 0xff636000)
23098 #define   DDR0_PUB_RIOCR5                          (0x013d)
23099 #define P_DDR0_PUB_RIOCR5                          (volatile uint32_t *)((0x013d  << 2) + 0xff636000)
23100 #define   DDR0_PUB_ACIOCR0                         (0x0140)
23101 #define P_DDR0_PUB_ACIOCR0                         (volatile uint32_t *)((0x0140  << 2) + 0xff636000)
23102 #define   DDR0_PUB_ACIOCR1                         (0x0141)
23103 #define P_DDR0_PUB_ACIOCR1                         (volatile uint32_t *)((0x0141  << 2) + 0xff636000)
23104 #define   DDR0_PUB_ACIOCR2                         (0x0142)
23105 #define P_DDR0_PUB_ACIOCR2                         (volatile uint32_t *)((0x0142  << 2) + 0xff636000)
23106 #define   DDR0_PUB_ACIOCR3                         (0x0143)
23107 #define P_DDR0_PUB_ACIOCR3                         (volatile uint32_t *)((0x0143  << 2) + 0xff636000)
23108 #define   DDR0_PUB_ACIOCR4                         (0x0144)
23109 #define P_DDR0_PUB_ACIOCR4                         (volatile uint32_t *)((0x0144  << 2) + 0xff636000)
23110 #define   DDR0_PUB_ACIOCR5                         (0x0145)
23111 #define P_DDR0_PUB_ACIOCR5                         (volatile uint32_t *)((0x0145  << 2) + 0xff636000)
23112 #define   DDR0_PUB_IOVCR0                          (0x0148)
23113 #define P_DDR0_PUB_IOVCR0                          (volatile uint32_t *)((0x0148  << 2) + 0xff636000)
23114 #define   DDR0_PUB_IOVCR1                          (0x0149)
23115 #define P_DDR0_PUB_IOVCR1                          (volatile uint32_t *)((0x0149  << 2) + 0xff636000)
23116 #define   DDR0_PUB_VTCR0                           (0x014a)
23117 #define P_DDR0_PUB_VTCR0                           (volatile uint32_t *)((0x014a  << 2) + 0xff636000)
23118 #define   DDR0_PUB_VTCR1                           (0x014b)
23119 #define P_DDR0_PUB_VTCR1                           (volatile uint32_t *)((0x014b  << 2) + 0xff636000)
23120 #define   DDR0_PUB_ACBDLR0                         (0x0150)
23121 #define P_DDR0_PUB_ACBDLR0                         (volatile uint32_t *)((0x0150  << 2) + 0xff636000)
23122 #define   DDR0_PUB_ACBDLR1                         (0x0151)
23123 #define P_DDR0_PUB_ACBDLR1                         (volatile uint32_t *)((0x0151  << 2) + 0xff636000)
23124 #define   DDR0_PUB_ACBDLR2                         (0x0152)
23125 #define P_DDR0_PUB_ACBDLR2                         (volatile uint32_t *)((0x0152  << 2) + 0xff636000)
23126 #define   DDR0_PUB_ACBDLR3                         (0x0153)
23127 #define P_DDR0_PUB_ACBDLR3                         (volatile uint32_t *)((0x0153  << 2) + 0xff636000)
23128 #define   DDR0_PUB_ACBDLR4                         (0x0154)
23129 #define P_DDR0_PUB_ACBDLR4                         (volatile uint32_t *)((0x0154  << 2) + 0xff636000)
23130 #define   DDR0_PUB_ACBDLR5                         (0x0155)
23131 #define P_DDR0_PUB_ACBDLR5                         (volatile uint32_t *)((0x0155  << 2) + 0xff636000)
23132 #define   DDR0_PUB_ACBDLR6                         (0x0156)
23133 #define P_DDR0_PUB_ACBDLR6                         (volatile uint32_t *)((0x0156  << 2) + 0xff636000)
23134 #define   DDR0_PUB_ACBDLR7                         (0x0157)
23135 #define P_DDR0_PUB_ACBDLR7                         (volatile uint32_t *)((0x0157  << 2) + 0xff636000)
23136 #define   DDR0_PUB_ACBDLR8                         (0x0158)
23137 #define P_DDR0_PUB_ACBDLR8                         (volatile uint32_t *)((0x0158  << 2) + 0xff636000)
23138 #define   DDR0_PUB_ACBDLR9                         (0x0159)
23139 #define P_DDR0_PUB_ACBDLR9                         (volatile uint32_t *)((0x0159  << 2) + 0xff636000)
23140 #define   DDR0_PUB_ACBDLR10                        (0x015a)
23141 #define P_DDR0_PUB_ACBDLR10                        (volatile uint32_t *)((0x015a  << 2) + 0xff636000)
23142 #define   DDR0_PUB_ACBDLR11                        (0x015b)
23143 #define P_DDR0_PUB_ACBDLR11                        (volatile uint32_t *)((0x015b  << 2) + 0xff636000)
23144 #define   DDR0_PUB_ACBDLR12                        (0x015c)
23145 #define P_DDR0_PUB_ACBDLR12                        (volatile uint32_t *)((0x015c  << 2) + 0xff636000)
23146 #define   DDR0_PUB_ACBDLR13                        (0x015d)
23147 #define P_DDR0_PUB_ACBDLR13                        (volatile uint32_t *)((0x015d  << 2) + 0xff636000)
23148 #define   DDR0_PUB_ACBDLR14                        (0x015e)
23149 #define P_DDR0_PUB_ACBDLR14                        (volatile uint32_t *)((0x015e  << 2) + 0xff636000)
23150 #define   DDR0_PUB_ACLCDLR                         (0x0160)
23151 #define P_DDR0_PUB_ACLCDLR                         (volatile uint32_t *)((0x0160  << 2) + 0xff636000)
23152 #define   DDR0_PUB_ACMDLR0                         (0x0168)
23153 #define P_DDR0_PUB_ACMDLR0                         (volatile uint32_t *)((0x0168  << 2) + 0xff636000)
23154 #define   DDR0_PUB_ACMDLR1                         (0x0169)
23155 #define P_DDR0_PUB_ACMDLR1                         (volatile uint32_t *)((0x0169  << 2) + 0xff636000)
23156 
23157 #define   DDR0_PUB_ZQCR                            (0x01a0)
23158 #define P_DDR0_PUB_ZQCR                            (volatile uint32_t *)((0x01a0  << 2) + 0xff636000)
23159 #define   DDR0_PUB_ZQ0PR                           (0x01a1)
23160 #define P_DDR0_PUB_ZQ0PR                           (volatile uint32_t *)((0x01a1  << 2) + 0xff636000)
23161 #define   DDR0_PUB_ZQ0DR                           (0x01a2)
23162 #define P_DDR0_PUB_ZQ0DR                           (volatile uint32_t *)((0x01a2  << 2) + 0xff636000)
23163 #define   DDR0_PUB_ZQ0SR                           (0x01a3)
23164 #define P_DDR0_PUB_ZQ0SR                           (volatile uint32_t *)((0x01a3  << 2) + 0xff636000)
23165 
23166 #define   DDR0_PUB_ZQ1PR                           (0x01a5)
23167 #define P_DDR0_PUB_ZQ1PR                           (volatile uint32_t *)((0x01a5  << 2) + 0xff636000)
23168 #define   DDR0_PUB_ZQ1DR                           (0x01a6)
23169 #define P_DDR0_PUB_ZQ1DR                           (volatile uint32_t *)((0x01a6  << 2) + 0xff636000)
23170 #define   DDR0_PUB_ZQ1SR                           (0x01a7)
23171 #define P_DDR0_PUB_ZQ1SR                           (volatile uint32_t *)((0x01a7  << 2) + 0xff636000)
23172 
23173 #define   DDR0_PUB_ZQ2PR                           (0x01a9)
23174 #define P_DDR0_PUB_ZQ2PR                           (volatile uint32_t *)((0x01a9  << 2) + 0xff636000)
23175 #define   DDR0_PUB_ZQ2DR                           (0x01aa)
23176 #define P_DDR0_PUB_ZQ2DR                           (volatile uint32_t *)((0x01aa  << 2) + 0xff636000)
23177 #define   DDR0_PUB_ZQ2SR                           (0x01ab)
23178 #define P_DDR0_PUB_ZQ2SR                           (volatile uint32_t *)((0x01ab  << 2) + 0xff636000)
23179 
23180 
23181 
23182 #define   DDR0_PUB_DX0GCR0                         (0x01c0)
23183 #define P_DDR0_PUB_DX0GCR0                         (volatile uint32_t *)((0x01c0  << 2) + 0xff636000)
23184 #define   DDR0_PUB_DX0GCR1                         (0x01c1)
23185 #define P_DDR0_PUB_DX0GCR1                         (volatile uint32_t *)((0x01c1  << 2) + 0xff636000)
23186 #define   DDR0_PUB_DX0GCR2                         (0x01c2)
23187 #define P_DDR0_PUB_DX0GCR2                         (volatile uint32_t *)((0x01c2  << 2) + 0xff636000)
23188 #define   DDR0_PUB_DX0GCR3                         (0x01c3)
23189 #define P_DDR0_PUB_DX0GCR3                         (volatile uint32_t *)((0x01c3  << 2) + 0xff636000)
23190 #define   DDR0_PUB_DX0GCR4                         (0x01c4)
23191 #define P_DDR0_PUB_DX0GCR4                         (volatile uint32_t *)((0x01c4  << 2) + 0xff636000)
23192 #define   DDR0_PUB_DX0GCR5                         (0x01c5)
23193 #define P_DDR0_PUB_DX0GCR5                         (volatile uint32_t *)((0x01c5  << 2) + 0xff636000)
23194 #define   DDR0_PUB_DX0GCR6                         (0x01c6)
23195 #define P_DDR0_PUB_DX0GCR6                         (volatile uint32_t *)((0x01c6  << 2) + 0xff636000)
23196 #define   DDR0_PUB_DX0GCR7                         (0x01c7)
23197 #define P_DDR0_PUB_DX0GCR7                         (volatile uint32_t *)((0x01c7  << 2) + 0xff636000)
23198 #define   DDR0_PUB_DX0GCR8                         (0x01c8)
23199 #define P_DDR0_PUB_DX0GCR8                         (volatile uint32_t *)((0x01c8  << 2) + 0xff636000)
23200 #define   DDR0_PUB_DX0GCR9                         (0x01c9)
23201 #define P_DDR0_PUB_DX0GCR9                         (volatile uint32_t *)((0x01c9  << 2) + 0xff636000)
23202 #define   DDR0_PUB_DX0BDLR0                        (0x01d0)
23203 #define P_DDR0_PUB_DX0BDLR0                        (volatile uint32_t *)((0x01d0  << 2) + 0xff636000)
23204 #define   DDR0_PUB_DX0BDLR1                        (0x01d1)
23205 #define P_DDR0_PUB_DX0BDLR1                        (volatile uint32_t *)((0x01d1  << 2) + 0xff636000)
23206 #define   DDR0_PUB_DX0BDLR2                        (0x01d2)
23207 #define P_DDR0_PUB_DX0BDLR2                        (volatile uint32_t *)((0x01d2  << 2) + 0xff636000)
23208 #define   DDR0_PUB_DX0BDLR3                        (0x01d4)
23209 #define P_DDR0_PUB_DX0BDLR3                        (volatile uint32_t *)((0x01d4  << 2) + 0xff636000)
23210 #define   DDR0_PUB_DX0BDLR4                        (0x01d5)
23211 #define P_DDR0_PUB_DX0BDLR4                        (volatile uint32_t *)((0x01d5  << 2) + 0xff636000)
23212 #define   DDR0_PUB_DX0BDLR5                        (0x01d6)
23213 #define P_DDR0_PUB_DX0BDLR5                        (volatile uint32_t *)((0x01d6  << 2) + 0xff636000)
23214 #define   DDR0_PUB_DX0BDLR6                        (0x01d8)
23215 #define P_DDR0_PUB_DX0BDLR6                        (volatile uint32_t *)((0x01d8  << 2) + 0xff636000)
23216 #define   DDR0_PUB_DX0LCDLR0                       (0x01e0)
23217 #define P_DDR0_PUB_DX0LCDLR0                       (volatile uint32_t *)((0x01e0  << 2) + 0xff636000)
23218 #define   DDR0_PUB_DX0LCDLR1                       (0x01e1)
23219 #define P_DDR0_PUB_DX0LCDLR1                       (volatile uint32_t *)((0x01e1  << 2) + 0xff636000)
23220 #define   DDR0_PUB_DX0LCDLR2                       (0x01e2)
23221 #define P_DDR0_PUB_DX0LCDLR2                       (volatile uint32_t *)((0x01e2  << 2) + 0xff636000)
23222 #define   DDR0_PUB_DX0LCDLR3                       (0x01e3)
23223 #define P_DDR0_PUB_DX0LCDLR3                       (volatile uint32_t *)((0x01e3  << 2) + 0xff636000)
23224 #define   DDR0_PUB_DX0LCDLR4                       (0x01e4)
23225 #define P_DDR0_PUB_DX0LCDLR4                       (volatile uint32_t *)((0x01e4  << 2) + 0xff636000)
23226 #define   DDR0_PUB_DX0LCDLR5                       (0x01e5)
23227 #define P_DDR0_PUB_DX0LCDLR5                       (volatile uint32_t *)((0x01e5  << 2) + 0xff636000)
23228 #define   DDR0_PUB_DX0MDLR0                        (0x01e8)
23229 #define P_DDR0_PUB_DX0MDLR0                        (volatile uint32_t *)((0x01e8  << 2) + 0xff636000)
23230 #define   DDR0_PUB_DX0MDLR1                        (0x01e9)
23231 #define P_DDR0_PUB_DX0MDLR1                        (volatile uint32_t *)((0x01e9  << 2) + 0xff636000)
23232 #define   DDR0_PUB_DX0GTR0                         (0x01f0)
23233 #define P_DDR0_PUB_DX0GTR0                         (volatile uint32_t *)((0x01f0  << 2) + 0xff636000)
23234 #define   DDR0_PUB_DX0GTR1                         (0x01f1)
23235 #define P_DDR0_PUB_DX0GTR1                         (volatile uint32_t *)((0x01f1  << 2) + 0xff636000)
23236 #define   DDR0_PUB_DX0GTR2                         (0x01f2)
23237 #define P_DDR0_PUB_DX0GTR2                         (volatile uint32_t *)((0x01f2  << 2) + 0xff636000)
23238 #define   DDR0_PUB_DX0GTR3                         (0x01f3)
23239 #define P_DDR0_PUB_DX0GTR3                         (volatile uint32_t *)((0x01f3  << 2) + 0xff636000)
23240 #define   DDR0_PUB_DX0RSR0                         (0x01f4)
23241 #define P_DDR0_PUB_DX0RSR0                         (volatile uint32_t *)((0x01f4  << 2) + 0xff636000)
23242 #define   DDR0_PUB_DX0RSR1                         (0x01f5)
23243 #define P_DDR0_PUB_DX0RSR1                         (volatile uint32_t *)((0x01f5  << 2) + 0xff636000)
23244 #define   DDR0_PUB_DX0RSR2                         (0x01f6)
23245 #define P_DDR0_PUB_DX0RSR2                         (volatile uint32_t *)((0x01f6  << 2) + 0xff636000)
23246 #define   DDR0_PUB_DX0RSR3                         (0x01f7)
23247 #define P_DDR0_PUB_DX0RSR3                         (volatile uint32_t *)((0x01f7  << 2) + 0xff636000)
23248 #define   DDR0_PUB_DX0GSR0                         (0x01f8)
23249 #define P_DDR0_PUB_DX0GSR0                         (volatile uint32_t *)((0x01f8  << 2) + 0xff636000)
23250 #define   DDR0_PUB_DX0GSR1                         (0x01f9)
23251 #define P_DDR0_PUB_DX0GSR1                         (volatile uint32_t *)((0x01f9  << 2) + 0xff636000)
23252 #define   DDR0_PUB_DX0GSR2                         (0x01fa)
23253 #define P_DDR0_PUB_DX0GSR2                         (volatile uint32_t *)((0x01fa  << 2) + 0xff636000)
23254 #define   DDR0_PUB_DX0GSR3                         (0x01fb)
23255 #define P_DDR0_PUB_DX0GSR3                         (volatile uint32_t *)((0x01fb  << 2) + 0xff636000)
23256 #define   DDR0_PUB_DX0GSR4                         (0x01fc)
23257 #define P_DDR0_PUB_DX0GSR4                         (volatile uint32_t *)((0x01fc  << 2) + 0xff636000)
23258 #define   DDR0_PUB_DX0GSR5                         (0x01fd)
23259 #define P_DDR0_PUB_DX0GSR5                         (volatile uint32_t *)((0x01fd  << 2) + 0xff636000)
23260 
23261 #define   DDR0_PUB_DX1GCR0                         (0x0200)
23262 #define P_DDR0_PUB_DX1GCR0                         (volatile uint32_t *)((0x0200  << 2) + 0xff636000)
23263 #define   DDR0_PUB_DX1GCR1                         (0x0201)
23264 #define P_DDR0_PUB_DX1GCR1                         (volatile uint32_t *)((0x0201  << 2) + 0xff636000)
23265 #define   DDR0_PUB_DX1GCR2                         (0x0202)
23266 #define P_DDR0_PUB_DX1GCR2                         (volatile uint32_t *)((0x0202  << 2) + 0xff636000)
23267 #define   DDR0_PUB_DX1GCR3                         (0x0203)
23268 #define P_DDR0_PUB_DX1GCR3                         (volatile uint32_t *)((0x0203  << 2) + 0xff636000)
23269 #define   DDR0_PUB_DX1GCR4                         (0x0204)
23270 #define P_DDR0_PUB_DX1GCR4                         (volatile uint32_t *)((0x0204  << 2) + 0xff636000)
23271 #define   DDR0_PUB_DX1GCR5                         (0x0205)
23272 #define P_DDR0_PUB_DX1GCR5                         (volatile uint32_t *)((0x0205  << 2) + 0xff636000)
23273 #define   DDR0_PUB_DX1GCR6                         (0x0206)
23274 #define P_DDR0_PUB_DX1GCR6                         (volatile uint32_t *)((0x0206  << 2) + 0xff636000)
23275 #define   DDR0_PUB_DX1GCR7                         (0x0207)
23276 #define P_DDR0_PUB_DX1GCR7                         (volatile uint32_t *)((0x0207  << 2) + 0xff636000)
23277 #define   DDR0_PUB_DX1GCR8                         (0x0208)
23278 #define P_DDR0_PUB_DX1GCR8                         (volatile uint32_t *)((0x0208  << 2) + 0xff636000)
23279 #define   DDR0_PUB_DX1GCR9                         (0x0209)
23280 #define P_DDR0_PUB_DX1GCR9                         (volatile uint32_t *)((0x0209  << 2) + 0xff636000)
23281 #define   DDR0_PUB_DX1BDLR0                        (0x0210)
23282 #define P_DDR0_PUB_DX1BDLR0                        (volatile uint32_t *)((0x0210  << 2) + 0xff636000)
23283 #define   DDR0_PUB_DX1BDLR1                        (0x0211)
23284 #define P_DDR0_PUB_DX1BDLR1                        (volatile uint32_t *)((0x0211  << 2) + 0xff636000)
23285 #define   DDR0_PUB_DX1BDLR2                        (0x0212)
23286 #define P_DDR0_PUB_DX1BDLR2                        (volatile uint32_t *)((0x0212  << 2) + 0xff636000)
23287 #define   DDR0_PUB_DX1BDLR3                        (0x0214)
23288 #define P_DDR0_PUB_DX1BDLR3                        (volatile uint32_t *)((0x0214  << 2) + 0xff636000)
23289 #define   DDR0_PUB_DX1BDLR4                        (0x0215)
23290 #define P_DDR0_PUB_DX1BDLR4                        (volatile uint32_t *)((0x0215  << 2) + 0xff636000)
23291 #define   DDR0_PUB_DX1BDLR5                        (0x0216)
23292 #define P_DDR0_PUB_DX1BDLR5                        (volatile uint32_t *)((0x0216  << 2) + 0xff636000)
23293 #define   DDR0_PUB_DX1BDLR6                        (0x0218)
23294 #define P_DDR0_PUB_DX1BDLR6                        (volatile uint32_t *)((0x0218  << 2) + 0xff636000)
23295 #define   DDR0_PUB_DX1LCDLR0                       (0x0220)
23296 #define P_DDR0_PUB_DX1LCDLR0                       (volatile uint32_t *)((0x0220  << 2) + 0xff636000)
23297 #define   DDR0_PUB_DX1LCDLR1                       (0x0221)
23298 #define P_DDR0_PUB_DX1LCDLR1                       (volatile uint32_t *)((0x0221  << 2) + 0xff636000)
23299 #define   DDR0_PUB_DX1LCDLR2                       (0x0222)
23300 #define P_DDR0_PUB_DX1LCDLR2                       (volatile uint32_t *)((0x0222  << 2) + 0xff636000)
23301 #define   DDR0_PUB_DX1LCDLR3                       (0x0223)
23302 #define P_DDR0_PUB_DX1LCDLR3                       (volatile uint32_t *)((0x0223  << 2) + 0xff636000)
23303 #define   DDR0_PUB_DX1LCDLR4                       (0x0224)
23304 #define P_DDR0_PUB_DX1LCDLR4                       (volatile uint32_t *)((0x0224  << 2) + 0xff636000)
23305 #define   DDR0_PUB_DX1LCDLR5                       (0x0225)
23306 #define P_DDR0_PUB_DX1LCDLR5                       (volatile uint32_t *)((0x0225  << 2) + 0xff636000)
23307 #define   DDR0_PUB_DX1MDLR0                        (0x0228)
23308 #define P_DDR0_PUB_DX1MDLR0                        (volatile uint32_t *)((0x0228  << 2) + 0xff636000)
23309 #define   DDR0_PUB_DX1MDLR1                        (0x0229)
23310 #define P_DDR0_PUB_DX1MDLR1                        (volatile uint32_t *)((0x0229  << 2) + 0xff636000)
23311 #define   DDR0_PUB_DX1GTR0                         (0x0230)
23312 #define P_DDR0_PUB_DX1GTR0                         (volatile uint32_t *)((0x0230  << 2) + 0xff636000)
23313 #define   DDR0_PUB_DX1GTR1                         (0x0231)
23314 #define P_DDR0_PUB_DX1GTR1                         (volatile uint32_t *)((0x0231  << 2) + 0xff636000)
23315 #define   DDR0_PUB_DX1GTR2                         (0x0232)
23316 #define P_DDR0_PUB_DX1GTR2                         (volatile uint32_t *)((0x0232  << 2) + 0xff636000)
23317 #define   DDR0_PUB_DX1GTR3                         (0x0233)
23318 #define P_DDR0_PUB_DX1GTR3                         (volatile uint32_t *)((0x0233  << 2) + 0xff636000)
23319 #define   DDR0_PUB_DX1RSR0                         (0x0234)
23320 #define P_DDR0_PUB_DX1RSR0                         (volatile uint32_t *)((0x0234  << 2) + 0xff636000)
23321 #define   DDR0_PUB_DX1RSR1                         (0x0235)
23322 #define P_DDR0_PUB_DX1RSR1                         (volatile uint32_t *)((0x0235  << 2) + 0xff636000)
23323 #define   DDR0_PUB_DX1RSR2                         (0x0236)
23324 #define P_DDR0_PUB_DX1RSR2                         (volatile uint32_t *)((0x0236  << 2) + 0xff636000)
23325 #define   DDR0_PUB_DX1RSR3                         (0x0237)
23326 #define P_DDR0_PUB_DX1RSR3                         (volatile uint32_t *)((0x0237  << 2) + 0xff636000)
23327 #define   DDR0_PUB_DX1GSR0                         (0x0238)
23328 #define P_DDR0_PUB_DX1GSR0                         (volatile uint32_t *)((0x0238  << 2) + 0xff636000)
23329 #define   DDR0_PUB_DX1GSR1                         (0x0239)
23330 #define P_DDR0_PUB_DX1GSR1                         (volatile uint32_t *)((0x0239  << 2) + 0xff636000)
23331 #define   DDR0_PUB_DX1GSR2                         (0x023a)
23332 #define P_DDR0_PUB_DX1GSR2                         (volatile uint32_t *)((0x023a  << 2) + 0xff636000)
23333 #define   DDR0_PUB_DX1GSR3                         (0x023b)
23334 #define P_DDR0_PUB_DX1GSR3                         (volatile uint32_t *)((0x023b  << 2) + 0xff636000)
23335 #define   DDR0_PUB_DX1GSR4                         (0x023c)
23336 #define P_DDR0_PUB_DX1GSR4                         (volatile uint32_t *)((0x023c  << 2) + 0xff636000)
23337 #define   DDR0_PUB_DX1GSR5                         (0x023d)
23338 #define P_DDR0_PUB_DX1GSR5                         (volatile uint32_t *)((0x023d  << 2) + 0xff636000)
23339 
23340 #define   DDR0_PUB_DX2GCR0                         (0x0240)
23341 #define P_DDR0_PUB_DX2GCR0                         (volatile uint32_t *)((0x0240  << 2) + 0xff636000)
23342 #define   DDR0_PUB_DX2GCR1                         (0x0241)
23343 #define P_DDR0_PUB_DX2GCR1                         (volatile uint32_t *)((0x0241  << 2) + 0xff636000)
23344 #define   DDR0_PUB_DX2GCR2                         (0x0242)
23345 #define P_DDR0_PUB_DX2GCR2                         (volatile uint32_t *)((0x0242  << 2) + 0xff636000)
23346 #define   DDR0_PUB_DX2GCR3                         (0x0243)
23347 #define P_DDR0_PUB_DX2GCR3                         (volatile uint32_t *)((0x0243  << 2) + 0xff636000)
23348 #define   DDR0_PUB_DX2GCR4                         (0x0244)
23349 #define P_DDR0_PUB_DX2GCR4                         (volatile uint32_t *)((0x0244  << 2) + 0xff636000)
23350 #define   DDR0_PUB_DX2GCR5                         (0x0245)
23351 #define P_DDR0_PUB_DX2GCR5                         (volatile uint32_t *)((0x0245  << 2) + 0xff636000)
23352 #define   DDR0_PUB_DX2GCR6                         (0x0246)
23353 #define P_DDR0_PUB_DX2GCR6                         (volatile uint32_t *)((0x0246  << 2) + 0xff636000)
23354 #define   DDR0_PUB_DX2GCR7                         (0x0247)
23355 #define P_DDR0_PUB_DX2GCR7                         (volatile uint32_t *)((0x0247  << 2) + 0xff636000)
23356 #define   DDR0_PUB_DX2GCR8                         (0x0248)
23357 #define P_DDR0_PUB_DX2GCR8                         (volatile uint32_t *)((0x0248  << 2) + 0xff636000)
23358 #define   DDR0_PUB_DX2GCR9                         (0x0249)
23359 #define P_DDR0_PUB_DX2GCR9                         (volatile uint32_t *)((0x0249  << 2) + 0xff636000)
23360 #define   DDR0_PUB_DX2BDLR0                        (0x0250)
23361 #define P_DDR0_PUB_DX2BDLR0                        (volatile uint32_t *)((0x0250  << 2) + 0xff636000)
23362 #define   DDR0_PUB_DX2BDLR1                        (0x0251)
23363 #define P_DDR0_PUB_DX2BDLR1                        (volatile uint32_t *)((0x0251  << 2) + 0xff636000)
23364 #define   DDR0_PUB_DX2BDLR2                        (0x0252)
23365 #define P_DDR0_PUB_DX2BDLR2                        (volatile uint32_t *)((0x0252  << 2) + 0xff636000)
23366 #define   DDR0_PUB_DX2BDLR3                        (0x0254)
23367 #define P_DDR0_PUB_DX2BDLR3                        (volatile uint32_t *)((0x0254  << 2) + 0xff636000)
23368 #define   DDR0_PUB_DX2BDLR4                        (0x0255)
23369 #define P_DDR0_PUB_DX2BDLR4                        (volatile uint32_t *)((0x0255  << 2) + 0xff636000)
23370 #define   DDR0_PUB_DX2BDLR5                        (0x0256)
23371 #define P_DDR0_PUB_DX2BDLR5                        (volatile uint32_t *)((0x0256  << 2) + 0xff636000)
23372 #define   DDR0_PUB_DX2BDLR6                        (0x0258)
23373 #define P_DDR0_PUB_DX2BDLR6                        (volatile uint32_t *)((0x0258  << 2) + 0xff636000)
23374 #define   DDR0_PUB_DX2LCDLR0                       (0x0260)
23375 #define P_DDR0_PUB_DX2LCDLR0                       (volatile uint32_t *)((0x0260  << 2) + 0xff636000)
23376 #define   DDR0_PUB_DX2LCDLR1                       (0x0261)
23377 #define P_DDR0_PUB_DX2LCDLR1                       (volatile uint32_t *)((0x0261  << 2) + 0xff636000)
23378 #define   DDR0_PUB_DX2LCDLR2                       (0x0262)
23379 #define P_DDR0_PUB_DX2LCDLR2                       (volatile uint32_t *)((0x0262  << 2) + 0xff636000)
23380 #define   DDR0_PUB_DX2LCDLR3                       (0x0263)
23381 #define P_DDR0_PUB_DX2LCDLR3                       (volatile uint32_t *)((0x0263  << 2) + 0xff636000)
23382 #define   DDR0_PUB_DX2LCDLR4                       (0x0264)
23383 #define P_DDR0_PUB_DX2LCDLR4                       (volatile uint32_t *)((0x0264  << 2) + 0xff636000)
23384 #define   DDR0_PUB_DX2LCDLR5                       (0x0265)
23385 #define P_DDR0_PUB_DX2LCDLR5                       (volatile uint32_t *)((0x0265  << 2) + 0xff636000)
23386 #define   DDR0_PUB_DX2MDLR0                        (0x0268)
23387 #define P_DDR0_PUB_DX2MDLR0                        (volatile uint32_t *)((0x0268  << 2) + 0xff636000)
23388 #define   DDR0_PUB_DX2MDLR1                        (0x0269)
23389 #define P_DDR0_PUB_DX2MDLR1                        (volatile uint32_t *)((0x0269  << 2) + 0xff636000)
23390 #define   DDR0_PUB_DX2GTR0                         (0x0270)
23391 #define P_DDR0_PUB_DX2GTR0                         (volatile uint32_t *)((0x0270  << 2) + 0xff636000)
23392 #define   DDR0_PUB_DX2GTR1                         (0x0271)
23393 #define P_DDR0_PUB_DX2GTR1                         (volatile uint32_t *)((0x0271  << 2) + 0xff636000)
23394 #define   DDR0_PUB_DX2GTR2                         (0x0272)
23395 #define P_DDR0_PUB_DX2GTR2                         (volatile uint32_t *)((0x0272  << 2) + 0xff636000)
23396 #define   DDR0_PUB_DX2GTR3                         (0x0273)
23397 #define P_DDR0_PUB_DX2GTR3                         (volatile uint32_t *)((0x0273  << 2) + 0xff636000)
23398 #define   DDR0_PUB_DX2RSR0                         (0x0274)
23399 #define P_DDR0_PUB_DX2RSR0                         (volatile uint32_t *)((0x0274  << 2) + 0xff636000)
23400 #define   DDR0_PUB_DX2RSR1                         (0x0275)
23401 #define P_DDR0_PUB_DX2RSR1                         (volatile uint32_t *)((0x0275  << 2) + 0xff636000)
23402 #define   DDR0_PUB_DX2RSR2                         (0x0276)
23403 #define P_DDR0_PUB_DX2RSR2                         (volatile uint32_t *)((0x0276  << 2) + 0xff636000)
23404 #define   DDR0_PUB_DX2RSR3                         (0x0277)
23405 #define P_DDR0_PUB_DX2RSR3                         (volatile uint32_t *)((0x0277  << 2) + 0xff636000)
23406 #define   DDR0_PUB_DX2GSR0                         (0x0278)
23407 #define P_DDR0_PUB_DX2GSR0                         (volatile uint32_t *)((0x0278  << 2) + 0xff636000)
23408 #define   DDR0_PUB_DX2GSR1                         (0x0279)
23409 #define P_DDR0_PUB_DX2GSR1                         (volatile uint32_t *)((0x0279  << 2) + 0xff636000)
23410 #define   DDR0_PUB_DX2GSR2                         (0x027a)
23411 #define P_DDR0_PUB_DX2GSR2                         (volatile uint32_t *)((0x027a  << 2) + 0xff636000)
23412 #define   DDR0_PUB_DX2GSR3                         (0x027b)
23413 #define P_DDR0_PUB_DX2GSR3                         (volatile uint32_t *)((0x027b  << 2) + 0xff636000)
23414 #define   DDR0_PUB_DX2GSR4                         (0x027c)
23415 #define P_DDR0_PUB_DX2GSR4                         (volatile uint32_t *)((0x027c  << 2) + 0xff636000)
23416 #define   DDR0_PUB_DX2GSR5                         (0x027d)
23417 #define P_DDR0_PUB_DX2GSR5                         (volatile uint32_t *)((0x027d  << 2) + 0xff636000)
23418 
23419 
23420 #define   DDR0_PUB_DX3GCR0                         (0x0280)
23421 #define P_DDR0_PUB_DX3GCR0                         (volatile uint32_t *)((0x0280  << 2) + 0xff636000)
23422 #define   DDR0_PUB_DX3GCR1                         (0x0281)
23423 #define P_DDR0_PUB_DX3GCR1                         (volatile uint32_t *)((0x0281  << 2) + 0xff636000)
23424 #define   DDR0_PUB_DX3GCR2                         (0x0282)
23425 #define P_DDR0_PUB_DX3GCR2                         (volatile uint32_t *)((0x0282  << 2) + 0xff636000)
23426 #define   DDR0_PUB_DX3GCR3                         (0x0283)
23427 #define P_DDR0_PUB_DX3GCR3                         (volatile uint32_t *)((0x0283  << 2) + 0xff636000)
23428 #define   DDR0_PUB_DX3GCR4                         (0x0284)
23429 #define P_DDR0_PUB_DX3GCR4                         (volatile uint32_t *)((0x0284  << 2) + 0xff636000)
23430 #define   DDR0_PUB_DX3GCR5                         (0x0285)
23431 #define P_DDR0_PUB_DX3GCR5                         (volatile uint32_t *)((0x0285  << 2) + 0xff636000)
23432 #define   DDR0_PUB_DX3GCR6                         (0x0286)
23433 #define P_DDR0_PUB_DX3GCR6                         (volatile uint32_t *)((0x0286  << 2) + 0xff636000)
23434 #define   DDR0_PUB_DX3GCR7                         (0x0287)
23435 #define P_DDR0_PUB_DX3GCR7                         (volatile uint32_t *)((0x0287  << 2) + 0xff636000)
23436 #define   DDR0_PUB_DX3GCR8                         (0x0288)
23437 #define P_DDR0_PUB_DX3GCR8                         (volatile uint32_t *)((0x0288  << 2) + 0xff636000)
23438 #define   DDR0_PUB_DX3GCR9                         (0x0289)
23439 #define P_DDR0_PUB_DX3GCR9                         (volatile uint32_t *)((0x0289  << 2) + 0xff636000)
23440 #define   DDR0_PUB_DX3BDLR0                        (0x0290)
23441 #define P_DDR0_PUB_DX3BDLR0                        (volatile uint32_t *)((0x0290  << 2) + 0xff636000)
23442 #define   DDR0_PUB_DX3BDLR1                        (0x0291)
23443 #define P_DDR0_PUB_DX3BDLR1                        (volatile uint32_t *)((0x0291  << 2) + 0xff636000)
23444 #define   DDR0_PUB_DX3BDLR2                        (0x0292)
23445 #define P_DDR0_PUB_DX3BDLR2                        (volatile uint32_t *)((0x0292  << 2) + 0xff636000)
23446 #define   DDR0_PUB_DX3BDLR3                        (0x0294)
23447 #define P_DDR0_PUB_DX3BDLR3                        (volatile uint32_t *)((0x0294  << 2) + 0xff636000)
23448 #define   DDR0_PUB_DX3BDLR4                        (0x0295)
23449 #define P_DDR0_PUB_DX3BDLR4                        (volatile uint32_t *)((0x0295  << 2) + 0xff636000)
23450 #define   DDR0_PUB_DX3BDLR5                        (0x0296)
23451 #define P_DDR0_PUB_DX3BDLR5                        (volatile uint32_t *)((0x0296  << 2) + 0xff636000)
23452 #define   DDR0_PUB_DX3BDLR6                        (0x0298)
23453 #define P_DDR0_PUB_DX3BDLR6                        (volatile uint32_t *)((0x0298  << 2) + 0xff636000)
23454 #define   DDR0_PUB_DX3LCDLR0                       (0x02a0)
23455 #define P_DDR0_PUB_DX3LCDLR0                       (volatile uint32_t *)((0x02a0  << 2) + 0xff636000)
23456 #define   DDR0_PUB_DX3LCDLR1                       (0x02a1)
23457 #define P_DDR0_PUB_DX3LCDLR1                       (volatile uint32_t *)((0x02a1  << 2) + 0xff636000)
23458 #define   DDR0_PUB_DX3LCDLR2                       (0x02a2)
23459 #define P_DDR0_PUB_DX3LCDLR2                       (volatile uint32_t *)((0x02a2  << 2) + 0xff636000)
23460 #define   DDR0_PUB_DX3LCDLR3                       (0x02a3)
23461 #define P_DDR0_PUB_DX3LCDLR3                       (volatile uint32_t *)((0x02a3  << 2) + 0xff636000)
23462 #define   DDR0_PUB_DX3LCDLR4                       (0x02a4)
23463 #define P_DDR0_PUB_DX3LCDLR4                       (volatile uint32_t *)((0x02a4  << 2) + 0xff636000)
23464 #define   DDR0_PUB_DX3LCDLR5                       (0x02a5)
23465 #define P_DDR0_PUB_DX3LCDLR5                       (volatile uint32_t *)((0x02a5  << 2) + 0xff636000)
23466 #define   DDR0_PUB_DX3MDLR0                        (0x02a8)
23467 #define P_DDR0_PUB_DX3MDLR0                        (volatile uint32_t *)((0x02a8  << 2) + 0xff636000)
23468 #define   DDR0_PUB_DX3MDLR1                        (0x02a9)
23469 #define P_DDR0_PUB_DX3MDLR1                        (volatile uint32_t *)((0x02a9  << 2) + 0xff636000)
23470 #define   DDR0_PUB_DX3GTR0                         (0x02b0)
23471 #define P_DDR0_PUB_DX3GTR0                         (volatile uint32_t *)((0x02b0  << 2) + 0xff636000)
23472 #define   DDR0_PUB_DX3GTR1                         (0x02b1)
23473 #define P_DDR0_PUB_DX3GTR1                         (volatile uint32_t *)((0x02b1  << 2) + 0xff636000)
23474 #define   DDR0_PUB_DX3GTR2                         (0x02b2)
23475 #define P_DDR0_PUB_DX3GTR2                         (volatile uint32_t *)((0x02b2  << 2) + 0xff636000)
23476 #define   DDR0_PUB_DX3GTR3                         (0x02b3)
23477 #define P_DDR0_PUB_DX3GTR3                         (volatile uint32_t *)((0x02b3  << 2) + 0xff636000)
23478 #define   DDR0_PUB_DX3RSR0                         (0x02b4)
23479 #define P_DDR0_PUB_DX3RSR0                         (volatile uint32_t *)((0x02b4  << 2) + 0xff636000)
23480 #define   DDR0_PUB_DX3RSR1                         (0x02b5)
23481 #define P_DDR0_PUB_DX3RSR1                         (volatile uint32_t *)((0x02b5  << 2) + 0xff636000)
23482 #define   DDR0_PUB_DX3RSR2                         (0x02b6)
23483 #define P_DDR0_PUB_DX3RSR2                         (volatile uint32_t *)((0x02b6  << 2) + 0xff636000)
23484 #define   DDR0_PUB_DX3RSR3                         (0x02b7)
23485 #define P_DDR0_PUB_DX3RSR3                         (volatile uint32_t *)((0x02b7  << 2) + 0xff636000)
23486 #define   DDR0_PUB_DX3GSR0                         (0x02b8)
23487 #define P_DDR0_PUB_DX3GSR0                         (volatile uint32_t *)((0x02b8  << 2) + 0xff636000)
23488 #define   DDR0_PUB_DX3GSR1                         (0x02b9)
23489 #define P_DDR0_PUB_DX3GSR1                         (volatile uint32_t *)((0x02b9  << 2) + 0xff636000)
23490 #define   DDR0_PUB_DX3GSR2                         (0x02ba)
23491 #define P_DDR0_PUB_DX3GSR2                         (volatile uint32_t *)((0x02ba  << 2) + 0xff636000)
23492 #define   DDR0_PUB_DX3GSR3                         (0x02bb)
23493 #define P_DDR0_PUB_DX3GSR3                         (volatile uint32_t *)((0x02bb  << 2) + 0xff636000)
23494 #define   DDR0_PUB_DX3GSR4                         (0x02bc)
23495 #define P_DDR0_PUB_DX3GSR4                         (volatile uint32_t *)((0x02bc  << 2) + 0xff636000)
23496 #define   DDR0_PUB_DX3GSR5                         (0x02bd)
23497 #define P_DDR0_PUB_DX3GSR5                         (volatile uint32_t *)((0x02bd  << 2) + 0xff636000)
23498 
23499 /* osd super scale */
23500 #define OSDSR_HV_SIZEIN              VPP_OSDSC_DITHER_CTRL
23501 #define OSDSR_CTRL_MODE              VPP_OSDSC_DITHER_LUT_1
23502 #define OSDSR_ABIC_HCOEF             VPP_OSDSC_DITHER_LUT_2
23503 #define OSDSR_YBIC_HCOEF             VPP_OSDSC_DITHER_LUT_3
23504 #define OSDSR_CBIC_HCOEF             VPP_OSDSC_DITHER_LUT_4
23505 #define OSDSR_ABIC_VCOEF             VPP_OSDSC_DITHER_LUT_5
23506 #define OSDSR_YBIC_VCOEF             VPP_OSDSC_DITHER_LUT_6
23507 #define OSDSR_CBIC_VCOEF             VPP_OSDSC_DITHER_LUT_7
23508 #define OSDSR_VAR_PARA               VPP_OSDSC_DITHER_LUT_8
23509 #define OSDSR_CONST_PARA             VPP_OSDSC_DITHER_LUT_9
23510 #define OSDSR_RKE_EXTWIN             VPP_OSDSC_DITHER_LUT_10
23511 #define OSDSR_UK_GRAD2DDIAG_TH_RATE  VPP_OSDSC_DITHER_LUT_11
23512 #define OSDSR_UK_GRAD2DDIAG_LIMIT    VPP_OSDSC_DITHER_LUT_12
23513 #define OSDSR_UK_GRAD2DADJA_TH_RATE  VPP_OSDSC_DITHER_LUT_13
23514 #define OSDSR_UK_GRAD2DADJA_LIMIT    VPP_OSDSC_DITHER_LUT_14
23515 #define OSDSR_UK_BST_GAIN            VPP_OSDSC_DITHER_LUT_15
23516 
23517 
23518 //
23519 // Closing file:  ../mmc/ddr_ip/rtl/ddr_phy_pub_reg.vh
23520 //
23521 //
23522 // Closing file:  ./mmc_reg.vh
23523 //
23524 
23525 #endif // MMC_REG_DEFINE
23526 
23527 
23528 #endif