18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2014 Samsung Electronics Co., Ltd. 48c2ecf20Sopenharmony_ci * Author: Rahul Sharma <rahul.sharma@samsung.com> 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Common Clock Framework support for Exynos5260 SoC. 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifndef __CLK_EXYNOS5260_H 108c2ecf20Sopenharmony_ci#define __CLK_EXYNOS5260_H 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* 138c2ecf20Sopenharmony_ci*Registers for CMU_AUD 148c2ecf20Sopenharmony_ci*/ 158c2ecf20Sopenharmony_ci#define MUX_SEL_AUD 0x0200 168c2ecf20Sopenharmony_ci#define MUX_ENABLE_AUD 0x0300 178c2ecf20Sopenharmony_ci#define MUX_STAT_AUD 0x0400 188c2ecf20Sopenharmony_ci#define MUX_IGNORE_AUD 0x0500 198c2ecf20Sopenharmony_ci#define DIV_AUD0 0x0600 208c2ecf20Sopenharmony_ci#define DIV_AUD1 0x0604 218c2ecf20Sopenharmony_ci#define DIV_STAT_AUD0 0x0700 228c2ecf20Sopenharmony_ci#define DIV_STAT_AUD1 0x0704 238c2ecf20Sopenharmony_ci#define EN_ACLK_AUD 0x0800 248c2ecf20Sopenharmony_ci#define EN_PCLK_AUD 0x0900 258c2ecf20Sopenharmony_ci#define EN_SCLK_AUD 0x0a00 268c2ecf20Sopenharmony_ci#define EN_IP_AUD 0x0b00 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci/* 298c2ecf20Sopenharmony_ci*Registers for CMU_DISP 308c2ecf20Sopenharmony_ci*/ 318c2ecf20Sopenharmony_ci#define MUX_SEL_DISP0 0x0200 328c2ecf20Sopenharmony_ci#define MUX_SEL_DISP1 0x0204 338c2ecf20Sopenharmony_ci#define MUX_SEL_DISP2 0x0208 348c2ecf20Sopenharmony_ci#define MUX_SEL_DISP3 0x020C 358c2ecf20Sopenharmony_ci#define MUX_SEL_DISP4 0x0210 368c2ecf20Sopenharmony_ci#define MUX_ENABLE_DISP0 0x0300 378c2ecf20Sopenharmony_ci#define MUX_ENABLE_DISP1 0x0304 388c2ecf20Sopenharmony_ci#define MUX_ENABLE_DISP2 0x0308 398c2ecf20Sopenharmony_ci#define MUX_ENABLE_DISP3 0x030c 408c2ecf20Sopenharmony_ci#define MUX_ENABLE_DISP4 0x0310 418c2ecf20Sopenharmony_ci#define MUX_STAT_DISP0 0x0400 428c2ecf20Sopenharmony_ci#define MUX_STAT_DISP1 0x0404 438c2ecf20Sopenharmony_ci#define MUX_STAT_DISP2 0x0408 448c2ecf20Sopenharmony_ci#define MUX_STAT_DISP3 0x040c 458c2ecf20Sopenharmony_ci#define MUX_STAT_DISP4 0x0410 468c2ecf20Sopenharmony_ci#define MUX_IGNORE_DISP0 0x0500 478c2ecf20Sopenharmony_ci#define MUX_IGNORE_DISP1 0x0504 488c2ecf20Sopenharmony_ci#define MUX_IGNORE_DISP2 0x0508 498c2ecf20Sopenharmony_ci#define MUX_IGNORE_DISP3 0x050c 508c2ecf20Sopenharmony_ci#define MUX_IGNORE_DISP4 0x0510 518c2ecf20Sopenharmony_ci#define DIV_DISP 0x0600 528c2ecf20Sopenharmony_ci#define DIV_STAT_DISP 0x0700 538c2ecf20Sopenharmony_ci#define EN_ACLK_DISP 0x0800 548c2ecf20Sopenharmony_ci#define EN_PCLK_DISP 0x0900 558c2ecf20Sopenharmony_ci#define EN_SCLK_DISP0 0x0a00 568c2ecf20Sopenharmony_ci#define EN_SCLK_DISP1 0x0a04 578c2ecf20Sopenharmony_ci#define EN_IP_DISP 0x0b00 588c2ecf20Sopenharmony_ci#define EN_IP_DISP_BUS 0x0b04 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci/* 628c2ecf20Sopenharmony_ci*Registers for CMU_EGL 638c2ecf20Sopenharmony_ci*/ 648c2ecf20Sopenharmony_ci#define EGL_PLL_LOCK 0x0000 658c2ecf20Sopenharmony_ci#define EGL_DPLL_LOCK 0x0004 668c2ecf20Sopenharmony_ci#define EGL_PLL_CON0 0x0100 678c2ecf20Sopenharmony_ci#define EGL_PLL_CON1 0x0104 688c2ecf20Sopenharmony_ci#define EGL_PLL_FREQ_DET 0x010c 698c2ecf20Sopenharmony_ci#define EGL_DPLL_CON0 0x0110 708c2ecf20Sopenharmony_ci#define EGL_DPLL_CON1 0x0114 718c2ecf20Sopenharmony_ci#define EGL_DPLL_FREQ_DET 0x011c 728c2ecf20Sopenharmony_ci#define MUX_SEL_EGL 0x0200 738c2ecf20Sopenharmony_ci#define MUX_ENABLE_EGL 0x0300 748c2ecf20Sopenharmony_ci#define MUX_STAT_EGL 0x0400 758c2ecf20Sopenharmony_ci#define DIV_EGL 0x0600 768c2ecf20Sopenharmony_ci#define DIV_EGL_PLL_FDET 0x0604 778c2ecf20Sopenharmony_ci#define DIV_STAT_EGL 0x0700 788c2ecf20Sopenharmony_ci#define DIV_STAT_EGL_PLL_FDET 0x0704 798c2ecf20Sopenharmony_ci#define EN_ACLK_EGL 0x0800 808c2ecf20Sopenharmony_ci#define EN_PCLK_EGL 0x0900 818c2ecf20Sopenharmony_ci#define EN_SCLK_EGL 0x0a00 828c2ecf20Sopenharmony_ci#define EN_IP_EGL 0x0b00 838c2ecf20Sopenharmony_ci#define CLKOUT_CMU_EGL 0x0c00 848c2ecf20Sopenharmony_ci#define CLKOUT_CMU_EGL_DIV_STAT 0x0c04 858c2ecf20Sopenharmony_ci#define ARMCLK_STOPCTRL 0x1000 868c2ecf20Sopenharmony_ci#define EAGLE_EMA_CTRL 0x1008 878c2ecf20Sopenharmony_ci#define EAGLE_EMA_STATUS 0x100c 888c2ecf20Sopenharmony_ci#define PWR_CTRL 0x1020 898c2ecf20Sopenharmony_ci#define PWR_CTRL2 0x1024 908c2ecf20Sopenharmony_ci#define CLKSTOP_CTRL 0x1028 918c2ecf20Sopenharmony_ci#define INTR_SPREAD_EN 0x1080 928c2ecf20Sopenharmony_ci#define INTR_SPREAD_USE_STANDBYWFI 0x1084 938c2ecf20Sopenharmony_ci#define INTR_SPREAD_BLOCKING_DURATION 0x1088 948c2ecf20Sopenharmony_ci#define CMU_EGL_SPARE0 0x2000 958c2ecf20Sopenharmony_ci#define CMU_EGL_SPARE1 0x2004 968c2ecf20Sopenharmony_ci#define CMU_EGL_SPARE2 0x2008 978c2ecf20Sopenharmony_ci#define CMU_EGL_SPARE3 0x200c 988c2ecf20Sopenharmony_ci#define CMU_EGL_SPARE4 0x2010 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci/* 1018c2ecf20Sopenharmony_ci*Registers for CMU_FSYS 1028c2ecf20Sopenharmony_ci*/ 1038c2ecf20Sopenharmony_ci 1048c2ecf20Sopenharmony_ci#define MUX_SEL_FSYS0 0x0200 1058c2ecf20Sopenharmony_ci#define MUX_SEL_FSYS1 0x0204 1068c2ecf20Sopenharmony_ci#define MUX_ENABLE_FSYS0 0x0300 1078c2ecf20Sopenharmony_ci#define MUX_ENABLE_FSYS1 0x0304 1088c2ecf20Sopenharmony_ci#define MUX_STAT_FSYS0 0x0400 1098c2ecf20Sopenharmony_ci#define MUX_STAT_FSYS1 0x0404 1108c2ecf20Sopenharmony_ci#define MUX_IGNORE_FSYS0 0x0500 1118c2ecf20Sopenharmony_ci#define MUX_IGNORE_FSYS1 0x0504 1128c2ecf20Sopenharmony_ci#define EN_ACLK_FSYS 0x0800 1138c2ecf20Sopenharmony_ci#define EN_ACLK_FSYS_SECURE_RTIC 0x0804 1148c2ecf20Sopenharmony_ci#define EN_ACLK_FSYS_SECURE_SMMU_RTIC 0x0808 1158c2ecf20Sopenharmony_ci#define EN_PCLK_FSYS 0x0900 1168c2ecf20Sopenharmony_ci#define EN_SCLK_FSYS 0x0a00 1178c2ecf20Sopenharmony_ci#define EN_IP_FSYS 0x0b00 1188c2ecf20Sopenharmony_ci#define EN_IP_FSYS_SECURE_RTIC 0x0b04 1198c2ecf20Sopenharmony_ci#define EN_IP_FSYS_SECURE_SMMU_RTIC 0x0b08 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ci/* 1228c2ecf20Sopenharmony_ci*Registers for CMU_G2D 1238c2ecf20Sopenharmony_ci*/ 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_ci#define MUX_SEL_G2D 0x0200 1268c2ecf20Sopenharmony_ci#define MUX_ENABLE_G2D 0x0300 1278c2ecf20Sopenharmony_ci#define MUX_STAT_G2D 0x0400 1288c2ecf20Sopenharmony_ci#define DIV_G2D 0x0600 1298c2ecf20Sopenharmony_ci#define DIV_STAT_G2D 0x0700 1308c2ecf20Sopenharmony_ci#define EN_ACLK_G2D 0x0800 1318c2ecf20Sopenharmony_ci#define EN_ACLK_G2D_SECURE_SSS 0x0804 1328c2ecf20Sopenharmony_ci#define EN_ACLK_G2D_SECURE_SLIM_SSS 0x0808 1338c2ecf20Sopenharmony_ci#define EN_ACLK_G2D_SECURE_SMMU_SLIM_SSS 0x080c 1348c2ecf20Sopenharmony_ci#define EN_ACLK_G2D_SECURE_SMMU_SSS 0x0810 1358c2ecf20Sopenharmony_ci#define EN_ACLK_G2D_SECURE_SMMU_MDMA 0x0814 1368c2ecf20Sopenharmony_ci#define EN_ACLK_G2D_SECURE_SMMU_G2D 0x0818 1378c2ecf20Sopenharmony_ci#define EN_PCLK_G2D 0x0900 1388c2ecf20Sopenharmony_ci#define EN_PCLK_G2D_SECURE_SMMU_SLIM_SSS 0x0904 1398c2ecf20Sopenharmony_ci#define EN_PCLK_G2D_SECURE_SMMU_SSS 0x0908 1408c2ecf20Sopenharmony_ci#define EN_PCLK_G2D_SECURE_SMMU_MDMA 0x090c 1418c2ecf20Sopenharmony_ci#define EN_PCLK_G2D_SECURE_SMMU_G2D 0x0910 1428c2ecf20Sopenharmony_ci#define EN_IP_G2D 0x0b00 1438c2ecf20Sopenharmony_ci#define EN_IP_G2D_SECURE_SSS 0x0b04 1448c2ecf20Sopenharmony_ci#define EN_IP_G2D_SECURE_SLIM_SSS 0x0b08 1458c2ecf20Sopenharmony_ci#define EN_IP_G2D_SECURE_SMMU_SLIM_SSS 0x0b0c 1468c2ecf20Sopenharmony_ci#define EN_IP_G2D_SECURE_SMMU_SSS 0x0b10 1478c2ecf20Sopenharmony_ci#define EN_IP_G2D_SECURE_SMMU_MDMA 0x0b14 1488c2ecf20Sopenharmony_ci#define EN_IP_G2D_SECURE_SMMU_G2D 0x0b18 1498c2ecf20Sopenharmony_ci 1508c2ecf20Sopenharmony_ci/* 1518c2ecf20Sopenharmony_ci*Registers for CMU_G3D 1528c2ecf20Sopenharmony_ci*/ 1538c2ecf20Sopenharmony_ci 1548c2ecf20Sopenharmony_ci#define G3D_PLL_LOCK 0x0000 1558c2ecf20Sopenharmony_ci#define G3D_PLL_CON0 0x0100 1568c2ecf20Sopenharmony_ci#define G3D_PLL_CON1 0x0104 1578c2ecf20Sopenharmony_ci#define G3D_PLL_FDET 0x010c 1588c2ecf20Sopenharmony_ci#define MUX_SEL_G3D 0x0200 1598c2ecf20Sopenharmony_ci#define MUX_EN_G3D 0x0300 1608c2ecf20Sopenharmony_ci#define MUX_STAT_G3D 0x0400 1618c2ecf20Sopenharmony_ci#define MUX_IGNORE_G3D 0x0500 1628c2ecf20Sopenharmony_ci#define DIV_G3D 0x0600 1638c2ecf20Sopenharmony_ci#define DIV_G3D_PLL_FDET 0x0604 1648c2ecf20Sopenharmony_ci#define DIV_STAT_G3D 0x0700 1658c2ecf20Sopenharmony_ci#define DIV_STAT_G3D_PLL_FDET 0x0704 1668c2ecf20Sopenharmony_ci#define EN_ACLK_G3D 0x0800 1678c2ecf20Sopenharmony_ci#define EN_PCLK_G3D 0x0900 1688c2ecf20Sopenharmony_ci#define EN_SCLK_G3D 0x0a00 1698c2ecf20Sopenharmony_ci#define EN_IP_G3D 0x0b00 1708c2ecf20Sopenharmony_ci#define CLKOUT_CMU_G3D 0x0c00 1718c2ecf20Sopenharmony_ci#define CLKOUT_CMU_G3D_DIV_STAT 0x0c04 1728c2ecf20Sopenharmony_ci#define G3DCLK_STOPCTRL 0x1000 1738c2ecf20Sopenharmony_ci#define G3D_EMA_CTRL 0x1008 1748c2ecf20Sopenharmony_ci#define G3D_EMA_STATUS 0x100c 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_ci/* 1778c2ecf20Sopenharmony_ci*Registers for CMU_GSCL 1788c2ecf20Sopenharmony_ci*/ 1798c2ecf20Sopenharmony_ci 1808c2ecf20Sopenharmony_ci#define MUX_SEL_GSCL 0x0200 1818c2ecf20Sopenharmony_ci#define MUX_EN_GSCL 0x0300 1828c2ecf20Sopenharmony_ci#define MUX_STAT_GSCL 0x0400 1838c2ecf20Sopenharmony_ci#define MUX_IGNORE_GSCL 0x0500 1848c2ecf20Sopenharmony_ci#define DIV_GSCL 0x0600 1858c2ecf20Sopenharmony_ci#define DIV_STAT_GSCL 0x0700 1868c2ecf20Sopenharmony_ci#define EN_ACLK_GSCL 0x0800 1878c2ecf20Sopenharmony_ci#define EN_ACLK_GSCL_FIMC 0x0804 1888c2ecf20Sopenharmony_ci#define EN_ACLK_GSCL_SECURE_SMMU_GSCL0 0x0808 1898c2ecf20Sopenharmony_ci#define EN_ACLK_GSCL_SECURE_SMMU_GSCL1 0x080c 1908c2ecf20Sopenharmony_ci#define EN_ACLK_GSCL_SECURE_SMMU_MSCL0 0x0810 1918c2ecf20Sopenharmony_ci#define EN_ACLK_GSCL_SECURE_SMMU_MSCL1 0x0814 1928c2ecf20Sopenharmony_ci#define EN_PCLK_GSCL 0x0900 1938c2ecf20Sopenharmony_ci#define EN_PCLK_GSCL_FIMC 0x0904 1948c2ecf20Sopenharmony_ci#define EN_PCLK_GSCL_SECURE_SMMU_GSCL0 0x0908 1958c2ecf20Sopenharmony_ci#define EN_PCLK_GSCL_SECURE_SMMU_GSCL1 0x090c 1968c2ecf20Sopenharmony_ci#define EN_PCLK_GSCL_SECURE_SMMU_MSCL0 0x0910 1978c2ecf20Sopenharmony_ci#define EN_PCLK_GSCL_SECURE_SMMU_MSCL1 0x0914 1988c2ecf20Sopenharmony_ci#define EN_SCLK_GSCL 0x0a00 1998c2ecf20Sopenharmony_ci#define EN_SCLK_GSCL_FIMC 0x0a04 2008c2ecf20Sopenharmony_ci#define EN_IP_GSCL 0x0b00 2018c2ecf20Sopenharmony_ci#define EN_IP_GSCL_FIMC 0x0b04 2028c2ecf20Sopenharmony_ci#define EN_IP_GSCL_SECURE_SMMU_GSCL0 0x0b08 2038c2ecf20Sopenharmony_ci#define EN_IP_GSCL_SECURE_SMMU_GSCL1 0x0b0c 2048c2ecf20Sopenharmony_ci#define EN_IP_GSCL_SECURE_SMMU_MSCL0 0x0b10 2058c2ecf20Sopenharmony_ci#define EN_IP_GSCL_SECURE_SMMU_MSCL1 0x0b14 2068c2ecf20Sopenharmony_ci 2078c2ecf20Sopenharmony_ci/* 2088c2ecf20Sopenharmony_ci*Registers for CMU_ISP 2098c2ecf20Sopenharmony_ci*/ 2108c2ecf20Sopenharmony_ci#define MUX_SEL_ISP0 0x0200 2118c2ecf20Sopenharmony_ci#define MUX_SEL_ISP1 0x0204 2128c2ecf20Sopenharmony_ci#define MUX_ENABLE_ISP0 0x0300 2138c2ecf20Sopenharmony_ci#define MUX_ENABLE_ISP1 0x0304 2148c2ecf20Sopenharmony_ci#define MUX_STAT_ISP0 0x0400 2158c2ecf20Sopenharmony_ci#define MUX_STAT_ISP1 0x0404 2168c2ecf20Sopenharmony_ci#define MUX_IGNORE_ISP0 0x0500 2178c2ecf20Sopenharmony_ci#define MUX_IGNORE_ISP1 0x0504 2188c2ecf20Sopenharmony_ci#define DIV_ISP 0x0600 2198c2ecf20Sopenharmony_ci#define DIV_STAT_ISP 0x0700 2208c2ecf20Sopenharmony_ci#define EN_ACLK_ISP0 0x0800 2218c2ecf20Sopenharmony_ci#define EN_ACLK_ISP1 0x0804 2228c2ecf20Sopenharmony_ci#define EN_PCLK_ISP0 0x0900 2238c2ecf20Sopenharmony_ci#define EN_PCLK_ISP1 0x0904 2248c2ecf20Sopenharmony_ci#define EN_SCLK_ISP 0x0a00 2258c2ecf20Sopenharmony_ci#define EN_IP_ISP0 0x0b00 2268c2ecf20Sopenharmony_ci#define EN_IP_ISP1 0x0b04 2278c2ecf20Sopenharmony_ci 2288c2ecf20Sopenharmony_ci/* 2298c2ecf20Sopenharmony_ci*Registers for CMU_KFC 2308c2ecf20Sopenharmony_ci*/ 2318c2ecf20Sopenharmony_ci#define KFC_PLL_LOCK 0x0000 2328c2ecf20Sopenharmony_ci#define KFC_PLL_CON0 0x0100 2338c2ecf20Sopenharmony_ci#define KFC_PLL_CON1 0x0104 2348c2ecf20Sopenharmony_ci#define KFC_PLL_FDET 0x010c 2358c2ecf20Sopenharmony_ci#define MUX_SEL_KFC0 0x0200 2368c2ecf20Sopenharmony_ci#define MUX_SEL_KFC2 0x0208 2378c2ecf20Sopenharmony_ci#define MUX_ENABLE_KFC0 0x0300 2388c2ecf20Sopenharmony_ci#define MUX_ENABLE_KFC2 0x0308 2398c2ecf20Sopenharmony_ci#define MUX_STAT_KFC0 0x0400 2408c2ecf20Sopenharmony_ci#define MUX_STAT_KFC2 0x0408 2418c2ecf20Sopenharmony_ci#define DIV_KFC 0x0600 2428c2ecf20Sopenharmony_ci#define DIV_KFC_PLL_FDET 0x0604 2438c2ecf20Sopenharmony_ci#define DIV_STAT_KFC 0x0700 2448c2ecf20Sopenharmony_ci#define DIV_STAT_KFC_PLL_FDET 0x0704 2458c2ecf20Sopenharmony_ci#define EN_ACLK_KFC 0x0800 2468c2ecf20Sopenharmony_ci#define EN_PCLK_KFC 0x0900 2478c2ecf20Sopenharmony_ci#define EN_SCLK_KFC 0x0a00 2488c2ecf20Sopenharmony_ci#define EN_IP_KFC 0x0b00 2498c2ecf20Sopenharmony_ci#define CLKOUT_CMU_KFC 0x0c00 2508c2ecf20Sopenharmony_ci#define CLKOUT_CMU_KFC_DIV_STAT 0x0c04 2518c2ecf20Sopenharmony_ci#define ARMCLK_STOPCTRL_KFC 0x1000 2528c2ecf20Sopenharmony_ci#define ARM_EMA_CTRL 0x1008 2538c2ecf20Sopenharmony_ci#define ARM_EMA_STATUS 0x100c 2548c2ecf20Sopenharmony_ci#define PWR_CTRL_KFC 0x1020 2558c2ecf20Sopenharmony_ci#define PWR_CTRL2_KFC 0x1024 2568c2ecf20Sopenharmony_ci#define CLKSTOP_CTRL_KFC 0x1028 2578c2ecf20Sopenharmony_ci#define INTR_SPREAD_ENABLE_KFC 0x1080 2588c2ecf20Sopenharmony_ci#define INTR_SPREAD_USE_STANDBYWFI_KFC 0x1084 2598c2ecf20Sopenharmony_ci#define INTR_SPREAD_BLOCKING_DURATION_KFC 0x1088 2608c2ecf20Sopenharmony_ci#define CMU_KFC_SPARE0 0x2000 2618c2ecf20Sopenharmony_ci#define CMU_KFC_SPARE1 0x2004 2628c2ecf20Sopenharmony_ci#define CMU_KFC_SPARE2 0x2008 2638c2ecf20Sopenharmony_ci#define CMU_KFC_SPARE3 0x200c 2648c2ecf20Sopenharmony_ci#define CMU_KFC_SPARE4 0x2010 2658c2ecf20Sopenharmony_ci 2668c2ecf20Sopenharmony_ci/* 2678c2ecf20Sopenharmony_ci*Registers for CMU_MFC 2688c2ecf20Sopenharmony_ci*/ 2698c2ecf20Sopenharmony_ci#define MUX_SEL_MFC 0x0200 2708c2ecf20Sopenharmony_ci#define MUX_ENABLE_MFC 0x0300 2718c2ecf20Sopenharmony_ci#define MUX_STAT_MFC 0x0400 2728c2ecf20Sopenharmony_ci#define DIV_MFC 0x0600 2738c2ecf20Sopenharmony_ci#define DIV_STAT_MFC 0x0700 2748c2ecf20Sopenharmony_ci#define EN_ACLK_MFC 0x0800 2758c2ecf20Sopenharmony_ci#define EN_ACLK_SECURE_SMMU2_MFC 0x0804 2768c2ecf20Sopenharmony_ci#define EN_PCLK_MFC 0x0900 2778c2ecf20Sopenharmony_ci#define EN_PCLK_SECURE_SMMU2_MFC 0x0904 2788c2ecf20Sopenharmony_ci#define EN_IP_MFC 0x0b00 2798c2ecf20Sopenharmony_ci#define EN_IP_MFC_SECURE_SMMU2_MFC 0x0b04 2808c2ecf20Sopenharmony_ci 2818c2ecf20Sopenharmony_ci/* 2828c2ecf20Sopenharmony_ci*Registers for CMU_MIF 2838c2ecf20Sopenharmony_ci*/ 2848c2ecf20Sopenharmony_ci#define MEM_PLL_LOCK 0x0000 2858c2ecf20Sopenharmony_ci#define BUS_PLL_LOCK 0x0004 2868c2ecf20Sopenharmony_ci#define MEDIA_PLL_LOCK 0x0008 2878c2ecf20Sopenharmony_ci#define MEM_PLL_CON0 0x0100 2888c2ecf20Sopenharmony_ci#define MEM_PLL_CON1 0x0104 2898c2ecf20Sopenharmony_ci#define MEM_PLL_FDET 0x010c 2908c2ecf20Sopenharmony_ci#define BUS_PLL_CON0 0x0110 2918c2ecf20Sopenharmony_ci#define BUS_PLL_CON1 0x0114 2928c2ecf20Sopenharmony_ci#define BUS_PLL_FDET 0x011c 2938c2ecf20Sopenharmony_ci#define MEDIA_PLL_CON0 0x0120 2948c2ecf20Sopenharmony_ci#define MEDIA_PLL_CON1 0x0124 2958c2ecf20Sopenharmony_ci#define MEDIA_PLL_FDET 0x012c 2968c2ecf20Sopenharmony_ci#define MUX_SEL_MIF 0x0200 2978c2ecf20Sopenharmony_ci#define MUX_ENABLE_MIF 0x0300 2988c2ecf20Sopenharmony_ci#define MUX_STAT_MIF 0x0400 2998c2ecf20Sopenharmony_ci#define MUX_IGNORE_MIF 0x0500 3008c2ecf20Sopenharmony_ci#define DIV_MIF 0x0600 3018c2ecf20Sopenharmony_ci#define DIV_MIF_PLL_FDET 0x0604 3028c2ecf20Sopenharmony_ci#define DIV_STAT_MIF 0x0700 3038c2ecf20Sopenharmony_ci#define DIV_STAT_MIF_PLL_FDET 0x0704 3048c2ecf20Sopenharmony_ci#define EN_ACLK_MIF 0x0800 3058c2ecf20Sopenharmony_ci#define EN_ACLK_MIF_SECURE_DREX1_TZ 0x0804 3068c2ecf20Sopenharmony_ci#define EN_ACLK_MIF_SECURE_DREX0_TZ 0x0808 3078c2ecf20Sopenharmony_ci#define EN_ACLK_MIF_SECURE_INTMEM 0x080c 3088c2ecf20Sopenharmony_ci#define EN_PCLK_MIF 0x0900 3098c2ecf20Sopenharmony_ci#define EN_PCLK_MIF_SECURE_MONOCNT 0x0904 3108c2ecf20Sopenharmony_ci#define EN_PCLK_MIF_SECURE_RTC_APBIF 0x0908 3118c2ecf20Sopenharmony_ci#define EN_PCLK_MIF_SECURE_DREX1_TZ 0x090c 3128c2ecf20Sopenharmony_ci#define EN_PCLK_MIF_SECURE_DREX0_TZ 0x0910 3138c2ecf20Sopenharmony_ci#define EN_SCLK_MIF 0x0a00 3148c2ecf20Sopenharmony_ci#define EN_IP_MIF 0x0b00 3158c2ecf20Sopenharmony_ci#define EN_IP_MIF_SECURE_MONOCNT 0x0b04 3168c2ecf20Sopenharmony_ci#define EN_IP_MIF_SECURE_RTC_APBIF 0x0b08 3178c2ecf20Sopenharmony_ci#define EN_IP_MIF_SECURE_DREX1_TZ 0x0b0c 3188c2ecf20Sopenharmony_ci#define EN_IP_MIF_SECURE_DREX0_TZ 0x0b10 3198c2ecf20Sopenharmony_ci#define EN_IP_MIF_SECURE_INTEMEM 0x0b14 3208c2ecf20Sopenharmony_ci#define CLKOUT_CMU_MIF_DIV_STAT 0x0c04 3218c2ecf20Sopenharmony_ci#define DREX_FREQ_CTRL 0x1000 3228c2ecf20Sopenharmony_ci#define PAUSE 0x1004 3238c2ecf20Sopenharmony_ci#define DDRPHY_LOCK_CTRL 0x1008 3248c2ecf20Sopenharmony_ci#define CLKOUT_CMU_MIF 0xcb00 3258c2ecf20Sopenharmony_ci 3268c2ecf20Sopenharmony_ci/* 3278c2ecf20Sopenharmony_ci*Registers for CMU_PERI 3288c2ecf20Sopenharmony_ci*/ 3298c2ecf20Sopenharmony_ci#define MUX_SEL_PERI 0x0200 3308c2ecf20Sopenharmony_ci#define MUX_SEL_PERI1 0x0204 3318c2ecf20Sopenharmony_ci#define MUX_ENABLE_PERI 0x0300 3328c2ecf20Sopenharmony_ci#define MUX_ENABLE_PERI1 0x0304 3338c2ecf20Sopenharmony_ci#define MUX_STAT_PERI 0x0400 3348c2ecf20Sopenharmony_ci#define MUX_STAT_PERI1 0x0404 3358c2ecf20Sopenharmony_ci#define MUX_IGNORE_PERI 0x0500 3368c2ecf20Sopenharmony_ci#define MUX_IGNORE_PERI1 0x0504 3378c2ecf20Sopenharmony_ci#define DIV_PERI 0x0600 3388c2ecf20Sopenharmony_ci#define DIV_STAT_PERI 0x0700 3398c2ecf20Sopenharmony_ci#define EN_PCLK_PERI0 0x0800 3408c2ecf20Sopenharmony_ci#define EN_PCLK_PERI1 0x0804 3418c2ecf20Sopenharmony_ci#define EN_PCLK_PERI2 0x0808 3428c2ecf20Sopenharmony_ci#define EN_PCLK_PERI3 0x080c 3438c2ecf20Sopenharmony_ci#define EN_PCLK_PERI_SECURE_CHIPID 0x0810 3448c2ecf20Sopenharmony_ci#define EN_PCLK_PERI_SECURE_PROVKEY0 0x0814 3458c2ecf20Sopenharmony_ci#define EN_PCLK_PERI_SECURE_PROVKEY1 0x0818 3468c2ecf20Sopenharmony_ci#define EN_PCLK_PERI_SECURE_SECKEY 0x081c 3478c2ecf20Sopenharmony_ci#define EN_PCLK_PERI_SECURE_ANTIRBKCNT 0x0820 3488c2ecf20Sopenharmony_ci#define EN_PCLK_PERI_SECURE_TOP_RTC 0x0824 3498c2ecf20Sopenharmony_ci#define EN_PCLK_PERI_SECURE_TZPC 0x0828 3508c2ecf20Sopenharmony_ci#define EN_SCLK_PERI 0x0a00 3518c2ecf20Sopenharmony_ci#define EN_SCLK_PERI_SECURE_TOP_RTC 0x0a04 3528c2ecf20Sopenharmony_ci#define EN_IP_PERI0 0x0b00 3538c2ecf20Sopenharmony_ci#define EN_IP_PERI1 0x0b04 3548c2ecf20Sopenharmony_ci#define EN_IP_PERI2 0x0b08 3558c2ecf20Sopenharmony_ci#define EN_IP_PERI_SECURE_CHIPID 0x0b0c 3568c2ecf20Sopenharmony_ci#define EN_IP_PERI_SECURE_PROVKEY0 0x0b10 3578c2ecf20Sopenharmony_ci#define EN_IP_PERI_SECURE_PROVKEY1 0x0b14 3588c2ecf20Sopenharmony_ci#define EN_IP_PERI_SECURE_SECKEY 0x0b18 3598c2ecf20Sopenharmony_ci#define EN_IP_PERI_SECURE_ANTIRBKCNT 0x0b1c 3608c2ecf20Sopenharmony_ci#define EN_IP_PERI_SECURE_TOP_RTC 0x0b20 3618c2ecf20Sopenharmony_ci#define EN_IP_PERI_SECURE_TZPC 0x0b24 3628c2ecf20Sopenharmony_ci 3638c2ecf20Sopenharmony_ci/* 3648c2ecf20Sopenharmony_ci*Registers for CMU_TOP 3658c2ecf20Sopenharmony_ci*/ 3668c2ecf20Sopenharmony_ci#define DISP_PLL_LOCK 0x0000 3678c2ecf20Sopenharmony_ci#define AUD_PLL_LOCK 0x0004 3688c2ecf20Sopenharmony_ci#define DISP_PLL_CON0 0x0100 3698c2ecf20Sopenharmony_ci#define DISP_PLL_CON1 0x0104 3708c2ecf20Sopenharmony_ci#define DISP_PLL_FDET 0x0108 3718c2ecf20Sopenharmony_ci#define AUD_PLL_CON0 0x0110 3728c2ecf20Sopenharmony_ci#define AUD_PLL_CON1 0x0114 3738c2ecf20Sopenharmony_ci#define AUD_PLL_CON2 0x0118 3748c2ecf20Sopenharmony_ci#define AUD_PLL_FDET 0x011c 3758c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_PLL0 0x0200 3768c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_MFC 0x0204 3778c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_G2D 0x0208 3788c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_GSCL 0x020c 3798c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_ISP10 0x0214 3808c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_ISP11 0x0218 3818c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_DISP0 0x021c 3828c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_DISP1 0x0220 3838c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_BUS 0x0224 3848c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_PERI0 0x0228 3858c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_PERI1 0x022c 3868c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_FSYS 0x0230 3878c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_PLL0 0x0300 3888c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_MFC 0x0304 3898c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_G2D 0x0308 3908c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_GSCL 0x030c 3918c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_ISP10 0x0314 3928c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_ISP11 0x0318 3938c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_DISP0 0x031c 3948c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_DISP1 0x0320 3958c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_BUS 0x0324 3968c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_PERI0 0x0328 3978c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_PERI1 0x032c 3988c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_FSYS 0x0330 3998c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_PLL0 0x0400 4008c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_MFC 0x0404 4018c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_G2D 0x0408 4028c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_GSCL 0x040c 4038c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_ISP10 0x0414 4048c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_ISP11 0x0418 4058c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_DISP0 0x041c 4068c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_DISP1 0x0420 4078c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_BUS 0x0424 4088c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_PERI0 0x0428 4098c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_PERI1 0x042c 4108c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_FSYS 0x0430 4118c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_PLL0 0x0500 4128c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_MFC 0x0504 4138c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_G2D 0x0508 4148c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_GSCL 0x050c 4158c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_ISP10 0x0514 4168c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_ISP11 0x0518 4178c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_DISP0 0x051c 4188c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_DISP1 0x0520 4198c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_BUS 0x0524 4208c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_PERI0 0x0528 4218c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_PERI1 0x052c 4228c2ecf20Sopenharmony_ci#define MUX_IGNORE_TOP_FSYS 0x0530 4238c2ecf20Sopenharmony_ci#define DIV_TOP_G2D_MFC 0x0600 4248c2ecf20Sopenharmony_ci#define DIV_TOP_GSCL_ISP0 0x0604 4258c2ecf20Sopenharmony_ci#define DIV_TOP_ISP10 0x0608 4268c2ecf20Sopenharmony_ci#define DIV_TOP_ISP11 0x060c 4278c2ecf20Sopenharmony_ci#define DIV_TOP_DISP 0x0610 4288c2ecf20Sopenharmony_ci#define DIV_TOP_BUS 0x0614 4298c2ecf20Sopenharmony_ci#define DIV_TOP_PERI0 0x0618 4308c2ecf20Sopenharmony_ci#define DIV_TOP_PERI1 0x061c 4318c2ecf20Sopenharmony_ci#define DIV_TOP_PERI2 0x0620 4328c2ecf20Sopenharmony_ci#define DIV_TOP_FSYS0 0x0624 4338c2ecf20Sopenharmony_ci#define DIV_TOP_FSYS1 0x0628 4348c2ecf20Sopenharmony_ci#define DIV_TOP_HPM 0x062c 4358c2ecf20Sopenharmony_ci#define DIV_TOP_PLL_FDET 0x0630 4368c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_G2D_MFC 0x0700 4378c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_GSCL_ISP0 0x0704 4388c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_ISP10 0x0708 4398c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_ISP11 0x070c 4408c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_DISP 0x0710 4418c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_BUS 0x0714 4428c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_PERI0 0x0718 4438c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_PERI1 0x071c 4448c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_PERI2 0x0720 4458c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_FSYS0 0x0724 4468c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_FSYS1 0x0728 4478c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_HPM 0x072c 4488c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_PLL_FDET 0x0730 4498c2ecf20Sopenharmony_ci#define EN_ACLK_TOP 0x0800 4508c2ecf20Sopenharmony_ci#define EN_SCLK_TOP 0x0a00 4518c2ecf20Sopenharmony_ci#define EN_IP_TOP 0x0b00 4528c2ecf20Sopenharmony_ci#define CLKOUT_CMU_TOP 0x0c00 4538c2ecf20Sopenharmony_ci#define CLKOUT_CMU_TOP_DIV_STAT 0x0c04 4548c2ecf20Sopenharmony_ci 4558c2ecf20Sopenharmony_ci#endif /*__CLK_EXYNOS5260_H */ 4568c2ecf20Sopenharmony_ci 457