1 1.1 jmcneill /* $NetBSD: sun8i_v3s_ccu.h,v 1.1 2021/05/05 10:24:04 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1 jmcneill /*- 4 1.1 jmcneill * Copyright (c) 2021 Rui-Xiang Guo 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 __CCU_V3S_H__ 30 1.1 jmcneill #define __CCU_V3S_H__ 31 1.1 jmcneill 32 1.1 jmcneill #define V3S_CLK_PLL_CPU 0 33 1.1 jmcneill #define V3S_CLK_PLL_AUDIO_BASE 1 34 1.1 jmcneill #define V3S_CLK_PLL_AUDIO 2 35 1.1 jmcneill #define V3S_CLK_PLL_AUDIO_2X 3 36 1.1 jmcneill #define V3S_CLK_PLL_AUDIO_4X 4 37 1.1 jmcneill #define V3S_CLK_PLL_AUDIO_8X 5 38 1.1 jmcneill #define V3S_CLK_PLL_VIDEO 6 39 1.1 jmcneill #define V3S_CLK_PLL_VE 7 40 1.1 jmcneill #define V3S_CLK_PLL_DDR 8 41 1.1 jmcneill #define V3S_CLK_PLL_PERIPH0 9 42 1.1 jmcneill #define V3S_CLK_PLL_PERIPH0_2X 10 43 1.1 jmcneill #define V3S_CLK_PLL_ISP 11 44 1.1 jmcneill #define V3S_CLK_PLL_PERIPH1 12 45 1.1 jmcneill #define V3S_CLK_CPU 14 46 1.1 jmcneill #define V3S_CLK_AXI 15 47 1.1 jmcneill #define V3S_CLK_AHB1 16 48 1.1 jmcneill #define V3S_CLK_APB1 17 49 1.1 jmcneill #define V3S_CLK_APB2 18 50 1.1 jmcneill #define V3S_CLK_AHB2 19 51 1.1 jmcneill #define V3S_CLK_BUS_CE 20 52 1.1 jmcneill #define V3S_CLK_BUS_DMA 21 53 1.1 jmcneill #define V3S_CLK_BUS_MMC0 22 54 1.1 jmcneill #define V3S_CLK_BUS_MMC1 23 55 1.1 jmcneill #define V3S_CLK_BUS_MMC2 24 56 1.1 jmcneill #define V3S_CLK_BUS_DRAM 25 57 1.1 jmcneill #define V3S_CLK_BUS_EMAC 26 58 1.1 jmcneill #define V3S_CLK_BUS_HSTIMER 27 59 1.1 jmcneill #define V3S_CLK_BUS_SPI 28 60 1.1 jmcneill #define V3S_CLK_BUS_OTG 29 61 1.1 jmcneill #define V3S_CLK_BUS_EHCI 30 62 1.1 jmcneill #define V3S_CLK_BUS_OHCI 31 63 1.1 jmcneill #define V3S_CLK_BUS_VE 32 64 1.1 jmcneill #define V3S_CLK_BUS_TCON 33 65 1.1 jmcneill #define V3S_CLK_BUS_CSI 34 66 1.1 jmcneill #define V3S_CLK_BUS_DE 35 67 1.1 jmcneill #define V3S_CLK_BUS_CODEC 36 68 1.1 jmcneill #define V3S_CLK_BUS_PIO 37 69 1.1 jmcneill #define V3S_CLK_BUS_I2C0 38 70 1.1 jmcneill #define V3S_CLK_BUS_I2C1 39 71 1.1 jmcneill #define V3S_CLK_BUS_UART0 40 72 1.1 jmcneill #define V3S_CLK_BUS_UART1 41 73 1.1 jmcneill #define V3S_CLK_BUS_UART2 42 74 1.1 jmcneill #define V3S_CLK_BUS_EPHY 43 75 1.1 jmcneill #define V3S_CLK_BUS_DBG 44 76 1.1 jmcneill #define V3S_CLK_MMC0 45 77 1.1 jmcneill #define V3S_CLK_MMC0_SAMPLE 46 78 1.1 jmcneill #define V3S_CLK_MMC0_OUTPUT 47 79 1.1 jmcneill #define V3S_CLK_MMC1 48 80 1.1 jmcneill #define V3S_CLK_MMC1_SAMPLE 49 81 1.1 jmcneill #define V3S_CLK_MMC1_OUTPUT 50 82 1.1 jmcneill #define V3S_CLK_MMC2 51 83 1.1 jmcneill #define V3S_CLK_MMC2_SAMPLE 52 84 1.1 jmcneill #define V3S_CLK_MMC2_OUTPUT 53 85 1.1 jmcneill #define V3S_CLK_CE 54 86 1.1 jmcneill #define V3S_CLK_SPI 55 87 1.1 jmcneill #define V3S_CLK_USBPHY 56 88 1.1 jmcneill #define V3S_CLK_USBOHCI 57 89 1.1 jmcneill #define V3S_CLK_DRAM 58 90 1.1 jmcneill #define V3S_CLK_DRAM_VE 59 91 1.1 jmcneill #define V3S_CLK_DRAM_CSI 60 92 1.1 jmcneill #define V3S_CLK_DRAM_EHCI 61 93 1.1 jmcneill #define V3S_CLK_DRAM_OHCI 62 94 1.1 jmcneill #define V3S_CLK_DE 63 95 1.1 jmcneill #define V3S_CLK_TCON 64 96 1.1 jmcneill #define V3S_CLK_CSI_MISC 65 97 1.1 jmcneill #define V3S_CLK_CSI0_MCLK 66 98 1.1 jmcneill #define V3S_CLK_CSI1_SCLK 67 99 1.1 jmcneill #define V3S_CLK_CSI1_MCLK 68 100 1.1 jmcneill #define V3S_CLK_VE 69 101 1.1 jmcneill #define V3S_CLK_AC_DIG 70 102 1.1 jmcneill #define V3S_CLK_AVS 71 103 1.1 jmcneill #define V3S_CLK_MBUS 72 104 1.1 jmcneill #define V3S_CLK_MIPI_CSI 73 105 1.1 jmcneill 106 1.1 jmcneill #define V3S_RST_USBPHY 0 107 1.1 jmcneill #define V3S_RST_MBUS 1 108 1.1 jmcneill #define V3S_RST_BUS_CE 5 109 1.1 jmcneill #define V3S_RST_BUS_DMA 6 110 1.1 jmcneill #define V3S_RST_BUS_MMC0 7 111 1.1 jmcneill #define V3S_RST_BUS_MMC1 8 112 1.1 jmcneill #define V3S_RST_BUS_MMC2 9 113 1.1 jmcneill #define V3S_RST_BUS_DRAM 11 114 1.1 jmcneill #define V3S_RST_BUS_EMAC 12 115 1.1 jmcneill #define V3S_RST_BUS_HSTIMER 14 116 1.1 jmcneill #define V3S_RST_BUS_SPI 15 117 1.1 jmcneill #define V3S_RST_BUS_OTG 17 118 1.1 jmcneill #define V3S_RST_BUS_EHCI 18 119 1.1 jmcneill #define V3S_RST_BUS_OHCI 22 120 1.1 jmcneill #define V3S_RST_BUS_VE 26 121 1.1 jmcneill #define V3S_RST_BUS_TCON 27 122 1.1 jmcneill #define V3S_RST_BUS_CSI 30 123 1.1 jmcneill #define V3S_RST_BUS_DE 34 124 1.1 jmcneill #define V3S_RST_BUS_DBG 38 125 1.1 jmcneill #define V3S_RST_BUS_EPHY 39 126 1.1 jmcneill #define V3S_RST_BUS_CODEC 40 127 1.1 jmcneill #define V3S_RST_BUS_I2C0 46 128 1.1 jmcneill #define V3S_RST_BUS_I2C1 47 129 1.1 jmcneill #define V3S_RST_BUS_UART0 49 130 1.1 jmcneill #define V3S_RST_BUS_UART1 50 131 1.1 jmcneill #define V3S_RST_BUS_UART2 51 132 1.1 jmcneill 133 1.1 jmcneill #endif /* __CCU_V3S_H__ */ 134