1 1.1 jmcneill /* $NetBSD: s3c2412.h,v 1.1.1.2 2019/01/22 14:57:01 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1.1.2 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 S3C2412. 8 1.1 jmcneill */ 9 1.1 jmcneill 10 1.1 jmcneill #ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S3C2412_CLOCK_H 11 1.1 jmcneill #define _DT_BINDINGS_CLOCK_SAMSUNG_S3C2412_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 23 1.1 jmcneill /* id 1 is reserved */ 24 1.1 jmcneill #define MPLL 2 25 1.1 jmcneill #define UPLL 3 26 1.1 jmcneill #define MDIVCLK 4 27 1.1 jmcneill #define MSYSCLK 5 28 1.1 jmcneill #define USYSCLK 6 29 1.1 jmcneill #define HCLK 7 30 1.1 jmcneill #define PCLK 8 31 1.1 jmcneill #define ARMDIV 9 32 1.1 jmcneill #define ARMCLK 10 33 1.1 jmcneill 34 1.1 jmcneill 35 1.1 jmcneill /* Special clocks */ 36 1.1 jmcneill #define SCLK_CAM 16 37 1.1 jmcneill #define SCLK_UART 17 38 1.1 jmcneill #define SCLK_I2S 18 39 1.1 jmcneill #define SCLK_USBD 19 40 1.1 jmcneill #define SCLK_USBH 20 41 1.1 jmcneill 42 1.1 jmcneill /* pclk-gates */ 43 1.1 jmcneill #define PCLK_WDT 32 44 1.1 jmcneill #define PCLK_SPI 33 45 1.1 jmcneill #define PCLK_I2S 34 46 1.1 jmcneill #define PCLK_I2C 35 47 1.1 jmcneill #define PCLK_ADC 36 48 1.1 jmcneill #define PCLK_RTC 37 49 1.1 jmcneill #define PCLK_GPIO 38 50 1.1 jmcneill #define PCLK_UART2 39 51 1.1 jmcneill #define PCLK_UART1 40 52 1.1 jmcneill #define PCLK_UART0 41 53 1.1 jmcneill #define PCLK_SDI 42 54 1.1 jmcneill #define PCLK_PWM 43 55 1.1 jmcneill #define PCLK_USBD 44 56 1.1 jmcneill 57 1.1 jmcneill /* hclk-gates */ 58 1.1 jmcneill #define HCLK_HALF 48 59 1.1 jmcneill #define HCLK_X2 49 60 1.1 jmcneill #define HCLK_SDRAM 50 61 1.1 jmcneill #define HCLK_USBH 51 62 1.1 jmcneill #define HCLK_LCD 52 63 1.1 jmcneill #define HCLK_NAND 53 64 1.1 jmcneill #define HCLK_DMA3 54 65 1.1 jmcneill #define HCLK_DMA2 55 66 1.1 jmcneill #define HCLK_DMA1 56 67 1.1 jmcneill #define HCLK_DMA0 57 68 1.1 jmcneill 69 1.1 jmcneill /* Total number of clocks. */ 70 1.1 jmcneill #define NR_CLKS (HCLK_DMA0 + 1) 71 1.1 jmcneill 72 1.1 jmcneill #endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S3C2412_CLOCK_H */ 73