Home | History | Annotate | Line # | Download | only in clock
      1      1.1  jmcneill /*	$NetBSD: s3c2443.h,v 1.1.1.3 2019/01/22 14:57:02 jmcneill Exp $	*/
      2      1.1  jmcneill 
      3  1.1.1.3  jmcneill /* SPDX-License-Identifier: GPL-2.0 */
      4      1.1  jmcneill /*
      5      1.1  jmcneill  * Copyright (c) 2013 Heiko Stuebner <heiko (at) sntech.de>
      6      1.1  jmcneill  *
      7      1.1  jmcneill  * Device Tree binding constants clock controllers of Samsung S3C2443 and later.
      8      1.1  jmcneill  */
      9      1.1  jmcneill 
     10      1.1  jmcneill #ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S3C2443_CLOCK_H
     11      1.1  jmcneill #define _DT_BINDINGS_CLOCK_SAMSUNG_S3C2443_CLOCK_H
     12      1.1  jmcneill 
     13      1.1  jmcneill /*
     14      1.1  jmcneill  * Let each exported clock get a unique index, which is used on DT-enabled
     15      1.1  jmcneill  * platforms to lookup the clock from a clock specifier. These indices are
     16      1.1  jmcneill  * therefore considered an ABI and so must not be changed. This implies
     17      1.1  jmcneill  * that new clocks should be added either in free spaces between clock groups
     18      1.1  jmcneill  * or at the end.
     19      1.1  jmcneill  */
     20      1.1  jmcneill 
     21      1.1  jmcneill /* Core clocks. */
     22      1.1  jmcneill #define MSYSCLK			1
     23      1.1  jmcneill #define ESYSCLK			2
     24      1.1  jmcneill #define ARMDIV			3
     25      1.1  jmcneill #define ARMCLK			4
     26      1.1  jmcneill #define HCLK			5
     27      1.1  jmcneill #define PCLK			6
     28  1.1.1.2  jmcneill #define MPLL			7
     29  1.1.1.2  jmcneill #define EPLL			8
     30      1.1  jmcneill 
     31      1.1  jmcneill /* Special clocks */
     32      1.1  jmcneill #define SCLK_HSSPI0		16
     33      1.1  jmcneill #define SCLK_FIMD		17
     34      1.1  jmcneill #define SCLK_I2S0		18
     35      1.1  jmcneill #define SCLK_I2S1		19
     36      1.1  jmcneill #define SCLK_HSMMC1		20
     37      1.1  jmcneill #define SCLK_HSMMC_EXT		21
     38      1.1  jmcneill #define SCLK_CAM		22
     39      1.1  jmcneill #define SCLK_UART		23
     40      1.1  jmcneill #define SCLK_USBH		24
     41      1.1  jmcneill 
     42      1.1  jmcneill /* Muxes */
     43      1.1  jmcneill #define MUX_HSSPI0		32
     44      1.1  jmcneill #define MUX_HSSPI1		33
     45      1.1  jmcneill #define MUX_HSMMC0		34
     46      1.1  jmcneill #define MUX_HSMMC1		35
     47      1.1  jmcneill 
     48      1.1  jmcneill /* hclk-gates */
     49      1.1  jmcneill #define HCLK_DMA0		48
     50      1.1  jmcneill #define HCLK_DMA1		49
     51      1.1  jmcneill #define HCLK_DMA2		50
     52      1.1  jmcneill #define HCLK_DMA3		51
     53      1.1  jmcneill #define HCLK_DMA4		52
     54      1.1  jmcneill #define HCLK_DMA5		53
     55      1.1  jmcneill #define HCLK_DMA6		54
     56      1.1  jmcneill #define HCLK_DMA7		55
     57      1.1  jmcneill #define HCLK_CAM		56
     58      1.1  jmcneill #define HCLK_LCD		57
     59      1.1  jmcneill #define HCLK_USBH		58
     60      1.1  jmcneill #define HCLK_USBD		59
     61      1.1  jmcneill #define HCLK_IROM		60
     62      1.1  jmcneill #define HCLK_HSMMC0		61
     63      1.1  jmcneill #define HCLK_HSMMC1		62
     64      1.1  jmcneill #define HCLK_CFC		63
     65      1.1  jmcneill #define HCLK_SSMC		64
     66      1.1  jmcneill #define HCLK_DRAM		65
     67      1.1  jmcneill #define HCLK_2D			66
     68      1.1  jmcneill 
     69      1.1  jmcneill /* pclk-gates */
     70      1.1  jmcneill #define PCLK_UART0		72
     71      1.1  jmcneill #define PCLK_UART1		73
     72      1.1  jmcneill #define PCLK_UART2		74
     73      1.1  jmcneill #define PCLK_UART3		75
     74      1.1  jmcneill #define PCLK_I2C0		76
     75      1.1  jmcneill #define PCLK_SDI		77
     76      1.1  jmcneill #define PCLK_SPI0		78
     77      1.1  jmcneill #define PCLK_ADC		79
     78      1.1  jmcneill #define PCLK_AC97		80
     79      1.1  jmcneill #define PCLK_I2S0		81
     80      1.1  jmcneill #define PCLK_PWM		82
     81      1.1  jmcneill #define PCLK_WDT		83
     82      1.1  jmcneill #define PCLK_RTC		84
     83      1.1  jmcneill #define PCLK_GPIO		85
     84      1.1  jmcneill #define PCLK_SPI1		86
     85      1.1  jmcneill #define PCLK_CHIPID		87
     86      1.1  jmcneill #define PCLK_I2C1		88
     87      1.1  jmcneill #define PCLK_I2S1		89
     88      1.1  jmcneill #define PCLK_PCM		90
     89      1.1  jmcneill 
     90      1.1  jmcneill /* Total number of clocks. */
     91      1.1  jmcneill #define NR_CLKS			(PCLK_PCM + 1)
     92      1.1  jmcneill 
     93      1.1  jmcneill #endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S3C2443_CLOCK_H */
     94