Jeevan Shriram | 89b72f4 | 2015-01-07 16:33:25 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 2 | * |
| 3 | * Redistribution and use in source and binary forms, with or without |
| 4 | * modification, are permitted provided that the following conditions are |
| 5 | * met: |
| 6 | * * Redistributions of source code must retain the above copyright |
| 7 | * notice, this list of conditions and the following disclaimer. |
| 8 | * * Redistributions in binary form must reproduce the above |
| 9 | * copyright notice, this list of conditions and the following |
| 10 | * disclaimer in the documentation and/or other materials provided |
| 11 | * with the distribution. |
| 12 | * * Neither the name of The Linux Foundation nor the names of its |
| 13 | * contributors may be used to endorse or promote products derived |
| 14 | * from this software without specific prior written permission. |
| 15 | * |
| 16 | * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED |
| 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT |
| 19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS |
| 20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 23 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 24 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
| 25 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 26 | * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | */ |
| 28 | |
Channagoud Kadabi | 608b6a7 | 2014-04-14 13:58:03 -0700 | [diff] [blame] | 29 | #ifndef _PLATFORM_MSM8994_IOMAP_H_ |
| 30 | #define _PLATFORM_MSM8994_IOMAP_H_ |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 31 | |
Channagoud Kadabi | 4983cf0 | 2014-05-06 17:34:52 -0700 | [diff] [blame] | 32 | #define MSM_SHARED_BASE 0x06A00000 |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 33 | |
| 34 | #define MSM_IOMAP_BASE 0xF9000000 |
| 35 | #define MSM_IOMAP_END 0xFEFFFFFF |
| 36 | |
| 37 | #define SYSTEM_IMEM_BASE 0xFE800000 |
| 38 | #define MSM_SHARED_IMEM_BASE 0xFE87F000 |
Sridhar Parasuram | 39419a3 | 2014-09-12 18:11:05 -0700 | [diff] [blame] | 39 | #define MSM_SHARED_IMEM_BASE2 0xFE80F000 |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 40 | #define RESTART_REASON_ADDR (MSM_SHARED_IMEM_BASE + 0x65C) |
Sridhar Parasuram | 39419a3 | 2014-09-12 18:11:05 -0700 | [diff] [blame] | 41 | #define RESTART_REASON_ADDR2 (MSM_SHARED_IMEM_BASE2 + 0x65C) |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 42 | |
Sridhar Parasuram | 39419a3 | 2014-09-12 18:11:05 -0700 | [diff] [blame] | 43 | #define BS_INFO_OFFSET (0x6B0) |
| 44 | #define BS_INFO_ADDR (MSM_SHARED_IMEM_BASE + BS_INFO_OFFSET) |
| 45 | #define BS_INFO_ADDR2 (MSM_SHARED_IMEM_BASE2 + BS_INFO_OFFSET) |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 46 | |
| 47 | #define KPSS_BASE 0xF9000000 |
| 48 | |
| 49 | #define MSM_GIC_DIST_BASE KPSS_BASE |
| 50 | #define MSM_GIC_CPU_BASE (KPSS_BASE + 0x00002000) |
| 51 | #define APCS_KPSS_ACS_BASE (KPSS_BASE + 0x00008000) |
| 52 | #define APCS_APC_KPSS_PLL_BASE (KPSS_BASE + 0x0000A000) |
| 53 | #define APCS_KPSS_CFG_BASE (KPSS_BASE + 0x00010000) |
| 54 | #define APCS_KPSS_WDT_BASE (KPSS_BASE + 0x00017000) |
| 55 | #define KPSS_APCS_QTMR_AC_BASE (KPSS_BASE + 0x00020000) |
| 56 | #define KPSS_APCS_F0_QTMR_V1_BASE (KPSS_BASE + 0x00021000) |
Sundarajan Srinivasan | 19b95c7 | 2014-07-24 16:37:04 -0700 | [diff] [blame] | 57 | #define APCS_ALIAS0_IPC_INTERRUPT (KPSS_BASE + 0x0000D008) |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 58 | #define QTMR_BASE KPSS_APCS_F0_QTMR_V1_BASE |
| 59 | |
| 60 | #define PERIPH_SS_BASE 0xF9800000 |
| 61 | |
| 62 | #define MSM_SDC1_BASE (PERIPH_SS_BASE + 0x00024000) |
| 63 | #define MSM_SDC1_SDHCI_BASE (PERIPH_SS_BASE + 0x00024900) |
| 64 | #define MSM_SDC3_BASE (PERIPH_SS_BASE + 0x00064000) |
| 65 | #define MSM_SDC3_SDHCI_BASE (PERIPH_SS_BASE + 0x00064900) |
| 66 | #define MSM_SDC2_BASE (PERIPH_SS_BASE + 0x000A4000) |
| 67 | #define MSM_SDC2_SDHCI_BASE (PERIPH_SS_BASE + 0x000A4900) |
| 68 | #define MSM_SDC4_BASE (PERIPH_SS_BASE + 0x000E4000) |
| 69 | #define MSM_SDC4_SDHCI_BASE (PERIPH_SS_BASE + 0x000E4900) |
| 70 | |
| 71 | #define BLSP1_UART0_BASE (PERIPH_SS_BASE + 0x0011D000) |
| 72 | #define BLSP1_UART1_BASE (PERIPH_SS_BASE + 0x0011E000) |
| 73 | #define BLSP1_UART2_BASE (PERIPH_SS_BASE + 0x0011F000) |
| 74 | #define BLSP1_UART3_BASE (PERIPH_SS_BASE + 0x00120000) |
| 75 | #define BLSP1_UART4_BASE (PERIPH_SS_BASE + 0x00121000) |
| 76 | #define BLSP1_UART5_BASE (PERIPH_SS_BASE + 0x00122000) |
| 77 | |
| 78 | #define BLSP2_UART1_BASE (PERIPH_SS_BASE + 0x0015E000) |
| 79 | |
| 80 | #define MSM_USB_BASE (PERIPH_SS_BASE + 0x00255000) |
Sundarajan Srinivasan | 0ebf2fc | 2014-04-23 16:45:18 -0700 | [diff] [blame] | 81 | #define USB2_PHY_SEL 0xFD4AB000 |
| 82 | |
| 83 | /* QUSB2 PHY */ |
| 84 | #define QUSB2_PHY_BASE (PERIPH_SS_BASE + 0x00339000) |
| 85 | |
| 86 | #define QUSB2PHY_PORT_POWERDOWN (QUSB2_PHY_BASE + 0x000000B4) |
Tanya Finkel | 1fa8fe1 | 2014-08-07 15:07:25 +0300 | [diff] [blame] | 87 | #define QUSB2PHY_PORT_UTMI_CTRL2 (QUSB2_PHY_BASE + 0x000000C4) |
| 88 | #define QUSB2PHY_PORT_TUNE1 (QUSB2_PHY_BASE + 0x00000080) |
| 89 | #define QUSB2PHY_PORT_TUNE2 (QUSB2_PHY_BASE + 0x00000084) |
| 90 | #define QUSB2PHY_PORT_TUNE3 (QUSB2_PHY_BASE + 0x00000088) |
| 91 | #define QUSB2PHY_PORT_TUNE4 (QUSB2_PHY_BASE + 0x0000008C) |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 92 | |
Channagoud Kadabi | 3dcc4ed | 2014-04-10 14:59:41 -0700 | [diff] [blame] | 93 | #define MSM_USB30_BASE 0xF9200000 |
| 94 | #define MSM_USB30_QSCRATCH_BASE 0xF92F8800 |
| 95 | |
| 96 | /* SS QMP (Qulacomm Multi Protocol) */ |
| 97 | #define QMP_PHY_BASE 0xF9B38000 |
| 98 | |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 99 | /* Clocks */ |
| 100 | #define CLK_CTL_BASE 0xFC400000 |
| 101 | |
| 102 | /* GPLL */ |
| 103 | #define GPLL0_MODE (CLK_CTL_BASE + 0x0000) |
| 104 | #define GPLL4_MODE (CLK_CTL_BASE + 0x1DC0) |
| 105 | #define APCS_GPLL_ENA_VOTE (CLK_CTL_BASE + 0x1480) |
| 106 | #define APCS_CLOCK_BRANCH_ENA_VOTE (CLK_CTL_BASE + 0x1484) |
| 107 | |
| 108 | /* UART */ |
| 109 | #define BLSP1_AHB_CBCR (CLK_CTL_BASE + 0x5C4) |
| 110 | #define BLSP1_UART2_APPS_CBCR (CLK_CTL_BASE + 0x704) |
| 111 | #define BLSP1_UART2_APPS_CMD_RCGR (CLK_CTL_BASE + 0x70C) |
| 112 | #define BLSP1_UART2_APPS_CFG_RCGR (CLK_CTL_BASE + 0x710) |
| 113 | #define BLSP1_UART2_APPS_M (CLK_CTL_BASE + 0x714) |
| 114 | #define BLSP1_UART2_APPS_N (CLK_CTL_BASE + 0x718) |
| 115 | #define BLSP1_UART2_APPS_D (CLK_CTL_BASE + 0x71C) |
| 116 | #define BLSP2_AHB_CBCR (CLK_CTL_BASE + 0x944) |
| 117 | #define BLSP2_UART2_APPS_CBCR (CLK_CTL_BASE + 0xA44) |
| 118 | #define BLSP2_UART2_APPS_CMD_RCGR (CLK_CTL_BASE + 0xA4C) |
| 119 | #define BLSP2_UART2_APPS_CFG_RCGR (CLK_CTL_BASE + 0xA50) |
| 120 | #define BLSP2_UART2_APPS_M (CLK_CTL_BASE + 0xA54) |
| 121 | #define BLSP2_UART2_APPS_N (CLK_CTL_BASE + 0xA58) |
| 122 | #define BLSP2_UART2_APPS_D (CLK_CTL_BASE + 0xA5C) |
| 123 | |
| 124 | /* USB */ |
| 125 | #define USB_HS_BCR (CLK_CTL_BASE + 0x480) |
| 126 | |
| 127 | #define USB_HS_SYSTEM_CBCR (CLK_CTL_BASE + 0x484) |
| 128 | #define USB_HS_AHB_CBCR (CLK_CTL_BASE + 0x488) |
| 129 | #define USB_HS_SYSTEM_CMD_RCGR (CLK_CTL_BASE + 0x490) |
| 130 | #define USB_HS_SYSTEM_CFG_RCGR (CLK_CTL_BASE + 0x494) |
| 131 | |
Channagoud Kadabi | 3dcc4ed | 2014-04-10 14:59:41 -0700 | [diff] [blame] | 132 | /* USB3 clocks */ |
| 133 | #define SYS_NOC_USB3_AXI_CBCR (CLK_CTL_BASE + 0x03FC) |
| 134 | #define USB2B_PHY_SLEEP_CBCR (CLK_CTL_BASE + 0x04AC) |
| 135 | #define USB2B_PHY_BCR (CLK_CTL_BASE + 0x04A8) |
| 136 | #define USB30_MASTER_CMD_RCGR (CLK_CTL_BASE + 0x03D4) |
| 137 | #define USB30_MASTER_CFG_RCGR (CLK_CTL_BASE + 0x03D8) |
| 138 | #define USB30_MASTER_M (CLK_CTL_BASE + 0x03DC) |
| 139 | #define USB30_MASTER_N (CLK_CTL_BASE + 0x03E0) |
| 140 | #define USB30_MASTER_D (CLK_CTL_BASE + 0x03E4) |
| 141 | #define USB30_MASTER_CBCR (CLK_CTL_BASE + 0x03C8) |
| 142 | #define USB_30_BCR (CLK_CTL_BASE + 0x03C0) |
| 143 | #define USB30_MOCK_UTMI_CMD_RCGR (CLK_CTL_BASE + 0x03E8) |
| 144 | #define USB30_MOCK_UTMI_CFG_RCGR (CLK_CTL_BASE + 0x03EC) |
| 145 | #define USB30_MOCK_UTMI_CBCR (CLK_CTL_BASE + 0x03D0) |
| 146 | #define USB30_SLEEP_CBCR (CLK_CTL_BASE + 0x03CC) |
| 147 | #define USB30_PHY_AUX_CMD_RCGR (CLK_CTL_BASE + 0x1414) |
| 148 | #define USB30_PHY_AUX_CFG_RCGR (CLK_CTL_BASE + 0x1418) |
| 149 | #define USB30_PHY_AUX_CBCR (CLK_CTL_BASE + 0x1408) |
| 150 | #define USB30_PHY_PIPE_CBCR (CLK_CTL_BASE + 0x140C) |
| 151 | #define USB30_PHY_BCR (CLK_CTL_BASE + 0x1400) |
| 152 | #define USB30PHY_PHY_BCR (CLK_CTL_BASE + 0x1404) |
| 153 | #define GCC_USB30_GDSCR (CLK_CTL_BASE + 0x03C4) |
Sundarajan Srinivasan | 0ebf2fc | 2014-04-23 16:45:18 -0700 | [diff] [blame] | 154 | #define GCC_QUSB2_PHY_BCR (CLK_CTL_BASE + 0x04B8) |
Channagoud Kadabi | 3c2be1c | 2014-06-01 18:59:21 -0700 | [diff] [blame] | 155 | #define USB_PHY_CFG_AHB2PHY_CBCR (CLK_CTL_BASE + 0x1A84) |
Channagoud Kadabi | 3dcc4ed | 2014-04-10 14:59:41 -0700 | [diff] [blame] | 156 | |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 157 | /* SDCC */ |
| 158 | #define SDCC1_BCR (CLK_CTL_BASE + 0x4C0) /* block reset */ |
| 159 | #define SDCC1_APPS_CBCR (CLK_CTL_BASE + 0x4C4) /* branch control */ |
| 160 | #define SDCC1_AHB_CBCR (CLK_CTL_BASE + 0x4C8) |
| 161 | #define SDCC1_CMD_RCGR (CLK_CTL_BASE + 0x4D0) /* cmd */ |
| 162 | #define SDCC1_CFG_RCGR (CLK_CTL_BASE + 0x4D4) /* cfg */ |
| 163 | #define SDCC1_M (CLK_CTL_BASE + 0x4D8) /* m */ |
| 164 | #define SDCC1_N (CLK_CTL_BASE + 0x4DC) /* n */ |
| 165 | #define SDCC1_D (CLK_CTL_BASE + 0x4E0) /* d */ |
| 166 | |
Channagoud Kadabi | e804d64 | 2014-08-20 17:43:57 -0700 | [diff] [blame] | 167 | /* SDCC2 */ |
| 168 | #define SDCC2_BCR (CLK_CTL_BASE + 0x500) /* block reset */ |
| 169 | #define SDCC2_APPS_CBCR (CLK_CTL_BASE + 0x504) /* branch control */ |
| 170 | #define SDCC2_AHB_CBCR (CLK_CTL_BASE + 0x508) |
| 171 | #define SDCC2_INACTIVITY_TIMER_CBCR (CLK_CTL_BASE + 0x50C) |
| 172 | #define SDCC2_CMD_RCGR (CLK_CTL_BASE + 0x510) /* cmd */ |
| 173 | #define SDCC2_CFG_RCGR (CLK_CTL_BASE + 0x514) /* cfg */ |
| 174 | #define SDCC2_M (CLK_CTL_BASE + 0x518) /* m */ |
| 175 | #define SDCC2_N (CLK_CTL_BASE + 0x51C) /* n */ |
| 176 | #define SDCC2_D (CLK_CTL_BASE + 0x520) /* d */ |
| 177 | |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 178 | /* SDCC3 */ |
| 179 | #define SDCC3_BCR (CLK_CTL_BASE + 0x540) /* block reset */ |
| 180 | #define SDCC3_APPS_CBCR (CLK_CTL_BASE + 0x544) /* branch control */ |
| 181 | #define SDCC3_AHB_CBCR (CLK_CTL_BASE + 0x548) |
| 182 | #define SDCC3_INACTIVITY_TIMER_CBCR (CLK_CTL_BASE + 0x54C) |
| 183 | #define SDCC3_CMD_RCGR (CLK_CTL_BASE + 0x550) /* cmd */ |
| 184 | #define SDCC3_CFG_RCGR (CLK_CTL_BASE + 0x554) /* cfg */ |
| 185 | #define SDCC3_M (CLK_CTL_BASE + 0x558) /* m */ |
| 186 | #define SDCC3_N (CLK_CTL_BASE + 0x55C) /* n */ |
| 187 | #define SDCC3_D (CLK_CTL_BASE + 0x560) /* d */ |
| 188 | |
| 189 | |
| 190 | #define GCC_WDOG_DEBUG (CLK_CTL_BASE + 0x00001780) |
| 191 | |
| 192 | #define UFS_BASE (0xFC590000 + 0x00004000) |
| 193 | |
| 194 | #define SPMI_BASE 0xFC4C0000 |
| 195 | #define SPMI_GENI_BASE (SPMI_BASE + 0xA000) |
| 196 | #define SPMI_PIC_BASE (SPMI_BASE + 0xB000) |
| 197 | |
Channagoud Kadabi | 27ff934 | 2014-06-16 11:19:29 -0700 | [diff] [blame] | 198 | #define MSM_CE2_BAM_BASE 0xFD444000 |
| 199 | #define MSM_CE2_BASE 0xFD45A000 |
Channagoud Kadabi | 2c48874 | 2014-12-02 11:37:18 -0800 | [diff] [blame] | 200 | #define GCC_CE2_BCR (CLK_CTL_BASE + 0x1080) |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 201 | |
| 202 | #define TLMM_BASE_ADDR 0xFD510000 |
| 203 | #define GPIO_CONFIG_ADDR(x) (TLMM_BASE_ADDR + 0x1000 + (x)*0x10) |
| 204 | #define GPIO_IN_OUT_ADDR(x) (TLMM_BASE_ADDR + 0x1004 + (x)*0x10) |
| 205 | |
| 206 | #define MPM2_MPM_CTRL_BASE 0xFC4A1000 |
| 207 | #define MPM2_MPM_PS_HOLD 0xFC4AB000 |
| 208 | #define MPM2_MPM_SLEEP_TIMETICK_COUNT_VAL 0xFC4A3000 |
| 209 | |
| 210 | /* DRV strength for sdcc */ |
| 211 | #define SDC1_HDRV_PULL_CTL (TLMM_BASE_ADDR + 0x00002044) |
Channagoud Kadabi | e804d64 | 2014-08-20 17:43:57 -0700 | [diff] [blame] | 212 | #define SDC2_HDRV_PULL_CTL (TLMM_BASE_ADDR + 0x00002048) |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 213 | |
| 214 | /* SDHCI */ |
| 215 | #define SDCC_MCI_HC_MODE (0x00000078) |
| 216 | #define SDCC_HC_PWRCTL_STATUS_REG (0x000000DC) |
| 217 | #define SDCC_HC_PWRCTL_MASK_REG (0x000000E0) |
| 218 | #define SDCC_HC_PWRCTL_CLEAR_REG (0x000000E4) |
| 219 | #define SDCC_HC_PWRCTL_CTL_REG (0x000000E8) |
| 220 | |
| 221 | /* Boot config */ |
| 222 | #define SEC_CTRL_CORE_BASE 0xFC4B8000 |
| 223 | #define BOOT_CONFIG_OFFSET 0x00006034 |
| 224 | #define BOOT_CONFIG_REG (SEC_CTRL_CORE_BASE+BOOT_CONFIG_OFFSET) |
| 225 | |
| 226 | #define MPM2_MPM_SLEEP_TIMETICK_COUNT_VAL 0xFC4A3000 |
| 227 | |
Channagoud Kadabi | 3dcc4ed | 2014-04-10 14:59:41 -0700 | [diff] [blame] | 228 | #define TCSR_PHSS_USB2_PHY_SEL 0xFD4AB000 |
| 229 | #define PLATFORM_QMP_OFFSET 0x8 |
| 230 | |
Channagoud Kadabi | 9e57488 | 2014-06-24 16:15:23 -0700 | [diff] [blame] | 231 | #define SMEM_TARG_INFO_ADDR 0xFE805FF0 |
Channagoud Kadabi | b4c64b8 | 2014-07-24 17:18:46 -0700 | [diff] [blame] | 232 | |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 233 | /* MDSS */ |
| 234 | #define MSM_MMSS_CLK_CTL_BASE 0xFD8C0000 |
Channagoud Kadabi | 5f42b27 | 2014-08-21 18:40:39 -0700 | [diff] [blame] | 235 | #define MMSS_MISC_AHB_CBCR (MSM_MMSS_CLK_CTL_BASE + 0x502C) |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 236 | #define MIPI_DSI_BASE (0xFD998000) |
| 237 | #define MIPI_DSI0_BASE (MIPI_DSI_BASE) |
| 238 | #define MIPI_DSI1_BASE (0xFD9A0000) |
| 239 | #define DSI0_PHY_BASE (0xFD998500) |
| 240 | #define DSI1_PHY_BASE (0xFD9A0500) |
| 241 | #define DSI0_PLL_BASE (0xFD998300) |
| 242 | #define DSI1_PLL_BASE (0xFD9A0300) |
Jeevan Shriram | 89b72f4 | 2015-01-07 16:33:25 -0800 | [diff] [blame] | 243 | #define DSI0_REGULATOR_BASE (0xFD998780) |
| 244 | #define DSI1_REGULATOR_BASE (0xFD9A0780) |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 245 | |
| 246 | #define MDP_BASE (0xfd900000) |
| 247 | |
Siddhartha Agrawal | 869809e | 2014-09-25 10:18:59 -0700 | [diff] [blame] | 248 | |
| 249 | #ifdef MDP_PP_0_BASE |
| 250 | #undef MDP_PP_0_BASE |
| 251 | #endif |
| 252 | #define MDP_PP_0_BASE REG_MDP(0x71000) |
| 253 | |
| 254 | #ifdef MDP_PP_1_BASE |
| 255 | #undef MDP_PP_1_BASE |
| 256 | #endif |
| 257 | #define MDP_PP_1_BASE REG_MDP(0x71800) |
| 258 | |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 259 | #define REG_MDP(off) (MDP_BASE + (off)) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 260 | |
| 261 | #ifdef MDP_HW_REV |
| 262 | #undef MDP_HW_REV |
| 263 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 264 | #define MDP_HW_REV REG_MDP(0x1000) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 265 | |
| 266 | #ifdef MDP_INTR_EN |
| 267 | #undef MDP_INTR_EN |
| 268 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 269 | #define MDP_INTR_EN REG_MDP(0x1010) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 270 | |
| 271 | #ifdef MDP_INTR_CLEAR |
| 272 | #undef MDP_INTR_CLEAR |
| 273 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 274 | #define MDP_INTR_CLEAR REG_MDP(0x1018) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 275 | |
| 276 | #ifdef MDP_HIST_INTR_EN |
| 277 | #undef MDP_HIST_INTR_EN |
| 278 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 279 | #define MDP_HIST_INTR_EN REG_MDP(0x101C) |
| 280 | |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 281 | #ifdef MDP_DISP_INTF_SEL |
| 282 | #undef MDP_DISP_INTF_SEL |
| 283 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 284 | #define MDP_DISP_INTF_SEL REG_MDP(0x1004) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 285 | |
| 286 | #ifdef MDP_VIDEO_INTF_UNDERFLOW_CTL |
| 287 | #undef MDP_VIDEO_INTF_UNDERFLOW_CTL |
| 288 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 289 | #define MDP_VIDEO_INTF_UNDERFLOW_CTL REG_MDP(0x12E0) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 290 | |
| 291 | #ifdef MDP_UPPER_NEW_ROI_PRIOR_RO_START |
| 292 | #undef MDP_UPPER_NEW_ROI_PRIOR_RO_START |
| 293 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 294 | #define MDP_UPPER_NEW_ROI_PRIOR_RO_START REG_MDP(0x11EC) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 295 | |
| 296 | #ifdef MDP_LOWER_NEW_ROI_PRIOR_TO_START |
| 297 | #undef MDP_LOWER_NEW_ROI_PRIOR_TO_START |
| 298 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 299 | #define MDP_LOWER_NEW_ROI_PRIOR_TO_START REG_MDP(0x13F8) |
| 300 | |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 301 | #ifdef MDP_INTF_0_TIMING_ENGINE_EN |
| 302 | #undef MDP_INTF_0_TIMING_ENGINE_EN |
| 303 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 304 | #define MDP_INTF_0_TIMING_ENGINE_EN REG_MDP(0x6b000) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 305 | |
| 306 | #ifdef MDP_INTF_1_TIMING_ENGINE_EN |
| 307 | #undef MDP_INTF_1_TIMING_ENGINE_EN |
| 308 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 309 | #define MDP_INTF_1_TIMING_ENGINE_EN REG_MDP(0x6b800) |
Veera Sundaram Sankaran | bacb401 | 2014-12-16 18:16:44 -0800 | [diff] [blame] | 310 | |
| 311 | #ifdef MDP_INTF_2_TIMING_ENGINE_EN |
| 312 | #undef MDP_INTF_2_TIMING_ENGINE_EN |
| 313 | #endif |
Aravind Venkateswaran | 982bdd8 | 2014-12-08 12:03:11 -0800 | [diff] [blame] | 314 | #define MDP_INTF_2_TIMING_ENGINE_EN REG_MDP(0x6C000) |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 315 | |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 316 | #ifdef MDP_CTL_0_BASE |
| 317 | #undef MDP_CTL_0_BASE |
| 318 | #endif |
| 319 | #define MDP_CTL_0_BASE REG_MDP(0x2000) |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 320 | |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 321 | #ifdef MDP_CTL_1_BASE |
| 322 | #undef MDP_CTL_1_BASE |
| 323 | #endif |
| 324 | #define MDP_CTL_1_BASE REG_MDP(0x2200) |
| 325 | |
| 326 | #ifdef MDP_REG_SPLIT_DISPLAY_EN |
| 327 | #undef MDP_REG_SPLIT_DISPLAY_EN |
| 328 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 329 | #define MDP_REG_SPLIT_DISPLAY_EN REG_MDP(0x12F4) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 330 | |
| 331 | #ifdef MDP_REG_SPLIT_DISPLAY_UPPER_PIPE_CTL |
| 332 | #undef MDP_REG_SPLIT_DISPLAY_UPPER_PIPE_CTL |
| 333 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 334 | #define MDP_REG_SPLIT_DISPLAY_UPPER_PIPE_CTL REG_MDP(0x12F8) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 335 | |
| 336 | #ifdef MDP_REG_SPLIT_DISPLAY_LOWER_PIPE_CTL |
| 337 | #undef MDP_REG_SPLIT_DISPLAY_LOWER_PIPE_CTL |
| 338 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 339 | #define MDP_REG_SPLIT_DISPLAY_LOWER_PIPE_CTL REG_MDP(0x13F0) |
| 340 | |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 341 | #ifdef MDP_INTF_0_BASE |
| 342 | #undef MDP_INTF_0_BASE |
| 343 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 344 | #define MDP_INTF_0_BASE REG_MDP(0x6b000) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 345 | |
| 346 | #ifdef MDP_INTF_1_BASE |
| 347 | #undef MDP_INTF_1_BASE |
| 348 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 349 | #define MDP_INTF_1_BASE REG_MDP(0x6b800) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 350 | |
| 351 | #ifdef MDP_INTF_2_BASE |
| 352 | #undef MDP_INTF_2_BASE |
| 353 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 354 | #define MDP_INTF_2_BASE REG_MDP(0x6c000) |
| 355 | |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 356 | #ifdef MDP_CLK_CTRL0 |
| 357 | #undef MDP_CLK_CTRL0 |
| 358 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 359 | #define MDP_CLK_CTRL0 REG_MDP(0x12AC) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 360 | |
| 361 | #ifdef MDP_CLK_CTRL1 |
| 362 | #undef MDP_CLK_CTRL1 |
| 363 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 364 | #define MDP_CLK_CTRL1 REG_MDP(0x12B4) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 365 | |
| 366 | #ifdef MDP_CLK_CTRL2 |
| 367 | #undef MDP_CLK_CTRL2 |
| 368 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 369 | #define MDP_CLK_CTRL2 REG_MDP(0x12BC) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 370 | |
| 371 | #ifdef MDP_CLK_CTRL3 |
| 372 | #undef MDP_CLK_CTRL3 |
| 373 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 374 | #define MDP_CLK_CTRL3 REG_MDP(0x13A8) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 375 | |
| 376 | #ifdef MDP_CLK_CTRL4 |
| 377 | #undef MDP_CLK_CTRL4 |
| 378 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 379 | #define MDP_CLK_CTRL4 REG_MDP(0x13B0) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 380 | |
| 381 | #ifdef MDP_CLK_CTRL5 |
| 382 | #undef MDP_CLK_CTRL5 |
| 383 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 384 | #define MDP_CLK_CTRL5 REG_MDP(0x13B8) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 385 | |
| 386 | #ifdef MDP_CLK_CTRL6 |
| 387 | #undef MDP_CLK_CTRL6 |
| 388 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 389 | #define MDP_CLK_CTRL6 REG_MDP(0x12C4) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 390 | |
| 391 | #ifdef MDP_CLK_CTRL7 |
| 392 | #undef MDP_CLK_CTRL7 |
| 393 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 394 | #define MDP_CLK_CTRL7 REG_MDP(0x13D0) |
| 395 | |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 396 | #ifdef MMSS_MDP_SMP_ALLOC_W_BASE |
| 397 | #undef MMSS_MDP_SMP_ALLOC_W_BASE |
| 398 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 399 | #define MMSS_MDP_SMP_ALLOC_W_BASE REG_MDP(0x1080) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 400 | |
| 401 | #ifdef MMSS_MDP_SMP_ALLOC_R_BASE |
| 402 | #undef MMSS_MDP_SMP_ALLOC_R_BASE |
| 403 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 404 | #define MMSS_MDP_SMP_ALLOC_R_BASE REG_MDP(0x1130) |
| 405 | |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 406 | #ifdef MDP_QOS_REMAPPER_CLASS_0 |
| 407 | #undef MDP_QOS_REMAPPER_CLASS_0 |
| 408 | #endif |
Ingrid Gallardo | 998ea44 | 2014-09-10 17:22:08 -0700 | [diff] [blame] | 409 | #define MDP_QOS_REMAPPER_CLASS_0 REG_MDP(0x11E0) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 410 | |
| 411 | #ifdef MDP_QOS_REMAPPER_CLASS_1 |
| 412 | #undef MDP_QOS_REMAPPER_CLASS_1 |
| 413 | #endif |
Ingrid Gallardo | 998ea44 | 2014-09-10 17:22:08 -0700 | [diff] [blame] | 414 | #define MDP_QOS_REMAPPER_CLASS_1 REG_MDP(0x11E4) |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 415 | |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 416 | #ifdef VBIF_VBIF_DDR_FORCE_CLK_ON |
| 417 | #undef VBIF_VBIF_DDR_FORCE_CLK_ON |
| 418 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 419 | #define VBIF_VBIF_DDR_FORCE_CLK_ON REG_MDP(0xc8004) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 420 | |
| 421 | #ifdef VBIF_VBIF_DDR_OUT_MAX_BURST |
| 422 | #undef VBIF_VBIF_DDR_OUT_MAX_BURST |
| 423 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 424 | #define VBIF_VBIF_DDR_OUT_MAX_BURST REG_MDP(0xc80D8) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 425 | |
| 426 | #ifdef VBIF_VBIF_DDR_ARB_CTRL |
| 427 | #undef VBIF_VBIF_DDR_ARB_CTRL |
| 428 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 429 | #define VBIF_VBIF_DDR_ARB_CTRL REG_MDP(0xc80F0) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 430 | |
| 431 | #ifdef VBIF_VBIF_DDR_RND_RBN_QOS_ARB |
| 432 | #undef VBIF_VBIF_DDR_RND_RBN_QOS_ARB |
| 433 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 434 | #define VBIF_VBIF_DDR_RND_RBN_QOS_ARB REG_MDP(0xc8124) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 435 | |
| 436 | #ifdef VBIF_VBIF_DDR_AXI_AMEMTYPE_CONF0 |
| 437 | #undef VBIF_VBIF_DDR_AXI_AMEMTYPE_CONF0 |
| 438 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 439 | #define VBIF_VBIF_DDR_AXI_AMEMTYPE_CONF0 REG_MDP(0xc8160) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 440 | |
| 441 | #ifdef VBIF_VBIF_DDR_AXI_AMEMTYPE_CONF1 |
| 442 | #undef VBIF_VBIF_DDR_AXI_AMEMTYPE_CONF1 |
| 443 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 444 | #define VBIF_VBIF_DDR_AXI_AMEMTYPE_CONF1 REG_MDP(0xc8164) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 445 | |
| 446 | #ifdef VBIF_VBIF_DDR_OUT_AOOO_AXI_EN |
| 447 | #undef VBIF_VBIF_DDR_OUT_AOOO_AXI_EN |
| 448 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 449 | #define VBIF_VBIF_DDR_OUT_AOOO_AXI_EN REG_MDP(0xc8178) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 450 | |
| 451 | #ifdef VBIF_VBIF_DDR_OUT_AX_AOOO |
| 452 | #undef VBIF_VBIF_DDR_OUT_AX_AOOO |
| 453 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 454 | #define VBIF_VBIF_DDR_OUT_AX_AOOO REG_MDP(0xc817C) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 455 | |
| 456 | #ifdef VBIF_VBIF_IN_RD_LIM_CONF0 |
| 457 | #undef VBIF_VBIF_IN_RD_LIM_CONF0 |
| 458 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 459 | #define VBIF_VBIF_IN_RD_LIM_CONF0 REG_MDP(0xc80B0) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 460 | |
| 461 | #ifdef VBIF_VBIF_IN_RD_LIM_CONF1 |
| 462 | #undef VBIF_VBIF_IN_RD_LIM_CONF1 |
| 463 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 464 | #define VBIF_VBIF_IN_RD_LIM_CONF1 REG_MDP(0xc80B4) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 465 | |
| 466 | #ifdef VBIF_VBIF_IN_RD_LIM_CONF2 |
| 467 | #undef VBIF_VBIF_IN_RD_LIM_CONF2 |
| 468 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 469 | #define VBIF_VBIF_IN_RD_LIM_CONF2 REG_MDP(0xc80B8) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 470 | |
| 471 | #ifdef VBIF_VBIF_IN_RD_LIM_CONF3 |
| 472 | #undef VBIF_VBIF_IN_RD_LIM_CONF3 |
| 473 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 474 | #define VBIF_VBIF_IN_RD_LIM_CONF3 REG_MDP(0xc80BC) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 475 | |
| 476 | #ifdef VBIF_VBIF_IN_WR_LIM_CONF0 |
| 477 | #undef VBIF_VBIF_IN_WR_LIM_CONF0 |
| 478 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 479 | #define VBIF_VBIF_IN_WR_LIM_CONF0 REG_MDP(0xc80C0) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 480 | |
| 481 | #ifdef VBIF_VBIF_IN_WR_LIM_CONF1 |
| 482 | #undef VBIF_VBIF_IN_WR_LIM_CONF1 |
| 483 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 484 | #define VBIF_VBIF_IN_WR_LIM_CONF1 REG_MDP(0xc80C4) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 485 | |
| 486 | #ifdef VBIF_VBIF_IN_WR_LIM_CONF2 |
| 487 | #undef VBIF_VBIF_IN_WR_LIM_CONF2 |
| 488 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 489 | #define VBIF_VBIF_IN_WR_LIM_CONF2 REG_MDP(0xc80C8) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 490 | |
| 491 | #ifdef VBIF_VBIF_IN_WR_LIM_CONF3 |
| 492 | #undef VBIF_VBIF_IN_WR_LIM_CONF3 |
| 493 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 494 | #define VBIF_VBIF_IN_WR_LIM_CONF3 REG_MDP(0xc80CC) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 495 | |
| 496 | #ifdef VBIF_VBIF_ABIT_SHORT |
| 497 | #undef VBIF_VBIF_ABIT_SHORT |
| 498 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 499 | #define VBIF_VBIF_ABIT_SHORT REG_MDP(0xc8070) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 500 | |
| 501 | #ifdef VBIF_VBIF_ABIT_SHORT_CONF |
| 502 | #undef VBIF_VBIF_ABIT_SHORT_CONF |
| 503 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 504 | #define VBIF_VBIF_ABIT_SHORT_CONF REG_MDP(0xc8074) |
Veera Sundaram Sankaran | 602d95a | 2014-12-09 17:55:04 -0800 | [diff] [blame] | 505 | |
| 506 | #ifdef VBIF_VBIF_GATE_OFF_WRREQ_EN |
| 507 | #undef VBIF_VBIF_GATE_OFF_WRREQ_EN |
| 508 | #endif |
Dhaval Patel | ddce301 | 2014-08-12 14:08:31 -0700 | [diff] [blame] | 509 | #define VBIF_VBIF_GATE_OFF_WRREQ_EN REG_MDP(0xc80A8) |
| 510 | |
| 511 | #define MDP_VP_0_VIG_0_BASE REG_MDP(0x5000) |
| 512 | #define MDP_VP_0_VIG_1_BASE REG_MDP(0x7000) |
| 513 | #define MDP_VP_0_RGB_0_BASE REG_MDP(0x15000) |
| 514 | #define MDP_VP_0_RGB_1_BASE REG_MDP(0x17000) |
| 515 | #define MDP_VP_0_DMA_0_BASE REG_MDP(0x25000) |
| 516 | #define MDP_VP_0_DMA_1_BASE REG_MDP(0x27000) |
| 517 | #define MDP_VP_0_MIXER_0_BASE REG_MDP(0x45000) |
| 518 | #define MDP_VP_0_MIXER_1_BASE REG_MDP(0x46000) |
| 519 | |
| 520 | #define DMA_CMD_OFFSET 0x048 |
| 521 | #define DMA_CMD_LENGTH 0x04C |
| 522 | |
| 523 | #define INT_CTRL 0x110 |
| 524 | #define CMD_MODE_DMA_SW_TRIGGER 0x090 |
| 525 | |
| 526 | #define EOT_PACKET_CTRL 0x0CC |
| 527 | #define MISR_CMD_CTRL 0x0A0 |
| 528 | #define MISR_VIDEO_CTRL 0x0A4 |
| 529 | #define VIDEO_MODE_CTRL 0x010 |
| 530 | #define HS_TIMER_CTRL 0x0BC |
Channagoud Kadabi | b4c64b8 | 2014-07-24 17:18:46 -0700 | [diff] [blame] | 531 | |
| 532 | #define SOFT_RESET 0x118 |
| 533 | #define CLK_CTRL 0x11C |
| 534 | #define TRIG_CTRL 0x084 |
| 535 | #define CTRL 0x004 |
| 536 | #define COMMAND_MODE_DMA_CTRL 0x03C |
| 537 | #define COMMAND_MODE_MDP_CTRL 0x040 |
| 538 | #define COMMAND_MODE_MDP_DCS_CMD_CTRL 0x044 |
| 539 | #define COMMAND_MODE_MDP_STREAM0_CTRL 0x058 |
| 540 | #define COMMAND_MODE_MDP_STREAM0_TOTAL 0x05C |
| 541 | #define COMMAND_MODE_MDP_STREAM1_CTRL 0x060 |
| 542 | #define COMMAND_MODE_MDP_STREAM1_TOTAL 0x064 |
| 543 | #define ERR_INT_MASK0 0x10C |
| 544 | |
| 545 | #define LANE_SWAP_CTL 0x0B0 |
| 546 | #define TIMING_CTL 0x0C4 |
| 547 | |
| 548 | #define VIDEO_MODE_ACTIVE_H 0x024 |
| 549 | #define VIDEO_MODE_ACTIVE_V 0x028 |
| 550 | #define VIDEO_MODE_TOTAL 0x02C |
| 551 | #define VIDEO_MODE_HSYNC 0x030 |
| 552 | #define VIDEO_MODE_VSYNC 0x034 |
| 553 | #define VIDEO_MODE_VSYNC_VPOS 0x038 |
| 554 | |
Shimrit Malichi | 561a5e5 | 2015-01-20 09:58:40 +0200 | [diff] [blame^] | 555 | #define QPNP_LED_CTRL_BASE 0xD000 |
| 556 | #define QPNP_BLUE_LPG_CTRL_BASE 0xB100 |
| 557 | #define QPNP_GREEN_LPG_CTRL_BASE 0xB200 |
| 558 | #define QPNP_RED_LPG_CTRL_BASE 0xB300 |
| 559 | |
Channagoud Kadabi | 123c972 | 2014-02-06 13:22:50 -0800 | [diff] [blame] | 560 | #endif |