Home | History | Annotate | Line # | Download | only in clock
      1      1.1  jmcneill /*	$NetBSD: g12a-clkc.h,v 1.1.1.3 2021/11/07 16:49:57 jmcneill Exp $	*/
      2      1.1  jmcneill 
      3      1.1  jmcneill /* SPDX-License-Identifier: GPL-2.0+ OR MIT */
      4      1.1  jmcneill /*
      5      1.1  jmcneill  * Meson-G12A clock tree IDs
      6      1.1  jmcneill  *
      7      1.1  jmcneill  * Copyright (c) 2018 Amlogic, Inc. All rights reserved.
      8      1.1  jmcneill  */
      9      1.1  jmcneill 
     10      1.1  jmcneill #ifndef __G12A_CLKC_H
     11      1.1  jmcneill #define __G12A_CLKC_H
     12      1.1  jmcneill 
     13      1.1  jmcneill #define CLKID_SYS_PLL				0
     14      1.1  jmcneill #define CLKID_FIXED_PLL				1
     15      1.1  jmcneill #define CLKID_FCLK_DIV2				2
     16      1.1  jmcneill #define CLKID_FCLK_DIV3				3
     17      1.1  jmcneill #define CLKID_FCLK_DIV4				4
     18      1.1  jmcneill #define CLKID_FCLK_DIV5				5
     19      1.1  jmcneill #define CLKID_FCLK_DIV7				6
     20      1.1  jmcneill #define CLKID_GP0_PLL				7
     21      1.1  jmcneill #define CLKID_CLK81				10
     22      1.1  jmcneill #define CLKID_MPLL0				11
     23      1.1  jmcneill #define CLKID_MPLL1				12
     24      1.1  jmcneill #define CLKID_MPLL2				13
     25      1.1  jmcneill #define CLKID_MPLL3				14
     26      1.1  jmcneill #define CLKID_DDR				15
     27      1.1  jmcneill #define CLKID_DOS				16
     28      1.1  jmcneill #define CLKID_AUDIO_LOCKER			17
     29      1.1  jmcneill #define CLKID_MIPI_DSI_HOST			18
     30      1.1  jmcneill #define CLKID_ETH_PHY				19
     31      1.1  jmcneill #define CLKID_ISA				20
     32      1.1  jmcneill #define CLKID_PL301				21
     33      1.1  jmcneill #define CLKID_PERIPHS				22
     34      1.1  jmcneill #define CLKID_SPICC0				23
     35      1.1  jmcneill #define CLKID_I2C				24
     36      1.1  jmcneill #define CLKID_SANA				25
     37      1.1  jmcneill #define CLKID_SD				26
     38      1.1  jmcneill #define CLKID_RNG0				27
     39      1.1  jmcneill #define CLKID_UART0				28
     40      1.1  jmcneill #define CLKID_SPICC1				29
     41      1.1  jmcneill #define CLKID_HIU_IFACE				30
     42      1.1  jmcneill #define CLKID_MIPI_DSI_PHY			31
     43      1.1  jmcneill #define CLKID_ASSIST_MISC			32
     44      1.1  jmcneill #define CLKID_SD_EMMC_A				33
     45      1.1  jmcneill #define CLKID_SD_EMMC_B				34
     46      1.1  jmcneill #define CLKID_SD_EMMC_C				35
     47      1.1  jmcneill #define CLKID_AUDIO_CODEC			36
     48      1.1  jmcneill #define CLKID_AUDIO				37
     49      1.1  jmcneill #define CLKID_ETH				38
     50      1.1  jmcneill #define CLKID_DEMUX				39
     51      1.1  jmcneill #define CLKID_AUDIO_IFIFO			40
     52      1.1  jmcneill #define CLKID_ADC				41
     53      1.1  jmcneill #define CLKID_UART1				42
     54      1.1  jmcneill #define CLKID_G2D				43
     55      1.1  jmcneill #define CLKID_RESET				44
     56      1.1  jmcneill #define CLKID_PCIE_COMB				45
     57      1.1  jmcneill #define CLKID_PARSER				46
     58      1.1  jmcneill #define CLKID_USB				47
     59      1.1  jmcneill #define CLKID_PCIE_PHY				48
     60      1.1  jmcneill #define CLKID_AHB_ARB0				49
     61      1.1  jmcneill #define CLKID_AHB_DATA_BUS			50
     62      1.1  jmcneill #define CLKID_AHB_CTRL_BUS			51
     63      1.1  jmcneill #define CLKID_HTX_HDCP22			52
     64      1.1  jmcneill #define CLKID_HTX_PCLK				53
     65      1.1  jmcneill #define CLKID_BT656				54
     66      1.1  jmcneill #define CLKID_USB1_DDR_BRIDGE			55
     67      1.1  jmcneill #define CLKID_MMC_PCLK				56
     68      1.1  jmcneill #define CLKID_UART2				57
     69      1.1  jmcneill #define CLKID_VPU_INTR				58
     70      1.1  jmcneill #define CLKID_GIC				59
     71      1.1  jmcneill #define CLKID_SD_EMMC_A_CLK0			60
     72      1.1  jmcneill #define CLKID_SD_EMMC_B_CLK0			61
     73      1.1  jmcneill #define CLKID_SD_EMMC_C_CLK0			62
     74      1.1  jmcneill #define CLKID_HIFI_PLL				74
     75      1.1  jmcneill #define CLKID_VCLK2_VENCI0			80
     76      1.1  jmcneill #define CLKID_VCLK2_VENCI1			81
     77      1.1  jmcneill #define CLKID_VCLK2_VENCP0			82
     78      1.1  jmcneill #define CLKID_VCLK2_VENCP1			83
     79      1.1  jmcneill #define CLKID_VCLK2_VENCT0			84
     80      1.1  jmcneill #define CLKID_VCLK2_VENCT1			85
     81      1.1  jmcneill #define CLKID_VCLK2_OTHER			86
     82      1.1  jmcneill #define CLKID_VCLK2_ENCI			87
     83      1.1  jmcneill #define CLKID_VCLK2_ENCP			88
     84      1.1  jmcneill #define CLKID_DAC_CLK				89
     85      1.1  jmcneill #define CLKID_AOCLK				90
     86      1.1  jmcneill #define CLKID_IEC958				91
     87      1.1  jmcneill #define CLKID_ENC480P				92
     88      1.1  jmcneill #define CLKID_RNG1				93
     89      1.1  jmcneill #define CLKID_VCLK2_ENCT			94
     90      1.1  jmcneill #define CLKID_VCLK2_ENCL			95
     91      1.1  jmcneill #define CLKID_VCLK2_VENCLMMC			96
     92      1.1  jmcneill #define CLKID_VCLK2_VENCL			97
     93      1.1  jmcneill #define CLKID_VCLK2_OTHER1			98
     94      1.1  jmcneill #define CLKID_FCLK_DIV2P5			99
     95      1.1  jmcneill #define CLKID_DMA				105
     96      1.1  jmcneill #define CLKID_EFUSE				106
     97      1.1  jmcneill #define CLKID_ROM_BOOT				107
     98      1.1  jmcneill #define CLKID_RESET_SEC				108
     99      1.1  jmcneill #define CLKID_SEC_AHB_APB3			109
    100      1.1  jmcneill #define CLKID_VPU_0_SEL				110
    101      1.1  jmcneill #define CLKID_VPU_0				112
    102      1.1  jmcneill #define CLKID_VPU_1_SEL				113
    103      1.1  jmcneill #define CLKID_VPU_1				115
    104      1.1  jmcneill #define CLKID_VPU				116
    105      1.1  jmcneill #define CLKID_VAPB_0_SEL			117
    106      1.1  jmcneill #define CLKID_VAPB_0				119
    107      1.1  jmcneill #define CLKID_VAPB_1_SEL			120
    108      1.1  jmcneill #define CLKID_VAPB_1				122
    109      1.1  jmcneill #define CLKID_VAPB_SEL				123
    110      1.1  jmcneill #define CLKID_VAPB				124
    111      1.1  jmcneill #define CLKID_HDMI_PLL				128
    112      1.1  jmcneill #define CLKID_VID_PLL				129
    113      1.1  jmcneill #define CLKID_VCLK				138
    114      1.1  jmcneill #define CLKID_VCLK2				139
    115      1.1  jmcneill #define CLKID_VCLK_DIV1				148
    116      1.1  jmcneill #define CLKID_VCLK_DIV2				149
    117      1.1  jmcneill #define CLKID_VCLK_DIV4				150
    118      1.1  jmcneill #define CLKID_VCLK_DIV6				151
    119      1.1  jmcneill #define CLKID_VCLK_DIV12			152
    120      1.1  jmcneill #define CLKID_VCLK2_DIV1			153
    121      1.1  jmcneill #define CLKID_VCLK2_DIV2			154
    122      1.1  jmcneill #define CLKID_VCLK2_DIV4			155
    123      1.1  jmcneill #define CLKID_VCLK2_DIV6			156
    124      1.1  jmcneill #define CLKID_VCLK2_DIV12			157
    125      1.1  jmcneill #define CLKID_CTS_ENCI				162
    126      1.1  jmcneill #define CLKID_CTS_ENCP				163
    127      1.1  jmcneill #define CLKID_CTS_VDAC				164
    128      1.1  jmcneill #define CLKID_HDMI_TX				165
    129      1.1  jmcneill #define CLKID_HDMI				168
    130      1.1  jmcneill #define CLKID_MALI_0_SEL			169
    131      1.1  jmcneill #define CLKID_MALI_0				171
    132      1.1  jmcneill #define CLKID_MALI_1_SEL			172
    133      1.1  jmcneill #define CLKID_MALI_1				174
    134      1.1  jmcneill #define CLKID_MALI				175
    135  1.1.1.2     skrll #define CLKID_MPLL_50M				177
    136  1.1.1.2     skrll #define CLKID_CPU_CLK				187
    137  1.1.1.2     skrll #define CLKID_PCIE_PLL				201
    138  1.1.1.2     skrll #define CLKID_VDEC_1				204
    139  1.1.1.2     skrll #define CLKID_VDEC_HEVC				207
    140  1.1.1.2     skrll #define CLKID_VDEC_HEVCF			210
    141  1.1.1.2     skrll #define CLKID_TS				212
    142  1.1.1.2     skrll #define CLKID_CPUB_CLK				224
    143  1.1.1.2     skrll #define CLKID_GP1_PLL				243
    144  1.1.1.2     skrll #define CLKID_DSU_CLK				252
    145  1.1.1.2     skrll #define CLKID_CPU1_CLK				253
    146  1.1.1.2     skrll #define CLKID_CPU2_CLK				254
    147  1.1.1.2     skrll #define CLKID_CPU3_CLK				255
    148  1.1.1.3  jmcneill #define CLKID_SPICC0_SCLK			258
    149  1.1.1.3  jmcneill #define CLKID_SPICC1_SCLK			261
    150  1.1.1.3  jmcneill #define CLKID_NNA_AXI_CLK			264
    151  1.1.1.3  jmcneill #define CLKID_NNA_CORE_CLK			267
    152  1.1.1.3  jmcneill #define CLKID_MIPI_DSI_PXCLK_SEL		269
    153  1.1.1.3  jmcneill #define CLKID_MIPI_DSI_PXCLK			270
    154      1.1  jmcneill 
    155      1.1  jmcneill #endif /* __G12A_CLKC_H */
    156