blob: 36c4d1f2db95caca510ba5b6cec66e3e0e14ca7a [file] [log] [blame]
/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __MSM_CLOCKS_TELLURIUM_HWIO_H
#define __MSM_CLOCKS_TELLURIUM_HWIO_H
#define GPLL0_STATUS 0x2101C
#define GPLL6_STATUS 0x3701C
#define GPLL3_MODE 0x22000
#define GPLL4_MODE 0x24000
#define SYS_MM_NOC_AXI_CBCR 0x3D008
#define BIMC_GFX_CBCR 0x59034
#define MSS_CFG_AHB_CBCR 0x49000
#define MSS_Q6_BIMC_AXI_CBCR 0x49004
#define USB_HS_BCR 0x41000
#define USB_HS_SYSTEM_CBCR 0x41004
#define USB_HS_AHB_CBCR 0x41008
#define USB_HS_PHY_CFG_AHB_CBCR 0x41030
#define USB_HS_SYSTEM_CMD_RCGR 0x41010
#define USB2A_PHY_SLEEP_CBCR 0x4102C
#define USB_FS_SYSTEM_CBCR 0x3F004
#define USB_FS_AHB_CBCR 0x3F008
#define USB_FS_IC_CBCR 0x3F030
#define USB_FS_SYSTEM_CMD_RCGR 0x3F010
#define USB_FS_IC_CMD_RCGR 0x3F034
#define USB2_HS_PHY_ONLY_BCR 0x41034
#define QUSB2_PHY_BCR 0x4103C
#define SDCC1_APPS_CMD_RCGR 0x42004
#define SDCC1_APPS_CBCR 0x42018
#define SDCC1_AHB_CBCR 0x4201C
#define SDCC2_APPS_CMD_RCGR 0x43004
#define SDCC2_APPS_CBCR 0x43018
#define SDCC2_AHB_CBCR 0x4301C
#define BLSP1_AHB_CBCR 0x01008
#define BLSP1_QUP1_SPI_APPS_CBCR 0x02004
#define BLSP1_QUP1_I2C_APPS_CBCR 0x02008
#define BLSP1_QUP1_I2C_APPS_CMD_RCGR 0x0200C
#define BLSP1_QUP2_I2C_APPS_CMD_RCGR 0x03000
#define BLSP1_QUP3_I2C_APPS_CMD_RCGR 0x04000
#define BLSP1_QUP4_I2C_APPS_CMD_RCGR 0x05000
#define BLSP1_QUP1_SPI_APPS_CMD_RCGR 0x02024
#define BLSP1_UART1_APPS_CBCR 0x0203C
#define BLSP1_UART1_APPS_CMD_RCGR 0x02044
#define BLSP1_QUP2_SPI_APPS_CBCR 0x0300C
#define BLSP1_QUP2_I2C_APPS_CBCR 0x03010
#define BLSP1_QUP2_SPI_APPS_CMD_RCGR 0x03014
#define BLSP1_UART2_APPS_CBCR 0x0302C
#define BLSP1_UART2_APPS_CMD_RCGR 0x03034
#define BLSP1_QUP3_SPI_APPS_CBCR 0x0401C
#define BLSP1_QUP3_I2C_APPS_CBCR 0x04020
#define BLSP1_QUP3_SPI_APPS_CMD_RCGR 0x04024
#define BLSP1_QUP4_SPI_APPS_CBCR 0x0501C
#define BLSP1_QUP4_I2C_APPS_CBCR 0x05020
#define BLSP1_QUP4_SPI_APPS_CMD_RCGR 0x05024
#define BLSP2_AHB_CBCR 0x0B008
#define BLSP2_QUP1_SPI_APPS_CBCR 0x0C004
#define BLSP2_QUP1_I2C_APPS_CBCR 0x0C008
#define BLSP2_QUP1_I2C_APPS_CMD_RCGR 0x0C00C
#define BLSP2_QUP2_I2C_APPS_CMD_RCGR 0x0D000
#define BLSP2_QUP3_I2C_APPS_CMD_RCGR 0x0F000
#define BLSP2_QUP4_I2C_APPS_CMD_RCGR 0x18000
#define BLSP2_QUP1_SPI_APPS_CMD_RCGR 0x0C024
#define BLSP2_UART1_APPS_CBCR 0x0C03C
#define BLSP2_UART1_APPS_CMD_RCGR 0x0C044
#define BLSP2_QUP2_SPI_APPS_CBCR 0x0D00C
#define BLSP2_QUP2_I2C_APPS_CBCR 0x0D010
#define BLSP2_QUP2_SPI_APPS_CMD_RCGR 0x0D014
#define BLSP2_UART2_APPS_CBCR 0x0D02C
#define BLSP2_UART2_APPS_CMD_RCGR 0x0D034
#define BLSP2_QUP3_SPI_APPS_CBCR 0x0F01C
#define BLSP2_QUP3_I2C_APPS_CBCR 0x0F020
#define BLSP2_QUP3_SPI_APPS_CMD_RCGR 0x0F024
#define BLSP2_QUP4_SPI_APPS_CBCR 0x1801C
#define BLSP2_QUP4_I2C_APPS_CBCR 0x18020
#define BLSP2_QUP4_SPI_APPS_CMD_RCGR 0x18024
#define PDM_AHB_CBCR 0x44004
#define PDM2_CBCR 0x4400C
#define PDM2_CMD_RCGR 0x44010
#define PRNG_AHB_CBCR 0x13004
#define BOOT_ROM_AHB_CBCR 0x1300C
#define CRYPTO_CMD_RCGR 0x16004
#define CRYPTO_CBCR 0x1601C
#define CRYPTO_AXI_CBCR 0x16020
#define CRYPTO_AHB_CBCR 0x16024
#define GCC_XO_DIV4_CBCR 0x30034
#define APSS_AHB_CMD_RCGR 0x46000
#define GCC_PLLTEST_PAD_CFG 0x7400C
#define GFX_TBU_CBCR 0x12010
#define VENUS_TBU_CBCR 0x12014
#define MDP_TBU_CBCR 0x1201C
#define GFX_TCU_CBCR 0x12020
#define JPEG_TBU_CBCR 0x12034
#define SMMU_CFG_CBCR 0x12038
#define VFE_TBU_CBCR 0x1203C
#define VFE1_TBU_CBCR 0x12090
#define CPP_TBU_CBCR 0x12040
#define APCS_GPLL_ENA_VOTE 0x45000
#define APCS_CLOCK_BRANCH_ENA_VOTE 0x45004
#define APCS_SMMU_CLOCK_BRANCH_ENA_VOTE 0x4500C
#define GCC_DEBUG_CLK_CTL 0x74000
#define CLOCK_FRQ_MEASURE_CTL 0x74004
#define CLOCK_FRQ_MEASURE_STATUS 0x74008
#define GP1_CBCR 0x08000
#define GP1_CMD_RCGR 0x08004
#define GP1_CFG_RCGR 0x08008
#define GP2_CBCR 0x09000
#define GP2_CMD_RCGR 0x09004
#define GP3_CBCR 0x0A000
#define GP3_CMD_RCGR 0x0A004
#define VCODEC0_CMD_RCGR 0x4C000
#define VENUS0_VCODEC0_CBCR 0x4C01C
#define VENUS0_CORE0_VCODEC0_CBCR 0x4C02C
#define VENUS0_CORE1_VCODEC0_CBCR 0x4C034
#define VENUS0_AHB_CBCR 0x4C020
#define VENUS0_AXI_CBCR 0x4C024
#define PCLK0_CMD_RCGR 0x4D000
#define MDP_CMD_RCGR 0x4D014
#define VSYNC_CMD_RCGR 0x4D02C
#define BYTE0_CMD_RCGR 0x4D044
#define ESC0_CMD_RCGR 0x4D05C
#define MDSS_AHB_CBCR 0x4D07C
#define MDSS_AXI_CBCR 0x4D080
#define MDSS_PCLK0_CBCR 0x4D084
#define MDSS_MDP_CBCR 0x4D088
#define MDSS_VSYNC_CBCR 0x4D090
#define MDSS_BYTE0_CBCR 0x4D094
#define MDSS_ESC0_CBCR 0x4D098
#define CSI0PHYTIMER_CMD_RCGR 0x4E000
#define CAMSS_CSI0PHYTIMER_CBCR 0x4E01C
#define CSI0_CMD_RCGR 0x4E020
#define CAMSS_CSI0_CBCR 0x4E03C
#define CAMSS_CSI0_AHB_CBCR 0x4E040
#define CAMSS_CSI0PHY_CBCR 0x4E048
#define CAMSS_CSI0RDI_CBCR 0x4E050
#define CAMSS_CSI0PIX_CBCR 0x4E058
#define CSI1PHYTIMER_CMD_RCGR 0x4F000
#define CSI1_CMD_RCGR 0x4F020
#define CAMSS_CSI1_CBCR 0x4F03C
#define CAMSS_CSI1PHYTIMER_CBCR 0x4F01C
#define CAMSS_CSI1_AHB_CBCR 0x4F040
#define CAMSS_CSI1PHY_CBCR 0x4F048
#define CAMSS_CSI1RDI_CBCR 0x4F050
#define CAMSS_CSI1PIX_CBCR 0x4F058
#define CSI2_CMD_RCGR 0x3C020
#define CAMSS_CSI2_CBCR 0x3C03C
#define CAMSS_CSI2_AHB_CBCR 0x3C040
#define CAMSS_CSI2PHY_CBCR 0x3C048
#define CAMSS_CSI2RDI_CBCR 0x3C050
#define CAMSS_CSI2PIX_CBCR 0x3C058
#define CAMSS_ISPIF_AHB_CBCR 0x50004
#define CCI_CMD_RCGR 0x51000
#define CAMSS_CCI_CBCR 0x51018
#define CAMSS_CCI_AHB_CBCR 0x5101C
#define MCLK0_CMD_RCGR 0x52000
#define CAMSS_MCLK0_CBCR 0x52018
#define MCLK1_CMD_RCGR 0x53000
#define CAMSS_MCLK1_CBCR 0x53018
#define MCLK2_CMD_RCGR 0x5C000
#define CAMSS_MCLK2_CBCR 0x5C018
#define MM_GP0_CMD_RCGR 0x54000
#define CAMSS_GP0_CBCR 0x54018
#define MM_GP1_CMD_RCGR 0x55000
#define CAMSS_GP1_CBCR 0x55018
#define CAMSS_TOP_AHB_CBCR 0x5A014
#define CAMSS_AHB_CBCR 0x56004
#define CAMSS_MICRO_AHB_CBCR 0x5600C
#define CAMSS_MICRO_BCR 0x56008
#define JPEG0_CMD_RCGR 0x57000
#define CAMSS_JPEG0_CBCR 0x57020
#define CAMSS_JPEG_AHB_CBCR 0x57024
#define CAMSS_JPEG_AXI_CBCR 0x57028
#define VFE0_CMD_RCGR 0x58000
#define CPP_CMD_RCGR 0x58018
#define CAMSS_VFE0_CBCR 0x58038
#define CAMSS_CPP_CBCR 0x5803C
#define CAMSS_CPP_AHB_CBCR 0x58040
#define CAMSS_VFE_AHB_CBCR 0x58044
#define CAMSS_VFE_AXI_CBCR 0x58048
#define CAMSS_CSI_VFE0_CBCR 0x58050
#define VFE1_CMD_RCGR 0x58054
#define CAMSS_VFE1_CBCR 0x5805C
#define CAMSS_VFE1_AHB_CBCR 0x58060
#define CAMSS_CPP_AXI_CBCR 0x58064
#define CAMSS_VFE1_AXI_CBCR 0x58068
#define CAMSS_CSI_VFE1_CBCR 0x58074
#define GFX3D_CMD_RCGR 0x59000
#define OXILI_GFX3D_CBCR 0x59020
#define OXILI_GMEM_CBCR 0x59024
#define OXILI_AHB_CBCR 0x59028
#define CAMSS_TOP_AHB_CMD_RCGR 0x5A000
#define BIMC_GPU_CBCR 0x59030
#define GTCU_AHB_CBCR 0x12044
#define IPA_TBU_CBCR 0x120A0
#define SYSTEM_MM_NOC_CMD_RCGR 0x3D000
#define USB_FS_BCR 0x3F000
#define RPM_MISC_CLK_TYPE 0x306b6c63
#define RPM_BUS_CLK_TYPE 0x316b6c63
#define RPM_MEM_CLK_TYPE 0x326b6c63
#define RPM_IPA_CLK_TYPE 0x617069
#define RPM_SMD_KEY_ENABLE 0x62616E45
#define CXO_CLK_SRC_ID 0x0
#define QDSS_CLK_ID 0x1
#define PNOC_CLK_ID 0x0
#define SNOC_CLK_ID 0x1
#define CNOC_CLK_ID 0x2
#define BIMC_CLK_ID 0x0
#define IPA_CLK_ID 0x0
#define BUS_SCALING 0x2
/* XO clock */
#define BB_CLK1_ID 1
#define BB_CLK2_ID 2
#define RF_CLK1_ID 4
#define RF_CLK2_ID 5
#define APCS_CCI_PLL_MODE 0x00000
#define APCS_CCI_PLL_L_VAL 0x00004
#define APCS_CCI_PLL_M_VAL 0x00008
#define APCS_CCI_PLL_N_VAL 0x0000C
#define APCS_CCI_PLL_USER_CTL 0x00010
#define APCS_CCI_PLL_CONFIG_CTL 0x00014
#define APCS_CCI_PLL_STATUS 0x0001C
#define APCS_C0_PLL_MODE 0x00000
#define APCS_C0_PLL_L_VAL 0x00004
#define APCS_C0_PLL_M_VAL 0x00008
#define APCS_C0_PLL_N_VAL 0x0000C
#define APCS_C0_PLL_USER_CTL 0x00010
#define APCS_C0_PLL_CONFIG_CTL 0x00014
#define APCS_C0_PLL_STATUS 0x0001C
#define APCS_C1_PLL_MODE 0x00000
#define APCS_C1_PLL_L_VAL 0x00004
#define APCS_C1_PLL_M_VAL 0x00008
#define APCS_C1_PLL_N_VAL 0x0000C
#define APCS_C1_PLL_USER_CTL 0x00010
#define APCS_C1_PLL_CONFIG_CTL 0x00014
#define APCS_C1_PLL_STATUS 0x0001C
#endif