Osvaldo Banuelos | 3964117 | 2017-04-10 13:51:35 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017, The Linux Foundation. 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 version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #ifndef _DT_BINDINGS_CLK_MSM_GCC_SDX24_H |
| 15 | #define _DT_BINDINGS_CLK_MSM_GCC_SDX24_H |
| 16 | |
| 17 | /* GCC clock registers */ |
| 18 | #define GCC_BLSP1_AHB_CLK 0 |
| 19 | #define GCC_BLSP1_QUP1_I2C_APPS_CLK 1 |
| 20 | #define GCC_BLSP1_QUP1_I2C_APPS_CLK_SRC 2 |
| 21 | #define GCC_BLSP1_QUP1_SPI_APPS_CLK 3 |
| 22 | #define GCC_BLSP1_QUP1_SPI_APPS_CLK_SRC 4 |
| 23 | #define GCC_BLSP1_QUP2_I2C_APPS_CLK 5 |
| 24 | #define GCC_BLSP1_QUP2_I2C_APPS_CLK_SRC 6 |
| 25 | #define GCC_BLSP1_QUP2_SPI_APPS_CLK 7 |
| 26 | #define GCC_BLSP1_QUP2_SPI_APPS_CLK_SRC 8 |
| 27 | #define GCC_BLSP1_QUP3_I2C_APPS_CLK 9 |
| 28 | #define GCC_BLSP1_QUP3_I2C_APPS_CLK_SRC 10 |
| 29 | #define GCC_BLSP1_QUP3_SPI_APPS_CLK 11 |
| 30 | #define GCC_BLSP1_QUP3_SPI_APPS_CLK_SRC 12 |
| 31 | #define GCC_BLSP1_QUP4_I2C_APPS_CLK 13 |
| 32 | #define GCC_BLSP1_QUP4_I2C_APPS_CLK_SRC 14 |
| 33 | #define GCC_BLSP1_QUP4_SPI_APPS_CLK 15 |
| 34 | #define GCC_BLSP1_QUP4_SPI_APPS_CLK_SRC 16 |
| 35 | #define GCC_BLSP1_SLEEP_CLK 17 |
| 36 | #define GCC_BLSP1_UART1_APPS_CLK 18 |
| 37 | #define GCC_BLSP1_UART1_APPS_CLK_SRC 19 |
| 38 | #define GCC_BLSP1_UART2_APPS_CLK 20 |
| 39 | #define GCC_BLSP1_UART2_APPS_CLK_SRC 21 |
| 40 | #define GCC_BLSP1_UART3_APPS_CLK 22 |
| 41 | #define GCC_BLSP1_UART3_APPS_CLK_SRC 23 |
| 42 | #define GCC_BLSP1_UART4_APPS_CLK 24 |
| 43 | #define GCC_BLSP1_UART4_APPS_CLK_SRC 25 |
| 44 | #define GCC_BOOT_ROM_AHB_CLK 26 |
| 45 | #define GCC_CE1_AHB_CLK 27 |
| 46 | #define GCC_CE1_AXI_CLK 28 |
| 47 | #define GCC_CE1_CLK 29 |
| 48 | #define GCC_CPUSS_AHB_CLK 30 |
| 49 | #define GCC_CPUSS_AHB_CLK_SRC 31 |
| 50 | #define GCC_CPUSS_GNOC_CLK 32 |
Vicky Wallace | aea22a0 | 2017-09-20 16:45:58 -0700 | [diff] [blame] | 51 | #define GCC_CPUSS_RBCPR_CLK 33 |
| 52 | #define GCC_CPUSS_RBCPR_CLK_SRC 34 |
| 53 | #define GCC_EMAC_CLK_SRC 35 |
| 54 | #define GCC_EMAC_PTP_CLK_SRC 36 |
| 55 | #define GCC_ETH_AXI_CLK 37 |
| 56 | #define GCC_ETH_PTP_CLK 38 |
| 57 | #define GCC_ETH_RGMII_CLK 39 |
| 58 | #define GCC_ETH_SLAVE_AHB_CLK 40 |
| 59 | #define GCC_GP1_CLK 41 |
| 60 | #define GCC_GP1_CLK_SRC 42 |
| 61 | #define GCC_GP2_CLK 43 |
| 62 | #define GCC_GP2_CLK_SRC 44 |
| 63 | #define GCC_GP3_CLK 45 |
| 64 | #define GCC_GP3_CLK_SRC 46 |
| 65 | #define GCC_MSS_CFG_AHB_CLK 47 |
| 66 | #define GCC_MSS_GPLL0_DIV_CLK_SRC 48 |
| 67 | #define GCC_MSS_SNOC_AXI_CLK 49 |
| 68 | #define GCC_PCIE_AUX_CLK 50 |
| 69 | #define GCC_PCIE_AUX_PHY_CLK_SRC 51 |
| 70 | #define GCC_PCIE_CFG_AHB_CLK 52 |
| 71 | #define GCC_PCIE_MSTR_AXI_CLK 53 |
| 72 | #define GCC_PCIE_PHY_REFGEN_CLK 54 |
| 73 | #define GCC_PCIE_PHY_REFGEN_CLK_SRC 55 |
| 74 | #define GCC_PCIE_PIPE_CLK 56 |
| 75 | #define GCC_PCIE_SLEEP_CLK 57 |
| 76 | #define GCC_PCIE_SLV_AXI_CLK 58 |
| 77 | #define GCC_PCIE_SLV_Q2A_AXI_CLK 59 |
| 78 | #define GCC_PDM2_CLK 60 |
| 79 | #define GCC_PDM2_CLK_SRC 61 |
| 80 | #define GCC_PDM_AHB_CLK 62 |
| 81 | #define GCC_PDM_XO4_CLK 63 |
| 82 | #define GCC_PRNG_AHB_CLK 64 |
| 83 | #define GCC_SDCC1_AHB_CLK 65 |
| 84 | #define GCC_SDCC1_APPS_CLK 66 |
| 85 | #define GCC_SDCC1_APPS_CLK_SRC 67 |
| 86 | #define GCC_SPMI_FETCHER_AHB_CLK 68 |
| 87 | #define GCC_SPMI_FETCHER_CLK 69 |
| 88 | #define GCC_SPMI_FETCHER_CLK_SRC 70 |
| 89 | #define GCC_SYS_NOC_CPUSS_AHB_CLK 71 |
| 90 | #define GCC_SYS_NOC_USB3_CLK 72 |
| 91 | #define GCC_USB30_MASTER_CLK 73 |
| 92 | #define GCC_USB30_MASTER_CLK_SRC 74 |
| 93 | #define GCC_USB30_MOCK_UTMI_CLK 75 |
| 94 | #define GCC_USB30_MOCK_UTMI_CLK_SRC 76 |
| 95 | #define GCC_USB30_SLEEP_CLK 77 |
| 96 | #define GCC_USB3_PHY_AUX_CLK 78 |
| 97 | #define GCC_USB3_PHY_AUX_CLK_SRC 79 |
| 98 | #define GCC_USB3_PHY_PIPE_CLK 80 |
| 99 | #define GCC_USB_PHY_CFG_AHB2PHY_CLK 81 |
| 100 | #define GPLL0 82 |
| 101 | #define GPLL0_OUT_EVEN 83 |
| 102 | #define GPLL4 84 |
| 103 | #define GPLL4_OUT_EVEN 85 |
| 104 | #define GCC_USB3_PRIM_CLKREF_CLK 86 |
Osvaldo Banuelos | 3964117 | 2017-04-10 13:51:35 -0700 | [diff] [blame] | 105 | |
| 106 | /* CPU clocks */ |
| 107 | #define CLOCK_A7SS 0 |
| 108 | |
| 109 | /* GCC reset clocks */ |
| 110 | #define GCC_BLSP1_QUP1_BCR 0 |
| 111 | #define GCC_BLSP1_QUP2_BCR 1 |
| 112 | #define GCC_BLSP1_QUP3_BCR 2 |
| 113 | #define GCC_BLSP1_QUP4_BCR 3 |
| 114 | #define GCC_BLSP1_UART2_BCR 4 |
| 115 | #define GCC_BLSP1_UART3_BCR 5 |
| 116 | #define GCC_BLSP1_UART4_BCR 6 |
| 117 | #define GCC_CE1_BCR 7 |
| 118 | #define GCC_PCIE_BCR 8 |
| 119 | #define GCC_PCIE_PHY_BCR 9 |
| 120 | #define GCC_PDM_BCR 10 |
| 121 | #define GCC_PRNG_BCR 11 |
| 122 | #define GCC_SDCC1_BCR 12 |
| 123 | #define GCC_SPMI_FETCHER_BCR 13 |
| 124 | #define GCC_USB30_BCR 14 |
Osvaldo Banuelos | 571042c | 2017-05-15 12:20:00 -0700 | [diff] [blame] | 125 | #define GCC_USB3_PHY_BCR 15 |
| 126 | #define GCC_USB3PHY_PHY_BCR 16 |
| 127 | #define GCC_QUSB2PHY_BCR 17 |
| 128 | #define GCC_USB_PHY_CFG_AHB2PHY_BCR 18 |
Vicky Wallace | aea22a0 | 2017-09-20 16:45:58 -0700 | [diff] [blame] | 129 | #define GCC_EMAC_BCR 19 |
Osvaldo Banuelos | 3964117 | 2017-04-10 13:51:35 -0700 | [diff] [blame] | 130 | |
| 131 | #endif |