Home | History | Annotate | Line # | Download | only in sunxi
      1  1.1  jmcneill /* $NetBSD: sun5i_a13_ccu.h,v 1.1 2017/08/25 00:07:03 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 _SUN5I_A13_CCU_H
     30  1.1  jmcneill #define _SUN5I_A13_CCU_H
     31  1.1  jmcneill 
     32  1.1  jmcneill #define	A13_RST_USB_PHY0	0
     33  1.1  jmcneill #define	A13_RST_USB_PHY1	1
     34  1.1  jmcneill #define	A13_RST_GPS		2
     35  1.1  jmcneill #define	A13_RST_DE_BE		3
     36  1.1  jmcneill #define	A13_RST_DE_FE		4
     37  1.1  jmcneill #define	A13_RST_TVE		5
     38  1.1  jmcneill #define	A13_RST_LCD		6
     39  1.1  jmcneill #define	A13_RST_CSI		7
     40  1.1  jmcneill #define	A13_RST_VE		8
     41  1.1  jmcneill #define	A13_RST_GPU		9
     42  1.1  jmcneill #define	A13_RST_IEP		10
     43  1.1  jmcneill 
     44  1.1  jmcneill #define	A13_CLK_HOSC		1
     45  1.1  jmcneill #define	A13_CLK_PLL_CORE	2
     46  1.1  jmcneill #define	A13_CLK_PLL_AUDIO_BASE	3
     47  1.1  jmcneill #define	A13_CLK_PLL_AUDIO	4
     48  1.1  jmcneill #define	A13_CLK_PLL_AUDIO_2X	5
     49  1.1  jmcneill #define	A13_CLK_PLL_AUDIO_4X	6
     50  1.1  jmcneill #define	A13_CLK_PLL_AUDIO_8X	7
     51  1.1  jmcneill #define	A13_CLK_PLL_VIDEO0	8
     52  1.1  jmcneill #define	A13_CLK_PLL_VIDEO0_2X	9
     53  1.1  jmcneill #define	A13_CLK_PLL_VE		10
     54  1.1  jmcneill #define	A13_CLK_PLL_DDR_BASE	11
     55  1.1  jmcneill #define	A13_CLK_PLL_DDR		12
     56  1.1  jmcneill #define	A13_CLK_PLL_DDR_OTHER	13
     57  1.1  jmcneill #define	A13_CLK_PERIPH		14
     58  1.1  jmcneill #define	A13_CLK_VIDEO1		15
     59  1.1  jmcneill #define	A13_CLK_VIDEO1_2X	16
     60  1.1  jmcneill #define	A13_CLK_CPU		17
     61  1.1  jmcneill #define	A13_CLK_AXI		18
     62  1.1  jmcneill #define	A13_CLK_AHB		19
     63  1.1  jmcneill #define	A13_CLK_APB0		20
     64  1.1  jmcneill #define	A13_CLK_APB1		21
     65  1.1  jmcneill #define	A13_CLK_DRAM_AXI	22
     66  1.1  jmcneill #define	A13_CLK_AHB_OTG		23
     67  1.1  jmcneill #define	A13_CLK_AHB_EHCI	24
     68  1.1  jmcneill #define	A13_CLK_AHB_OHCI	25
     69  1.1  jmcneill #define	A13_CLK_AHB_SS		26
     70  1.1  jmcneill #define	A13_CLK_AHB_DMA		27
     71  1.1  jmcneill #define	A13_CLK_AHB_BIST	28
     72  1.1  jmcneill #define	A13_CLK_AHB_MMC0	29
     73  1.1  jmcneill #define	A13_CLK_AHB_MMC1	30
     74  1.1  jmcneill #define	A13_CLK_AHB_MMC2	31
     75  1.1  jmcneill #define	A13_CLK_AHB_NAND	32
     76  1.1  jmcneill #define	A13_CLK_AHB_SDRAM	33
     77  1.1  jmcneill #define	A13_CLK_AHB_EMAC	34
     78  1.1  jmcneill #define	A13_CLK_AHB_TS		35
     79  1.1  jmcneill #define	A13_CLK_AHB_SPI0	36
     80  1.1  jmcneill #define	A13_CLK_AHB_SPI1	37
     81  1.1  jmcneill #define	A13_CLK_AHB_SPI2	38
     82  1.1  jmcneill #define	A13_CLK_AHB_GPS		39
     83  1.1  jmcneill #define	A13_CLK_AHB_HSTIMER	40
     84  1.1  jmcneill #define	A13_CLK_AHB_VE		41
     85  1.1  jmcneill #define	A13_CLK_AHB_TVE		42
     86  1.1  jmcneill #define	A13_CLK_AHB_LCD		43
     87  1.1  jmcneill #define	A13_CLK_AHB_CSI		44
     88  1.1  jmcneill #define	A13_CLK_AHB_HDMI	45
     89  1.1  jmcneill #define	A13_CLK_AHB_DE_BE	46
     90  1.1  jmcneill #define	A13_CLK_AHB_DE_FE	47
     91  1.1  jmcneill #define	A13_CLK_AHB_IEP		48
     92  1.1  jmcneill #define	A13_CLK_AHB_GPU		49
     93  1.1  jmcneill #define	A13_CLK_APB0_CODEC	50
     94  1.1  jmcneill #define	A13_CLK_APB0_SPDIF	51
     95  1.1  jmcneill #define	A13_CLK_APB0_I2S	52
     96  1.1  jmcneill #define	A13_CLK_APB0_PIO	53
     97  1.1  jmcneill #define	A13_CLK_APB0_IR		54
     98  1.1  jmcneill #define	A13_CLK_APB0_KEYPAD	55
     99  1.1  jmcneill #define	A13_CLK_APB1_I2C0	56
    100  1.1  jmcneill #define	A13_CLK_APB1_I2C1	57
    101  1.1  jmcneill #define	A13_CLK_APB1_I2C2	58
    102  1.1  jmcneill #define	A13_CLK_APB1_UART0	59
    103  1.1  jmcneill #define	A13_CLK_APB1_UART1	60
    104  1.1  jmcneill #define	A13_CLK_APB1_UART2	61
    105  1.1  jmcneill #define	A13_CLK_APB1_UART3	62
    106  1.1  jmcneill #define	A13_CLK_NAND		63
    107  1.1  jmcneill #define	A13_CLK_MMC0		64
    108  1.1  jmcneill #define	A13_CLK_MMC1		65
    109  1.1  jmcneill #define	A13_CLK_MMC2		66
    110  1.1  jmcneill #define	A13_CLK_TS		67
    111  1.1  jmcneill #define	A13_CLK_SS		68
    112  1.1  jmcneill #define	A13_CLK_SPI0		69
    113  1.1  jmcneill #define	A13_CLK_SPI1		70
    114  1.1  jmcneill #define	A13_CLK_SPI2		71
    115  1.1  jmcneill #define	A13_CLK_IR		72
    116  1.1  jmcneill #define	A13_CLK_I2S		73
    117  1.1  jmcneill #define	A13_CLK_SPDIF		74
    118  1.1  jmcneill #define	A13_CLK_KEYPAD		75
    119  1.1  jmcneill #define	A13_CLK_USB_OHCI	76
    120  1.1  jmcneill #define	A13_CLK_USB_PHY0	77
    121  1.1  jmcneill #define	A13_CLK_USB_PHY1	78
    122  1.1  jmcneill #define	A13_CLK_GPS		79
    123  1.1  jmcneill #define	A13_CLK_DRAM_VE		80
    124  1.1  jmcneill #define	A13_CLK_DRAM_CSI	81
    125  1.1  jmcneill #define	A13_CLK_DRAM_TS		82
    126  1.1  jmcneill #define	A13_CLK_DRAM_TVE	83
    127  1.1  jmcneill #define	A13_CLK_DRAM_DE_FE	84
    128  1.1  jmcneill #define	A13_CLK_DRAM_DE_BE	85
    129  1.1  jmcneill #define	A13_CLK_DRAM_ACE	86
    130  1.1  jmcneill #define	A13_CLK_DRAM_IEP	87
    131  1.1  jmcneill #define	A13_CLK_DE_BE		88
    132  1.1  jmcneill #define	A13_CLK_DE_FE		89
    133  1.1  jmcneill #define	A13_CLK_TCON_CH0	90
    134  1.1  jmcneill #define	A13_CLK_TCON_CH1_SCLK	91
    135  1.1  jmcneill #define	A13_CLK_TCON_CH1	92
    136  1.1  jmcneill #define	A13_CLK_CSI		93
    137  1.1  jmcneill #define	A13_CLK_VE		94
    138  1.1  jmcneill #define	A13_CLK_CODEC		95
    139  1.1  jmcneill #define	A13_CLK_AVS		96
    140  1.1  jmcneill #define	A13_CLK_HDMI		97
    141  1.1  jmcneill #define	A13_CLK_GPU		98
    142  1.1  jmcneill #define	A13_CLK_MBUS		99
    143  1.1  jmcneill #define	A13_CLK_IEP		100
    144  1.1  jmcneill 
    145  1.1  jmcneill #endif /* !_SUN5I_A13_CCU_H */
    146