1 /* $NetBSD: s3c2412.h,v 1.1.1.1.6.2 2017/08/28 17:53:01 skrll Exp $ */ 2 3 /* 4 * Copyright (c) 2013 Heiko Stuebner <heiko (at) sntech.de> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. 9 * 10 * Device Tree binding constants clock controllers of Samsung S3C2412. 11 */ 12 13 #ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S3C2412_CLOCK_H 14 #define _DT_BINDINGS_CLOCK_SAMSUNG_S3C2412_CLOCK_H 15 16 /* 17 * Let each exported clock get a unique index, which is used on DT-enabled 18 * platforms to lookup the clock from a clock specifier. These indices are 19 * therefore considered an ABI and so must not be changed. This implies 20 * that new clocks should be added either in free spaces between clock groups 21 * or at the end. 22 */ 23 24 /* Core clocks. */ 25 26 /* id 1 is reserved */ 27 #define MPLL 2 28 #define UPLL 3 29 #define MDIVCLK 4 30 #define MSYSCLK 5 31 #define USYSCLK 6 32 #define HCLK 7 33 #define PCLK 8 34 #define ARMDIV 9 35 #define ARMCLK 10 36 37 38 /* Special clocks */ 39 #define SCLK_CAM 16 40 #define SCLK_UART 17 41 #define SCLK_I2S 18 42 #define SCLK_USBD 19 43 #define SCLK_USBH 20 44 45 /* pclk-gates */ 46 #define PCLK_WDT 32 47 #define PCLK_SPI 33 48 #define PCLK_I2S 34 49 #define PCLK_I2C 35 50 #define PCLK_ADC 36 51 #define PCLK_RTC 37 52 #define PCLK_GPIO 38 53 #define PCLK_UART2 39 54 #define PCLK_UART1 40 55 #define PCLK_UART0 41 56 #define PCLK_SDI 42 57 #define PCLK_PWM 43 58 #define PCLK_USBD 44 59 60 /* hclk-gates */ 61 #define HCLK_HALF 48 62 #define HCLK_X2 49 63 #define HCLK_SDRAM 50 64 #define HCLK_USBH 51 65 #define HCLK_LCD 52 66 #define HCLK_NAND 53 67 #define HCLK_DMA3 54 68 #define HCLK_DMA2 55 69 #define HCLK_DMA1 56 70 #define HCLK_DMA0 57 71 72 /* Total number of clocks. */ 73 #define NR_CLKS (HCLK_DMA0 + 1) 74 75 #endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S3C2412_CLOCK_H */ 76