1c66ec88fSEmmanuel Vadot /* Copyright (c) 2015 The Linux Foundation. All rights reserved. 2c66ec88fSEmmanuel Vadot * 3c66ec88fSEmmanuel Vadot * Permission to use, copy, modify, and/or distribute this software for any 4c66ec88fSEmmanuel Vadot * purpose with or without fee is hereby granted, provided that the above 5c66ec88fSEmmanuel Vadot * copyright notice and this permission notice appear in all copies. 6c66ec88fSEmmanuel Vadot * 7c66ec88fSEmmanuel Vadot * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8c66ec88fSEmmanuel Vadot * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9c66ec88fSEmmanuel Vadot * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 10c66ec88fSEmmanuel Vadot * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 11c66ec88fSEmmanuel Vadot * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 12c66ec88fSEmmanuel Vadot * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 13c66ec88fSEmmanuel Vadot * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14c66ec88fSEmmanuel Vadot * 15c66ec88fSEmmanuel Vadot */ 16c66ec88fSEmmanuel Vadot #ifndef __QCOM_CLK_IPQ4019_H__ 17c66ec88fSEmmanuel Vadot #define __QCOM_CLK_IPQ4019_H__ 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadot #define GCC_DUMMY_CLK 0 20c66ec88fSEmmanuel Vadot #define AUDIO_CLK_SRC 1 21c66ec88fSEmmanuel Vadot #define BLSP1_QUP1_I2C_APPS_CLK_SRC 2 22c66ec88fSEmmanuel Vadot #define BLSP1_QUP1_SPI_APPS_CLK_SRC 3 23c66ec88fSEmmanuel Vadot #define BLSP1_QUP2_I2C_APPS_CLK_SRC 4 24c66ec88fSEmmanuel Vadot #define BLSP1_QUP2_SPI_APPS_CLK_SRC 5 25c66ec88fSEmmanuel Vadot #define BLSP1_UART1_APPS_CLK_SRC 6 26c66ec88fSEmmanuel Vadot #define BLSP1_UART2_APPS_CLK_SRC 7 27c66ec88fSEmmanuel Vadot #define GCC_USB3_MOCK_UTMI_CLK_SRC 8 28c66ec88fSEmmanuel Vadot #define GCC_APPS_CLK_SRC 9 29c66ec88fSEmmanuel Vadot #define GCC_APPS_AHB_CLK_SRC 10 30c66ec88fSEmmanuel Vadot #define GP1_CLK_SRC 11 31c66ec88fSEmmanuel Vadot #define GP2_CLK_SRC 12 32c66ec88fSEmmanuel Vadot #define GP3_CLK_SRC 13 33c66ec88fSEmmanuel Vadot #define SDCC1_APPS_CLK_SRC 14 34c66ec88fSEmmanuel Vadot #define FEPHY_125M_DLY_CLK_SRC 15 35c66ec88fSEmmanuel Vadot #define WCSS2G_CLK_SRC 16 36c66ec88fSEmmanuel Vadot #define WCSS5G_CLK_SRC 17 37c66ec88fSEmmanuel Vadot #define GCC_APSS_AHB_CLK 18 38c66ec88fSEmmanuel Vadot #define GCC_AUDIO_AHB_CLK 19 39c66ec88fSEmmanuel Vadot #define GCC_AUDIO_PWM_CLK 20 40c66ec88fSEmmanuel Vadot #define GCC_BLSP1_AHB_CLK 21 41c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP1_I2C_APPS_CLK 22 42c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP1_SPI_APPS_CLK 23 43c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP2_I2C_APPS_CLK 24 44c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP2_SPI_APPS_CLK 25 45c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART1_APPS_CLK 26 46c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART2_APPS_CLK 27 47c66ec88fSEmmanuel Vadot #define GCC_DCD_XO_CLK 28 48c66ec88fSEmmanuel Vadot #define GCC_GP1_CLK 29 49c66ec88fSEmmanuel Vadot #define GCC_GP2_CLK 30 50c66ec88fSEmmanuel Vadot #define GCC_GP3_CLK 31 51c66ec88fSEmmanuel Vadot #define GCC_BOOT_ROM_AHB_CLK 32 52c66ec88fSEmmanuel Vadot #define GCC_CRYPTO_AHB_CLK 33 53c66ec88fSEmmanuel Vadot #define GCC_CRYPTO_AXI_CLK 34 54c66ec88fSEmmanuel Vadot #define GCC_CRYPTO_CLK 35 55c66ec88fSEmmanuel Vadot #define GCC_ESS_CLK 36 56c66ec88fSEmmanuel Vadot #define GCC_IMEM_AXI_CLK 37 57c66ec88fSEmmanuel Vadot #define GCC_IMEM_CFG_AHB_CLK 38 58c66ec88fSEmmanuel Vadot #define GCC_PCIE_AHB_CLK 39 59c66ec88fSEmmanuel Vadot #define GCC_PCIE_AXI_M_CLK 40 60c66ec88fSEmmanuel Vadot #define GCC_PCIE_AXI_S_CLK 41 61c66ec88fSEmmanuel Vadot #define GCC_PCNOC_AHB_CLK 42 62c66ec88fSEmmanuel Vadot #define GCC_PRNG_AHB_CLK 43 63c66ec88fSEmmanuel Vadot #define GCC_QPIC_AHB_CLK 44 64c66ec88fSEmmanuel Vadot #define GCC_QPIC_CLK 45 65c66ec88fSEmmanuel Vadot #define GCC_SDCC1_AHB_CLK 46 66c66ec88fSEmmanuel Vadot #define GCC_SDCC1_APPS_CLK 47 67c66ec88fSEmmanuel Vadot #define GCC_SNOC_PCNOC_AHB_CLK 48 68c66ec88fSEmmanuel Vadot #define GCC_SYS_NOC_125M_CLK 49 69c66ec88fSEmmanuel Vadot #define GCC_SYS_NOC_AXI_CLK 50 70c66ec88fSEmmanuel Vadot #define GCC_TCSR_AHB_CLK 51 71c66ec88fSEmmanuel Vadot #define GCC_TLMM_AHB_CLK 52 72c66ec88fSEmmanuel Vadot #define GCC_USB2_MASTER_CLK 53 73c66ec88fSEmmanuel Vadot #define GCC_USB2_SLEEP_CLK 54 74c66ec88fSEmmanuel Vadot #define GCC_USB2_MOCK_UTMI_CLK 55 75c66ec88fSEmmanuel Vadot #define GCC_USB3_MASTER_CLK 56 76c66ec88fSEmmanuel Vadot #define GCC_USB3_SLEEP_CLK 57 77c66ec88fSEmmanuel Vadot #define GCC_USB3_MOCK_UTMI_CLK 58 78c66ec88fSEmmanuel Vadot #define GCC_WCSS2G_CLK 59 79c66ec88fSEmmanuel Vadot #define GCC_WCSS2G_REF_CLK 60 80c66ec88fSEmmanuel Vadot #define GCC_WCSS2G_RTC_CLK 61 81c66ec88fSEmmanuel Vadot #define GCC_WCSS5G_CLK 62 82c66ec88fSEmmanuel Vadot #define GCC_WCSS5G_REF_CLK 63 83c66ec88fSEmmanuel Vadot #define GCC_WCSS5G_RTC_CLK 64 84c66ec88fSEmmanuel Vadot #define GCC_APSS_DDRPLL_VCO 65 85c66ec88fSEmmanuel Vadot #define GCC_SDCC_PLLDIV_CLK 66 86c66ec88fSEmmanuel Vadot #define GCC_FEPLL_VCO 67 87c66ec88fSEmmanuel Vadot #define GCC_FEPLL125_CLK 68 88c66ec88fSEmmanuel Vadot #define GCC_FEPLL125DLY_CLK 69 89c66ec88fSEmmanuel Vadot #define GCC_FEPLL200_CLK 70 90c66ec88fSEmmanuel Vadot #define GCC_FEPLL500_CLK 71 91c66ec88fSEmmanuel Vadot #define GCC_FEPLL_WCSS2G_CLK 72 92c66ec88fSEmmanuel Vadot #define GCC_FEPLL_WCSS5G_CLK 73 93c66ec88fSEmmanuel Vadot #define GCC_APSS_CPU_PLLDIV_CLK 74 94c66ec88fSEmmanuel Vadot #define GCC_PCNOC_AHB_CLK_SRC 75 95c66ec88fSEmmanuel Vadot 96c66ec88fSEmmanuel Vadot #define WIFI0_CPU_INIT_RESET 0 97c66ec88fSEmmanuel Vadot #define WIFI0_RADIO_SRIF_RESET 1 98c66ec88fSEmmanuel Vadot #define WIFI0_RADIO_WARM_RESET 2 99c66ec88fSEmmanuel Vadot #define WIFI0_RADIO_COLD_RESET 3 100c66ec88fSEmmanuel Vadot #define WIFI0_CORE_WARM_RESET 4 101c66ec88fSEmmanuel Vadot #define WIFI0_CORE_COLD_RESET 5 102c66ec88fSEmmanuel Vadot #define WIFI1_CPU_INIT_RESET 6 103c66ec88fSEmmanuel Vadot #define WIFI1_RADIO_SRIF_RESET 7 104c66ec88fSEmmanuel Vadot #define WIFI1_RADIO_WARM_RESET 8 105c66ec88fSEmmanuel Vadot #define WIFI1_RADIO_COLD_RESET 9 106c66ec88fSEmmanuel Vadot #define WIFI1_CORE_WARM_RESET 10 107c66ec88fSEmmanuel Vadot #define WIFI1_CORE_COLD_RESET 11 108c66ec88fSEmmanuel Vadot #define USB3_UNIPHY_PHY_ARES 12 109c66ec88fSEmmanuel Vadot #define USB3_HSPHY_POR_ARES 13 110c66ec88fSEmmanuel Vadot #define USB3_HSPHY_S_ARES 14 111c66ec88fSEmmanuel Vadot #define USB2_HSPHY_POR_ARES 15 112c66ec88fSEmmanuel Vadot #define USB2_HSPHY_S_ARES 16 113c66ec88fSEmmanuel Vadot #define PCIE_PHY_AHB_ARES 17 114c66ec88fSEmmanuel Vadot #define PCIE_AHB_ARES 18 115c66ec88fSEmmanuel Vadot #define PCIE_PWR_ARES 19 116c66ec88fSEmmanuel Vadot #define PCIE_PIPE_STICKY_ARES 20 117c66ec88fSEmmanuel Vadot #define PCIE_AXI_M_STICKY_ARES 21 118c66ec88fSEmmanuel Vadot #define PCIE_PHY_ARES 22 119c66ec88fSEmmanuel Vadot #define PCIE_PARF_XPU_ARES 23 120c66ec88fSEmmanuel Vadot #define PCIE_AXI_S_XPU_ARES 24 121c66ec88fSEmmanuel Vadot #define PCIE_AXI_M_VMIDMT_ARES 25 122c66ec88fSEmmanuel Vadot #define PCIE_PIPE_ARES 26 123c66ec88fSEmmanuel Vadot #define PCIE_AXI_S_ARES 27 124c66ec88fSEmmanuel Vadot #define PCIE_AXI_M_ARES 28 125c66ec88fSEmmanuel Vadot #define ESS_RESET 29 126c66ec88fSEmmanuel Vadot #define GCC_BLSP1_BCR 30 127c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP1_BCR 31 128c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART1_BCR 32 129c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP2_BCR 33 130c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART2_BCR 34 131c66ec88fSEmmanuel Vadot #define GCC_BIMC_BCR 35 132c66ec88fSEmmanuel Vadot #define GCC_TLMM_BCR 36 133c66ec88fSEmmanuel Vadot #define GCC_IMEM_BCR 37 134c66ec88fSEmmanuel Vadot #define GCC_ESS_BCR 38 135c66ec88fSEmmanuel Vadot #define GCC_PRNG_BCR 39 136c66ec88fSEmmanuel Vadot #define GCC_BOOT_ROM_BCR 40 137c66ec88fSEmmanuel Vadot #define GCC_CRYPTO_BCR 41 138c66ec88fSEmmanuel Vadot #define GCC_SDCC1_BCR 42 139c66ec88fSEmmanuel Vadot #define GCC_SEC_CTRL_BCR 43 140c66ec88fSEmmanuel Vadot #define GCC_AUDIO_BCR 44 141c66ec88fSEmmanuel Vadot #define GCC_QPIC_BCR 45 142c66ec88fSEmmanuel Vadot #define GCC_PCIE_BCR 46 143c66ec88fSEmmanuel Vadot #define GCC_USB2_BCR 47 144c66ec88fSEmmanuel Vadot #define GCC_USB2_PHY_BCR 48 145c66ec88fSEmmanuel Vadot #define GCC_USB3_BCR 49 146c66ec88fSEmmanuel Vadot #define GCC_USB3_PHY_BCR 50 147c66ec88fSEmmanuel Vadot #define GCC_SYSTEM_NOC_BCR 51 148c66ec88fSEmmanuel Vadot #define GCC_PCNOC_BCR 52 149c66ec88fSEmmanuel Vadot #define GCC_DCD_BCR 53 150c66ec88fSEmmanuel Vadot #define GCC_SNOC_BUS_TIMEOUT0_BCR 54 151c66ec88fSEmmanuel Vadot #define GCC_SNOC_BUS_TIMEOUT1_BCR 55 152c66ec88fSEmmanuel Vadot #define GCC_SNOC_BUS_TIMEOUT2_BCR 56 153c66ec88fSEmmanuel Vadot #define GCC_SNOC_BUS_TIMEOUT3_BCR 57 154c66ec88fSEmmanuel Vadot #define GCC_PCNOC_BUS_TIMEOUT0_BCR 58 155c66ec88fSEmmanuel Vadot #define GCC_PCNOC_BUS_TIMEOUT1_BCR 59 156c66ec88fSEmmanuel Vadot #define GCC_PCNOC_BUS_TIMEOUT2_BCR 60 157c66ec88fSEmmanuel Vadot #define GCC_PCNOC_BUS_TIMEOUT3_BCR 61 158c66ec88fSEmmanuel Vadot #define GCC_PCNOC_BUS_TIMEOUT4_BCR 62 159c66ec88fSEmmanuel Vadot #define GCC_PCNOC_BUS_TIMEOUT5_BCR 63 160c66ec88fSEmmanuel Vadot #define GCC_PCNOC_BUS_TIMEOUT6_BCR 64 161c66ec88fSEmmanuel Vadot #define GCC_PCNOC_BUS_TIMEOUT7_BCR 65 162c66ec88fSEmmanuel Vadot #define GCC_PCNOC_BUS_TIMEOUT8_BCR 66 163c66ec88fSEmmanuel Vadot #define GCC_PCNOC_BUS_TIMEOUT9_BCR 67 164c66ec88fSEmmanuel Vadot #define GCC_TCSR_BCR 68 165c66ec88fSEmmanuel Vadot #define GCC_QDSS_BCR 69 166c66ec88fSEmmanuel Vadot #define GCC_MPM_BCR 70 167c66ec88fSEmmanuel Vadot #define GCC_SPDM_BCR 71 168*aa1a8ff2SEmmanuel Vadot #define ESS_MAC1_ARES 72 169*aa1a8ff2SEmmanuel Vadot #define ESS_MAC2_ARES 73 170*aa1a8ff2SEmmanuel Vadot #define ESS_MAC3_ARES 74 171*aa1a8ff2SEmmanuel Vadot #define ESS_MAC4_ARES 75 172*aa1a8ff2SEmmanuel Vadot #define ESS_MAC5_ARES 76 173*aa1a8ff2SEmmanuel Vadot #define ESS_PSGMII_ARES 77 174c66ec88fSEmmanuel Vadot 175c66ec88fSEmmanuel Vadot #endif 176