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