Naveen Krishna Ch | 532abc3 | 2014-09-22 10:17:04 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014 Samsung Electronics Co., Ltd. |
| 3 | * Author: Naveen Krishna Ch <naveenkrishna.ch@gmail.com> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation. |
| 8 | */ |
| 9 | |
| 10 | #ifndef _DT_BINDINGS_CLOCK_EXYNOS7_H |
| 11 | #define _DT_BINDINGS_CLOCK_EXYNOS7_H |
| 12 | |
| 13 | /* TOPC */ |
| 14 | #define DOUT_ACLK_PERIS 1 |
| 15 | #define DOUT_SCLK_BUS0_PLL 2 |
| 16 | #define DOUT_SCLK_BUS1_PLL 3 |
| 17 | #define DOUT_SCLK_CC_PLL 4 |
| 18 | #define DOUT_SCLK_MFC_PLL 5 |
Naveen Krishna Ch | f5e127c | 2014-10-28 16:48:53 +0530 | [diff] [blame] | 19 | #define DOUT_ACLK_CCORE_133 6 |
Tony K Nadackal | 49cab82 | 2014-12-17 13:03:37 +0530 | [diff] [blame] | 20 | #define DOUT_ACLK_MSCL_532 7 |
| 21 | #define ACLK_MSCL_532 8 |
| 22 | #define TOPC_NR_CLK 9 |
Naveen Krishna Ch | 532abc3 | 2014-09-22 10:17:04 +0530 | [diff] [blame] | 23 | |
| 24 | /* TOP0 */ |
| 25 | #define DOUT_ACLK_PERIC1 1 |
| 26 | #define DOUT_ACLK_PERIC0 2 |
| 27 | #define CLK_SCLK_UART0 3 |
| 28 | #define CLK_SCLK_UART1 4 |
| 29 | #define CLK_SCLK_UART2 5 |
| 30 | #define CLK_SCLK_UART3 6 |
Padmavathi Venna | ee74b56 | 2015-01-13 16:57:41 +0530 | [diff] [blame^] | 31 | #define CLK_SCLK_SPI0 7 |
| 32 | #define CLK_SCLK_SPI1 8 |
| 33 | #define CLK_SCLK_SPI2 9 |
| 34 | #define CLK_SCLK_SPI3 10 |
| 35 | #define CLK_SCLK_SPI4 11 |
| 36 | #define TOP0_NR_CLK 12 |
Naveen Krishna Ch | 532abc3 | 2014-09-22 10:17:04 +0530 | [diff] [blame] | 37 | |
Naveen Krishna Ch | 6d0c8c7 | 2014-10-21 11:13:52 +0530 | [diff] [blame] | 38 | /* TOP1 */ |
| 39 | #define DOUT_ACLK_FSYS1_200 1 |
| 40 | #define DOUT_ACLK_FSYS0_200 2 |
| 41 | #define DOUT_SCLK_MMC2 3 |
| 42 | #define DOUT_SCLK_MMC1 4 |
| 43 | #define DOUT_SCLK_MMC0 5 |
| 44 | #define CLK_SCLK_MMC2 6 |
| 45 | #define CLK_SCLK_MMC1 7 |
| 46 | #define CLK_SCLK_MMC0 8 |
| 47 | #define TOP1_NR_CLK 9 |
| 48 | |
Naveen Krishna Ch | f5e127c | 2014-10-28 16:48:53 +0530 | [diff] [blame] | 49 | /* CCORE */ |
| 50 | #define PCLK_RTC 1 |
| 51 | #define CCORE_NR_CLK 2 |
| 52 | |
Naveen Krishna Ch | 532abc3 | 2014-09-22 10:17:04 +0530 | [diff] [blame] | 53 | /* PERIC0 */ |
| 54 | #define PCLK_UART0 1 |
| 55 | #define SCLK_UART0 2 |
Naveen Krishna Ch | 57a2b48 | 2014-10-21 11:13:51 +0530 | [diff] [blame] | 56 | #define PCLK_HSI2C0 3 |
| 57 | #define PCLK_HSI2C1 4 |
| 58 | #define PCLK_HSI2C4 5 |
| 59 | #define PCLK_HSI2C5 6 |
| 60 | #define PCLK_HSI2C9 7 |
| 61 | #define PCLK_HSI2C10 8 |
| 62 | #define PCLK_HSI2C11 9 |
Naveen Krishna Ch | 2ab2dfe | 2014-10-28 16:48:54 +0530 | [diff] [blame] | 63 | #define PCLK_PWM 10 |
| 64 | #define SCLK_PWM 11 |
Abhilash Kesavan | 932e982 | 2014-10-28 16:48:55 +0530 | [diff] [blame] | 65 | #define PCLK_ADCIF 12 |
| 66 | #define PERIC0_NR_CLK 13 |
Naveen Krishna Ch | 532abc3 | 2014-09-22 10:17:04 +0530 | [diff] [blame] | 67 | |
| 68 | /* PERIC1 */ |
| 69 | #define PCLK_UART1 1 |
| 70 | #define PCLK_UART2 2 |
| 71 | #define PCLK_UART3 3 |
| 72 | #define SCLK_UART1 4 |
| 73 | #define SCLK_UART2 5 |
| 74 | #define SCLK_UART3 6 |
Naveen Krishna Ch | 57a2b48 | 2014-10-21 11:13:51 +0530 | [diff] [blame] | 75 | #define PCLK_HSI2C2 7 |
| 76 | #define PCLK_HSI2C3 8 |
| 77 | #define PCLK_HSI2C6 9 |
| 78 | #define PCLK_HSI2C7 10 |
| 79 | #define PCLK_HSI2C8 11 |
Padmavathi Venna | ee74b56 | 2015-01-13 16:57:41 +0530 | [diff] [blame^] | 80 | #define PCLK_SPI0 12 |
| 81 | #define PCLK_SPI1 13 |
| 82 | #define PCLK_SPI2 14 |
| 83 | #define PCLK_SPI3 15 |
| 84 | #define PCLK_SPI4 16 |
| 85 | #define SCLK_SPI0 17 |
| 86 | #define SCLK_SPI1 18 |
| 87 | #define SCLK_SPI2 19 |
| 88 | #define SCLK_SPI3 20 |
| 89 | #define SCLK_SPI4 21 |
| 90 | #define PERIC1_NR_CLK 22 |
Naveen Krishna Ch | 532abc3 | 2014-09-22 10:17:04 +0530 | [diff] [blame] | 91 | |
| 92 | /* PERIS */ |
| 93 | #define PCLK_CHIPID 1 |
| 94 | #define SCLK_CHIPID 2 |
Naveen Krishna Ch | 2ab2dfe | 2014-10-28 16:48:54 +0530 | [diff] [blame] | 95 | #define PCLK_WDT 3 |
| 96 | #define PCLK_TMU 4 |
| 97 | #define SCLK_TMU 5 |
| 98 | #define PERIS_NR_CLK 6 |
Naveen Krishna Ch | 532abc3 | 2014-09-22 10:17:04 +0530 | [diff] [blame] | 99 | |
Naveen Krishna Ch | 6d0c8c7 | 2014-10-21 11:13:52 +0530 | [diff] [blame] | 100 | /* FSYS0 */ |
| 101 | #define ACLK_MMC2 1 |
Vivek Gautam | 83f191a | 2014-11-21 19:05:51 +0530 | [diff] [blame] | 102 | #define ACLK_AXIUS_USBDRD30X_FSYS0X 2 |
| 103 | #define ACLK_USBDRD300 3 |
| 104 | #define SCLK_USBDRD300_SUSPENDCLK 4 |
| 105 | #define SCLK_USBDRD300_REFCLK 5 |
| 106 | #define PHYCLK_USBDRD300_UDRD30_PIPE_PCLK_USER 6 |
| 107 | #define PHYCLK_USBDRD300_UDRD30_PHYCLK_USER 7 |
| 108 | #define OSCCLK_PHY_CLKOUT_USB30_PHY 8 |
Padmavathi Venna | 9cc2a0c9 | 2015-01-13 16:57:40 +0530 | [diff] [blame] | 109 | #define ACLK_PDMA0 9 |
| 110 | #define ACLK_PDMA1 10 |
| 111 | #define FSYS0_NR_CLK 11 |
Naveen Krishna Ch | 6d0c8c7 | 2014-10-21 11:13:52 +0530 | [diff] [blame] | 112 | |
| 113 | /* FSYS1 */ |
| 114 | #define ACLK_MMC1 1 |
| 115 | #define ACLK_MMC0 2 |
| 116 | #define FSYS1_NR_CLK 3 |
| 117 | |
Tony K Nadackal | 49cab82 | 2014-12-17 13:03:37 +0530 | [diff] [blame] | 118 | /* MSCL */ |
| 119 | #define USERMUX_ACLK_MSCL_532 1 |
| 120 | #define DOUT_PCLK_MSCL 2 |
| 121 | #define ACLK_MSCL_0 3 |
| 122 | #define ACLK_MSCL_1 4 |
| 123 | #define ACLK_JPEG 5 |
| 124 | #define ACLK_G2D 6 |
| 125 | #define ACLK_LH_ASYNC_SI_MSCL_0 7 |
| 126 | #define ACLK_LH_ASYNC_SI_MSCL_1 8 |
| 127 | #define ACLK_AXI2ACEL_BRIDGE 9 |
| 128 | #define ACLK_XIU_MSCLX_0 10 |
| 129 | #define ACLK_XIU_MSCLX_1 11 |
| 130 | #define ACLK_QE_MSCL_0 12 |
| 131 | #define ACLK_QE_MSCL_1 13 |
| 132 | #define ACLK_QE_JPEG 14 |
| 133 | #define ACLK_QE_G2D 15 |
| 134 | #define ACLK_PPMU_MSCL_0 16 |
| 135 | #define ACLK_PPMU_MSCL_1 17 |
| 136 | #define ACLK_MSCLNP_133 18 |
| 137 | #define ACLK_AHB2APB_MSCL0P 19 |
| 138 | #define ACLK_AHB2APB_MSCL1P 20 |
| 139 | |
| 140 | #define PCLK_MSCL_0 21 |
| 141 | #define PCLK_MSCL_1 22 |
| 142 | #define PCLK_JPEG 23 |
| 143 | #define PCLK_G2D 24 |
| 144 | #define PCLK_QE_MSCL_0 25 |
| 145 | #define PCLK_QE_MSCL_1 26 |
| 146 | #define PCLK_QE_JPEG 27 |
| 147 | #define PCLK_QE_G2D 28 |
| 148 | #define PCLK_PPMU_MSCL_0 29 |
| 149 | #define PCLK_PPMU_MSCL_1 30 |
| 150 | #define PCLK_AXI2ACEL_BRIDGE 31 |
| 151 | #define PCLK_PMU_MSCL 32 |
| 152 | #define MSCL_NR_CLK 33 |
| 153 | |
Naveen Krishna Ch | 532abc3 | 2014-09-22 10:17:04 +0530 | [diff] [blame] | 154 | #endif /* _DT_BINDINGS_CLOCK_EXYNOS7_H */ |