Home | History | Annotate | Line # | Download | only in amlogic
      1  1.1  jmcneill /* $NetBSD: meson8b_clkc.h,v 1.1 2019/01/19 20:56:03 jmcneill Exp $ */
      2  1.1  jmcneill 
      3  1.1  jmcneill /*-
      4  1.1  jmcneill  * Copyright (c) 2019 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 _MESON8B_CLKC_H
     30  1.1  jmcneill #define _MESON8B_CLKC_H
     31  1.1  jmcneill 
     32  1.1  jmcneill #define	MESON8B_RESET_CPU0_SOFT_RESET	3
     33  1.1  jmcneill #define	MESON8B_RESET_CPU1_SOFT_RESET	4
     34  1.1  jmcneill #define	MESON8B_RESET_CPU2_SOFT_RESET	5
     35  1.1  jmcneill #define	MESON8B_RESET_CPU3_SOFT_RESET	6
     36  1.1  jmcneill 
     37  1.1  jmcneill #define MESON8B_CLOCK_XTAL		1
     38  1.1  jmcneill #define MESON8B_CLOCK_PLL_FIXED		2
     39  1.1  jmcneill #define MESON8B_CLOCK_PLL_VID		3
     40  1.1  jmcneill #define MESON8B_CLOCK_PLL_SYS		4
     41  1.1  jmcneill #define MESON8B_CLOCK_FCLK_DIV2		5
     42  1.1  jmcneill #define MESON8B_CLOCK_FCLK_DIV3		6
     43  1.1  jmcneill #define MESON8B_CLOCK_FCLK_DIV4		7
     44  1.1  jmcneill #define MESON8B_CLOCK_FCLK_DIV5		8
     45  1.1  jmcneill #define MESON8B_CLOCK_FCLK_DIV7		9
     46  1.1  jmcneill #define MESON8B_CLOCK_CLK81		10
     47  1.1  jmcneill #define MESON8B_CLOCK_MALI		11
     48  1.1  jmcneill #define MESON8B_CLOCK_CPUCLK		12
     49  1.1  jmcneill #define MESON8B_CLOCK_ZERO		13
     50  1.1  jmcneill #define MESON8B_CLOCK_MPEG_SEL		14
     51  1.1  jmcneill #define MESON8B_CLOCK_MPEG_DIV		15
     52  1.1  jmcneill #define MESON8B_CLOCK_DDR		16
     53  1.1  jmcneill #define MESON8B_CLOCK_DOS		17
     54  1.1  jmcneill #define MESON8B_CLOCK_ISA		18
     55  1.1  jmcneill #define MESON8B_CLOCK_PL301		19
     56  1.1  jmcneill #define MESON8B_CLOCK_PERIPHS		20
     57  1.1  jmcneill #define MESON8B_CLOCK_SPICC		21
     58  1.1  jmcneill #define MESON8B_CLOCK_I2C		22
     59  1.1  jmcneill #define MESON8B_CLOCK_SAR_ADC		23
     60  1.1  jmcneill #define MESON8B_CLOCK_SMART_CARD	24
     61  1.1  jmcneill #define MESON8B_CLOCK_RNG0		25
     62  1.1  jmcneill #define MESON8B_CLOCK_UART0		26
     63  1.1  jmcneill #define MESON8B_CLOCK_SDHC		27
     64  1.1  jmcneill #define MESON8B_CLOCK_STREAM		28
     65  1.1  jmcneill #define MESON8B_CLOCK_ASYNC_FIFO	29
     66  1.1  jmcneill #define MESON8B_CLOCK_SDIO		30
     67  1.1  jmcneill #define MESON8B_CLOCK_ABUF		31
     68  1.1  jmcneill #define MESON8B_CLOCK_HIU_IFACE		32
     69  1.1  jmcneill #define MESON8B_CLOCK_ASSIST_MISC	33
     70  1.1  jmcneill #define MESON8B_CLOCK_SPI		34
     71  1.1  jmcneill #define MESON8B_CLOCK_I2S_SPDIF		35
     72  1.1  jmcneill #define MESON8B_CLOCK_ETH		36
     73  1.1  jmcneill #define MESON8B_CLOCK_DEMUX		37
     74  1.1  jmcneill #define MESON8B_CLOCK_AIU_GLUE		38
     75  1.1  jmcneill #define MESON8B_CLOCK_IEC958		39
     76  1.1  jmcneill #define MESON8B_CLOCK_I2S_OUT		40
     77  1.1  jmcneill #define MESON8B_CLOCK_AMCLK		41
     78  1.1  jmcneill #define MESON8B_CLOCK_AIFIFO2		42
     79  1.1  jmcneill #define MESON8B_CLOCK_MIXER		43
     80  1.1  jmcneill #define MESON8B_CLOCK_MIXER_IFACE	44
     81  1.1  jmcneill #define MESON8B_CLOCK_ADC		45
     82  1.1  jmcneill #define MESON8B_CLOCK_BLKMV		46
     83  1.1  jmcneill #define MESON8B_CLOCK_AIU		47
     84  1.1  jmcneill #define MESON8B_CLOCK_UART1		48
     85  1.1  jmcneill #define MESON8B_CLOCK_G2D		49
     86  1.1  jmcneill #define MESON8B_CLOCK_USB0		50
     87  1.1  jmcneill #define MESON8B_CLOCK_USB1		51
     88  1.1  jmcneill #define MESON8B_CLOCK_RESET		52
     89  1.1  jmcneill #define MESON8B_CLOCK_NAND		53
     90  1.1  jmcneill #define MESON8B_CLOCK_DOS_PARSER	54
     91  1.1  jmcneill #define MESON8B_CLOCK_USB		55
     92  1.1  jmcneill #define MESON8B_CLOCK_VDIN1		56
     93  1.1  jmcneill #define MESON8B_CLOCK_AHB_ARB0		57
     94  1.1  jmcneill #define MESON8B_CLOCK_EFUSE		58
     95  1.1  jmcneill #define MESON8B_CLOCK_BOOT_ROM		59
     96  1.1  jmcneill #define MESON8B_CLOCK_AHB_DATA_BUS	60
     97  1.1  jmcneill #define MESON8B_CLOCK_AHB_CTRL_BUS	61
     98  1.1  jmcneill #define MESON8B_CLOCK_HDMI_INTR_SYNC	62
     99  1.1  jmcneill #define MESON8B_CLOCK_HDMI_PCLK		63
    100  1.1  jmcneill #define MESON8B_CLOCK_USB1_DDR_BRIDGE	64
    101  1.1  jmcneill #define MESON8B_CLOCK_USB0_DDR_BRIDGE	65
    102  1.1  jmcneill #define MESON8B_CLOCK_MMC_PCLK		66
    103  1.1  jmcneill #define MESON8B_CLOCK_DVIN		67
    104  1.1  jmcneill #define MESON8B_CLOCK_UART2		68
    105  1.1  jmcneill #define MESON8B_CLOCK_SANA		69
    106  1.1  jmcneill #define MESON8B_CLOCK_VPU_INTR		70
    107  1.1  jmcneill #define MESON8B_CLOCK_SEC_AHB_AHB3_BRIDGE	71
    108  1.1  jmcneill #define MESON8B_CLOCK_CLK81_A9		72
    109  1.1  jmcneill #define MESON8B_CLOCK_VCLK2_VENCI0	73
    110  1.1  jmcneill #define MESON8B_CLOCK_VCLK2_VENCI1	74
    111  1.1  jmcneill #define MESON8B_CLOCK_VCLK2_VENCP0	75
    112  1.1  jmcneill #define MESON8B_CLOCK_VCLK2_VENCP1	76
    113  1.1  jmcneill #define MESON8B_CLOCK_GCLK_VENCI_INT	77
    114  1.1  jmcneill #define MESON8B_CLOCK_GCLK_VENCP_INT	78
    115  1.1  jmcneill #define MESON8B_CLOCK_DAC_CLK		79
    116  1.1  jmcneill #define MESON8B_CLOCK_AOCLK_GATE	80
    117  1.1  jmcneill #define MESON8B_CLOCK_IEC958_GATE	81
    118  1.1  jmcneill #define MESON8B_CLOCK_ENC480P		82
    119  1.1  jmcneill #define MESON8B_CLOCK_RNG1		83
    120  1.1  jmcneill #define MESON8B_CLOCK_GCLK_VENCL_INT	84
    121  1.1  jmcneill #define MESON8B_CLOCK_VCLK2_VENCLMCC	85
    122  1.1  jmcneill #define MESON8B_CLOCK_VCLK2_VENCL	86
    123  1.1  jmcneill #define MESON8B_CLOCK_VCLK2_OTHER	87
    124  1.1  jmcneill #define MESON8B_CLOCK_EDP		88
    125  1.1  jmcneill #define MESON8B_CLOCK_AO_MEDIA_CPU	89
    126  1.1  jmcneill #define MESON8B_CLOCK_AO_AHB_SRAM	90
    127  1.1  jmcneill #define MESON8B_CLOCK_AO_AHB_BUS	91
    128  1.1  jmcneill #define MESON8B_CLOCK_AO_IFACE		92
    129  1.1  jmcneill #define MESON8B_CLOCK_MPLL0		93
    130  1.1  jmcneill #define MESON8B_CLOCK_MPLL1		94
    131  1.1  jmcneill #define MESON8B_CLOCK_MPLL2		95
    132  1.1  jmcneill #define MESON8B_CLOCK_MPLL0_DIV		96
    133  1.1  jmcneill #define MESON8B_CLOCK_MPLL1_DIV		97
    134  1.1  jmcneill #define MESON8B_CLOCK_MPLL2_DIV		98
    135  1.1  jmcneill #define MESON8B_CLOCK_CPU_IN_SEL	99
    136  1.1  jmcneill #define MESON8B_CLOCK_CPU_IN_DIV2	100
    137  1.1  jmcneill #define MESON8B_CLOCK_CPU_IN_DIV3	101
    138  1.1  jmcneill #define MESON8B_CLOCK_CPU_SCALE_DIV	102
    139  1.1  jmcneill #define MESON8B_CLOCK_CPU_SCALE_OUT_SEL	103
    140  1.1  jmcneill #define MESON8B_CLOCK_MPLL_PREDIV	104
    141  1.1  jmcneill #define MESON8B_CLOCK_FCLK_DIV2_DIV	105
    142  1.1  jmcneill #define MESON8B_CLOCK_FCLK_DIV3_DIV	106
    143  1.1  jmcneill #define MESON8B_CLOCK_FCLK_DIV4_DIV	107
    144  1.1  jmcneill #define MESON8B_CLOCK_FCLK_DIV5_DIV	108
    145  1.1  jmcneill #define MESON8B_CLOCK_FCLK_DIV7_DIV	109
    146  1.1  jmcneill #define MESON8B_CLOCK_NAND_SEL		110
    147  1.1  jmcneill #define MESON8B_CLOCK_NAND_DIV		111
    148  1.1  jmcneill #define MESON8B_CLOCK_NAND_CLK		112
    149  1.1  jmcneill #define MESON8B_CLOCK_PLL_FIXED_DCO	113
    150  1.1  jmcneill #define MESON8B_CLOCK_PLL_VID_DCO	114
    151  1.1  jmcneill #define MESON8B_CLOCK_PLL_SYS_DCO	115
    152  1.1  jmcneill #define	MESON8B_CLOCK_CPU_CLK_DIV2	116
    153  1.1  jmcneill #define	MESON8B_CLOCK_CPU_CLK_DIV3	117
    154  1.1  jmcneill #define	MESON8B_CLOCK_CPU_CLK_DIV4	118
    155  1.1  jmcneill #define	MESON8B_CLOCK_CPU_CLK_DIV5	119
    156  1.1  jmcneill #define	MESON8B_CLOCK_CPU_CLK_DIV6	120
    157  1.1  jmcneill #define	MESON8B_CLOCK_CPU_CLK_DIV7	121
    158  1.1  jmcneill #define	MESON8B_CLOCK_CPU_CLK_DIV8	122
    159  1.1  jmcneill #define	MESON8B_CLOCK_PERIPH_SEL	125
    160  1.1  jmcneill #define	MESON8B_CLOCK_PERIPH		126
    161  1.1  jmcneill 
    162  1.1  jmcneill #endif /* _MESON8B_CLKC_H */
    163