Home | History | Annotate | Line # | Download | only in sunxi
      1  1.1  jmcneill /* $NetBSD: sun4i_a10_ccu.h,v 1.1 2017/10/06 21:09:21 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 _SUN4I_A10_CCU_H
     30  1.1  jmcneill #define _SUN4I_A10_CCU_H
     31  1.1  jmcneill 
     32  1.1  jmcneill #define	A10_RST_USB_PHY0	1
     33  1.1  jmcneill #define	A10_RST_USB_PHY1	2
     34  1.1  jmcneill #define	A10_RST_USB_PHY2	3
     35  1.1  jmcneill #define	A10_RST_GPS		4
     36  1.1  jmcneill #define	A10_RST_DE_BE0		5
     37  1.1  jmcneill #define	A10_RST_DE_BE1		6
     38  1.1  jmcneill #define	A10_RST_DE_FE0		7
     39  1.1  jmcneill #define	A10_RST_DE_FE1		8
     40  1.1  jmcneill #define	A10_RST_DE_MP		9
     41  1.1  jmcneill #define	A10_RST_TVE0		10
     42  1.1  jmcneill #define	A10_RST_TCON0		11
     43  1.1  jmcneill #define	A10_RST_TVE1		12
     44  1.1  jmcneill #define	A10_RST_TCON1		13
     45  1.1  jmcneill #define	A10_RST_CSI0		14
     46  1.1  jmcneill #define	A10_RST_CSI1		15
     47  1.1  jmcneill #define	A10_RST_VE		16
     48  1.1  jmcneill #define	A10_RST_ACE		17
     49  1.1  jmcneill #define	A10_RST_LVDS		18
     50  1.1  jmcneill #define	A10_RST_GPU		19
     51  1.1  jmcneill #define	A10_RST_HDMI_H		20
     52  1.1  jmcneill #define	A10_RST_HDMI_SYS	21
     53  1.1  jmcneill #define	A10_RST_HDMI_AUDIO_DM	22
     54  1.1  jmcneill 
     55  1.1  jmcneill #define	A10_CLK_HOSC		1
     56  1.1  jmcneill #define	A10_CLK_PLL_CORE	2
     57  1.1  jmcneill #define	A10_CLK_PLL_AUDIO_BASE	3
     58  1.1  jmcneill #define	A10_CLK_PLL_AUDIO	4
     59  1.1  jmcneill #define	A10_CLK_PLL_AUDIO_2X	5
     60  1.1  jmcneill #define	A10_CLK_PLL_AUDIO_4X	6
     61  1.1  jmcneill #define	A10_CLK_PLL_AUDIO_8X	7
     62  1.1  jmcneill #define	A10_CLK_PLL_VIDEO0	8
     63  1.1  jmcneill #define	A10_CLK_PLL_VIDEO0_2X	9
     64  1.1  jmcneill #define	A10_CLK_PLL_VE		10
     65  1.1  jmcneill #define	A10_CLK_PLL_DDR_BASE	11
     66  1.1  jmcneill #define	A10_CLK_PLL_DDR		12
     67  1.1  jmcneill #define	A10_CLK_PLL_DDR_OTHER	13
     68  1.1  jmcneill #define	A10_CLK_PLL_PERIPH_BASE	14
     69  1.1  jmcneill #define	A10_CLK_PLL_PERIPH	15
     70  1.1  jmcneill #define	A10_CLK_PLL_PERIPH_SATA	16
     71  1.1  jmcneill #define	A10_CLK_PLL_VIDEO1	17
     72  1.1  jmcneill #define	A10_CLK_PLL_VIDEO1_2X	18
     73  1.1  jmcneill #define	A10_CLK_PLL_GPU		19
     74  1.1  jmcneill #define	A10_CLK_CPU		20
     75  1.1  jmcneill #define	A10_CLK_AXI		21
     76  1.1  jmcneill #define	A10_CLK_AXI_DRAM	22
     77  1.1  jmcneill #define	A10_CLK_AHB		23
     78  1.1  jmcneill #define	A10_CLK_APB0		24
     79  1.1  jmcneill #define	A10_CLK_APB1		25
     80  1.1  jmcneill #define	A10_CLK_AHB_OTG		26
     81  1.1  jmcneill #define	A10_CLK_AHB_EHCI0	27
     82  1.1  jmcneill #define	A10_CLK_AHB_OHCI0	28
     83  1.1  jmcneill #define	A10_CLK_AHB_EHCI1	29
     84  1.1  jmcneill #define	A10_CLK_AHB_OHCI1	30
     85  1.1  jmcneill #define	A10_CLK_AHB_SS		31
     86  1.1  jmcneill #define	A10_CLK_AHB_DMA		32
     87  1.1  jmcneill #define	A10_CLK_AHB_BIST	33
     88  1.1  jmcneill #define	A10_CLK_AHB_MMC0	34
     89  1.1  jmcneill #define	A10_CLK_AHB_MMC1	35
     90  1.1  jmcneill #define	A10_CLK_AHB_MMC2	36
     91  1.1  jmcneill #define	A10_CLK_AHB_MMC3	37
     92  1.1  jmcneill #define	A10_CLK_AHB_MS		38
     93  1.1  jmcneill #define	A10_CLK_AHB_NAND	39
     94  1.1  jmcneill #define	A10_CLK_AHB_SDRAM	40
     95  1.1  jmcneill #define	A10_CLK_AHB_ACE		41
     96  1.1  jmcneill #define	A10_CLK_AHB_EMAC	42
     97  1.1  jmcneill #define	A10_CLK_AHB_TS		43
     98  1.1  jmcneill #define	A10_CLK_AHB_SPI0	44
     99  1.1  jmcneill #define	A10_CLK_AHB_SPI1	45
    100  1.1  jmcneill #define	A10_CLK_AHB_SPI2	46
    101  1.1  jmcneill #define	A10_CLK_AHB_SPI3	47
    102  1.1  jmcneill #define	A10_CLK_AHB_PATA	48
    103  1.1  jmcneill #define	A10_CLK_AHB_SATA	49
    104  1.1  jmcneill #define	A10_CLK_AHB_GPS		50
    105  1.1  jmcneill #define	A10_CLK_AHB_HSTIMER	51
    106  1.1  jmcneill #define	A10_CLK_AHB_VE		52
    107  1.1  jmcneill #define	A10_CLK_AHB_TVD		53
    108  1.1  jmcneill #define	A10_CLK_AHB_TVE0	54
    109  1.1  jmcneill #define	A10_CLK_AHB_TVE1	55
    110  1.1  jmcneill #define	A10_CLK_AHB_LCD0	56
    111  1.1  jmcneill #define	A10_CLK_AHB_LCD1	57
    112  1.1  jmcneill #define	A10_CLK_AHB_CSI0	58
    113  1.1  jmcneill #define	A10_CLK_AHB_CSI1	59
    114  1.1  jmcneill #define	A10_CLK_AHB_HDMI0	60
    115  1.1  jmcneill #define	A10_CLK_AHB_HDMI1	61
    116  1.1  jmcneill #define	A10_CLK_AHB_DE_BE0	62
    117  1.1  jmcneill #define	A10_CLK_AHB_DE_BE1	63
    118  1.1  jmcneill #define	A10_CLK_AHB_DE_FE0	64
    119  1.1  jmcneill #define	A10_CLK_AHB_DE_FE1	65
    120  1.1  jmcneill #define	A10_CLK_AHB_GMAC	66
    121  1.1  jmcneill #define	A10_CLK_AHB_MP		67
    122  1.1  jmcneill #define	A10_CLK_AHB_GPU		68
    123  1.1  jmcneill #define	A10_CLK_APB0_CODEC	69
    124  1.1  jmcneill #define	A10_CLK_APB0_SPDIF	70
    125  1.1  jmcneill #define	A10_CLK_APB0_I2S0	71
    126  1.1  jmcneill #define	A10_CLK_APB0_AC97	72
    127  1.1  jmcneill #define	A10_CLK_APB0_I2S1	73
    128  1.1  jmcneill #define	A10_CLK_APB0_PIO	74
    129  1.1  jmcneill #define	A10_CLK_APB0_IR0	75
    130  1.1  jmcneill #define	A10_CLK_APB0_IR1	76
    131  1.1  jmcneill #define	A10_CLK_APB0_I2S2	77
    132  1.1  jmcneill #define	A10_CLK_APB0_KEYPAD	78
    133  1.1  jmcneill #define	A10_CLK_APB1_I2C0	79
    134  1.1  jmcneill #define	A10_CLK_APB1_I2C1	80
    135  1.1  jmcneill #define	A10_CLK_APB1_I2C2	81
    136  1.1  jmcneill #define	A10_CLK_APB1_I2C3	82
    137  1.1  jmcneill #define	A10_CLK_APB1_CAN	83
    138  1.1  jmcneill #define	A10_CLK_APB1_SCR	84
    139  1.1  jmcneill #define	A10_CLK_APB1_PS20	85
    140  1.1  jmcneill #define	A10_CLK_APB1_PS21	86
    141  1.1  jmcneill #define	A10_CLK_APB1_I2C4	87
    142  1.1  jmcneill #define	A10_CLK_APB1_UART0	88
    143  1.1  jmcneill #define	A10_CLK_APB1_UART1	89
    144  1.1  jmcneill #define	A10_CLK_APB1_UART2	90
    145  1.1  jmcneill #define	A10_CLK_APB1_UART3	91
    146  1.1  jmcneill #define	A10_CLK_APB1_UART4	92
    147  1.1  jmcneill #define	A10_CLK_APB1_UART5	93
    148  1.1  jmcneill #define	A10_CLK_APB1_UART6	94
    149  1.1  jmcneill #define	A10_CLK_APB1_UART7	95
    150  1.1  jmcneill #define	A10_CLK_NAND		96
    151  1.1  jmcneill #define	A10_CLK_MS		97
    152  1.1  jmcneill #define	A10_CLK_MMC0		98
    153  1.1  jmcneill #define	A10_CLK_MMC0_OUTPUT	99
    154  1.1  jmcneill #define	A10_CLK_MMC0_SAMPLE	100
    155  1.1  jmcneill #define	A10_CLK_MMC1		101
    156  1.1  jmcneill #define	A10_CLK_MMC1_OUTPUT	102
    157  1.1  jmcneill #define	A10_CLK_MMC1_SAMPLE	103
    158  1.1  jmcneill #define	A10_CLK_MMC2		104
    159  1.1  jmcneill #define	A10_CLK_MMC2_OUTPUT	105
    160  1.1  jmcneill #define	A10_CLK_MMC2_SAMPLE	106
    161  1.1  jmcneill #define	A10_CLK_MMC3		107
    162  1.1  jmcneill #define	A10_CLK_MMC3_OUTPUT	108
    163  1.1  jmcneill #define	A10_CLK_MMC3_SAMPLE	109
    164  1.1  jmcneill #define	A10_CLK_TS		110
    165  1.1  jmcneill #define	A10_CLK_SS		111
    166  1.1  jmcneill #define	A10_CLK_SPI0		112
    167  1.1  jmcneill #define	A10_CLK_SPI1		113
    168  1.1  jmcneill #define	A10_CLK_SPI2		114
    169  1.1  jmcneill #define	A10_CLK_PATA		115
    170  1.1  jmcneill #define	A10_CLK_IR0		116
    171  1.1  jmcneill #define	A10_CLK_IR1		117
    172  1.1  jmcneill #define	A10_CLK_I2S0		118
    173  1.1  jmcneill #define	A10_CLK_AC97		119
    174  1.1  jmcneill #define	A10_CLK_SPDIF		120
    175  1.1  jmcneill #define	A10_CLK_KEYPAD		121
    176  1.1  jmcneill #define	A10_CLK_SATA		122
    177  1.1  jmcneill #define	A10_CLK_USB_OHCI0	123
    178  1.1  jmcneill #define	A10_CLK_USB_OHCI1	124
    179  1.1  jmcneill #define	A10_CLK_USB_PHY		125
    180  1.1  jmcneill #define	A10_CLK_GPS		126
    181  1.1  jmcneill #define	A10_CLK_SPI3		127
    182  1.1  jmcneill #define	A10_CLK_I2S1		128
    183  1.1  jmcneill #define	A10_CLK_I2S2		129
    184  1.1  jmcneill #define	A10_CLK_DRAM_VE		130
    185  1.1  jmcneill #define	A10_CLK_DRAM_CSI0	131
    186  1.1  jmcneill #define	A10_CLK_DRAM_CSI1	132
    187  1.1  jmcneill #define	A10_CLK_DRAM_TS		133
    188  1.1  jmcneill #define	A10_CLK_DRAM_TVD	134
    189  1.1  jmcneill #define	A10_CLK_DRAM_TVE0	135
    190  1.1  jmcneill #define	A10_CLK_DRAM_TVE1	136
    191  1.1  jmcneill #define	A10_CLK_DRAM_OUT	137
    192  1.1  jmcneill #define	A10_CLK_DRAM_DE_FE1	138
    193  1.1  jmcneill #define	A10_CLK_DRAM_DE_FE0	139
    194  1.1  jmcneill #define	A10_CLK_DRAM_DE_BE0	140
    195  1.1  jmcneill #define	A10_CLK_DRAM_DE_BE1	141
    196  1.1  jmcneill #define	A10_CLK_DRAM_MP		142
    197  1.1  jmcneill #define	A10_CLK_DRAM_ACE	143
    198  1.1  jmcneill #define	A10_CLK_DE_BE0		144
    199  1.1  jmcneill #define	A10_CLK_DE_BE1		145
    200  1.1  jmcneill #define	A10_CLK_DE_FE0		146
    201  1.1  jmcneill #define	A10_CLK_DE_FE1		147
    202  1.1  jmcneill #define	A10_CLK_DE_MP		148
    203  1.1  jmcneill #define	A10_CLK_TCON0_CH0	149
    204  1.1  jmcneill #define	A10_CLK_TCON1_CH0	150
    205  1.1  jmcneill #define	A10_CLK_CSI_SCLK	151
    206  1.1  jmcneill #define	A10_CLK_TVD_SCLK2	152
    207  1.1  jmcneill #define	A10_CLK_TVD		153
    208  1.1  jmcneill #define	A10_CLK_TCON0_CH1_SCLK2	154
    209  1.1  jmcneill #define	A10_CLK_TCON0_CH1	155
    210  1.1  jmcneill #define	A10_CLK_TCON1_CH1_SCLK2	156
    211  1.1  jmcneill #define	A10_CLK_TCON1_CH1	157
    212  1.1  jmcneill #define	A10_CLK_CSI0		158
    213  1.1  jmcneill #define	A10_CLK_CSI1		159
    214  1.1  jmcneill #define	A10_CLK_CODEC		160
    215  1.1  jmcneill #define	A10_CLK_VE		161
    216  1.1  jmcneill #define	A10_CLK_AVS		162
    217  1.1  jmcneill #define	A10_CLK_ACE		163
    218  1.1  jmcneill #define	A10_CLK_HDMI		164
    219  1.1  jmcneill #define	A10_CLK_GPU		165
    220  1.1  jmcneill 
    221  1.1  jmcneill #endif /* !_SUN4I_A10_CCU_H */
    222