1 1.2 jmcneill /* $NetBSD: sun8i_a83t_ccu.h,v 1.2 2017/10/28 12:07:40 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1 jmcneill /*- 4 1.1 jmcneill * Copyright (c) 2017 Jared McNeill <jmcneill (at) invisible.ca> 5 1.1 jmcneill * All rights reserved. 6 1.1 jmcneill * 7 1.1 jmcneill * Redistribution and use in source and binary forms, with or without 8 1.1 jmcneill * modification, are permitted provided that the following conditions 9 1.1 jmcneill * are met: 10 1.1 jmcneill * 1. Redistributions of source code must retain the above copyright 11 1.1 jmcneill * notice, this list of conditions and the following disclaimer. 12 1.1 jmcneill * 2. Redistributions in binary form must reproduce the above copyright 13 1.1 jmcneill * notice, this list of conditions and the following disclaimer in the 14 1.1 jmcneill * documentation and/or other materials provided with the distribution. 15 1.1 jmcneill * 16 1.1 jmcneill * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17 1.1 jmcneill * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18 1.1 jmcneill * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19 1.1 jmcneill * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 1.1 jmcneill * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 21 1.1 jmcneill * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 22 1.1 jmcneill * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 23 1.1 jmcneill * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24 1.1 jmcneill * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 1.1 jmcneill * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 1.1 jmcneill * SUCH DAMAGE. 27 1.1 jmcneill */ 28 1.1 jmcneill 29 1.1 jmcneill #ifndef _SUN8I_A83T_CCU_H 30 1.1 jmcneill #define _SUN8I_A83T_CCU_H 31 1.1 jmcneill 32 1.2 jmcneill #define A83T_RST_USB_PHY0 0 33 1.2 jmcneill #define A83T_RST_USB_PHY1 1 34 1.2 jmcneill #define A83T_RST_USB_HSIC 2 35 1.2 jmcneill #define A83T_RST_DRAM 3 36 1.2 jmcneill #define A83T_RST_MBUS 4 37 1.2 jmcneill #define A83T_RST_BUS_MIPI_DSI 5 38 1.2 jmcneill #define A83T_RST_BUS_SS 6 39 1.2 jmcneill #define A83T_RST_BUS_DMA 7 40 1.2 jmcneill #define A83T_RST_BUS_MMC0 8 41 1.2 jmcneill #define A83T_RST_BUS_MMC1 9 42 1.2 jmcneill #define A83T_RST_BUS_MMC2 10 43 1.2 jmcneill #define A83T_RST_BUS_NAND 11 44 1.2 jmcneill #define A83T_RST_BUS_DRAM 12 45 1.2 jmcneill #define A83T_RST_BUS_EMAC 13 46 1.2 jmcneill #define A83T_RST_BUS_HSTIMER 14 47 1.2 jmcneill #define A83T_RST_BUS_SPI0 15 48 1.2 jmcneill #define A83T_RST_BUS_SPI1 16 49 1.2 jmcneill #define A83T_RST_BUS_OTG 17 50 1.2 jmcneill #define A83T_RST_BUS_EHCI0 18 51 1.2 jmcneill #define A83T_RST_BUS_EHCI1 19 52 1.2 jmcneill #define A83T_RST_BUS_OHCI0 20 53 1.2 jmcneill #define A83T_RST_BUS_VE 21 54 1.2 jmcneill #define A83T_RST_BUS_TCON0 22 55 1.2 jmcneill #define A83T_RST_BUS_TCON1 23 56 1.2 jmcneill #define A83T_RST_BUS_CSI 24 57 1.2 jmcneill #define A83T_RST_BUS_HDMI0 25 58 1.2 jmcneill #define A83T_RST_BUS_HDMI1 26 59 1.2 jmcneill #define A83T_RST_BUS_DE 27 60 1.2 jmcneill #define A83T_RST_BUS_GPU 28 61 1.2 jmcneill #define A83T_RST_BUS_MSGBOX 29 62 1.2 jmcneill #define A83T_RST_BUS_SPINLOCK 30 63 1.2 jmcneill #define A83T_RST_BUS_LVDS 31 64 1.2 jmcneill #define A83T_RST_BUS_SPDIF 32 65 1.2 jmcneill #define A83T_RST_BUS_I2S0 33 66 1.2 jmcneill #define A83T_RST_BUS_I2S1 34 67 1.2 jmcneill #define A83T_RST_BUS_I2S2 35 68 1.2 jmcneill #define A83T_RST_BUS_TDM 36 69 1.2 jmcneill #define A83T_RST_BUS_I2C0 37 70 1.2 jmcneill #define A83T_RST_BUS_I2C1 38 71 1.2 jmcneill #define A83T_RST_BUS_I2C2 39 72 1.2 jmcneill #define A83T_RST_BUS_UART0 40 73 1.2 jmcneill #define A83T_RST_BUS_UART1 41 74 1.2 jmcneill #define A83T_RST_BUS_UART2 42 75 1.2 jmcneill #define A83T_RST_BUS_UART3 43 76 1.2 jmcneill #define A83T_RST_BUS_UART4 44 77 1.2 jmcneill 78 1.2 jmcneill #define A83T_CLK_PLL_C0CPUX 0 79 1.2 jmcneill #define A83T_CLK_PLL_C1CPUX 1 80 1.2 jmcneill #define A83T_CLK_PLL_AUDIO 2 81 1.2 jmcneill #define A83T_CLK_PLL_VIDEO0 3 82 1.2 jmcneill #define A83T_CLK_PLL_VE 4 83 1.2 jmcneill #define A83T_CLK_PLL_DDR 5 84 1.2 jmcneill #define A83T_CLK_PLL_PERIPH 6 85 1.2 jmcneill #define A83T_CLK_PLL_GPU 7 86 1.2 jmcneill #define A83T_CLK_PLL_HSIC 8 87 1.2 jmcneill #define A83T_CLK_PLL_DE 9 88 1.2 jmcneill #define A83T_CLK_PLL_VIDEO1 10 89 1.2 jmcneill #define A83T_CLK_C0CPUX 11 90 1.2 jmcneill #define A83T_CLK_C1CPUX 12 91 1.2 jmcneill #define A83T_CLK_AXI0 13 92 1.2 jmcneill #define A83T_CLK_AXI1 14 93 1.2 jmcneill #define A83T_CLK_AHB1 15 94 1.2 jmcneill #define A83T_CLK_AHB2 16 95 1.2 jmcneill #define A83T_CLK_APB1 17 96 1.2 jmcneill #define A83T_CLK_APB2 18 97 1.2 jmcneill #define A83T_CLK_BUS_MIPI_DSI 19 98 1.2 jmcneill #define A83T_CLK_BUS_SS 20 99 1.2 jmcneill #define A83T_CLK_BUS_DMA 21 100 1.2 jmcneill #define A83T_CLK_BUS_MMC0 22 101 1.2 jmcneill #define A83T_CLK_BUS_MMC1 23 102 1.2 jmcneill #define A83T_CLK_BUS_MMC2 24 103 1.2 jmcneill #define A83T_CLK_BUS_NAND 25 104 1.2 jmcneill #define A83T_CLK_BUS_DRAM 26 105 1.2 jmcneill #define A83T_CLK_BUS_EMAC 27 106 1.2 jmcneill #define A83T_CLK_BUS_HSTIMER 28 107 1.2 jmcneill #define A83T_CLK_BUS_SPI0 29 108 1.2 jmcneill #define A83T_CLK_BUS_SPI1 30 109 1.2 jmcneill #define A83T_CLK_BUS_OTG 31 110 1.2 jmcneill #define A83T_CLK_BUS_EHCI0 32 111 1.2 jmcneill #define A83T_CLK_BUS_EHCI1 33 112 1.2 jmcneill #define A83T_CLK_BUS_OHCI0 34 113 1.2 jmcneill #define A83T_CLK_BUS_VE 35 114 1.2 jmcneill #define A83T_CLK_BUS_TCON0 36 115 1.2 jmcneill #define A83T_CLK_BUS_TCON1 37 116 1.2 jmcneill #define A83T_CLK_BUS_CSI 38 117 1.2 jmcneill #define A83T_CLK_BUS_HDMI 39 118 1.2 jmcneill #define A83T_CLK_BUS_DE 40 119 1.2 jmcneill #define A83T_CLK_BUS_GPU 41 120 1.2 jmcneill #define A83T_CLK_BUS_MSGBOX 42 121 1.2 jmcneill #define A83T_CLK_BUS_SPINLOCK 43 122 1.2 jmcneill #define A83T_CLK_BUS_SPDIF 44 123 1.2 jmcneill #define A83T_CLK_BUS_PIO 45 124 1.2 jmcneill #define A83T_CLK_BUS_I2S0 46 125 1.2 jmcneill #define A83T_CLK_BUS_I2S1 47 126 1.2 jmcneill #define A83T_CLK_BUS_I2S2 48 127 1.2 jmcneill #define A83T_CLK_BUS_TDM 49 128 1.2 jmcneill #define A83T_CLK_BUS_I2C0 50 129 1.2 jmcneill #define A83T_CLK_BUS_I2C1 51 130 1.2 jmcneill #define A83T_CLK_BUS_I2C2 52 131 1.2 jmcneill #define A83T_CLK_BUS_UART0 53 132 1.2 jmcneill #define A83T_CLK_BUS_UART1 54 133 1.2 jmcneill #define A83T_CLK_BUS_UART2 55 134 1.2 jmcneill #define A83T_CLK_BUS_UART3 56 135 1.2 jmcneill #define A83T_CLK_BUS_UART4 57 136 1.2 jmcneill #define A83T_CLK_CCI400 58 137 1.2 jmcneill #define A83T_CLK_NAND 59 138 1.2 jmcneill #define A83T_CLK_MMC0 60 139 1.2 jmcneill #define A83T_CLK_MMC0_SAMPLE 61 140 1.2 jmcneill #define A83T_CLK_MMC0_OUTPUT 62 141 1.2 jmcneill #define A83T_CLK_MMC1 63 142 1.2 jmcneill #define A83T_CLK_MMC1_SAMPLE 64 143 1.2 jmcneill #define A83T_CLK_MMC1_OUTPUT 65 144 1.2 jmcneill #define A83T_CLK_MMC2 66 145 1.2 jmcneill #define A83T_CLK_MMC2_SAMPLE 67 146 1.2 jmcneill #define A83T_CLK_MMC2_OUTPUT 68 147 1.2 jmcneill #define A83T_CLK_SS 69 148 1.2 jmcneill #define A83T_CLK_SPI0 70 149 1.2 jmcneill #define A83T_CLK_SPI1 71 150 1.2 jmcneill #define A83T_CLK_I2S0 72 151 1.2 jmcneill #define A83T_CLK_I2S1 73 152 1.2 jmcneill #define A83T_CLK_I2S2 74 153 1.2 jmcneill #define A83T_CLK_TDM 75 154 1.2 jmcneill #define A83T_CLK_SPDIF 76 155 1.2 jmcneill #define A83T_CLK_USB_PHY0 77 156 1.2 jmcneill #define A83T_CLK_USB_PHY1 78 157 1.2 jmcneill #define A83T_CLK_USB_HSIC 79 158 1.2 jmcneill #define A83T_CLK_USB_HSIC_12M 80 159 1.2 jmcneill #define A83T_CLK_USB_OHCI0 81 160 1.2 jmcneill #define A83T_CLK_DRAM 82 161 1.2 jmcneill #define A83T_CLK_DRAM_VE 83 162 1.2 jmcneill #define A83T_CLK_DRAM_CSI 84 163 1.2 jmcneill #define A83T_CLK_TCON0 85 164 1.2 jmcneill #define A83T_CLK_TCON1 86 165 1.2 jmcneill #define A83T_CLK_CSI_MISC 87 166 1.2 jmcneill #define A83T_CLK_MIPI_CSI 88 167 1.2 jmcneill #define A83T_CLK_CSI_MCLK 89 168 1.2 jmcneill #define A83T_CLK_CSI_SCLK 90 169 1.2 jmcneill #define A83T_CLK_VE 91 170 1.2 jmcneill #define A83T_CLK_AVS 92 171 1.2 jmcneill #define A83T_CLK_HDMI 93 172 1.2 jmcneill #define A83T_CLK_HDMI_SLOW 94 173 1.2 jmcneill #define A83T_CLK_MBUS 95 174 1.2 jmcneill #define A83T_CLK_MIPI_DSI0 96 175 1.2 jmcneill #define A83T_CLK_MIPI_DSI1 97 176 1.2 jmcneill #define A83T_CLK_GPU_CORE 98 177 1.2 jmcneill #define A83T_CLK_GPU_MEMORY 99 178 1.2 jmcneill #define A83T_CLK_GPU_HYD 100 179 1.1 jmcneill 180 1.1 jmcneill #endif /* !_SUN8I_A83T_CCU_H */ 181