18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2014 Samsung Electronics Co., Ltd. 48c2ecf20Sopenharmony_ci * Author: Chanwoo Choi <cw00.choi@samsung.com> 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Common Clock Framework support for Exynos5433 SoC. 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include <linux/clk.h> 108c2ecf20Sopenharmony_ci#include <linux/clk-provider.h> 118c2ecf20Sopenharmony_ci#include <linux/of.h> 128c2ecf20Sopenharmony_ci#include <linux/of_address.h> 138c2ecf20Sopenharmony_ci#include <linux/of_device.h> 148c2ecf20Sopenharmony_ci#include <linux/platform_device.h> 158c2ecf20Sopenharmony_ci#include <linux/pm_runtime.h> 168c2ecf20Sopenharmony_ci#include <linux/slab.h> 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#include <dt-bindings/clock/exynos5433.h> 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#include "clk.h" 218c2ecf20Sopenharmony_ci#include "clk-cpu.h" 228c2ecf20Sopenharmony_ci#include "clk-pll.h" 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci/* 258c2ecf20Sopenharmony_ci * Register offset definitions for CMU_TOP 268c2ecf20Sopenharmony_ci */ 278c2ecf20Sopenharmony_ci#define ISP_PLL_LOCK 0x0000 288c2ecf20Sopenharmony_ci#define AUD_PLL_LOCK 0x0004 298c2ecf20Sopenharmony_ci#define ISP_PLL_CON0 0x0100 308c2ecf20Sopenharmony_ci#define ISP_PLL_CON1 0x0104 318c2ecf20Sopenharmony_ci#define ISP_PLL_FREQ_DET 0x0108 328c2ecf20Sopenharmony_ci#define AUD_PLL_CON0 0x0110 338c2ecf20Sopenharmony_ci#define AUD_PLL_CON1 0x0114 348c2ecf20Sopenharmony_ci#define AUD_PLL_CON2 0x0118 358c2ecf20Sopenharmony_ci#define AUD_PLL_FREQ_DET 0x011c 368c2ecf20Sopenharmony_ci#define MUX_SEL_TOP0 0x0200 378c2ecf20Sopenharmony_ci#define MUX_SEL_TOP1 0x0204 388c2ecf20Sopenharmony_ci#define MUX_SEL_TOP2 0x0208 398c2ecf20Sopenharmony_ci#define MUX_SEL_TOP3 0x020c 408c2ecf20Sopenharmony_ci#define MUX_SEL_TOP4 0x0210 418c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_MSCL 0x0220 428c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_CAM1 0x0224 438c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_DISP 0x0228 448c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_FSYS0 0x0230 458c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_FSYS1 0x0234 468c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_PERIC0 0x0238 478c2ecf20Sopenharmony_ci#define MUX_SEL_TOP_PERIC1 0x023c 488c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP0 0x0300 498c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP1 0x0304 508c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP2 0x0308 518c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP3 0x030c 528c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP4 0x0310 538c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_MSCL 0x0320 548c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_CAM1 0x0324 558c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_DISP 0x0328 568c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_FSYS0 0x0330 578c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_FSYS1 0x0334 588c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_PERIC0 0x0338 598c2ecf20Sopenharmony_ci#define MUX_ENABLE_TOP_PERIC1 0x033c 608c2ecf20Sopenharmony_ci#define MUX_STAT_TOP0 0x0400 618c2ecf20Sopenharmony_ci#define MUX_STAT_TOP1 0x0404 628c2ecf20Sopenharmony_ci#define MUX_STAT_TOP2 0x0408 638c2ecf20Sopenharmony_ci#define MUX_STAT_TOP3 0x040c 648c2ecf20Sopenharmony_ci#define MUX_STAT_TOP4 0x0410 658c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_MSCL 0x0420 668c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_CAM1 0x0424 678c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_FSYS0 0x0430 688c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_FSYS1 0x0434 698c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_PERIC0 0x0438 708c2ecf20Sopenharmony_ci#define MUX_STAT_TOP_PERIC1 0x043c 718c2ecf20Sopenharmony_ci#define DIV_TOP0 0x0600 728c2ecf20Sopenharmony_ci#define DIV_TOP1 0x0604 738c2ecf20Sopenharmony_ci#define DIV_TOP2 0x0608 748c2ecf20Sopenharmony_ci#define DIV_TOP3 0x060c 758c2ecf20Sopenharmony_ci#define DIV_TOP4 0x0610 768c2ecf20Sopenharmony_ci#define DIV_TOP_MSCL 0x0618 778c2ecf20Sopenharmony_ci#define DIV_TOP_CAM10 0x061c 788c2ecf20Sopenharmony_ci#define DIV_TOP_CAM11 0x0620 798c2ecf20Sopenharmony_ci#define DIV_TOP_FSYS0 0x062c 808c2ecf20Sopenharmony_ci#define DIV_TOP_FSYS1 0x0630 818c2ecf20Sopenharmony_ci#define DIV_TOP_FSYS2 0x0634 828c2ecf20Sopenharmony_ci#define DIV_TOP_PERIC0 0x0638 838c2ecf20Sopenharmony_ci#define DIV_TOP_PERIC1 0x063c 848c2ecf20Sopenharmony_ci#define DIV_TOP_PERIC2 0x0640 858c2ecf20Sopenharmony_ci#define DIV_TOP_PERIC3 0x0644 868c2ecf20Sopenharmony_ci#define DIV_TOP_PERIC4 0x0648 878c2ecf20Sopenharmony_ci#define DIV_TOP_PLL_FREQ_DET 0x064c 888c2ecf20Sopenharmony_ci#define DIV_STAT_TOP0 0x0700 898c2ecf20Sopenharmony_ci#define DIV_STAT_TOP1 0x0704 908c2ecf20Sopenharmony_ci#define DIV_STAT_TOP2 0x0708 918c2ecf20Sopenharmony_ci#define DIV_STAT_TOP3 0x070c 928c2ecf20Sopenharmony_ci#define DIV_STAT_TOP4 0x0710 938c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_MSCL 0x0718 948c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_CAM10 0x071c 958c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_CAM11 0x0720 968c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_FSYS0 0x072c 978c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_FSYS1 0x0730 988c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_FSYS2 0x0734 998c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_PERIC0 0x0738 1008c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_PERIC1 0x073c 1018c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_PERIC2 0x0740 1028c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_PERIC3 0x0744 1038c2ecf20Sopenharmony_ci#define DIV_STAT_TOP_PLL_FREQ_DET 0x074c 1048c2ecf20Sopenharmony_ci#define ENABLE_ACLK_TOP 0x0800 1058c2ecf20Sopenharmony_ci#define ENABLE_SCLK_TOP 0x0a00 1068c2ecf20Sopenharmony_ci#define ENABLE_SCLK_TOP_MSCL 0x0a04 1078c2ecf20Sopenharmony_ci#define ENABLE_SCLK_TOP_CAM1 0x0a08 1088c2ecf20Sopenharmony_ci#define ENABLE_SCLK_TOP_DISP 0x0a0c 1098c2ecf20Sopenharmony_ci#define ENABLE_SCLK_TOP_FSYS 0x0a10 1108c2ecf20Sopenharmony_ci#define ENABLE_SCLK_TOP_PERIC 0x0a14 1118c2ecf20Sopenharmony_ci#define ENABLE_IP_TOP 0x0b00 1128c2ecf20Sopenharmony_ci#define ENABLE_CMU_TOP 0x0c00 1138c2ecf20Sopenharmony_ci#define ENABLE_CMU_TOP_DIV_STAT 0x0c04 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_cistatic const unsigned long top_clk_regs[] __initconst = { 1168c2ecf20Sopenharmony_ci ISP_PLL_LOCK, 1178c2ecf20Sopenharmony_ci AUD_PLL_LOCK, 1188c2ecf20Sopenharmony_ci ISP_PLL_CON0, 1198c2ecf20Sopenharmony_ci ISP_PLL_CON1, 1208c2ecf20Sopenharmony_ci ISP_PLL_FREQ_DET, 1218c2ecf20Sopenharmony_ci AUD_PLL_CON0, 1228c2ecf20Sopenharmony_ci AUD_PLL_CON1, 1238c2ecf20Sopenharmony_ci AUD_PLL_CON2, 1248c2ecf20Sopenharmony_ci AUD_PLL_FREQ_DET, 1258c2ecf20Sopenharmony_ci MUX_SEL_TOP0, 1268c2ecf20Sopenharmony_ci MUX_SEL_TOP1, 1278c2ecf20Sopenharmony_ci MUX_SEL_TOP2, 1288c2ecf20Sopenharmony_ci MUX_SEL_TOP3, 1298c2ecf20Sopenharmony_ci MUX_SEL_TOP4, 1308c2ecf20Sopenharmony_ci MUX_SEL_TOP_MSCL, 1318c2ecf20Sopenharmony_ci MUX_SEL_TOP_CAM1, 1328c2ecf20Sopenharmony_ci MUX_SEL_TOP_DISP, 1338c2ecf20Sopenharmony_ci MUX_SEL_TOP_FSYS0, 1348c2ecf20Sopenharmony_ci MUX_SEL_TOP_FSYS1, 1358c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC0, 1368c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC1, 1378c2ecf20Sopenharmony_ci MUX_ENABLE_TOP0, 1388c2ecf20Sopenharmony_ci MUX_ENABLE_TOP1, 1398c2ecf20Sopenharmony_ci MUX_ENABLE_TOP2, 1408c2ecf20Sopenharmony_ci MUX_ENABLE_TOP3, 1418c2ecf20Sopenharmony_ci MUX_ENABLE_TOP4, 1428c2ecf20Sopenharmony_ci MUX_ENABLE_TOP_MSCL, 1438c2ecf20Sopenharmony_ci MUX_ENABLE_TOP_CAM1, 1448c2ecf20Sopenharmony_ci MUX_ENABLE_TOP_DISP, 1458c2ecf20Sopenharmony_ci MUX_ENABLE_TOP_FSYS0, 1468c2ecf20Sopenharmony_ci MUX_ENABLE_TOP_FSYS1, 1478c2ecf20Sopenharmony_ci MUX_ENABLE_TOP_PERIC0, 1488c2ecf20Sopenharmony_ci MUX_ENABLE_TOP_PERIC1, 1498c2ecf20Sopenharmony_ci DIV_TOP0, 1508c2ecf20Sopenharmony_ci DIV_TOP1, 1518c2ecf20Sopenharmony_ci DIV_TOP2, 1528c2ecf20Sopenharmony_ci DIV_TOP3, 1538c2ecf20Sopenharmony_ci DIV_TOP4, 1548c2ecf20Sopenharmony_ci DIV_TOP_MSCL, 1558c2ecf20Sopenharmony_ci DIV_TOP_CAM10, 1568c2ecf20Sopenharmony_ci DIV_TOP_CAM11, 1578c2ecf20Sopenharmony_ci DIV_TOP_FSYS0, 1588c2ecf20Sopenharmony_ci DIV_TOP_FSYS1, 1598c2ecf20Sopenharmony_ci DIV_TOP_FSYS2, 1608c2ecf20Sopenharmony_ci DIV_TOP_PERIC0, 1618c2ecf20Sopenharmony_ci DIV_TOP_PERIC1, 1628c2ecf20Sopenharmony_ci DIV_TOP_PERIC2, 1638c2ecf20Sopenharmony_ci DIV_TOP_PERIC3, 1648c2ecf20Sopenharmony_ci DIV_TOP_PERIC4, 1658c2ecf20Sopenharmony_ci DIV_TOP_PLL_FREQ_DET, 1668c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 1678c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP, 1688c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_MSCL, 1698c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_CAM1, 1708c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_DISP, 1718c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_FSYS, 1728c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 1738c2ecf20Sopenharmony_ci ENABLE_IP_TOP, 1748c2ecf20Sopenharmony_ci ENABLE_CMU_TOP, 1758c2ecf20Sopenharmony_ci ENABLE_CMU_TOP_DIV_STAT, 1768c2ecf20Sopenharmony_ci}; 1778c2ecf20Sopenharmony_ci 1788c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump top_suspend_regs[] = { 1798c2ecf20Sopenharmony_ci /* force all aclk clocks enabled */ 1808c2ecf20Sopenharmony_ci { ENABLE_ACLK_TOP, 0x67ecffed }, 1818c2ecf20Sopenharmony_ci /* force all sclk_uart clocks enabled */ 1828c2ecf20Sopenharmony_ci { ENABLE_SCLK_TOP_PERIC, 0x38 }, 1838c2ecf20Sopenharmony_ci /* ISP PLL has to be enabled for suspend: reset value + ENABLE bit */ 1848c2ecf20Sopenharmony_ci { ISP_PLL_CON0, 0x85cc0502 }, 1858c2ecf20Sopenharmony_ci /* ISP PLL has to be enabled for suspend: reset value + ENABLE bit */ 1868c2ecf20Sopenharmony_ci { AUD_PLL_CON0, 0x84830202 }, 1878c2ecf20Sopenharmony_ci}; 1888c2ecf20Sopenharmony_ci 1898c2ecf20Sopenharmony_ci/* list of all parent clock list */ 1908c2ecf20Sopenharmony_ciPNAME(mout_aud_pll_p) = { "oscclk", "fout_aud_pll", }; 1918c2ecf20Sopenharmony_ciPNAME(mout_isp_pll_p) = { "oscclk", "fout_isp_pll", }; 1928c2ecf20Sopenharmony_ciPNAME(mout_aud_pll_user_p) = { "oscclk", "mout_aud_pll", }; 1938c2ecf20Sopenharmony_ciPNAME(mout_mphy_pll_user_p) = { "oscclk", "sclk_mphy_pll", }; 1948c2ecf20Sopenharmony_ciPNAME(mout_mfc_pll_user_p) = { "oscclk", "sclk_mfc_pll", }; 1958c2ecf20Sopenharmony_ciPNAME(mout_bus_pll_user_p) = { "oscclk", "sclk_bus_pll", }; 1968c2ecf20Sopenharmony_ciPNAME(mout_bus_pll_user_t_p) = { "oscclk", "mout_bus_pll_user", }; 1978c2ecf20Sopenharmony_ciPNAME(mout_mphy_pll_user_t_p) = { "oscclk", "mout_mphy_pll_user", }; 1988c2ecf20Sopenharmony_ci 1998c2ecf20Sopenharmony_ciPNAME(mout_bus_mfc_pll_user_p) = { "mout_bus_pll_user", "mout_mfc_pll_user",}; 2008c2ecf20Sopenharmony_ciPNAME(mout_mfc_bus_pll_user_p) = { "mout_mfc_pll_user", "mout_bus_pll_user",}; 2018c2ecf20Sopenharmony_ciPNAME(mout_aclk_cam1_552_b_p) = { "mout_aclk_cam1_552_a", 2028c2ecf20Sopenharmony_ci "mout_mfc_pll_user", }; 2038c2ecf20Sopenharmony_ciPNAME(mout_aclk_cam1_552_a_p) = { "mout_isp_pll", "mout_bus_pll_user", }; 2048c2ecf20Sopenharmony_ci 2058c2ecf20Sopenharmony_ciPNAME(mout_aclk_mfc_400_c_p) = { "mout_aclk_mfc_400_b", 2068c2ecf20Sopenharmony_ci "mout_mphy_pll_user", }; 2078c2ecf20Sopenharmony_ciPNAME(mout_aclk_mfc_400_b_p) = { "mout_aclk_mfc_400_a", 2088c2ecf20Sopenharmony_ci "mout_bus_pll_user", }; 2098c2ecf20Sopenharmony_ciPNAME(mout_aclk_mfc_400_a_p) = { "mout_mfc_pll_user", "mout_isp_pll", }; 2108c2ecf20Sopenharmony_ci 2118c2ecf20Sopenharmony_ciPNAME(mout_bus_mphy_pll_user_p) = { "mout_bus_pll_user", 2128c2ecf20Sopenharmony_ci "mout_mphy_pll_user", }; 2138c2ecf20Sopenharmony_ciPNAME(mout_aclk_mscl_b_p) = { "mout_aclk_mscl_400_a", 2148c2ecf20Sopenharmony_ci "mout_mphy_pll_user", }; 2158c2ecf20Sopenharmony_ciPNAME(mout_aclk_g2d_400_b_p) = { "mout_aclk_g2d_400_a", 2168c2ecf20Sopenharmony_ci "mout_mphy_pll_user", }; 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ciPNAME(mout_sclk_jpeg_c_p) = { "mout_sclk_jpeg_b", "mout_mphy_pll_user",}; 2198c2ecf20Sopenharmony_ciPNAME(mout_sclk_jpeg_b_p) = { "mout_sclk_jpeg_a", "mout_mfc_pll_user", }; 2208c2ecf20Sopenharmony_ci 2218c2ecf20Sopenharmony_ciPNAME(mout_sclk_mmc2_b_p) = { "mout_sclk_mmc2_a", "mout_mfc_pll_user",}; 2228c2ecf20Sopenharmony_ciPNAME(mout_sclk_mmc1_b_p) = { "mout_sclk_mmc1_a", "mout_mfc_pll_user",}; 2238c2ecf20Sopenharmony_ciPNAME(mout_sclk_mmc0_d_p) = { "mout_sclk_mmc0_c", "mout_isp_pll", }; 2248c2ecf20Sopenharmony_ciPNAME(mout_sclk_mmc0_c_p) = { "mout_sclk_mmc0_b", "mout_mphy_pll_user",}; 2258c2ecf20Sopenharmony_ciPNAME(mout_sclk_mmc0_b_p) = { "mout_sclk_mmc0_a", "mout_mfc_pll_user", }; 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ciPNAME(mout_sclk_spdif_p) = { "sclk_audio0", "sclk_audio1", 2288c2ecf20Sopenharmony_ci "oscclk", "ioclk_spdif_extclk", }; 2298c2ecf20Sopenharmony_ciPNAME(mout_sclk_audio1_p) = { "ioclk_audiocdclk1", "oscclk", 2308c2ecf20Sopenharmony_ci "mout_aud_pll_user_t",}; 2318c2ecf20Sopenharmony_ciPNAME(mout_sclk_audio0_p) = { "ioclk_audiocdclk0", "oscclk", 2328c2ecf20Sopenharmony_ci "mout_aud_pll_user_t",}; 2338c2ecf20Sopenharmony_ci 2348c2ecf20Sopenharmony_ciPNAME(mout_sclk_hdmi_spdif_p) = { "sclk_audio1", "ioclk_spdif_extclk", }; 2358c2ecf20Sopenharmony_ci 2368c2ecf20Sopenharmony_cistatic const struct samsung_fixed_factor_clock top_fixed_factor_clks[] __initconst = { 2378c2ecf20Sopenharmony_ci FFACTOR(0, "oscclk_efuse_common", "oscclk", 1, 1, 0), 2388c2ecf20Sopenharmony_ci}; 2398c2ecf20Sopenharmony_ci 2408c2ecf20Sopenharmony_cistatic const struct samsung_fixed_rate_clock top_fixed_clks[] __initconst = { 2418c2ecf20Sopenharmony_ci /* Xi2s{0|1}CDCLK input clock for I2S/PCM */ 2428c2ecf20Sopenharmony_ci FRATE(0, "ioclk_audiocdclk1", NULL, 0, 100000000), 2438c2ecf20Sopenharmony_ci FRATE(0, "ioclk_audiocdclk0", NULL, 0, 100000000), 2448c2ecf20Sopenharmony_ci /* Xi2s1SDI input clock for SPDIF */ 2458c2ecf20Sopenharmony_ci FRATE(0, "ioclk_spdif_extclk", NULL, 0, 100000000), 2468c2ecf20Sopenharmony_ci /* XspiCLK[4:0] input clock for SPI */ 2478c2ecf20Sopenharmony_ci FRATE(0, "ioclk_spi4_clk_in", NULL, 0, 50000000), 2488c2ecf20Sopenharmony_ci FRATE(0, "ioclk_spi3_clk_in", NULL, 0, 50000000), 2498c2ecf20Sopenharmony_ci FRATE(0, "ioclk_spi2_clk_in", NULL, 0, 50000000), 2508c2ecf20Sopenharmony_ci FRATE(0, "ioclk_spi1_clk_in", NULL, 0, 50000000), 2518c2ecf20Sopenharmony_ci FRATE(0, "ioclk_spi0_clk_in", NULL, 0, 50000000), 2528c2ecf20Sopenharmony_ci /* Xi2s1SCLK input clock for I2S1_BCLK */ 2538c2ecf20Sopenharmony_ci FRATE(0, "ioclk_i2s1_bclk_in", NULL, 0, 12288000), 2548c2ecf20Sopenharmony_ci}; 2558c2ecf20Sopenharmony_ci 2568c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock top_mux_clks[] __initconst = { 2578c2ecf20Sopenharmony_ci /* MUX_SEL_TOP0 */ 2588c2ecf20Sopenharmony_ci MUX(CLK_MOUT_AUD_PLL, "mout_aud_pll", mout_aud_pll_p, MUX_SEL_TOP0, 2598c2ecf20Sopenharmony_ci 4, 1), 2608c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ISP_PLL, "mout_isp_pll", mout_isp_pll_p, MUX_SEL_TOP0, 2618c2ecf20Sopenharmony_ci 0, 1), 2628c2ecf20Sopenharmony_ci 2638c2ecf20Sopenharmony_ci /* MUX_SEL_TOP1 */ 2648c2ecf20Sopenharmony_ci MUX(CLK_MOUT_AUD_PLL_USER_T, "mout_aud_pll_user_t", 2658c2ecf20Sopenharmony_ci mout_aud_pll_user_p, MUX_SEL_TOP1, 12, 1), 2668c2ecf20Sopenharmony_ci MUX(CLK_MOUT_MPHY_PLL_USER, "mout_mphy_pll_user", mout_mphy_pll_user_p, 2678c2ecf20Sopenharmony_ci MUX_SEL_TOP1, 8, 1), 2688c2ecf20Sopenharmony_ci MUX(CLK_MOUT_MFC_PLL_USER, "mout_mfc_pll_user", mout_mfc_pll_user_p, 2698c2ecf20Sopenharmony_ci MUX_SEL_TOP1, 4, 1), 2708c2ecf20Sopenharmony_ci MUX(CLK_MOUT_BUS_PLL_USER, "mout_bus_pll_user", mout_bus_pll_user_p, 2718c2ecf20Sopenharmony_ci MUX_SEL_TOP1, 0, 1), 2728c2ecf20Sopenharmony_ci 2738c2ecf20Sopenharmony_ci /* MUX_SEL_TOP2 */ 2748c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_HEVC_400, "mout_aclk_hevc_400", 2758c2ecf20Sopenharmony_ci mout_bus_mfc_pll_user_p, MUX_SEL_TOP2, 28, 1), 2768c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CAM1_333, "mout_aclk_cam1_333", 2778c2ecf20Sopenharmony_ci mout_mfc_bus_pll_user_p, MUX_SEL_TOP2, 16, 1), 2788c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CAM1_552_B, "mout_aclk_cam1_552_b", 2798c2ecf20Sopenharmony_ci mout_aclk_cam1_552_b_p, MUX_SEL_TOP2, 12, 1), 2808c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CAM1_552_A, "mout_aclk_cam1_552_a", 2818c2ecf20Sopenharmony_ci mout_aclk_cam1_552_a_p, MUX_SEL_TOP2, 8, 1), 2828c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_ISP_DIS_400, "mout_aclk_isp_dis_400", 2838c2ecf20Sopenharmony_ci mout_bus_mfc_pll_user_p, MUX_SEL_TOP2, 4, 1), 2848c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_ISP_400, "mout_aclk_isp_400", 2858c2ecf20Sopenharmony_ci mout_bus_mfc_pll_user_p, MUX_SEL_TOP2, 0, 1), 2868c2ecf20Sopenharmony_ci 2878c2ecf20Sopenharmony_ci /* MUX_SEL_TOP3 */ 2888c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_BUS0_400, "mout_aclk_bus0_400", 2898c2ecf20Sopenharmony_ci mout_bus_mphy_pll_user_p, MUX_SEL_TOP3, 20, 1), 2908c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_MSCL_400_B, "mout_aclk_mscl_400_b", 2918c2ecf20Sopenharmony_ci mout_aclk_mscl_b_p, MUX_SEL_TOP3, 16, 1), 2928c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_MSCL_400_A, "mout_aclk_mscl_400_a", 2938c2ecf20Sopenharmony_ci mout_bus_mfc_pll_user_p, MUX_SEL_TOP3, 12, 1), 2948c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_GSCL_333, "mout_aclk_gscl_333", 2958c2ecf20Sopenharmony_ci mout_mfc_bus_pll_user_p, MUX_SEL_TOP3, 8, 1), 2968c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_G2D_400_B, "mout_aclk_g2d_400_b", 2978c2ecf20Sopenharmony_ci mout_aclk_g2d_400_b_p, MUX_SEL_TOP3, 4, 1), 2988c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_G2D_400_A, "mout_aclk_g2d_400_a", 2998c2ecf20Sopenharmony_ci mout_bus_mfc_pll_user_p, MUX_SEL_TOP3, 0, 1), 3008c2ecf20Sopenharmony_ci 3018c2ecf20Sopenharmony_ci /* MUX_SEL_TOP4 */ 3028c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_MFC_400_C, "mout_aclk_mfc_400_c", 3038c2ecf20Sopenharmony_ci mout_aclk_mfc_400_c_p, MUX_SEL_TOP4, 8, 1), 3048c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_MFC_400_B, "mout_aclk_mfc_400_b", 3058c2ecf20Sopenharmony_ci mout_aclk_mfc_400_b_p, MUX_SEL_TOP4, 4, 1), 3068c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_MFC_400_A, "mout_aclk_mfc_400_a", 3078c2ecf20Sopenharmony_ci mout_aclk_mfc_400_a_p, MUX_SEL_TOP4, 0, 1), 3088c2ecf20Sopenharmony_ci 3098c2ecf20Sopenharmony_ci /* MUX_SEL_TOP_MSCL */ 3108c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_JPEG_C, "mout_sclk_jpeg_c", mout_sclk_jpeg_c_p, 3118c2ecf20Sopenharmony_ci MUX_SEL_TOP_MSCL, 8, 1), 3128c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_JPEG_B, "mout_sclk_jpeg_b", mout_sclk_jpeg_b_p, 3138c2ecf20Sopenharmony_ci MUX_SEL_TOP_MSCL, 4, 1), 3148c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_JPEG_A, "mout_sclk_jpeg_a", mout_bus_pll_user_t_p, 3158c2ecf20Sopenharmony_ci MUX_SEL_TOP_MSCL, 0, 1), 3168c2ecf20Sopenharmony_ci 3178c2ecf20Sopenharmony_ci /* MUX_SEL_TOP_CAM1 */ 3188c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_ISP_SENSOR2, "mout_sclk_isp_sensor2", 3198c2ecf20Sopenharmony_ci mout_bus_pll_user_t_p, MUX_SEL_TOP_CAM1, 24, 1), 3208c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_ISP_SENSOR1, "mout_sclk_isp_sensor1", 3218c2ecf20Sopenharmony_ci mout_bus_pll_user_t_p, MUX_SEL_TOP_CAM1, 20, 1), 3228c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_ISP_SENSOR0, "mout_sclk_isp_sensor0", 3238c2ecf20Sopenharmony_ci mout_bus_pll_user_t_p, MUX_SEL_TOP_CAM1, 16, 1), 3248c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_ISP_UART, "mout_sclk_isp_uart", 3258c2ecf20Sopenharmony_ci mout_bus_pll_user_t_p, MUX_SEL_TOP_CAM1, 8, 1), 3268c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_ISP_SPI1, "mout_sclk_isp_spi1", 3278c2ecf20Sopenharmony_ci mout_bus_pll_user_t_p, MUX_SEL_TOP_CAM1, 4, 1), 3288c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_ISP_SPI0, "mout_sclk_isp_spi0", 3298c2ecf20Sopenharmony_ci mout_bus_pll_user_t_p, MUX_SEL_TOP_CAM1, 0, 1), 3308c2ecf20Sopenharmony_ci 3318c2ecf20Sopenharmony_ci /* MUX_SEL_TOP_FSYS0 */ 3328c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MMC2_B, "mout_sclk_mmc2_b", mout_sclk_mmc2_b_p, 3338c2ecf20Sopenharmony_ci MUX_SEL_TOP_FSYS0, 28, 1), 3348c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MMC2_A, "mout_sclk_mmc2_a", mout_bus_pll_user_t_p, 3358c2ecf20Sopenharmony_ci MUX_SEL_TOP_FSYS0, 24, 1), 3368c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MMC1_B, "mout_sclk_mmc1_b", mout_sclk_mmc1_b_p, 3378c2ecf20Sopenharmony_ci MUX_SEL_TOP_FSYS0, 20, 1), 3388c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MMC1_A, "mout_sclk_mmc1_a", mout_bus_pll_user_t_p, 3398c2ecf20Sopenharmony_ci MUX_SEL_TOP_FSYS0, 16, 1), 3408c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MMC0_D, "mout_sclk_mmc0_d", mout_sclk_mmc0_d_p, 3418c2ecf20Sopenharmony_ci MUX_SEL_TOP_FSYS0, 12, 1), 3428c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MMC0_C, "mout_sclk_mmc0_c", mout_sclk_mmc0_c_p, 3438c2ecf20Sopenharmony_ci MUX_SEL_TOP_FSYS0, 8, 1), 3448c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MMC0_B, "mout_sclk_mmc0_b", mout_sclk_mmc0_b_p, 3458c2ecf20Sopenharmony_ci MUX_SEL_TOP_FSYS0, 4, 1), 3468c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MMC0_A, "mout_sclk_mmc0_a", mout_bus_pll_user_t_p, 3478c2ecf20Sopenharmony_ci MUX_SEL_TOP_FSYS0, 0, 1), 3488c2ecf20Sopenharmony_ci 3498c2ecf20Sopenharmony_ci /* MUX_SEL_TOP_FSYS1 */ 3508c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_PCIE_100, "mout_sclk_pcie_100", mout_bus_pll_user_t_p, 3518c2ecf20Sopenharmony_ci MUX_SEL_TOP_FSYS1, 12, 1), 3528c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_UFSUNIPRO, "mout_sclk_ufsunipro", 3538c2ecf20Sopenharmony_ci mout_mphy_pll_user_t_p, MUX_SEL_TOP_FSYS1, 8, 1), 3548c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_USBHOST30, "mout_sclk_usbhost30", 3558c2ecf20Sopenharmony_ci mout_bus_pll_user_t_p, MUX_SEL_TOP_FSYS1, 4, 1), 3568c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_USBDRD30, "mout_sclk_usbdrd30", 3578c2ecf20Sopenharmony_ci mout_bus_pll_user_t_p, MUX_SEL_TOP_FSYS1, 0, 1), 3588c2ecf20Sopenharmony_ci 3598c2ecf20Sopenharmony_ci /* MUX_SEL_TOP_PERIC0 */ 3608c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_SPI4, "mout_sclk_spi4", mout_bus_pll_user_t_p, 3618c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC0, 28, 1), 3628c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_SPI3, "mout_sclk_spi3", mout_bus_pll_user_t_p, 3638c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC0, 24, 1), 3648c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_UART2, "mout_sclk_uart2", mout_bus_pll_user_t_p, 3658c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC0, 20, 1), 3668c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_UART1, "mout_sclk_uart1", mout_bus_pll_user_t_p, 3678c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC0, 16, 1), 3688c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_UART0, "mout_sclk_uart0", mout_bus_pll_user_t_p, 3698c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC0, 12, 1), 3708c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_SPI2, "mout_sclk_spi2", mout_bus_pll_user_t_p, 3718c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC0, 8, 1), 3728c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_SPI1, "mout_sclk_spi1", mout_bus_pll_user_t_p, 3738c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC0, 4, 1), 3748c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_SPI0, "mout_sclk_spi0", mout_bus_pll_user_t_p, 3758c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC0, 0, 1), 3768c2ecf20Sopenharmony_ci 3778c2ecf20Sopenharmony_ci /* MUX_SEL_TOP_PERIC1 */ 3788c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_SLIMBUS, "mout_sclk_slimbus", mout_aud_pll_user_p, 3798c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC1, 16, 1), 3808c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_SPDIF, "mout_sclk_spdif", mout_sclk_spdif_p, 3818c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC1, 12, 2), 3828c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_AUDIO1, "mout_sclk_audio1", mout_sclk_audio1_p, 3838c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC1, 4, 2), 3848c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_AUDIO0, "mout_sclk_audio0", mout_sclk_audio0_p, 3858c2ecf20Sopenharmony_ci MUX_SEL_TOP_PERIC1, 0, 2), 3868c2ecf20Sopenharmony_ci 3878c2ecf20Sopenharmony_ci /* MUX_SEL_TOP_DISP */ 3888c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_HDMI_SPDIF, "mout_sclk_hdmi_spdif", 3898c2ecf20Sopenharmony_ci mout_sclk_hdmi_spdif_p, MUX_SEL_TOP_DISP, 0, 1), 3908c2ecf20Sopenharmony_ci}; 3918c2ecf20Sopenharmony_ci 3928c2ecf20Sopenharmony_cistatic const struct samsung_div_clock top_div_clks[] __initconst = { 3938c2ecf20Sopenharmony_ci /* DIV_TOP0 */ 3948c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CAM1_333, "div_aclk_cam1_333", "mout_aclk_cam1_333", 3958c2ecf20Sopenharmony_ci DIV_TOP0, 28, 3), 3968c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CAM1_400, "div_aclk_cam1_400", "mout_bus_pll_user", 3978c2ecf20Sopenharmony_ci DIV_TOP0, 24, 3), 3988c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CAM1_552, "div_aclk_cam1_552", "mout_aclk_cam1_552_b", 3998c2ecf20Sopenharmony_ci DIV_TOP0, 20, 3), 4008c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CAM0_333, "div_aclk_cam0_333", "mout_mfc_pll_user", 4018c2ecf20Sopenharmony_ci DIV_TOP0, 16, 3), 4028c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CAM0_400, "div_aclk_cam0_400", "mout_bus_pll_user", 4038c2ecf20Sopenharmony_ci DIV_TOP0, 12, 3), 4048c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CAM0_552, "div_aclk_cam0_552", "mout_isp_pll", 4058c2ecf20Sopenharmony_ci DIV_TOP0, 8, 3), 4068c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_ISP_DIS_400, "div_aclk_isp_dis_400", 4078c2ecf20Sopenharmony_ci "mout_aclk_isp_dis_400", DIV_TOP0, 4, 4), 4088c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_ISP_400, "div_aclk_isp_400", 4098c2ecf20Sopenharmony_ci "mout_aclk_isp_400", DIV_TOP0, 0, 4), 4108c2ecf20Sopenharmony_ci 4118c2ecf20Sopenharmony_ci /* DIV_TOP1 */ 4128c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_GSCL_111, "div_aclk_gscl_111", "mout_aclk_gscl_333", 4138c2ecf20Sopenharmony_ci DIV_TOP1, 28, 3), 4148c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_GSCL_333, "div_aclk_gscl_333", "mout_aclk_gscl_333", 4158c2ecf20Sopenharmony_ci DIV_TOP1, 24, 3), 4168c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_HEVC_400, "div_aclk_hevc_400", "mout_aclk_hevc_400", 4178c2ecf20Sopenharmony_ci DIV_TOP1, 20, 3), 4188c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_MFC_400, "div_aclk_mfc_400", "mout_aclk_mfc_400_c", 4198c2ecf20Sopenharmony_ci DIV_TOP1, 12, 3), 4208c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_G2D_266, "div_aclk_g2d_266", "mout_bus_pll_user", 4218c2ecf20Sopenharmony_ci DIV_TOP1, 8, 3), 4228c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_G2D_400, "div_aclk_g2d_400", "mout_aclk_g2d_400_b", 4238c2ecf20Sopenharmony_ci DIV_TOP1, 0, 3), 4248c2ecf20Sopenharmony_ci 4258c2ecf20Sopenharmony_ci /* DIV_TOP2 */ 4268c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_MSCL_400, "div_aclk_mscl_400", "mout_aclk_mscl_400_b", 4278c2ecf20Sopenharmony_ci DIV_TOP2, 4, 3), 4288c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_FSYS_200, "div_aclk_fsys_200", "mout_bus_pll_user", 4298c2ecf20Sopenharmony_ci DIV_TOP2, 0, 3), 4308c2ecf20Sopenharmony_ci 4318c2ecf20Sopenharmony_ci /* DIV_TOP3 */ 4328c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_IMEM_SSSX_266, "div_aclk_imem_sssx_266", 4338c2ecf20Sopenharmony_ci "mout_bus_pll_user", DIV_TOP3, 24, 3), 4348c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_IMEM_200, "div_aclk_imem_200", 4358c2ecf20Sopenharmony_ci "mout_bus_pll_user", DIV_TOP3, 20, 3), 4368c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_IMEM_266, "div_aclk_imem_266", 4378c2ecf20Sopenharmony_ci "mout_bus_pll_user", DIV_TOP3, 16, 3), 4388c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_PERIC_66_B, "div_aclk_peric_66_b", 4398c2ecf20Sopenharmony_ci "div_aclk_peric_66_a", DIV_TOP3, 12, 3), 4408c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_PERIC_66_A, "div_aclk_peric_66_a", 4418c2ecf20Sopenharmony_ci "mout_bus_pll_user", DIV_TOP3, 8, 3), 4428c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_PERIS_66_B, "div_aclk_peris_66_b", 4438c2ecf20Sopenharmony_ci "div_aclk_peris_66_a", DIV_TOP3, 4, 3), 4448c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_PERIS_66_A, "div_aclk_peris_66_a", 4458c2ecf20Sopenharmony_ci "mout_bus_pll_user", DIV_TOP3, 0, 3), 4468c2ecf20Sopenharmony_ci 4478c2ecf20Sopenharmony_ci /* DIV_TOP4 */ 4488c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_G3D_400, "div_aclk_g3d_400", "mout_bus_pll_user", 4498c2ecf20Sopenharmony_ci DIV_TOP4, 8, 3), 4508c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_BUS0_400, "div_aclk_bus0_400", "mout_aclk_bus0_400", 4518c2ecf20Sopenharmony_ci DIV_TOP4, 4, 3), 4528c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_BUS1_400, "div_aclk_bus1_400", "mout_bus_pll_user", 4538c2ecf20Sopenharmony_ci DIV_TOP4, 0, 3), 4548c2ecf20Sopenharmony_ci 4558c2ecf20Sopenharmony_ci /* DIV_TOP_MSCL */ 4568c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_JPEG, "div_sclk_jpeg", "mout_sclk_jpeg_c", 4578c2ecf20Sopenharmony_ci DIV_TOP_MSCL, 0, 4), 4588c2ecf20Sopenharmony_ci 4598c2ecf20Sopenharmony_ci /* DIV_TOP_CAM10 */ 4608c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_UART, "div_sclk_isp_uart", "mout_sclk_isp_uart", 4618c2ecf20Sopenharmony_ci DIV_TOP_CAM10, 24, 5), 4628c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_SPI1_B, "div_sclk_isp_spi1_b", 4638c2ecf20Sopenharmony_ci "div_sclk_isp_spi1_a", DIV_TOP_CAM10, 16, 8), 4648c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_SPI1_A, "div_sclk_isp_spi1_a", 4658c2ecf20Sopenharmony_ci "mout_sclk_isp_spi1", DIV_TOP_CAM10, 12, 4), 4668c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_SPI0_B, "div_sclk_isp_spi0_b", 4678c2ecf20Sopenharmony_ci "div_sclk_isp_spi0_a", DIV_TOP_CAM10, 4, 8), 4688c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_SPI0_A, "div_sclk_isp_spi0_a", 4698c2ecf20Sopenharmony_ci "mout_sclk_isp_spi0", DIV_TOP_CAM10, 0, 4), 4708c2ecf20Sopenharmony_ci 4718c2ecf20Sopenharmony_ci /* DIV_TOP_CAM11 */ 4728c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_SENSOR2_B, "div_sclk_isp_sensor2_b", 4738c2ecf20Sopenharmony_ci "div_sclk_isp_sensor2_a", DIV_TOP_CAM11, 20, 4), 4748c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_SENSOR2_A, "div_sclk_isp_sensor2_a", 4758c2ecf20Sopenharmony_ci "mout_sclk_isp_sensor2", DIV_TOP_CAM11, 16, 4), 4768c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_SENSOR1_B, "div_sclk_isp_sensor1_b", 4778c2ecf20Sopenharmony_ci "div_sclk_isp_sensor1_a", DIV_TOP_CAM11, 12, 4), 4788c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_SENSOR1_A, "div_sclk_isp_sensor1_a", 4798c2ecf20Sopenharmony_ci "mout_sclk_isp_sensor1", DIV_TOP_CAM11, 8, 4), 4808c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_SENSOR0_B, "div_sclk_isp_sensor0_b", 4818c2ecf20Sopenharmony_ci "div_sclk_isp_sensor0_a", DIV_TOP_CAM11, 4, 4), 4828c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_SENSOR0_A, "div_sclk_isp_sensor0_a", 4838c2ecf20Sopenharmony_ci "mout_sclk_isp_sensor0", DIV_TOP_CAM11, 0, 4), 4848c2ecf20Sopenharmony_ci 4858c2ecf20Sopenharmony_ci /* DIV_TOP_FSYS0 */ 4868c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_MMC1_B, "div_sclk_mmc1_b", "div_sclk_mmc1_a", 4878c2ecf20Sopenharmony_ci DIV_TOP_FSYS0, 16, 8), 4888c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_MMC1_A, "div_sclk_mmc1_a", "mout_sclk_mmc1_b", 4898c2ecf20Sopenharmony_ci DIV_TOP_FSYS0, 12, 4), 4908c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_SCLK_MMC0_B, "div_sclk_mmc0_b", "div_sclk_mmc0_a", 4918c2ecf20Sopenharmony_ci DIV_TOP_FSYS0, 4, 8, CLK_SET_RATE_PARENT, 0), 4928c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_SCLK_MMC0_A, "div_sclk_mmc0_a", "mout_sclk_mmc0_d", 4938c2ecf20Sopenharmony_ci DIV_TOP_FSYS0, 0, 4, CLK_SET_RATE_PARENT, 0), 4948c2ecf20Sopenharmony_ci 4958c2ecf20Sopenharmony_ci /* DIV_TOP_FSYS1 */ 4968c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_MMC2_B, "div_sclk_mmc2_b", "div_sclk_mmc2_a", 4978c2ecf20Sopenharmony_ci DIV_TOP_FSYS1, 4, 8), 4988c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_MMC2_A, "div_sclk_mmc2_a", "mout_sclk_mmc2_b", 4998c2ecf20Sopenharmony_ci DIV_TOP_FSYS1, 0, 4), 5008c2ecf20Sopenharmony_ci 5018c2ecf20Sopenharmony_ci /* DIV_TOP_FSYS2 */ 5028c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_PCIE_100, "div_sclk_pcie_100", "mout_sclk_pcie_100", 5038c2ecf20Sopenharmony_ci DIV_TOP_FSYS2, 12, 3), 5048c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_USBHOST30, "div_sclk_usbhost30", 5058c2ecf20Sopenharmony_ci "mout_sclk_usbhost30", DIV_TOP_FSYS2, 8, 4), 5068c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_UFSUNIPRO, "div_sclk_ufsunipro", 5078c2ecf20Sopenharmony_ci "mout_sclk_ufsunipro", DIV_TOP_FSYS2, 4, 4), 5088c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_USBDRD30, "div_sclk_usbdrd30", "mout_sclk_usbdrd30", 5098c2ecf20Sopenharmony_ci DIV_TOP_FSYS2, 0, 4), 5108c2ecf20Sopenharmony_ci 5118c2ecf20Sopenharmony_ci /* DIV_TOP_PERIC0 */ 5128c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SPI1_B, "div_sclk_spi1_b", "div_sclk_spi1_a", 5138c2ecf20Sopenharmony_ci DIV_TOP_PERIC0, 16, 8), 5148c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SPI1_A, "div_sclk_spi1_a", "mout_sclk_spi1", 5158c2ecf20Sopenharmony_ci DIV_TOP_PERIC0, 12, 4), 5168c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SPI0_B, "div_sclk_spi0_b", "div_sclk_spi0_a", 5178c2ecf20Sopenharmony_ci DIV_TOP_PERIC0, 4, 8), 5188c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SPI0_A, "div_sclk_spi0_a", "mout_sclk_spi0", 5198c2ecf20Sopenharmony_ci DIV_TOP_PERIC0, 0, 4), 5208c2ecf20Sopenharmony_ci 5218c2ecf20Sopenharmony_ci /* DIV_TOP_PERIC1 */ 5228c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SPI2_B, "div_sclk_spi2_b", "div_sclk_spi2_a", 5238c2ecf20Sopenharmony_ci DIV_TOP_PERIC1, 4, 8), 5248c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SPI2_A, "div_sclk_spi2_a", "mout_sclk_spi2", 5258c2ecf20Sopenharmony_ci DIV_TOP_PERIC1, 0, 4), 5268c2ecf20Sopenharmony_ci 5278c2ecf20Sopenharmony_ci /* DIV_TOP_PERIC2 */ 5288c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_UART2, "div_sclk_uart2", "mout_sclk_uart2", 5298c2ecf20Sopenharmony_ci DIV_TOP_PERIC2, 8, 4), 5308c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_UART1, "div_sclk_uart1", "mout_sclk_uart0", 5318c2ecf20Sopenharmony_ci DIV_TOP_PERIC2, 4, 4), 5328c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_UART0, "div_sclk_uart0", "mout_sclk_uart1", 5338c2ecf20Sopenharmony_ci DIV_TOP_PERIC2, 0, 4), 5348c2ecf20Sopenharmony_ci 5358c2ecf20Sopenharmony_ci /* DIV_TOP_PERIC3 */ 5368c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_I2S1, "div_sclk_i2s1", "sclk_audio1", 5378c2ecf20Sopenharmony_ci DIV_TOP_PERIC3, 16, 6), 5388c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_PCM1, "div_sclk_pcm1", "sclk_audio1", 5398c2ecf20Sopenharmony_ci DIV_TOP_PERIC3, 8, 8), 5408c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_AUDIO1, "div_sclk_audio1", "mout_sclk_audio1", 5418c2ecf20Sopenharmony_ci DIV_TOP_PERIC3, 4, 4), 5428c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_AUDIO0, "div_sclk_audio0", "mout_sclk_audio0", 5438c2ecf20Sopenharmony_ci DIV_TOP_PERIC3, 0, 4), 5448c2ecf20Sopenharmony_ci 5458c2ecf20Sopenharmony_ci /* DIV_TOP_PERIC4 */ 5468c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SPI4_B, "div_sclk_spi4_b", "div_sclk_spi4_a", 5478c2ecf20Sopenharmony_ci DIV_TOP_PERIC4, 16, 8), 5488c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SPI4_A, "div_sclk_spi4_a", "mout_sclk_spi4", 5498c2ecf20Sopenharmony_ci DIV_TOP_PERIC4, 12, 4), 5508c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SPI3_B, "div_sclk_spi3_b", "div_sclk_spi3_a", 5518c2ecf20Sopenharmony_ci DIV_TOP_PERIC4, 4, 8), 5528c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SPI3_A, "div_sclk_spi3_a", "mout_sclk_spi3", 5538c2ecf20Sopenharmony_ci DIV_TOP_PERIC4, 0, 4), 5548c2ecf20Sopenharmony_ci}; 5558c2ecf20Sopenharmony_ci 5568c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock top_gate_clks[] __initconst = { 5578c2ecf20Sopenharmony_ci /* ENABLE_ACLK_TOP */ 5588c2ecf20Sopenharmony_ci GATE(CLK_ACLK_G3D_400, "aclk_g3d_400", "div_aclk_g3d_400", 5598c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 30, CLK_IS_CRITICAL, 0), 5608c2ecf20Sopenharmony_ci GATE(CLK_ACLK_IMEM_SSSX_266, "aclk_imem_sssx_266", 5618c2ecf20Sopenharmony_ci "div_aclk_imem_sssx_266", ENABLE_ACLK_TOP, 5628c2ecf20Sopenharmony_ci 29, CLK_IGNORE_UNUSED, 0), 5638c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BUS0_400, "aclk_bus0_400", "div_aclk_bus0_400", 5648c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 26, 5658c2ecf20Sopenharmony_ci CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), 5668c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BUS1_400, "aclk_bus1_400", "div_aclk_bus1_400", 5678c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 25, 5688c2ecf20Sopenharmony_ci CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), 5698c2ecf20Sopenharmony_ci GATE(CLK_ACLK_IMEM_200, "aclk_imem_200", "div_aclk_imem_200", 5708c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 24, 5718c2ecf20Sopenharmony_ci CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), 5728c2ecf20Sopenharmony_ci GATE(CLK_ACLK_IMEM_266, "aclk_imem_266", "div_aclk_imem_266", 5738c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 23, 5748c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), 5758c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PERIC_66, "aclk_peric_66", "div_aclk_peric_66_b", 5768c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 22, 5778c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), 5788c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PERIS_66, "aclk_peris_66", "div_aclk_peris_66_b", 5798c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 21, 5808c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), 5818c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MSCL_400, "aclk_mscl_400", "div_aclk_mscl_400", 5828c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 19, 5838c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), 5848c2ecf20Sopenharmony_ci GATE(CLK_ACLK_FSYS_200, "aclk_fsys_200", "div_aclk_fsys_200", 5858c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 18, 5868c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), 5878c2ecf20Sopenharmony_ci GATE(CLK_ACLK_GSCL_111, "aclk_gscl_111", "div_aclk_gscl_111", 5888c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 15, 5898c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), 5908c2ecf20Sopenharmony_ci GATE(CLK_ACLK_GSCL_333, "aclk_gscl_333", "div_aclk_gscl_333", 5918c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 14, 5928c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 5938c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CAM1_333, "aclk_cam1_333", "div_aclk_cam1_333", 5948c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 13, 5958c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 5968c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CAM1_400, "aclk_cam1_400", "div_aclk_cam1_400", 5978c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 12, 5988c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), 5998c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CAM1_552, "aclk_cam1_552", "div_aclk_cam1_552", 6008c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 11, 6018c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 6028c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CAM0_333, "aclk_cam0_333", "div_aclk_cam0_333", 6038c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 10, 6048c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 6058c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CAM0_400, "aclk_cam0_400", "div_aclk_cam0_400", 6068c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 9, 6078c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), 6088c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CAM0_552, "aclk_cam0_552", "div_aclk_cam0_552", 6098c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 8, 6108c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 6118c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ISP_DIS_400, "aclk_isp_dis_400", "div_aclk_isp_dis_400", 6128c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 7, 6138c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 6148c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ISP_400, "aclk_isp_400", "div_aclk_isp_400", 6158c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 6, 6168c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), 6178c2ecf20Sopenharmony_ci GATE(CLK_ACLK_HEVC_400, "aclk_hevc_400", "div_aclk_hevc_400", 6188c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 5, 6198c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), 6208c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MFC_400, "aclk_mfc_400", "div_aclk_mfc_400", 6218c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 3, 6228c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), 6238c2ecf20Sopenharmony_ci GATE(CLK_ACLK_G2D_266, "aclk_g2d_266", "div_aclk_g2d_266", 6248c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 2, 6258c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 6268c2ecf20Sopenharmony_ci GATE(CLK_ACLK_G2D_400, "aclk_g2d_400", "div_aclk_g2d_400", 6278c2ecf20Sopenharmony_ci ENABLE_ACLK_TOP, 0, 6288c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), 6298c2ecf20Sopenharmony_ci 6308c2ecf20Sopenharmony_ci /* ENABLE_SCLK_TOP_MSCL */ 6318c2ecf20Sopenharmony_ci GATE(CLK_SCLK_JPEG_MSCL, "sclk_jpeg_mscl", "div_sclk_jpeg", 6328c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_MSCL, 0, CLK_SET_RATE_PARENT, 0), 6338c2ecf20Sopenharmony_ci 6348c2ecf20Sopenharmony_ci /* ENABLE_SCLK_TOP_CAM1 */ 6358c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_SENSOR2, "sclk_isp_sensor2", "div_sclk_isp_sensor2_b", 6368c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_CAM1, 7, 0, 0), 6378c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_SENSOR1, "sclk_isp_sensor1", "div_sclk_isp_sensor1_b", 6388c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_CAM1, 6, 0, 0), 6398c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_SENSOR0, "sclk_isp_sensor0", "div_sclk_isp_sensor0_b", 6408c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_CAM1, 5, 0, 0), 6418c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_MCTADC_CAM1, "sclk_isp_mctadc_cam1", "oscclk", 6428c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_CAM1, 4, 0, 0), 6438c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_UART_CAM1, "sclk_isp_uart_cam1", "div_sclk_isp_uart", 6448c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_CAM1, 2, 0, 0), 6458c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_SPI1_CAM1, "sclk_isp_spi1_cam1", "div_sclk_isp_spi1_b", 6468c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_CAM1, 1, 0, 0), 6478c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_SPI0_CAM1, "sclk_isp_spi0_cam1", "div_sclk_isp_spi0_b", 6488c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_CAM1, 0, 0, 0), 6498c2ecf20Sopenharmony_ci 6508c2ecf20Sopenharmony_ci /* ENABLE_SCLK_TOP_DISP */ 6518c2ecf20Sopenharmony_ci GATE(CLK_SCLK_HDMI_SPDIF_DISP, "sclk_hdmi_spdif_disp", 6528c2ecf20Sopenharmony_ci "mout_sclk_hdmi_spdif", ENABLE_SCLK_TOP_DISP, 0, 6538c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 6548c2ecf20Sopenharmony_ci 6558c2ecf20Sopenharmony_ci /* ENABLE_SCLK_TOP_FSYS */ 6568c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PCIE_100_FSYS, "sclk_pcie_100_fsys", "div_sclk_pcie_100", 6578c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_FSYS, 7, CLK_IGNORE_UNUSED, 0), 6588c2ecf20Sopenharmony_ci GATE(CLK_SCLK_MMC2_FSYS, "sclk_mmc2_fsys", "div_sclk_mmc2_b", 6598c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_FSYS, 6, CLK_SET_RATE_PARENT, 0), 6608c2ecf20Sopenharmony_ci GATE(CLK_SCLK_MMC1_FSYS, "sclk_mmc1_fsys", "div_sclk_mmc1_b", 6618c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_FSYS, 5, CLK_SET_RATE_PARENT, 0), 6628c2ecf20Sopenharmony_ci GATE(CLK_SCLK_MMC0_FSYS, "sclk_mmc0_fsys", "div_sclk_mmc0_b", 6638c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_FSYS, 4, CLK_SET_RATE_PARENT, 0), 6648c2ecf20Sopenharmony_ci GATE(CLK_SCLK_UFSUNIPRO_FSYS, "sclk_ufsunipro_fsys", 6658c2ecf20Sopenharmony_ci "div_sclk_ufsunipro", ENABLE_SCLK_TOP_FSYS, 6668c2ecf20Sopenharmony_ci 3, CLK_SET_RATE_PARENT, 0), 6678c2ecf20Sopenharmony_ci GATE(CLK_SCLK_USBHOST30_FSYS, "sclk_usbhost30_fsys", 6688c2ecf20Sopenharmony_ci "div_sclk_usbhost30", ENABLE_SCLK_TOP_FSYS, 6698c2ecf20Sopenharmony_ci 1, CLK_SET_RATE_PARENT, 0), 6708c2ecf20Sopenharmony_ci GATE(CLK_SCLK_USBDRD30_FSYS, "sclk_usbdrd30_fsys", 6718c2ecf20Sopenharmony_ci "div_sclk_usbdrd30", ENABLE_SCLK_TOP_FSYS, 6728c2ecf20Sopenharmony_ci 0, CLK_SET_RATE_PARENT, 0), 6738c2ecf20Sopenharmony_ci 6748c2ecf20Sopenharmony_ci /* ENABLE_SCLK_TOP_PERIC */ 6758c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPI4_PERIC, "sclk_spi4_peric", "div_sclk_spi4_b", 6768c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 12, CLK_SET_RATE_PARENT, 0), 6778c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPI3_PERIC, "sclk_spi3_peric", "div_sclk_spi3_b", 6788c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 11, CLK_SET_RATE_PARENT, 0), 6798c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPDIF_PERIC, "sclk_spdif_peric", "mout_sclk_spdif", 6808c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 9, CLK_SET_RATE_PARENT, 0), 6818c2ecf20Sopenharmony_ci GATE(CLK_SCLK_I2S1_PERIC, "sclk_i2s1_peric", "div_sclk_i2s1", 6828c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 8, CLK_SET_RATE_PARENT, 0), 6838c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PCM1_PERIC, "sclk_pcm1_peric", "div_sclk_pcm1", 6848c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 7, CLK_SET_RATE_PARENT, 0), 6858c2ecf20Sopenharmony_ci GATE(CLK_SCLK_UART2_PERIC, "sclk_uart2_peric", "div_sclk_uart2", 6868c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 5, CLK_SET_RATE_PARENT | 6878c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 6888c2ecf20Sopenharmony_ci GATE(CLK_SCLK_UART1_PERIC, "sclk_uart1_peric", "div_sclk_uart1", 6898c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 4, CLK_SET_RATE_PARENT | 6908c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 6918c2ecf20Sopenharmony_ci GATE(CLK_SCLK_UART0_PERIC, "sclk_uart0_peric", "div_sclk_uart0", 6928c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 3, CLK_SET_RATE_PARENT | 6938c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 6948c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPI2_PERIC, "sclk_spi2_peric", "div_sclk_spi2_b", 6958c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 2, CLK_SET_RATE_PARENT, 0), 6968c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPI1_PERIC, "sclk_spi1_peric", "div_sclk_spi1_b", 6978c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 1, CLK_SET_RATE_PARENT, 0), 6988c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPI0_PERIC, "sclk_spi0_peric", "div_sclk_spi0_b", 6998c2ecf20Sopenharmony_ci ENABLE_SCLK_TOP_PERIC, 0, CLK_SET_RATE_PARENT, 0), 7008c2ecf20Sopenharmony_ci 7018c2ecf20Sopenharmony_ci /* MUX_ENABLE_TOP_PERIC1 */ 7028c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SLIMBUS, "sclk_slimbus", "mout_sclk_slimbus", 7038c2ecf20Sopenharmony_ci MUX_ENABLE_TOP_PERIC1, 16, 0, 0), 7048c2ecf20Sopenharmony_ci GATE(CLK_SCLK_AUDIO1, "sclk_audio1", "div_sclk_audio1", 7058c2ecf20Sopenharmony_ci MUX_ENABLE_TOP_PERIC1, 4, 0, 0), 7068c2ecf20Sopenharmony_ci GATE(CLK_SCLK_AUDIO0, "sclk_audio0", "div_sclk_audio0", 7078c2ecf20Sopenharmony_ci MUX_ENABLE_TOP_PERIC1, 0, 0, 0), 7088c2ecf20Sopenharmony_ci}; 7098c2ecf20Sopenharmony_ci 7108c2ecf20Sopenharmony_ci/* 7118c2ecf20Sopenharmony_ci * ATLAS_PLL & APOLLO_PLL & MEM0_PLL & MEM1_PLL & BUS_PLL & MFC_PLL 7128c2ecf20Sopenharmony_ci * & MPHY_PLL & G3D_PLL & DISP_PLL & ISP_PLL 7138c2ecf20Sopenharmony_ci */ 7148c2ecf20Sopenharmony_cistatic const struct samsung_pll_rate_table exynos5433_pll_rates[] __initconst = { 7158c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 2500000000U, 625, 6, 0), 7168c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 2400000000U, 500, 5, 0), 7178c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 2300000000U, 575, 6, 0), 7188c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 2200000000U, 550, 6, 0), 7198c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 2100000000U, 350, 4, 0), 7208c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 2000000000U, 500, 6, 0), 7218c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1900000000U, 475, 6, 0), 7228c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1800000000U, 375, 5, 0), 7238c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1700000000U, 425, 6, 0), 7248c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1600000000U, 400, 6, 0), 7258c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1500000000U, 250, 4, 0), 7268c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1400000000U, 350, 6, 0), 7278c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1332000000U, 222, 4, 0), 7288c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1300000000U, 325, 6, 0), 7298c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1200000000U, 500, 5, 1), 7308c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1100000000U, 550, 6, 1), 7318c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1086000000U, 362, 4, 1), 7328c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1066000000U, 533, 6, 1), 7338c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 1000000000U, 500, 6, 1), 7348c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 933000000U, 311, 4, 1), 7358c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 921000000U, 307, 4, 1), 7368c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 900000000U, 375, 5, 1), 7378c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 825000000U, 275, 4, 1), 7388c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 800000000U, 400, 6, 1), 7398c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 733000000U, 733, 12, 1), 7408c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 700000000U, 175, 3, 1), 7418c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 666000000U, 222, 4, 1), 7428c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 633000000U, 211, 4, 1), 7438c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 600000000U, 500, 5, 2), 7448c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 552000000U, 460, 5, 2), 7458c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 550000000U, 550, 6, 2), 7468c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 543000000U, 362, 4, 2), 7478c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 533000000U, 533, 6, 2), 7488c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 500000000U, 500, 6, 2), 7498c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 444000000U, 370, 5, 2), 7508c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 420000000U, 350, 5, 2), 7518c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 400000000U, 400, 6, 2), 7528c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 350000000U, 350, 6, 2), 7538c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 333000000U, 222, 4, 2), 7548c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 300000000U, 500, 5, 3), 7558c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 278000000U, 556, 6, 3), 7568c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 266000000U, 532, 6, 3), 7578c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 250000000U, 500, 6, 3), 7588c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 200000000U, 400, 6, 3), 7598c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 166000000U, 332, 6, 3), 7608c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 160000000U, 320, 6, 3), 7618c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 133000000U, 532, 6, 4), 7628c2ecf20Sopenharmony_ci PLL_35XX_RATE(24 * MHZ, 100000000U, 400, 6, 4), 7638c2ecf20Sopenharmony_ci { /* sentinel */ } 7648c2ecf20Sopenharmony_ci}; 7658c2ecf20Sopenharmony_ci 7668c2ecf20Sopenharmony_ci/* AUD_PLL */ 7678c2ecf20Sopenharmony_cistatic const struct samsung_pll_rate_table exynos5433_aud_pll_rates[] __initconst = { 7688c2ecf20Sopenharmony_ci PLL_36XX_RATE(24 * MHZ, 400000000U, 200, 3, 2, 0), 7698c2ecf20Sopenharmony_ci PLL_36XX_RATE(24 * MHZ, 393216003U, 197, 3, 2, -25690), 7708c2ecf20Sopenharmony_ci PLL_36XX_RATE(24 * MHZ, 384000000U, 128, 2, 2, 0), 7718c2ecf20Sopenharmony_ci PLL_36XX_RATE(24 * MHZ, 368639991U, 246, 4, 2, -15729), 7728c2ecf20Sopenharmony_ci PLL_36XX_RATE(24 * MHZ, 361507202U, 181, 3, 2, -16148), 7738c2ecf20Sopenharmony_ci PLL_36XX_RATE(24 * MHZ, 338687988U, 113, 2, 2, -6816), 7748c2ecf20Sopenharmony_ci PLL_36XX_RATE(24 * MHZ, 294912002U, 98, 1, 3, 19923), 7758c2ecf20Sopenharmony_ci PLL_36XX_RATE(24 * MHZ, 288000000U, 96, 1, 3, 0), 7768c2ecf20Sopenharmony_ci PLL_36XX_RATE(24 * MHZ, 252000000U, 84, 1, 3, 0), 7778c2ecf20Sopenharmony_ci PLL_36XX_RATE(24 * MHZ, 196608001U, 197, 3, 3, -25690), 7788c2ecf20Sopenharmony_ci { /* sentinel */ } 7798c2ecf20Sopenharmony_ci}; 7808c2ecf20Sopenharmony_ci 7818c2ecf20Sopenharmony_cistatic const struct samsung_pll_clock top_pll_clks[] __initconst = { 7828c2ecf20Sopenharmony_ci PLL(pll_35xx, CLK_FOUT_ISP_PLL, "fout_isp_pll", "oscclk", 7838c2ecf20Sopenharmony_ci ISP_PLL_LOCK, ISP_PLL_CON0, exynos5433_pll_rates), 7848c2ecf20Sopenharmony_ci PLL(pll_36xx, CLK_FOUT_AUD_PLL, "fout_aud_pll", "oscclk", 7858c2ecf20Sopenharmony_ci AUD_PLL_LOCK, AUD_PLL_CON0, exynos5433_aud_pll_rates), 7868c2ecf20Sopenharmony_ci}; 7878c2ecf20Sopenharmony_ci 7888c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info top_cmu_info __initconst = { 7898c2ecf20Sopenharmony_ci .pll_clks = top_pll_clks, 7908c2ecf20Sopenharmony_ci .nr_pll_clks = ARRAY_SIZE(top_pll_clks), 7918c2ecf20Sopenharmony_ci .mux_clks = top_mux_clks, 7928c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(top_mux_clks), 7938c2ecf20Sopenharmony_ci .div_clks = top_div_clks, 7948c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(top_div_clks), 7958c2ecf20Sopenharmony_ci .gate_clks = top_gate_clks, 7968c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(top_gate_clks), 7978c2ecf20Sopenharmony_ci .fixed_clks = top_fixed_clks, 7988c2ecf20Sopenharmony_ci .nr_fixed_clks = ARRAY_SIZE(top_fixed_clks), 7998c2ecf20Sopenharmony_ci .fixed_factor_clks = top_fixed_factor_clks, 8008c2ecf20Sopenharmony_ci .nr_fixed_factor_clks = ARRAY_SIZE(top_fixed_factor_clks), 8018c2ecf20Sopenharmony_ci .nr_clk_ids = TOP_NR_CLK, 8028c2ecf20Sopenharmony_ci .clk_regs = top_clk_regs, 8038c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(top_clk_regs), 8048c2ecf20Sopenharmony_ci .suspend_regs = top_suspend_regs, 8058c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(top_suspend_regs), 8068c2ecf20Sopenharmony_ci}; 8078c2ecf20Sopenharmony_ci 8088c2ecf20Sopenharmony_cistatic void __init exynos5433_cmu_top_init(struct device_node *np) 8098c2ecf20Sopenharmony_ci{ 8108c2ecf20Sopenharmony_ci samsung_cmu_register_one(np, &top_cmu_info); 8118c2ecf20Sopenharmony_ci} 8128c2ecf20Sopenharmony_ciCLK_OF_DECLARE(exynos5433_cmu_top, "samsung,exynos5433-cmu-top", 8138c2ecf20Sopenharmony_ci exynos5433_cmu_top_init); 8148c2ecf20Sopenharmony_ci 8158c2ecf20Sopenharmony_ci/* 8168c2ecf20Sopenharmony_ci * Register offset definitions for CMU_CPIF 8178c2ecf20Sopenharmony_ci */ 8188c2ecf20Sopenharmony_ci#define MPHY_PLL_LOCK 0x0000 8198c2ecf20Sopenharmony_ci#define MPHY_PLL_CON0 0x0100 8208c2ecf20Sopenharmony_ci#define MPHY_PLL_CON1 0x0104 8218c2ecf20Sopenharmony_ci#define MPHY_PLL_FREQ_DET 0x010c 8228c2ecf20Sopenharmony_ci#define MUX_SEL_CPIF0 0x0200 8238c2ecf20Sopenharmony_ci#define DIV_CPIF 0x0600 8248c2ecf20Sopenharmony_ci#define ENABLE_SCLK_CPIF 0x0a00 8258c2ecf20Sopenharmony_ci 8268c2ecf20Sopenharmony_cistatic const unsigned long cpif_clk_regs[] __initconst = { 8278c2ecf20Sopenharmony_ci MPHY_PLL_LOCK, 8288c2ecf20Sopenharmony_ci MPHY_PLL_CON0, 8298c2ecf20Sopenharmony_ci MPHY_PLL_CON1, 8308c2ecf20Sopenharmony_ci MPHY_PLL_FREQ_DET, 8318c2ecf20Sopenharmony_ci MUX_SEL_CPIF0, 8328c2ecf20Sopenharmony_ci DIV_CPIF, 8338c2ecf20Sopenharmony_ci ENABLE_SCLK_CPIF, 8348c2ecf20Sopenharmony_ci}; 8358c2ecf20Sopenharmony_ci 8368c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump cpif_suspend_regs[] = { 8378c2ecf20Sopenharmony_ci /* force all sclk clocks enabled */ 8388c2ecf20Sopenharmony_ci { ENABLE_SCLK_CPIF, 0x3ff }, 8398c2ecf20Sopenharmony_ci /* MPHY PLL has to be enabled for suspend: reset value + ENABLE bit */ 8408c2ecf20Sopenharmony_ci { MPHY_PLL_CON0, 0x81c70601 }, 8418c2ecf20Sopenharmony_ci}; 8428c2ecf20Sopenharmony_ci 8438c2ecf20Sopenharmony_ci/* list of all parent clock list */ 8448c2ecf20Sopenharmony_ciPNAME(mout_mphy_pll_p) = { "oscclk", "fout_mphy_pll", }; 8458c2ecf20Sopenharmony_ci 8468c2ecf20Sopenharmony_cistatic const struct samsung_pll_clock cpif_pll_clks[] __initconst = { 8478c2ecf20Sopenharmony_ci PLL(pll_35xx, CLK_FOUT_MPHY_PLL, "fout_mphy_pll", "oscclk", 8488c2ecf20Sopenharmony_ci MPHY_PLL_LOCK, MPHY_PLL_CON0, exynos5433_pll_rates), 8498c2ecf20Sopenharmony_ci}; 8508c2ecf20Sopenharmony_ci 8518c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock cpif_mux_clks[] __initconst = { 8528c2ecf20Sopenharmony_ci /* MUX_SEL_CPIF0 */ 8538c2ecf20Sopenharmony_ci MUX(CLK_MOUT_MPHY_PLL, "mout_mphy_pll", mout_mphy_pll_p, MUX_SEL_CPIF0, 8548c2ecf20Sopenharmony_ci 0, 1), 8558c2ecf20Sopenharmony_ci}; 8568c2ecf20Sopenharmony_ci 8578c2ecf20Sopenharmony_cistatic const struct samsung_div_clock cpif_div_clks[] __initconst = { 8588c2ecf20Sopenharmony_ci /* DIV_CPIF */ 8598c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_MPHY, "div_sclk_mphy", "mout_mphy_pll", DIV_CPIF, 8608c2ecf20Sopenharmony_ci 0, 6), 8618c2ecf20Sopenharmony_ci}; 8628c2ecf20Sopenharmony_ci 8638c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock cpif_gate_clks[] __initconst = { 8648c2ecf20Sopenharmony_ci /* ENABLE_SCLK_CPIF */ 8658c2ecf20Sopenharmony_ci GATE(CLK_SCLK_MPHY_PLL, "sclk_mphy_pll", "mout_mphy_pll", 8668c2ecf20Sopenharmony_ci ENABLE_SCLK_CPIF, 9, CLK_IGNORE_UNUSED, 0), 8678c2ecf20Sopenharmony_ci GATE(CLK_SCLK_UFS_MPHY, "sclk_ufs_mphy", "div_sclk_mphy", 8688c2ecf20Sopenharmony_ci ENABLE_SCLK_CPIF, 4, 0, 0), 8698c2ecf20Sopenharmony_ci}; 8708c2ecf20Sopenharmony_ci 8718c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info cpif_cmu_info __initconst = { 8728c2ecf20Sopenharmony_ci .pll_clks = cpif_pll_clks, 8738c2ecf20Sopenharmony_ci .nr_pll_clks = ARRAY_SIZE(cpif_pll_clks), 8748c2ecf20Sopenharmony_ci .mux_clks = cpif_mux_clks, 8758c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(cpif_mux_clks), 8768c2ecf20Sopenharmony_ci .div_clks = cpif_div_clks, 8778c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(cpif_div_clks), 8788c2ecf20Sopenharmony_ci .gate_clks = cpif_gate_clks, 8798c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(cpif_gate_clks), 8808c2ecf20Sopenharmony_ci .nr_clk_ids = CPIF_NR_CLK, 8818c2ecf20Sopenharmony_ci .clk_regs = cpif_clk_regs, 8828c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(cpif_clk_regs), 8838c2ecf20Sopenharmony_ci .suspend_regs = cpif_suspend_regs, 8848c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(cpif_suspend_regs), 8858c2ecf20Sopenharmony_ci}; 8868c2ecf20Sopenharmony_ci 8878c2ecf20Sopenharmony_cistatic void __init exynos5433_cmu_cpif_init(struct device_node *np) 8888c2ecf20Sopenharmony_ci{ 8898c2ecf20Sopenharmony_ci samsung_cmu_register_one(np, &cpif_cmu_info); 8908c2ecf20Sopenharmony_ci} 8918c2ecf20Sopenharmony_ciCLK_OF_DECLARE(exynos5433_cmu_cpif, "samsung,exynos5433-cmu-cpif", 8928c2ecf20Sopenharmony_ci exynos5433_cmu_cpif_init); 8938c2ecf20Sopenharmony_ci 8948c2ecf20Sopenharmony_ci/* 8958c2ecf20Sopenharmony_ci * Register offset definitions for CMU_MIF 8968c2ecf20Sopenharmony_ci */ 8978c2ecf20Sopenharmony_ci#define MEM0_PLL_LOCK 0x0000 8988c2ecf20Sopenharmony_ci#define MEM1_PLL_LOCK 0x0004 8998c2ecf20Sopenharmony_ci#define BUS_PLL_LOCK 0x0008 9008c2ecf20Sopenharmony_ci#define MFC_PLL_LOCK 0x000c 9018c2ecf20Sopenharmony_ci#define MEM0_PLL_CON0 0x0100 9028c2ecf20Sopenharmony_ci#define MEM0_PLL_CON1 0x0104 9038c2ecf20Sopenharmony_ci#define MEM0_PLL_FREQ_DET 0x010c 9048c2ecf20Sopenharmony_ci#define MEM1_PLL_CON0 0x0110 9058c2ecf20Sopenharmony_ci#define MEM1_PLL_CON1 0x0114 9068c2ecf20Sopenharmony_ci#define MEM1_PLL_FREQ_DET 0x011c 9078c2ecf20Sopenharmony_ci#define BUS_PLL_CON0 0x0120 9088c2ecf20Sopenharmony_ci#define BUS_PLL_CON1 0x0124 9098c2ecf20Sopenharmony_ci#define BUS_PLL_FREQ_DET 0x012c 9108c2ecf20Sopenharmony_ci#define MFC_PLL_CON0 0x0130 9118c2ecf20Sopenharmony_ci#define MFC_PLL_CON1 0x0134 9128c2ecf20Sopenharmony_ci#define MFC_PLL_FREQ_DET 0x013c 9138c2ecf20Sopenharmony_ci#define MUX_SEL_MIF0 0x0200 9148c2ecf20Sopenharmony_ci#define MUX_SEL_MIF1 0x0204 9158c2ecf20Sopenharmony_ci#define MUX_SEL_MIF2 0x0208 9168c2ecf20Sopenharmony_ci#define MUX_SEL_MIF3 0x020c 9178c2ecf20Sopenharmony_ci#define MUX_SEL_MIF4 0x0210 9188c2ecf20Sopenharmony_ci#define MUX_SEL_MIF5 0x0214 9198c2ecf20Sopenharmony_ci#define MUX_SEL_MIF6 0x0218 9208c2ecf20Sopenharmony_ci#define MUX_SEL_MIF7 0x021c 9218c2ecf20Sopenharmony_ci#define MUX_ENABLE_MIF0 0x0300 9228c2ecf20Sopenharmony_ci#define MUX_ENABLE_MIF1 0x0304 9238c2ecf20Sopenharmony_ci#define MUX_ENABLE_MIF2 0x0308 9248c2ecf20Sopenharmony_ci#define MUX_ENABLE_MIF3 0x030c 9258c2ecf20Sopenharmony_ci#define MUX_ENABLE_MIF4 0x0310 9268c2ecf20Sopenharmony_ci#define MUX_ENABLE_MIF5 0x0314 9278c2ecf20Sopenharmony_ci#define MUX_ENABLE_MIF6 0x0318 9288c2ecf20Sopenharmony_ci#define MUX_ENABLE_MIF7 0x031c 9298c2ecf20Sopenharmony_ci#define MUX_STAT_MIF0 0x0400 9308c2ecf20Sopenharmony_ci#define MUX_STAT_MIF1 0x0404 9318c2ecf20Sopenharmony_ci#define MUX_STAT_MIF2 0x0408 9328c2ecf20Sopenharmony_ci#define MUX_STAT_MIF3 0x040c 9338c2ecf20Sopenharmony_ci#define MUX_STAT_MIF4 0x0410 9348c2ecf20Sopenharmony_ci#define MUX_STAT_MIF5 0x0414 9358c2ecf20Sopenharmony_ci#define MUX_STAT_MIF6 0x0418 9368c2ecf20Sopenharmony_ci#define MUX_STAT_MIF7 0x041c 9378c2ecf20Sopenharmony_ci#define DIV_MIF1 0x0604 9388c2ecf20Sopenharmony_ci#define DIV_MIF2 0x0608 9398c2ecf20Sopenharmony_ci#define DIV_MIF3 0x060c 9408c2ecf20Sopenharmony_ci#define DIV_MIF4 0x0610 9418c2ecf20Sopenharmony_ci#define DIV_MIF5 0x0614 9428c2ecf20Sopenharmony_ci#define DIV_MIF_PLL_FREQ_DET 0x0618 9438c2ecf20Sopenharmony_ci#define DIV_STAT_MIF1 0x0704 9448c2ecf20Sopenharmony_ci#define DIV_STAT_MIF2 0x0708 9458c2ecf20Sopenharmony_ci#define DIV_STAT_MIF3 0x070c 9468c2ecf20Sopenharmony_ci#define DIV_STAT_MIF4 0x0710 9478c2ecf20Sopenharmony_ci#define DIV_STAT_MIF5 0x0714 9488c2ecf20Sopenharmony_ci#define DIV_STAT_MIF_PLL_FREQ_DET 0x0718 9498c2ecf20Sopenharmony_ci#define ENABLE_ACLK_MIF0 0x0800 9508c2ecf20Sopenharmony_ci#define ENABLE_ACLK_MIF1 0x0804 9518c2ecf20Sopenharmony_ci#define ENABLE_ACLK_MIF2 0x0808 9528c2ecf20Sopenharmony_ci#define ENABLE_ACLK_MIF3 0x080c 9538c2ecf20Sopenharmony_ci#define ENABLE_PCLK_MIF 0x0900 9548c2ecf20Sopenharmony_ci#define ENABLE_PCLK_MIF_SECURE_DREX0_TZ 0x0904 9558c2ecf20Sopenharmony_ci#define ENABLE_PCLK_MIF_SECURE_DREX1_TZ 0x0908 9568c2ecf20Sopenharmony_ci#define ENABLE_PCLK_MIF_SECURE_MONOTONIC_CNT 0x090c 9578c2ecf20Sopenharmony_ci#define ENABLE_PCLK_MIF_SECURE_RTC 0x0910 9588c2ecf20Sopenharmony_ci#define ENABLE_SCLK_MIF 0x0a00 9598c2ecf20Sopenharmony_ci#define ENABLE_IP_MIF0 0x0b00 9608c2ecf20Sopenharmony_ci#define ENABLE_IP_MIF1 0x0b04 9618c2ecf20Sopenharmony_ci#define ENABLE_IP_MIF2 0x0b08 9628c2ecf20Sopenharmony_ci#define ENABLE_IP_MIF3 0x0b0c 9638c2ecf20Sopenharmony_ci#define ENABLE_IP_MIF_SECURE_DREX0_TZ 0x0b10 9648c2ecf20Sopenharmony_ci#define ENABLE_IP_MIF_SECURE_DREX1_TZ 0x0b14 9658c2ecf20Sopenharmony_ci#define ENABLE_IP_MIF_SECURE_MONOTONIC_CNT 0x0b18 9668c2ecf20Sopenharmony_ci#define ENABLE_IP_MIF_SECURE_RTC 0x0b1c 9678c2ecf20Sopenharmony_ci#define CLKOUT_CMU_MIF 0x0c00 9688c2ecf20Sopenharmony_ci#define CLKOUT_CMU_MIF_DIV_STAT 0x0c04 9698c2ecf20Sopenharmony_ci#define DREX_FREQ_CTRL0 0x1000 9708c2ecf20Sopenharmony_ci#define DREX_FREQ_CTRL1 0x1004 9718c2ecf20Sopenharmony_ci#define PAUSE 0x1008 9728c2ecf20Sopenharmony_ci#define DDRPHY_LOCK_CTRL 0x100c 9738c2ecf20Sopenharmony_ci 9748c2ecf20Sopenharmony_cistatic const unsigned long mif_clk_regs[] __initconst = { 9758c2ecf20Sopenharmony_ci MEM0_PLL_LOCK, 9768c2ecf20Sopenharmony_ci MEM1_PLL_LOCK, 9778c2ecf20Sopenharmony_ci BUS_PLL_LOCK, 9788c2ecf20Sopenharmony_ci MFC_PLL_LOCK, 9798c2ecf20Sopenharmony_ci MEM0_PLL_CON0, 9808c2ecf20Sopenharmony_ci MEM0_PLL_CON1, 9818c2ecf20Sopenharmony_ci MEM0_PLL_FREQ_DET, 9828c2ecf20Sopenharmony_ci MEM1_PLL_CON0, 9838c2ecf20Sopenharmony_ci MEM1_PLL_CON1, 9848c2ecf20Sopenharmony_ci MEM1_PLL_FREQ_DET, 9858c2ecf20Sopenharmony_ci BUS_PLL_CON0, 9868c2ecf20Sopenharmony_ci BUS_PLL_CON1, 9878c2ecf20Sopenharmony_ci BUS_PLL_FREQ_DET, 9888c2ecf20Sopenharmony_ci MFC_PLL_CON0, 9898c2ecf20Sopenharmony_ci MFC_PLL_CON1, 9908c2ecf20Sopenharmony_ci MFC_PLL_FREQ_DET, 9918c2ecf20Sopenharmony_ci MUX_SEL_MIF0, 9928c2ecf20Sopenharmony_ci MUX_SEL_MIF1, 9938c2ecf20Sopenharmony_ci MUX_SEL_MIF2, 9948c2ecf20Sopenharmony_ci MUX_SEL_MIF3, 9958c2ecf20Sopenharmony_ci MUX_SEL_MIF4, 9968c2ecf20Sopenharmony_ci MUX_SEL_MIF5, 9978c2ecf20Sopenharmony_ci MUX_SEL_MIF6, 9988c2ecf20Sopenharmony_ci MUX_SEL_MIF7, 9998c2ecf20Sopenharmony_ci MUX_ENABLE_MIF0, 10008c2ecf20Sopenharmony_ci MUX_ENABLE_MIF1, 10018c2ecf20Sopenharmony_ci MUX_ENABLE_MIF2, 10028c2ecf20Sopenharmony_ci MUX_ENABLE_MIF3, 10038c2ecf20Sopenharmony_ci MUX_ENABLE_MIF4, 10048c2ecf20Sopenharmony_ci MUX_ENABLE_MIF5, 10058c2ecf20Sopenharmony_ci MUX_ENABLE_MIF6, 10068c2ecf20Sopenharmony_ci MUX_ENABLE_MIF7, 10078c2ecf20Sopenharmony_ci DIV_MIF1, 10088c2ecf20Sopenharmony_ci DIV_MIF2, 10098c2ecf20Sopenharmony_ci DIV_MIF3, 10108c2ecf20Sopenharmony_ci DIV_MIF4, 10118c2ecf20Sopenharmony_ci DIV_MIF5, 10128c2ecf20Sopenharmony_ci DIV_MIF_PLL_FREQ_DET, 10138c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 10148c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF1, 10158c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF2, 10168c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF3, 10178c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 10188c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF_SECURE_DREX0_TZ, 10198c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF_SECURE_DREX1_TZ, 10208c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF_SECURE_MONOTONIC_CNT, 10218c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF_SECURE_RTC, 10228c2ecf20Sopenharmony_ci ENABLE_SCLK_MIF, 10238c2ecf20Sopenharmony_ci ENABLE_IP_MIF0, 10248c2ecf20Sopenharmony_ci ENABLE_IP_MIF1, 10258c2ecf20Sopenharmony_ci ENABLE_IP_MIF2, 10268c2ecf20Sopenharmony_ci ENABLE_IP_MIF3, 10278c2ecf20Sopenharmony_ci ENABLE_IP_MIF_SECURE_DREX0_TZ, 10288c2ecf20Sopenharmony_ci ENABLE_IP_MIF_SECURE_DREX1_TZ, 10298c2ecf20Sopenharmony_ci ENABLE_IP_MIF_SECURE_MONOTONIC_CNT, 10308c2ecf20Sopenharmony_ci ENABLE_IP_MIF_SECURE_RTC, 10318c2ecf20Sopenharmony_ci CLKOUT_CMU_MIF, 10328c2ecf20Sopenharmony_ci CLKOUT_CMU_MIF_DIV_STAT, 10338c2ecf20Sopenharmony_ci DREX_FREQ_CTRL0, 10348c2ecf20Sopenharmony_ci DREX_FREQ_CTRL1, 10358c2ecf20Sopenharmony_ci PAUSE, 10368c2ecf20Sopenharmony_ci DDRPHY_LOCK_CTRL, 10378c2ecf20Sopenharmony_ci}; 10388c2ecf20Sopenharmony_ci 10398c2ecf20Sopenharmony_cistatic const struct samsung_pll_clock mif_pll_clks[] __initconst = { 10408c2ecf20Sopenharmony_ci PLL(pll_35xx, CLK_FOUT_MEM0_PLL, "fout_mem0_pll", "oscclk", 10418c2ecf20Sopenharmony_ci MEM0_PLL_LOCK, MEM0_PLL_CON0, exynos5433_pll_rates), 10428c2ecf20Sopenharmony_ci PLL(pll_35xx, CLK_FOUT_MEM1_PLL, "fout_mem1_pll", "oscclk", 10438c2ecf20Sopenharmony_ci MEM1_PLL_LOCK, MEM1_PLL_CON0, exynos5433_pll_rates), 10448c2ecf20Sopenharmony_ci PLL(pll_35xx, CLK_FOUT_BUS_PLL, "fout_bus_pll", "oscclk", 10458c2ecf20Sopenharmony_ci BUS_PLL_LOCK, BUS_PLL_CON0, exynos5433_pll_rates), 10468c2ecf20Sopenharmony_ci PLL(pll_35xx, CLK_FOUT_MFC_PLL, "fout_mfc_pll", "oscclk", 10478c2ecf20Sopenharmony_ci MFC_PLL_LOCK, MFC_PLL_CON0, exynos5433_pll_rates), 10488c2ecf20Sopenharmony_ci}; 10498c2ecf20Sopenharmony_ci 10508c2ecf20Sopenharmony_ci/* list of all parent clock list */ 10518c2ecf20Sopenharmony_ciPNAME(mout_mfc_pll_div2_p) = { "mout_mfc_pll", "dout_mfc_pll", }; 10528c2ecf20Sopenharmony_ciPNAME(mout_bus_pll_div2_p) = { "mout_bus_pll", "dout_bus_pll", }; 10538c2ecf20Sopenharmony_ciPNAME(mout_mem1_pll_div2_p) = { "mout_mem1_pll", "dout_mem1_pll", }; 10548c2ecf20Sopenharmony_ciPNAME(mout_mem0_pll_div2_p) = { "mout_mem0_pll", "dout_mem0_pll", }; 10558c2ecf20Sopenharmony_ciPNAME(mout_mfc_pll_p) = { "oscclk", "fout_mfc_pll", }; 10568c2ecf20Sopenharmony_ciPNAME(mout_bus_pll_p) = { "oscclk", "fout_bus_pll", }; 10578c2ecf20Sopenharmony_ciPNAME(mout_mem1_pll_p) = { "oscclk", "fout_mem1_pll", }; 10588c2ecf20Sopenharmony_ciPNAME(mout_mem0_pll_p) = { "oscclk", "fout_mem0_pll", }; 10598c2ecf20Sopenharmony_ci 10608c2ecf20Sopenharmony_ciPNAME(mout_clk2x_phy_c_p) = { "mout_mem0_pll_div2", "mout_clkm_phy_b", }; 10618c2ecf20Sopenharmony_ciPNAME(mout_clk2x_phy_b_p) = { "mout_bus_pll_div2", "mout_clkm_phy_a", }; 10628c2ecf20Sopenharmony_ciPNAME(mout_clk2x_phy_a_p) = { "mout_bus_pll_div2", "mout_mfc_pll_div2", }; 10638c2ecf20Sopenharmony_ciPNAME(mout_clkm_phy_b_p) = { "mout_mem1_pll_div2", "mout_clkm_phy_a", }; 10648c2ecf20Sopenharmony_ci 10658c2ecf20Sopenharmony_ciPNAME(mout_aclk_mifnm_200_p) = { "mout_mem0_pll_div2", "div_mif_pre", }; 10668c2ecf20Sopenharmony_ciPNAME(mout_aclk_mifnm_400_p) = { "mout_mem1_pll_div2", "mout_bus_pll_div2",}; 10678c2ecf20Sopenharmony_ci 10688c2ecf20Sopenharmony_ciPNAME(mout_aclk_disp_333_b_p) = { "mout_aclk_disp_333_a", 10698c2ecf20Sopenharmony_ci "mout_bus_pll_div2", }; 10708c2ecf20Sopenharmony_ciPNAME(mout_aclk_disp_333_a_p) = { "mout_mfc_pll_div2", "sclk_mphy_pll", }; 10718c2ecf20Sopenharmony_ci 10728c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_vclk_c_p) = { "mout_sclk_decon_vclk_b", 10738c2ecf20Sopenharmony_ci "sclk_mphy_pll", }; 10748c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_vclk_b_p) = { "mout_sclk_decon_vclk_a", 10758c2ecf20Sopenharmony_ci "mout_mfc_pll_div2", }; 10768c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_p) = { "oscclk", "mout_bus_pll_div2", }; 10778c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_eclk_c_p) = { "mout_sclk_decon_eclk_b", 10788c2ecf20Sopenharmony_ci "sclk_mphy_pll", }; 10798c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_eclk_b_p) = { "mout_sclk_decon_eclk_a", 10808c2ecf20Sopenharmony_ci "mout_mfc_pll_div2", }; 10818c2ecf20Sopenharmony_ci 10828c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_tv_eclk_c_p) = { "mout_sclk_decon_tv_eclk_b", 10838c2ecf20Sopenharmony_ci "sclk_mphy_pll", }; 10848c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_tv_eclk_b_p) = { "mout_sclk_decon_tv_eclk_a", 10858c2ecf20Sopenharmony_ci "mout_mfc_pll_div2", }; 10868c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsd_c_p) = { "mout_sclk_dsd_b", "mout_bus_pll_div2", }; 10878c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsd_b_p) = { "mout_sclk_dsd_a", "sclk_mphy_pll", }; 10888c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsd_a_p) = { "oscclk", "mout_mfc_pll_div2", }; 10898c2ecf20Sopenharmony_ci 10908c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsim0_c_p) = { "mout_sclk_dsim0_b", "sclk_mphy_pll", }; 10918c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsim0_b_p) = { "mout_sclk_dsim0_a", "mout_mfc_pll_div2" }; 10928c2ecf20Sopenharmony_ci 10938c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_tv_vclk_c_p) = { "mout_sclk_decon_tv_vclk_b", 10948c2ecf20Sopenharmony_ci "sclk_mphy_pll", }; 10958c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_tv_vclk_b_p) = { "mout_sclk_decon_tv_vclk_a", 10968c2ecf20Sopenharmony_ci "mout_mfc_pll_div2", }; 10978c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsim1_c_p) = { "mout_sclk_dsim1_b", "sclk_mphy_pll", }; 10988c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsim1_b_p) = { "mout_sclk_dsim1_a", "mout_mfc_pll_div2",}; 10998c2ecf20Sopenharmony_ci 11008c2ecf20Sopenharmony_cistatic const struct samsung_fixed_factor_clock mif_fixed_factor_clks[] __initconst = { 11018c2ecf20Sopenharmony_ci /* dout_{mfc|bus|mem1|mem0}_pll is half fixed rate from parent mux */ 11028c2ecf20Sopenharmony_ci FFACTOR(CLK_DOUT_MFC_PLL, "dout_mfc_pll", "mout_mfc_pll", 1, 1, 0), 11038c2ecf20Sopenharmony_ci FFACTOR(CLK_DOUT_BUS_PLL, "dout_bus_pll", "mout_bus_pll", 1, 1, 0), 11048c2ecf20Sopenharmony_ci FFACTOR(CLK_DOUT_MEM1_PLL, "dout_mem1_pll", "mout_mem1_pll", 1, 1, 0), 11058c2ecf20Sopenharmony_ci FFACTOR(CLK_DOUT_MEM0_PLL, "dout_mem0_pll", "mout_mem0_pll", 1, 1, 0), 11068c2ecf20Sopenharmony_ci}; 11078c2ecf20Sopenharmony_ci 11088c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock mif_mux_clks[] __initconst = { 11098c2ecf20Sopenharmony_ci /* MUX_SEL_MIF0 */ 11108c2ecf20Sopenharmony_ci MUX(CLK_MOUT_MFC_PLL_DIV2, "mout_mfc_pll_div2", mout_mfc_pll_div2_p, 11118c2ecf20Sopenharmony_ci MUX_SEL_MIF0, 28, 1), 11128c2ecf20Sopenharmony_ci MUX(CLK_MOUT_BUS_PLL_DIV2, "mout_bus_pll_div2", mout_bus_pll_div2_p, 11138c2ecf20Sopenharmony_ci MUX_SEL_MIF0, 24, 1), 11148c2ecf20Sopenharmony_ci MUX(CLK_MOUT_MEM1_PLL_DIV2, "mout_mem1_pll_div2", mout_mem1_pll_div2_p, 11158c2ecf20Sopenharmony_ci MUX_SEL_MIF0, 20, 1), 11168c2ecf20Sopenharmony_ci MUX(CLK_MOUT_MEM0_PLL_DIV2, "mout_mem0_pll_div2", mout_mem0_pll_div2_p, 11178c2ecf20Sopenharmony_ci MUX_SEL_MIF0, 16, 1), 11188c2ecf20Sopenharmony_ci MUX(CLK_MOUT_MFC_PLL, "mout_mfc_pll", mout_mfc_pll_p, MUX_SEL_MIF0, 11198c2ecf20Sopenharmony_ci 12, 1), 11208c2ecf20Sopenharmony_ci MUX(CLK_MOUT_BUS_PLL, "mout_bus_pll", mout_bus_pll_p, MUX_SEL_MIF0, 11218c2ecf20Sopenharmony_ci 8, 1), 11228c2ecf20Sopenharmony_ci MUX(CLK_MOUT_MEM1_PLL, "mout_mem1_pll", mout_mem1_pll_p, MUX_SEL_MIF0, 11238c2ecf20Sopenharmony_ci 4, 1), 11248c2ecf20Sopenharmony_ci MUX(CLK_MOUT_MEM0_PLL, "mout_mem0_pll", mout_mem0_pll_p, MUX_SEL_MIF0, 11258c2ecf20Sopenharmony_ci 0, 1), 11268c2ecf20Sopenharmony_ci 11278c2ecf20Sopenharmony_ci /* MUX_SEL_MIF1 */ 11288c2ecf20Sopenharmony_ci MUX(CLK_MOUT_CLK2X_PHY_C, "mout_clk2x_phy_c", mout_clk2x_phy_c_p, 11298c2ecf20Sopenharmony_ci MUX_SEL_MIF1, 24, 1), 11308c2ecf20Sopenharmony_ci MUX(CLK_MOUT_CLK2X_PHY_B, "mout_clk2x_phy_b", mout_clk2x_phy_b_p, 11318c2ecf20Sopenharmony_ci MUX_SEL_MIF1, 20, 1), 11328c2ecf20Sopenharmony_ci MUX(CLK_MOUT_CLK2X_PHY_A, "mout_clk2x_phy_a", mout_clk2x_phy_a_p, 11338c2ecf20Sopenharmony_ci MUX_SEL_MIF1, 16, 1), 11348c2ecf20Sopenharmony_ci MUX(CLK_MOUT_CLKM_PHY_C, "mout_clkm_phy_c", mout_clk2x_phy_c_p, 11358c2ecf20Sopenharmony_ci MUX_SEL_MIF1, 12, 1), 11368c2ecf20Sopenharmony_ci MUX(CLK_MOUT_CLKM_PHY_B, "mout_clkm_phy_b", mout_clkm_phy_b_p, 11378c2ecf20Sopenharmony_ci MUX_SEL_MIF1, 8, 1), 11388c2ecf20Sopenharmony_ci MUX(CLK_MOUT_CLKM_PHY_A, "mout_clkm_phy_a", mout_clk2x_phy_a_p, 11398c2ecf20Sopenharmony_ci MUX_SEL_MIF1, 4, 1), 11408c2ecf20Sopenharmony_ci 11418c2ecf20Sopenharmony_ci /* MUX_SEL_MIF2 */ 11428c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_MIFNM_200, "mout_aclk_mifnm_200", 11438c2ecf20Sopenharmony_ci mout_aclk_mifnm_200_p, MUX_SEL_MIF2, 8, 1), 11448c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_MIFNM_400, "mout_aclk_mifnm_400", 11458c2ecf20Sopenharmony_ci mout_aclk_mifnm_400_p, MUX_SEL_MIF2, 0, 1), 11468c2ecf20Sopenharmony_ci 11478c2ecf20Sopenharmony_ci /* MUX_SEL_MIF3 */ 11488c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_DISP_333_B, "mout_aclk_disp_333_b", 11498c2ecf20Sopenharmony_ci mout_aclk_disp_333_b_p, MUX_SEL_MIF3, 4, 1), 11508c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_DISP_333_A, "mout_aclk_disp_333_a", 11518c2ecf20Sopenharmony_ci mout_aclk_disp_333_a_p, MUX_SEL_MIF3, 0, 1), 11528c2ecf20Sopenharmony_ci 11538c2ecf20Sopenharmony_ci /* MUX_SEL_MIF4 */ 11548c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_VCLK_C, "mout_sclk_decon_vclk_c", 11558c2ecf20Sopenharmony_ci mout_sclk_decon_vclk_c_p, MUX_SEL_MIF4, 24, 1), 11568c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_VCLK_B, "mout_sclk_decon_vclk_b", 11578c2ecf20Sopenharmony_ci mout_sclk_decon_vclk_b_p, MUX_SEL_MIF4, 20, 1), 11588c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_VCLK_A, "mout_sclk_decon_vclk_a", 11598c2ecf20Sopenharmony_ci mout_sclk_decon_p, MUX_SEL_MIF4, 16, 1), 11608c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_ECLK_C, "mout_sclk_decon_eclk_c", 11618c2ecf20Sopenharmony_ci mout_sclk_decon_eclk_c_p, MUX_SEL_MIF4, 8, 1), 11628c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_ECLK_B, "mout_sclk_decon_eclk_b", 11638c2ecf20Sopenharmony_ci mout_sclk_decon_eclk_b_p, MUX_SEL_MIF4, 4, 1), 11648c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_ECLK_A, "mout_sclk_decon_eclk_a", 11658c2ecf20Sopenharmony_ci mout_sclk_decon_p, MUX_SEL_MIF4, 0, 1), 11668c2ecf20Sopenharmony_ci 11678c2ecf20Sopenharmony_ci /* MUX_SEL_MIF5 */ 11688c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_ECLK_C, "mout_sclk_decon_tv_eclk_c", 11698c2ecf20Sopenharmony_ci mout_sclk_decon_tv_eclk_c_p, MUX_SEL_MIF5, 24, 1), 11708c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_ECLK_B, "mout_sclk_decon_tv_eclk_b", 11718c2ecf20Sopenharmony_ci mout_sclk_decon_tv_eclk_b_p, MUX_SEL_MIF5, 20, 1), 11728c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_ECLK_A, "mout_sclk_decon_tv_eclk_a", 11738c2ecf20Sopenharmony_ci mout_sclk_decon_p, MUX_SEL_MIF5, 16, 1), 11748c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSD_C, "mout_sclk_dsd_c", mout_sclk_dsd_c_p, 11758c2ecf20Sopenharmony_ci MUX_SEL_MIF5, 8, 1), 11768c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSD_B, "mout_sclk_dsd_b", mout_sclk_dsd_b_p, 11778c2ecf20Sopenharmony_ci MUX_SEL_MIF5, 4, 1), 11788c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSD_A, "mout_sclk_dsd_a", mout_sclk_dsd_a_p, 11798c2ecf20Sopenharmony_ci MUX_SEL_MIF5, 0, 1), 11808c2ecf20Sopenharmony_ci 11818c2ecf20Sopenharmony_ci /* MUX_SEL_MIF6 */ 11828c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSIM0_C, "mout_sclk_dsim0_c", mout_sclk_dsim0_c_p, 11838c2ecf20Sopenharmony_ci MUX_SEL_MIF6, 8, 1), 11848c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSIM0_B, "mout_sclk_dsim0_b", mout_sclk_dsim0_b_p, 11858c2ecf20Sopenharmony_ci MUX_SEL_MIF6, 4, 1), 11868c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSIM0_A, "mout_sclk_dsim0_a", mout_sclk_decon_p, 11878c2ecf20Sopenharmony_ci MUX_SEL_MIF6, 0, 1), 11888c2ecf20Sopenharmony_ci 11898c2ecf20Sopenharmony_ci /* MUX_SEL_MIF7 */ 11908c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_VCLK_C, "mout_sclk_decon_tv_vclk_c", 11918c2ecf20Sopenharmony_ci mout_sclk_decon_tv_vclk_c_p, MUX_SEL_MIF7, 24, 1), 11928c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_VCLK_B, "mout_sclk_decon_tv_vclk_b", 11938c2ecf20Sopenharmony_ci mout_sclk_decon_tv_vclk_b_p, MUX_SEL_MIF7, 20, 1), 11948c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_VCLK_A, "mout_sclk_decon_tv_vclk_a", 11958c2ecf20Sopenharmony_ci mout_sclk_decon_p, MUX_SEL_MIF7, 16, 1), 11968c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSIM1_C, "mout_sclk_dsim1_c", mout_sclk_dsim1_c_p, 11978c2ecf20Sopenharmony_ci MUX_SEL_MIF7, 8, 1), 11988c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSIM1_B, "mout_sclk_dsim1_b", mout_sclk_dsim1_b_p, 11998c2ecf20Sopenharmony_ci MUX_SEL_MIF7, 4, 1), 12008c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSIM1_A, "mout_sclk_dsim1_a", mout_sclk_decon_p, 12018c2ecf20Sopenharmony_ci MUX_SEL_MIF7, 0, 1), 12028c2ecf20Sopenharmony_ci}; 12038c2ecf20Sopenharmony_ci 12048c2ecf20Sopenharmony_cistatic const struct samsung_div_clock mif_div_clks[] __initconst = { 12058c2ecf20Sopenharmony_ci /* DIV_MIF1 */ 12068c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_HPM_MIF, "div_sclk_hpm_mif", "div_clk2x_phy", 12078c2ecf20Sopenharmony_ci DIV_MIF1, 16, 2), 12088c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_DREX1, "div_aclk_drex1", "div_clk2x_phy", DIV_MIF1, 12098c2ecf20Sopenharmony_ci 12, 2), 12108c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_DREX0, "div_aclk_drex0", "div_clk2x_phy", DIV_MIF1, 12118c2ecf20Sopenharmony_ci 8, 2), 12128c2ecf20Sopenharmony_ci DIV(CLK_DIV_CLK2XPHY, "div_clk2x_phy", "mout_clk2x_phy_c", DIV_MIF1, 12138c2ecf20Sopenharmony_ci 4, 4), 12148c2ecf20Sopenharmony_ci 12158c2ecf20Sopenharmony_ci /* DIV_MIF2 */ 12168c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_MIF_266, "div_aclk_mif_266", "mout_bus_pll_div2", 12178c2ecf20Sopenharmony_ci DIV_MIF2, 20, 3), 12188c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_MIFND_133, "div_aclk_mifnd_133", "div_mif_pre", 12198c2ecf20Sopenharmony_ci DIV_MIF2, 16, 4), 12208c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_MIF_133, "div_aclk_mif_133", "div_mif_pre", 12218c2ecf20Sopenharmony_ci DIV_MIF2, 12, 4), 12228c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_MIFNM_200, "div_aclk_mifnm_200", 12238c2ecf20Sopenharmony_ci "mout_aclk_mifnm_200", DIV_MIF2, 8, 3), 12248c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_MIF_200, "div_aclk_mif_200", "div_aclk_mif_400", 12258c2ecf20Sopenharmony_ci DIV_MIF2, 4, 2), 12268c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_MIF_400, "div_aclk_mif_400", "mout_aclk_mifnm_400", 12278c2ecf20Sopenharmony_ci DIV_MIF2, 0, 3), 12288c2ecf20Sopenharmony_ci 12298c2ecf20Sopenharmony_ci /* DIV_MIF3 */ 12308c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_BUS2_400, "div_aclk_bus2_400", "div_mif_pre", 12318c2ecf20Sopenharmony_ci DIV_MIF3, 16, 4), 12328c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_DISP_333, "div_aclk_disp_333", "mout_aclk_disp_333_b", 12338c2ecf20Sopenharmony_ci DIV_MIF3, 4, 3), 12348c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CPIF_200, "div_aclk_cpif_200", "mout_aclk_mifnm_200", 12358c2ecf20Sopenharmony_ci DIV_MIF3, 0, 3), 12368c2ecf20Sopenharmony_ci 12378c2ecf20Sopenharmony_ci /* DIV_MIF4 */ 12388c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DSIM1, "div_sclk_dsim1", "mout_sclk_dsim1_c", 12398c2ecf20Sopenharmony_ci DIV_MIF4, 24, 4), 12408c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DECON_TV_VCLK, "div_sclk_decon_tv_vclk", 12418c2ecf20Sopenharmony_ci "mout_sclk_decon_tv_vclk_c", DIV_MIF4, 20, 4), 12428c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DSIM0, "div_sclk_dsim0", "mout_sclk_dsim0_c", 12438c2ecf20Sopenharmony_ci DIV_MIF4, 16, 4), 12448c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DSD, "div_sclk_dsd", "mout_sclk_dsd_c", 12458c2ecf20Sopenharmony_ci DIV_MIF4, 12, 4), 12468c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DECON_TV_ECLK, "div_sclk_decon_tv_eclk", 12478c2ecf20Sopenharmony_ci "mout_sclk_decon_tv_eclk_c", DIV_MIF4, 8, 4), 12488c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DECON_VCLK, "div_sclk_decon_vclk", 12498c2ecf20Sopenharmony_ci "mout_sclk_decon_vclk_c", DIV_MIF4, 4, 4), 12508c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DECON_ECLK, "div_sclk_decon_eclk", 12518c2ecf20Sopenharmony_ci "mout_sclk_decon_eclk_c", DIV_MIF4, 0, 4), 12528c2ecf20Sopenharmony_ci 12538c2ecf20Sopenharmony_ci /* DIV_MIF5 */ 12548c2ecf20Sopenharmony_ci DIV(CLK_DIV_MIF_PRE, "div_mif_pre", "mout_bus_pll_div2", DIV_MIF5, 12558c2ecf20Sopenharmony_ci 0, 3), 12568c2ecf20Sopenharmony_ci}; 12578c2ecf20Sopenharmony_ci 12588c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock mif_gate_clks[] __initconst = { 12598c2ecf20Sopenharmony_ci /* ENABLE_ACLK_MIF0 */ 12608c2ecf20Sopenharmony_ci GATE(CLK_CLK2X_PHY1, "clk2k_phy1", "div_clk2x_phy", ENABLE_ACLK_MIF0, 12618c2ecf20Sopenharmony_ci 19, CLK_IGNORE_UNUSED, 0), 12628c2ecf20Sopenharmony_ci GATE(CLK_CLK2X_PHY0, "clk2x_phy0", "div_clk2x_phy", ENABLE_ACLK_MIF0, 12638c2ecf20Sopenharmony_ci 18, CLK_IGNORE_UNUSED, 0), 12648c2ecf20Sopenharmony_ci GATE(CLK_CLKM_PHY1, "clkm_phy1", "mout_clkm_phy_c", ENABLE_ACLK_MIF0, 12658c2ecf20Sopenharmony_ci 17, CLK_IGNORE_UNUSED, 0), 12668c2ecf20Sopenharmony_ci GATE(CLK_CLKM_PHY0, "clkm_phy0", "mout_clkm_phy_c", ENABLE_ACLK_MIF0, 12678c2ecf20Sopenharmony_ci 16, CLK_IGNORE_UNUSED, 0), 12688c2ecf20Sopenharmony_ci GATE(CLK_RCLK_DREX1, "rclk_drex1", "oscclk", ENABLE_ACLK_MIF0, 12698c2ecf20Sopenharmony_ci 15, CLK_IGNORE_UNUSED, 0), 12708c2ecf20Sopenharmony_ci GATE(CLK_RCLK_DREX0, "rclk_drex0", "oscclk", ENABLE_ACLK_MIF0, 12718c2ecf20Sopenharmony_ci 14, CLK_IGNORE_UNUSED, 0), 12728c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX1_TZ, "aclk_drex1_tz", "div_aclk_drex1", 12738c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 13, CLK_IGNORE_UNUSED, 0), 12748c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX0_TZ, "aclk_drex0_tz", "div_aclk_drex0", 12758c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 12, CLK_IGNORE_UNUSED, 0), 12768c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX1_PEREV, "aclk_drex1_perev", "div_aclk_drex1", 12778c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 11, CLK_IGNORE_UNUSED, 0), 12788c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX0_PEREV, "aclk_drex0_perev", "div_aclk_drex0", 12798c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 10, CLK_IGNORE_UNUSED, 0), 12808c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX1_MEMIF, "aclk_drex1_memif", "div_aclk_drex1", 12818c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 9, CLK_IGNORE_UNUSED, 0), 12828c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX0_MEMIF, "aclk_drex0_memif", "div_aclk_drex0", 12838c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 8, CLK_IGNORE_UNUSED, 0), 12848c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX1_SCH, "aclk_drex1_sch", "div_aclk_drex1", 12858c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 7, CLK_IGNORE_UNUSED, 0), 12868c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX0_SCH, "aclk_drex0_sch", "div_aclk_drex0", 12878c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 6, CLK_IGNORE_UNUSED, 0), 12888c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX1_BUSIF, "aclk_drex1_busif", "div_aclk_drex1", 12898c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 5, CLK_IGNORE_UNUSED, 0), 12908c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX0_BUSIF, "aclk_drex0_busif", "div_aclk_drex0", 12918c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 4, CLK_IGNORE_UNUSED, 0), 12928c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX1_BUSIF_RD, "aclk_drex1_busif_rd", "div_aclk_drex1", 12938c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 3, CLK_IGNORE_UNUSED, 0), 12948c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX0_BUSIF_RD, "aclk_drex0_busif_rd", "div_aclk_drex0", 12958c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 2, CLK_IGNORE_UNUSED, 0), 12968c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX1, "aclk_drex1", "div_aclk_drex1", 12978c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 2, CLK_IGNORE_UNUSED, 0), 12988c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DREX0, "aclk_drex0", "div_aclk_drex0", 12998c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF0, 1, CLK_IGNORE_UNUSED, 0), 13008c2ecf20Sopenharmony_ci 13018c2ecf20Sopenharmony_ci /* ENABLE_ACLK_MIF1 */ 13028c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_MIF_IMEM, "aclk_asyncaxis_mif_imem", 13038c2ecf20Sopenharmony_ci "div_aclk_mif_200", ENABLE_ACLK_MIF1, 28, 13048c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 13058c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_NOC_P_CCI, "aclk_asyncaxis_noc_p_cci", 13068c2ecf20Sopenharmony_ci "div_aclk_mif_200", ENABLE_ACLK_MIF1, 13078c2ecf20Sopenharmony_ci 27, CLK_IGNORE_UNUSED, 0), 13088c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_NOC_P_CCI, "aclk_asyncaxim_noc_p_cci", 13098c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_ACLK_MIF1, 13108c2ecf20Sopenharmony_ci 26, CLK_IGNORE_UNUSED, 0), 13118c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_CP1, "aclk_asyncaxis_cp1", 13128c2ecf20Sopenharmony_ci "div_aclk_mifnm_200", ENABLE_ACLK_MIF1, 13138c2ecf20Sopenharmony_ci 25, CLK_IGNORE_UNUSED, 0), 13148c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_CP1, "aclk_asyncaxim_cp1", 13158c2ecf20Sopenharmony_ci "div_aclk_drex1", ENABLE_ACLK_MIF1, 13168c2ecf20Sopenharmony_ci 24, CLK_IGNORE_UNUSED, 0), 13178c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_CP0, "aclk_asyncaxis_cp0", 13188c2ecf20Sopenharmony_ci "div_aclk_mifnm_200", ENABLE_ACLK_MIF1, 13198c2ecf20Sopenharmony_ci 23, CLK_IGNORE_UNUSED, 0), 13208c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_CP0, "aclk_asyncaxim_cp0", 13218c2ecf20Sopenharmony_ci "div_aclk_drex0", ENABLE_ACLK_MIF1, 13228c2ecf20Sopenharmony_ci 22, CLK_IGNORE_UNUSED, 0), 13238c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_DREX1_3, "aclk_asyncaxis_drex1_3", 13248c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_ACLK_MIF1, 13258c2ecf20Sopenharmony_ci 21, CLK_IGNORE_UNUSED, 0), 13268c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_DREX1_3, "aclk_asyncaxim_drex1_3", 13278c2ecf20Sopenharmony_ci "div_aclk_drex1", ENABLE_ACLK_MIF1, 13288c2ecf20Sopenharmony_ci 20, CLK_IGNORE_UNUSED, 0), 13298c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_DREX1_1, "aclk_asyncaxis_drex1_1", 13308c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_ACLK_MIF1, 13318c2ecf20Sopenharmony_ci 19, CLK_IGNORE_UNUSED, 0), 13328c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_DREX1_1, "aclk_asyncaxim_drex1_1", 13338c2ecf20Sopenharmony_ci "div_aclk_drex1", ENABLE_ACLK_MIF1, 13348c2ecf20Sopenharmony_ci 18, CLK_IGNORE_UNUSED, 0), 13358c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_DREX1_0, "aclk_asyncaxis_drex1_0", 13368c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_ACLK_MIF1, 13378c2ecf20Sopenharmony_ci 17, CLK_IGNORE_UNUSED, 0), 13388c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_DREX1_0, "aclk_asyncaxim_drex1_0", 13398c2ecf20Sopenharmony_ci "div_aclk_drex1", ENABLE_ACLK_MIF1, 13408c2ecf20Sopenharmony_ci 16, CLK_IGNORE_UNUSED, 0), 13418c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_DREX0_3, "aclk_asyncaxis_drex0_3", 13428c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_ACLK_MIF1, 13438c2ecf20Sopenharmony_ci 15, CLK_IGNORE_UNUSED, 0), 13448c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_DREX0_3, "aclk_asyncaxim_drex0_3", 13458c2ecf20Sopenharmony_ci "div_aclk_drex0", ENABLE_ACLK_MIF1, 13468c2ecf20Sopenharmony_ci 14, CLK_IGNORE_UNUSED, 0), 13478c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_DREX0_1, "aclk_asyncaxis_drex0_1", 13488c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_ACLK_MIF1, 13498c2ecf20Sopenharmony_ci 13, CLK_IGNORE_UNUSED, 0), 13508c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_DREX0_1, "aclk_asyncaxim_drex0_1", 13518c2ecf20Sopenharmony_ci "div_aclk_drex0", ENABLE_ACLK_MIF1, 13528c2ecf20Sopenharmony_ci 12, CLK_IGNORE_UNUSED, 0), 13538c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_DREX0_0, "aclk_asyncaxis_drex0_0", 13548c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_ACLK_MIF1, 13558c2ecf20Sopenharmony_ci 11, CLK_IGNORE_UNUSED, 0), 13568c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_DREX0_0, "aclk_asyncaxim_drex0_0", 13578c2ecf20Sopenharmony_ci "div_aclk_drex0", ENABLE_ACLK_MIF1, 13588c2ecf20Sopenharmony_ci 10, CLK_IGNORE_UNUSED, 0), 13598c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_MIF2P, "aclk_ahb2apb_mif2p", "div_aclk_mif_133", 13608c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF1, 9, CLK_IGNORE_UNUSED, 0), 13618c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_MIF1P, "aclk_ahb2apb_mif1p", "div_aclk_mif_133", 13628c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF1, 8, CLK_IGNORE_UNUSED, 0), 13638c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_MIF0P, "aclk_ahb2apb_mif0p", "div_aclk_mif_133", 13648c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF1, 7, CLK_IGNORE_UNUSED, 0), 13658c2ecf20Sopenharmony_ci GATE(CLK_ACLK_IXIU_CCI, "aclk_ixiu_cci", "div_aclk_mif_400", 13668c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF1, 6, CLK_IGNORE_UNUSED, 0), 13678c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_MIFSFRX, "aclk_xiu_mifsfrx", "div_aclk_mif_200", 13688c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF1, 5, CLK_IGNORE_UNUSED, 0), 13698c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MIFNP_133, "aclk_mifnp_133", "div_aclk_mif_133", 13708c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF1, 4, CLK_IGNORE_UNUSED, 0), 13718c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MIFNM_200, "aclk_mifnm_200", "div_aclk_mifnm_200", 13728c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF1, 3, CLK_IGNORE_UNUSED, 0), 13738c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MIFND_133, "aclk_mifnd_133", "div_aclk_mifnd_133", 13748c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF1, 2, CLK_IGNORE_UNUSED, 0), 13758c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MIFND_400, "aclk_mifnd_400", "div_aclk_mif_400", 13768c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF1, 1, CLK_IGNORE_UNUSED, 0), 13778c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CCI, "aclk_cci", "div_aclk_mif_400", ENABLE_ACLK_MIF1, 13788c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 13798c2ecf20Sopenharmony_ci 13808c2ecf20Sopenharmony_ci /* ENABLE_ACLK_MIF2 */ 13818c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MIFND_266, "aclk_mifnd_266", "div_aclk_mif_266", 13828c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF2, 20, CLK_IGNORE_UNUSED, 0), 13838c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PPMU_DREX1S3, "aclk_ppmu_drex1s3", "div_aclk_drex1", 13848c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF2, 17, CLK_IGNORE_UNUSED, 0), 13858c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PPMU_DREX1S1, "aclk_ppmu_drex1s1", "div_aclk_drex1", 13868c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF2, 16, CLK_IGNORE_UNUSED, 0), 13878c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PPMU_DREX1S0, "aclk_ppmu_drex1s0", "div_aclk_drex1", 13888c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF2, 15, CLK_IGNORE_UNUSED, 0), 13898c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PPMU_DREX0S3, "aclk_ppmu_drex0s3", "div_aclk_drex0", 13908c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF2, 14, CLK_IGNORE_UNUSED, 0), 13918c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PPMU_DREX0S1, "aclk_ppmu_drex0s1", "div_aclk_drex0", 13928c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF2, 13, CLK_IGNORE_UNUSED, 0), 13938c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PPMU_DREX0S0, "aclk_ppmu_drex0s0", "div_aclk_drex0", 13948c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF2, 12, CLK_IGNORE_UNUSED, 0), 13958c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIDS_CCI_MIFSFRX, "aclk_axids_cci_mifsfrx", 13968c2ecf20Sopenharmony_ci "div_aclk_mif_200", ENABLE_ACLK_MIF2, 7, 13978c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 13988c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXISYNCDNS_CCI, "aclk_axisyncdns_cci", 13998c2ecf20Sopenharmony_ci "div_aclk_mif_400", ENABLE_ACLK_MIF2, 14008c2ecf20Sopenharmony_ci 5, CLK_IGNORE_UNUSED, 0), 14018c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXISYNCDN_CCI, "aclk_axisyncdn_cci", "div_aclk_mif_400", 14028c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF2, 4, CLK_IGNORE_UNUSED, 0), 14038c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXISYNCDN_NOC_D, "aclk_axisyncdn_noc_d", 14048c2ecf20Sopenharmony_ci "div_aclk_mif_200", ENABLE_ACLK_MIF2, 14058c2ecf20Sopenharmony_ci 3, CLK_IGNORE_UNUSED, 0), 14068c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBS_MIF_CSSYS, "aclk_asyncapbs_mif_cssys", 14078c2ecf20Sopenharmony_ci "div_aclk_mifnd_133", ENABLE_ACLK_MIF2, 0, 0, 0), 14088c2ecf20Sopenharmony_ci 14098c2ecf20Sopenharmony_ci /* ENABLE_ACLK_MIF3 */ 14108c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BUS2_400, "aclk_bus2_400", "div_aclk_bus2_400", 14118c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF3, 4, 14128c2ecf20Sopenharmony_ci CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), 14138c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DISP_333, "aclk_disp_333", "div_aclk_disp_333", 14148c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF3, 1, 14158c2ecf20Sopenharmony_ci CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), 14168c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CPIF_200, "aclk_cpif_200", "div_aclk_cpif_200", 14178c2ecf20Sopenharmony_ci ENABLE_ACLK_MIF3, 0, 14188c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), 14198c2ecf20Sopenharmony_ci 14208c2ecf20Sopenharmony_ci /* ENABLE_PCLK_MIF */ 14218c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PPMU_DREX1S3, "pclk_ppmu_drex1s3", "div_aclk_drex1", 14228c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 29, CLK_IGNORE_UNUSED, 0), 14238c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PPMU_DREX1S1, "pclk_ppmu_drex1s1", "div_aclk_drex1", 14248c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 28, CLK_IGNORE_UNUSED, 0), 14258c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PPMU_DREX1S0, "pclk_ppmu_drex1s0", "div_aclk_drex1", 14268c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 27, CLK_IGNORE_UNUSED, 0), 14278c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PPMU_DREX0S3, "pclk_ppmu_drex0s3", "div_aclk_drex0", 14288c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 26, CLK_IGNORE_UNUSED, 0), 14298c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PPMU_DREX0S1, "pclk_ppmu_drex0s1", "div_aclk_drex0", 14308c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 25, CLK_IGNORE_UNUSED, 0), 14318c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PPMU_DREX0S0, "pclk_ppmu_drex0s0", "div_aclk_drex0", 14328c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 24, CLK_IGNORE_UNUSED, 0), 14338c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_NOC_P_CCI, "pclk_asyncaxi_noc_p_cci", 14348c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_PCLK_MIF, 21, 14358c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 14368c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_CP1, "pclk_asyncaxi_cp1", "div_aclk_mif_133", 14378c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 19, 0, 0), 14388c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_CP0, "pclk_asyncaxi_cp0", "div_aclk_mif_133", 14398c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 18, 0, 0), 14408c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_DREX1_3, "pclk_asyncaxi_drex1_3", 14418c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_PCLK_MIF, 17, 0, 0), 14428c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_DREX1_1, "pclk_asyncaxi_drex1_1", 14438c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_PCLK_MIF, 16, 0, 0), 14448c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_DREX1_0, "pclk_asyncaxi_drex1_0", 14458c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_PCLK_MIF, 15, 0, 0), 14468c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_DREX0_3, "pclk_asyncaxi_drex0_3", 14478c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_PCLK_MIF, 14, 0, 0), 14488c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_DREX0_1, "pclk_asyncaxi_drex0_1", 14498c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_PCLK_MIF, 13, 0, 0), 14508c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_DREX0_0, "pclk_asyncaxi_drex0_0", 14518c2ecf20Sopenharmony_ci "div_aclk_mif_133", ENABLE_PCLK_MIF, 12, 0, 0), 14528c2ecf20Sopenharmony_ci GATE(CLK_PCLK_MIFSRVND_133, "pclk_mifsrvnd_133", "div_aclk_mif_133", 14538c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 11, 0, 0), 14548c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_MIF, "pclk_pmu_mif", "div_aclk_mif_133", 14558c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 10, CLK_IGNORE_UNUSED, 0), 14568c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_MIF, "pclk_sysreg_mif", "div_aclk_mif_133", 14578c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 9, CLK_IGNORE_UNUSED, 0), 14588c2ecf20Sopenharmony_ci GATE(CLK_PCLK_GPIO_ALIVE, "pclk_gpio_alive", "div_aclk_mif_133", 14598c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 8, CLK_IGNORE_UNUSED, 0), 14608c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ABB, "pclk_abb", "div_aclk_mif_133", 14618c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 7, 0, 0), 14628c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_APBIF, "pclk_pmu_apbif", "div_aclk_mif_133", 14638c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 6, CLK_IGNORE_UNUSED, 0), 14648c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DDR_PHY1, "pclk_ddr_phy1", "div_aclk_mif_133", 14658c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 5, 0, 0), 14668c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DREX1, "pclk_drex1", "div_aclk_mif_133", 14678c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 3, CLK_IGNORE_UNUSED, 0), 14688c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DDR_PHY0, "pclk_ddr_phy0", "div_aclk_mif_133", 14698c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 2, 0, 0), 14708c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DREX0, "pclk_drex0", "div_aclk_mif_133", 14718c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF, 0, CLK_IGNORE_UNUSED, 0), 14728c2ecf20Sopenharmony_ci 14738c2ecf20Sopenharmony_ci /* ENABLE_PCLK_MIF_SECURE_DREX0_TZ */ 14748c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DREX0_TZ, "pclk_drex0_tz", "div_aclk_mif_133", 14758c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF_SECURE_DREX0_TZ, 0, 14768c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 14778c2ecf20Sopenharmony_ci 14788c2ecf20Sopenharmony_ci /* ENABLE_PCLK_MIF_SECURE_DREX1_TZ */ 14798c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DREX1_TZ, "pclk_drex1_tz", "div_aclk_mif_133", 14808c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF_SECURE_DREX1_TZ, 0, 14818c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 14828c2ecf20Sopenharmony_ci 14838c2ecf20Sopenharmony_ci /* ENABLE_PCLK_MIF_SECURE_MONOTONIC_CNT */ 14848c2ecf20Sopenharmony_ci GATE(CLK_PCLK_MONOTONIC_CNT, "pclk_monotonic_cnt", "div_aclk_mif_133", 14858c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF_SECURE_MONOTONIC_CNT, 0, 0, 0), 14868c2ecf20Sopenharmony_ci 14878c2ecf20Sopenharmony_ci /* ENABLE_PCLK_MIF_SECURE_RTC */ 14888c2ecf20Sopenharmony_ci GATE(CLK_PCLK_RTC, "pclk_rtc", "div_aclk_mif_133", 14898c2ecf20Sopenharmony_ci ENABLE_PCLK_MIF_SECURE_RTC, 0, 0, 0), 14908c2ecf20Sopenharmony_ci 14918c2ecf20Sopenharmony_ci /* ENABLE_SCLK_MIF */ 14928c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DSIM1_DISP, "sclk_dsim1_disp", "div_sclk_dsim1", 14938c2ecf20Sopenharmony_ci ENABLE_SCLK_MIF, 15, CLK_IGNORE_UNUSED, 0), 14948c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DECON_TV_VCLK_DISP, "sclk_decon_tv_vclk_disp", 14958c2ecf20Sopenharmony_ci "div_sclk_decon_tv_vclk", ENABLE_SCLK_MIF, 14968c2ecf20Sopenharmony_ci 14, CLK_IGNORE_UNUSED, 0), 14978c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DSIM0_DISP, "sclk_dsim0_disp", "div_sclk_dsim0", 14988c2ecf20Sopenharmony_ci ENABLE_SCLK_MIF, 9, CLK_IGNORE_UNUSED, 0), 14998c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DSD_DISP, "sclk_dsd_disp", "div_sclk_dsd", 15008c2ecf20Sopenharmony_ci ENABLE_SCLK_MIF, 8, CLK_IGNORE_UNUSED, 0), 15018c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DECON_TV_ECLK_DISP, "sclk_decon_tv_eclk_disp", 15028c2ecf20Sopenharmony_ci "div_sclk_decon_tv_eclk", ENABLE_SCLK_MIF, 15038c2ecf20Sopenharmony_ci 7, CLK_IGNORE_UNUSED, 0), 15048c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DECON_VCLK_DISP, "sclk_decon_vclk_disp", 15058c2ecf20Sopenharmony_ci "div_sclk_decon_vclk", ENABLE_SCLK_MIF, 15068c2ecf20Sopenharmony_ci 6, CLK_IGNORE_UNUSED, 0), 15078c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DECON_ECLK_DISP, "sclk_decon_eclk_disp", 15088c2ecf20Sopenharmony_ci "div_sclk_decon_eclk", ENABLE_SCLK_MIF, 15098c2ecf20Sopenharmony_ci 5, CLK_IGNORE_UNUSED, 0), 15108c2ecf20Sopenharmony_ci GATE(CLK_SCLK_HPM_MIF, "sclk_hpm_mif", "div_sclk_hpm_mif", 15118c2ecf20Sopenharmony_ci ENABLE_SCLK_MIF, 4, 15128c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), 15138c2ecf20Sopenharmony_ci GATE(CLK_SCLK_MFC_PLL, "sclk_mfc_pll", "mout_mfc_pll_div2", 15148c2ecf20Sopenharmony_ci ENABLE_SCLK_MIF, 3, CLK_IGNORE_UNUSED, 0), 15158c2ecf20Sopenharmony_ci GATE(CLK_SCLK_BUS_PLL, "sclk_bus_pll", "mout_bus_pll_div2", 15168c2ecf20Sopenharmony_ci ENABLE_SCLK_MIF, 2, CLK_IGNORE_UNUSED, 0), 15178c2ecf20Sopenharmony_ci GATE(CLK_SCLK_BUS_PLL_APOLLO, "sclk_bus_pll_apollo", "sclk_bus_pll", 15188c2ecf20Sopenharmony_ci ENABLE_SCLK_MIF, 1, CLK_IGNORE_UNUSED, 0), 15198c2ecf20Sopenharmony_ci GATE(CLK_SCLK_BUS_PLL_ATLAS, "sclk_bus_pll_atlas", "sclk_bus_pll", 15208c2ecf20Sopenharmony_ci ENABLE_SCLK_MIF, 0, CLK_IGNORE_UNUSED, 0), 15218c2ecf20Sopenharmony_ci}; 15228c2ecf20Sopenharmony_ci 15238c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info mif_cmu_info __initconst = { 15248c2ecf20Sopenharmony_ci .pll_clks = mif_pll_clks, 15258c2ecf20Sopenharmony_ci .nr_pll_clks = ARRAY_SIZE(mif_pll_clks), 15268c2ecf20Sopenharmony_ci .mux_clks = mif_mux_clks, 15278c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(mif_mux_clks), 15288c2ecf20Sopenharmony_ci .div_clks = mif_div_clks, 15298c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(mif_div_clks), 15308c2ecf20Sopenharmony_ci .gate_clks = mif_gate_clks, 15318c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(mif_gate_clks), 15328c2ecf20Sopenharmony_ci .fixed_factor_clks = mif_fixed_factor_clks, 15338c2ecf20Sopenharmony_ci .nr_fixed_factor_clks = ARRAY_SIZE(mif_fixed_factor_clks), 15348c2ecf20Sopenharmony_ci .nr_clk_ids = MIF_NR_CLK, 15358c2ecf20Sopenharmony_ci .clk_regs = mif_clk_regs, 15368c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(mif_clk_regs), 15378c2ecf20Sopenharmony_ci}; 15388c2ecf20Sopenharmony_ci 15398c2ecf20Sopenharmony_cistatic void __init exynos5433_cmu_mif_init(struct device_node *np) 15408c2ecf20Sopenharmony_ci{ 15418c2ecf20Sopenharmony_ci samsung_cmu_register_one(np, &mif_cmu_info); 15428c2ecf20Sopenharmony_ci} 15438c2ecf20Sopenharmony_ciCLK_OF_DECLARE(exynos5433_cmu_mif, "samsung,exynos5433-cmu-mif", 15448c2ecf20Sopenharmony_ci exynos5433_cmu_mif_init); 15458c2ecf20Sopenharmony_ci 15468c2ecf20Sopenharmony_ci/* 15478c2ecf20Sopenharmony_ci * Register offset definitions for CMU_PERIC 15488c2ecf20Sopenharmony_ci */ 15498c2ecf20Sopenharmony_ci#define DIV_PERIC 0x0600 15508c2ecf20Sopenharmony_ci#define DIV_STAT_PERIC 0x0700 15518c2ecf20Sopenharmony_ci#define ENABLE_ACLK_PERIC 0x0800 15528c2ecf20Sopenharmony_ci#define ENABLE_PCLK_PERIC0 0x0900 15538c2ecf20Sopenharmony_ci#define ENABLE_PCLK_PERIC1 0x0904 15548c2ecf20Sopenharmony_ci#define ENABLE_SCLK_PERIC 0x0A00 15558c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIC0 0x0B00 15568c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIC1 0x0B04 15578c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIC2 0x0B08 15588c2ecf20Sopenharmony_ci 15598c2ecf20Sopenharmony_cistatic const unsigned long peric_clk_regs[] __initconst = { 15608c2ecf20Sopenharmony_ci DIV_PERIC, 15618c2ecf20Sopenharmony_ci ENABLE_ACLK_PERIC, 15628c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 15638c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC1, 15648c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 15658c2ecf20Sopenharmony_ci ENABLE_IP_PERIC0, 15668c2ecf20Sopenharmony_ci ENABLE_IP_PERIC1, 15678c2ecf20Sopenharmony_ci ENABLE_IP_PERIC2, 15688c2ecf20Sopenharmony_ci}; 15698c2ecf20Sopenharmony_ci 15708c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump peric_suspend_regs[] = { 15718c2ecf20Sopenharmony_ci /* pclk: sci, pmu, sysreg, gpio_{finger, ese, touch, nfc}, uart2-0 */ 15728c2ecf20Sopenharmony_ci { ENABLE_PCLK_PERIC0, 0xe00ff000 }, 15738c2ecf20Sopenharmony_ci /* sclk: uart2-0 */ 15748c2ecf20Sopenharmony_ci { ENABLE_SCLK_PERIC, 0x7 }, 15758c2ecf20Sopenharmony_ci}; 15768c2ecf20Sopenharmony_ci 15778c2ecf20Sopenharmony_cistatic const struct samsung_div_clock peric_div_clks[] __initconst = { 15788c2ecf20Sopenharmony_ci /* DIV_PERIC */ 15798c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SCI, "div_sclk_sci", "oscclk", DIV_PERIC, 4, 4), 15808c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_SC_IN, "div_sclk_sc_in", "oscclk", DIV_PERIC, 0, 4), 15818c2ecf20Sopenharmony_ci}; 15828c2ecf20Sopenharmony_ci 15838c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock peric_gate_clks[] __initconst = { 15848c2ecf20Sopenharmony_ci /* ENABLE_ACLK_PERIC */ 15858c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_PERIC2P, "aclk_ahb2apb_peric2p", "aclk_peric_66", 15868c2ecf20Sopenharmony_ci ENABLE_ACLK_PERIC, 3, CLK_IGNORE_UNUSED, 0), 15878c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_PERIC1P, "aclk_ahb2apb_peric1p", "aclk_peric_66", 15888c2ecf20Sopenharmony_ci ENABLE_ACLK_PERIC, 2, CLK_IGNORE_UNUSED, 0), 15898c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_PERIC0P, "aclk_ahb2apb_peric0p", "aclk_peric_66", 15908c2ecf20Sopenharmony_ci ENABLE_ACLK_PERIC, 1, CLK_IGNORE_UNUSED, 0), 15918c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PERICNP_66, "aclk_pericnp_66", "aclk_peric_66", 15928c2ecf20Sopenharmony_ci ENABLE_ACLK_PERIC, 0, CLK_IGNORE_UNUSED, 0), 15938c2ecf20Sopenharmony_ci 15948c2ecf20Sopenharmony_ci /* ENABLE_PCLK_PERIC0 */ 15958c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SCI, "pclk_sci", "aclk_peric_66", ENABLE_PCLK_PERIC0, 15968c2ecf20Sopenharmony_ci 31, CLK_SET_RATE_PARENT, 0), 15978c2ecf20Sopenharmony_ci GATE(CLK_PCLK_GPIO_FINGER, "pclk_gpio_finger", "aclk_peric_66", 15988c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 30, CLK_IGNORE_UNUSED, 0), 15998c2ecf20Sopenharmony_ci GATE(CLK_PCLK_GPIO_ESE, "pclk_gpio_ese", "aclk_peric_66", 16008c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 29, CLK_IGNORE_UNUSED, 0), 16018c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PWM, "pclk_pwm", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16028c2ecf20Sopenharmony_ci 28, CLK_SET_RATE_PARENT, 0), 16038c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SPDIF, "pclk_spdif", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16048c2ecf20Sopenharmony_ci 26, CLK_SET_RATE_PARENT, 0), 16058c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PCM1, "pclk_pcm1", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16068c2ecf20Sopenharmony_ci 25, CLK_SET_RATE_PARENT, 0), 16078c2ecf20Sopenharmony_ci GATE(CLK_PCLK_I2S1, "pclk_i2s", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16088c2ecf20Sopenharmony_ci 24, CLK_SET_RATE_PARENT, 0), 16098c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SPI2, "pclk_spi2", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16108c2ecf20Sopenharmony_ci 23, CLK_SET_RATE_PARENT, 0), 16118c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SPI1, "pclk_spi1", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16128c2ecf20Sopenharmony_ci 22, CLK_SET_RATE_PARENT, 0), 16138c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SPI0, "pclk_spi0", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16148c2ecf20Sopenharmony_ci 21, CLK_SET_RATE_PARENT, 0), 16158c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ADCIF, "pclk_adcif", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16168c2ecf20Sopenharmony_ci 20, CLK_SET_RATE_PARENT, 0), 16178c2ecf20Sopenharmony_ci GATE(CLK_PCLK_GPIO_TOUCH, "pclk_gpio_touch", "aclk_peric_66", 16188c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 19, CLK_IGNORE_UNUSED, 0), 16198c2ecf20Sopenharmony_ci GATE(CLK_PCLK_GPIO_NFC, "pclk_gpio_nfc", "aclk_peric_66", 16208c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 18, CLK_IGNORE_UNUSED, 0), 16218c2ecf20Sopenharmony_ci GATE(CLK_PCLK_GPIO_PERIC, "pclk_gpio_peric", "aclk_peric_66", 16228c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 17, CLK_IGNORE_UNUSED, 0), 16238c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_PERIC, "pclk_pmu_peric", "aclk_peric_66", 16248c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 16, CLK_SET_RATE_PARENT, 0), 16258c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_PERIC, "pclk_sysreg_peric", "aclk_peric_66", 16268c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 15, 16278c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 16288c2ecf20Sopenharmony_ci GATE(CLK_PCLK_UART2, "pclk_uart2", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16298c2ecf20Sopenharmony_ci 14, CLK_SET_RATE_PARENT, 0), 16308c2ecf20Sopenharmony_ci GATE(CLK_PCLK_UART1, "pclk_uart1", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16318c2ecf20Sopenharmony_ci 13, CLK_SET_RATE_PARENT, 0), 16328c2ecf20Sopenharmony_ci GATE(CLK_PCLK_UART0, "pclk_uart0", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16338c2ecf20Sopenharmony_ci 12, CLK_SET_RATE_PARENT, 0), 16348c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C3, "pclk_hsi2c3", "aclk_peric_66", 16358c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 11, CLK_SET_RATE_PARENT, 0), 16368c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C2, "pclk_hsi2c2", "aclk_peric_66", 16378c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 10, CLK_SET_RATE_PARENT, 0), 16388c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C1, "pclk_hsi2c1", "aclk_peric_66", 16398c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 9, CLK_SET_RATE_PARENT, 0), 16408c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C0, "pclk_hsi2c0", "aclk_peric_66", 16418c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC0, 8, CLK_SET_RATE_PARENT, 0), 16428c2ecf20Sopenharmony_ci GATE(CLK_PCLK_I2C7, "pclk_i2c7", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16438c2ecf20Sopenharmony_ci 7, CLK_SET_RATE_PARENT, 0), 16448c2ecf20Sopenharmony_ci GATE(CLK_PCLK_I2C6, "pclk_i2c6", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16458c2ecf20Sopenharmony_ci 6, CLK_SET_RATE_PARENT, 0), 16468c2ecf20Sopenharmony_ci GATE(CLK_PCLK_I2C5, "pclk_i2c5", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16478c2ecf20Sopenharmony_ci 5, CLK_SET_RATE_PARENT, 0), 16488c2ecf20Sopenharmony_ci GATE(CLK_PCLK_I2C4, "pclk_i2c4", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16498c2ecf20Sopenharmony_ci 4, CLK_SET_RATE_PARENT, 0), 16508c2ecf20Sopenharmony_ci GATE(CLK_PCLK_I2C3, "pclk_i2c3", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16518c2ecf20Sopenharmony_ci 3, CLK_SET_RATE_PARENT, 0), 16528c2ecf20Sopenharmony_ci GATE(CLK_PCLK_I2C2, "pclk_i2c2", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16538c2ecf20Sopenharmony_ci 2, CLK_SET_RATE_PARENT, 0), 16548c2ecf20Sopenharmony_ci GATE(CLK_PCLK_I2C1, "pclk_i2c1", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16558c2ecf20Sopenharmony_ci 1, CLK_SET_RATE_PARENT, 0), 16568c2ecf20Sopenharmony_ci GATE(CLK_PCLK_I2C0, "pclk_i2c0", "aclk_peric_66", ENABLE_PCLK_PERIC0, 16578c2ecf20Sopenharmony_ci 0, CLK_SET_RATE_PARENT, 0), 16588c2ecf20Sopenharmony_ci 16598c2ecf20Sopenharmony_ci /* ENABLE_PCLK_PERIC1 */ 16608c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SPI4, "pclk_spi4", "aclk_peric_66", ENABLE_PCLK_PERIC1, 16618c2ecf20Sopenharmony_ci 9, CLK_SET_RATE_PARENT, 0), 16628c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SPI3, "pclk_spi3", "aclk_peric_66", ENABLE_PCLK_PERIC1, 16638c2ecf20Sopenharmony_ci 8, CLK_SET_RATE_PARENT, 0), 16648c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C11, "pclk_hsi2c11", "aclk_peric_66", 16658c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC1, 7, CLK_SET_RATE_PARENT, 0), 16668c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C10, "pclk_hsi2c10", "aclk_peric_66", 16678c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC1, 6, CLK_SET_RATE_PARENT, 0), 16688c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C9, "pclk_hsi2c9", "aclk_peric_66", 16698c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC1, 5, CLK_SET_RATE_PARENT, 0), 16708c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C8, "pclk_hsi2c8", "aclk_peric_66", 16718c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC1, 4, CLK_SET_RATE_PARENT, 0), 16728c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C7, "pclk_hsi2c7", "aclk_peric_66", 16738c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC1, 3, CLK_SET_RATE_PARENT, 0), 16748c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C6, "pclk_hsi2c6", "aclk_peric_66", 16758c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC1, 2, CLK_SET_RATE_PARENT, 0), 16768c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C5, "pclk_hsi2c5", "aclk_peric_66", 16778c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC1, 1, CLK_SET_RATE_PARENT, 0), 16788c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HSI2C4, "pclk_hsi2c4", "aclk_peric_66", 16798c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIC1, 0, CLK_SET_RATE_PARENT, 0), 16808c2ecf20Sopenharmony_ci 16818c2ecf20Sopenharmony_ci /* ENABLE_SCLK_PERIC */ 16828c2ecf20Sopenharmony_ci GATE(CLK_SCLK_IOCLK_SPI4, "sclk_ioclk_spi4", "ioclk_spi4_clk_in", 16838c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 21, CLK_SET_RATE_PARENT, 0), 16848c2ecf20Sopenharmony_ci GATE(CLK_SCLK_IOCLK_SPI3, "sclk_ioclk_spi3", "ioclk_spi3_clk_in", 16858c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 20, CLK_SET_RATE_PARENT, 0), 16868c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPI4, "sclk_spi4", "sclk_spi4_peric", ENABLE_SCLK_PERIC, 16878c2ecf20Sopenharmony_ci 19, CLK_SET_RATE_PARENT, 0), 16888c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPI3, "sclk_spi3", "sclk_spi3_peric", ENABLE_SCLK_PERIC, 16898c2ecf20Sopenharmony_ci 18, CLK_SET_RATE_PARENT, 0), 16908c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SCI, "sclk_sci", "div_sclk_sci", ENABLE_SCLK_PERIC, 16918c2ecf20Sopenharmony_ci 17, 0, 0), 16928c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SC_IN, "sclk_sc_in", "div_sclk_sc_in", ENABLE_SCLK_PERIC, 16938c2ecf20Sopenharmony_ci 16, 0, 0), 16948c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PWM, "sclk_pwm", "oscclk", ENABLE_SCLK_PERIC, 15, 0, 0), 16958c2ecf20Sopenharmony_ci GATE(CLK_SCLK_IOCLK_SPI2, "sclk_ioclk_spi2", "ioclk_spi2_clk_in", 16968c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 13, CLK_SET_RATE_PARENT, 0), 16978c2ecf20Sopenharmony_ci GATE(CLK_SCLK_IOCLK_SPI1, "sclk_ioclk_spi1", "ioclk_spi1_clk_in", 16988c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 12, CLK_SET_RATE_PARENT, 0), 16998c2ecf20Sopenharmony_ci GATE(CLK_SCLK_IOCLK_SPI0, "sclk_ioclk_spi0", "ioclk_spi0_clk_in", 17008c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 11, CLK_SET_RATE_PARENT, 0), 17018c2ecf20Sopenharmony_ci GATE(CLK_SCLK_IOCLK_I2S1_BCLK, "sclk_ioclk_i2s1_bclk", 17028c2ecf20Sopenharmony_ci "ioclk_i2s1_bclk_in", ENABLE_SCLK_PERIC, 10, 17038c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 17048c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPDIF, "sclk_spdif", "sclk_spdif_peric", 17058c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 8, CLK_SET_RATE_PARENT, 0), 17068c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PCM1, "sclk_pcm1", "sclk_pcm1_peric", 17078c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 7, CLK_SET_RATE_PARENT, 0), 17088c2ecf20Sopenharmony_ci GATE(CLK_SCLK_I2S1, "sclk_i2s1", "sclk_i2s1_peric", 17098c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 6, 17108c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 17118c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPI2, "sclk_spi2", "sclk_spi2_peric", ENABLE_SCLK_PERIC, 17128c2ecf20Sopenharmony_ci 5, CLK_SET_RATE_PARENT, 0), 17138c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPI1, "sclk_spi1", "sclk_spi1_peric", ENABLE_SCLK_PERIC, 17148c2ecf20Sopenharmony_ci 4, CLK_SET_RATE_PARENT, 0), 17158c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SPI0, "sclk_spi0", "sclk_spi0_peric", ENABLE_SCLK_PERIC, 17168c2ecf20Sopenharmony_ci 3, CLK_SET_RATE_PARENT, 0), 17178c2ecf20Sopenharmony_ci GATE(CLK_SCLK_UART2, "sclk_uart2", "sclk_uart2_peric", 17188c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 2, 17198c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 17208c2ecf20Sopenharmony_ci GATE(CLK_SCLK_UART1, "sclk_uart1", "sclk_uart1_peric", 17218c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 1, 17228c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 17238c2ecf20Sopenharmony_ci GATE(CLK_SCLK_UART0, "sclk_uart0", "sclk_uart0_peric", 17248c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIC, 0, 17258c2ecf20Sopenharmony_ci CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0), 17268c2ecf20Sopenharmony_ci}; 17278c2ecf20Sopenharmony_ci 17288c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info peric_cmu_info __initconst = { 17298c2ecf20Sopenharmony_ci .div_clks = peric_div_clks, 17308c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(peric_div_clks), 17318c2ecf20Sopenharmony_ci .gate_clks = peric_gate_clks, 17328c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(peric_gate_clks), 17338c2ecf20Sopenharmony_ci .nr_clk_ids = PERIC_NR_CLK, 17348c2ecf20Sopenharmony_ci .clk_regs = peric_clk_regs, 17358c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(peric_clk_regs), 17368c2ecf20Sopenharmony_ci .suspend_regs = peric_suspend_regs, 17378c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(peric_suspend_regs), 17388c2ecf20Sopenharmony_ci}; 17398c2ecf20Sopenharmony_ci 17408c2ecf20Sopenharmony_cistatic void __init exynos5433_cmu_peric_init(struct device_node *np) 17418c2ecf20Sopenharmony_ci{ 17428c2ecf20Sopenharmony_ci samsung_cmu_register_one(np, &peric_cmu_info); 17438c2ecf20Sopenharmony_ci} 17448c2ecf20Sopenharmony_ci 17458c2ecf20Sopenharmony_ciCLK_OF_DECLARE(exynos5433_cmu_peric, "samsung,exynos5433-cmu-peric", 17468c2ecf20Sopenharmony_ci exynos5433_cmu_peric_init); 17478c2ecf20Sopenharmony_ci 17488c2ecf20Sopenharmony_ci/* 17498c2ecf20Sopenharmony_ci * Register offset definitions for CMU_PERIS 17508c2ecf20Sopenharmony_ci */ 17518c2ecf20Sopenharmony_ci#define ENABLE_ACLK_PERIS 0x0800 17528c2ecf20Sopenharmony_ci#define ENABLE_PCLK_PERIS 0x0900 17538c2ecf20Sopenharmony_ci#define ENABLE_PCLK_PERIS_SECURE_TZPC 0x0904 17548c2ecf20Sopenharmony_ci#define ENABLE_PCLK_PERIS_SECURE_SECKEY_APBIF 0x0908 17558c2ecf20Sopenharmony_ci#define ENABLE_PCLK_PERIS_SECURE_CHIPID_APBIF 0x090c 17568c2ecf20Sopenharmony_ci#define ENABLE_PCLK_PERIS_SECURE_TOPRTC 0x0910 17578c2ecf20Sopenharmony_ci#define ENABLE_PCLK_PERIS_SECURE_CUSTOM_EFUSE_APBIF 0x0914 17588c2ecf20Sopenharmony_ci#define ENABLE_PCLK_PERIS_SECURE_ANTIRBK_CNT_APBIF 0x0918 17598c2ecf20Sopenharmony_ci#define ENABLE_PCLK_PERIS_SECURE_OTP_CON_APBIF 0x091c 17608c2ecf20Sopenharmony_ci#define ENABLE_SCLK_PERIS 0x0a00 17618c2ecf20Sopenharmony_ci#define ENABLE_SCLK_PERIS_SECURE_SECKEY 0x0a04 17628c2ecf20Sopenharmony_ci#define ENABLE_SCLK_PERIS_SECURE_CHIPID 0x0a08 17638c2ecf20Sopenharmony_ci#define ENABLE_SCLK_PERIS_SECURE_TOPRTC 0x0a0c 17648c2ecf20Sopenharmony_ci#define ENABLE_SCLK_PERIS_SECURE_CUSTOM_EFUSE 0x0a10 17658c2ecf20Sopenharmony_ci#define ENABLE_SCLK_PERIS_SECURE_ANTIRBK_CNT 0x0a14 17668c2ecf20Sopenharmony_ci#define ENABLE_SCLK_PERIS_SECURE_OTP_CON 0x0a18 17678c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIS0 0x0b00 17688c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIS1 0x0b04 17698c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIS_SECURE_TZPC 0x0b08 17708c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIS_SECURE_SECKEY 0x0b0c 17718c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIS_SECURE_CHIPID 0x0b10 17728c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIS_SECURE_TOPRTC 0x0b14 17738c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIS_SECURE_CUSTOM_EFUSE 0x0b18 17748c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIS_SECURE_ANTIBRK_CNT 0x0b1c 17758c2ecf20Sopenharmony_ci#define ENABLE_IP_PERIS_SECURE_OTP_CON 0x0b20 17768c2ecf20Sopenharmony_ci 17778c2ecf20Sopenharmony_cistatic const unsigned long peris_clk_regs[] __initconst = { 17788c2ecf20Sopenharmony_ci ENABLE_ACLK_PERIS, 17798c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS, 17808c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 17818c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_SECKEY_APBIF, 17828c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_CHIPID_APBIF, 17838c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TOPRTC, 17848c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_CUSTOM_EFUSE_APBIF, 17858c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_ANTIRBK_CNT_APBIF, 17868c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_OTP_CON_APBIF, 17878c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS, 17888c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_SECKEY, 17898c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_CHIPID, 17908c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_TOPRTC, 17918c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_CUSTOM_EFUSE, 17928c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_ANTIRBK_CNT, 17938c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_OTP_CON, 17948c2ecf20Sopenharmony_ci ENABLE_IP_PERIS0, 17958c2ecf20Sopenharmony_ci ENABLE_IP_PERIS1, 17968c2ecf20Sopenharmony_ci ENABLE_IP_PERIS_SECURE_TZPC, 17978c2ecf20Sopenharmony_ci ENABLE_IP_PERIS_SECURE_SECKEY, 17988c2ecf20Sopenharmony_ci ENABLE_IP_PERIS_SECURE_CHIPID, 17998c2ecf20Sopenharmony_ci ENABLE_IP_PERIS_SECURE_TOPRTC, 18008c2ecf20Sopenharmony_ci ENABLE_IP_PERIS_SECURE_CUSTOM_EFUSE, 18018c2ecf20Sopenharmony_ci ENABLE_IP_PERIS_SECURE_ANTIBRK_CNT, 18028c2ecf20Sopenharmony_ci ENABLE_IP_PERIS_SECURE_OTP_CON, 18038c2ecf20Sopenharmony_ci}; 18048c2ecf20Sopenharmony_ci 18058c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock peris_gate_clks[] __initconst = { 18068c2ecf20Sopenharmony_ci /* ENABLE_ACLK_PERIS */ 18078c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_PERIS1P, "aclk_ahb2apb_peris1p", "aclk_peris_66", 18088c2ecf20Sopenharmony_ci ENABLE_ACLK_PERIS, 2, CLK_IGNORE_UNUSED, 0), 18098c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_PERIS0P, "aclk_ahb2apb_peris0p", "aclk_peris_66", 18108c2ecf20Sopenharmony_ci ENABLE_ACLK_PERIS, 1, CLK_IGNORE_UNUSED, 0), 18118c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PERISNP_66, "aclk_perisnp_66", "aclk_peris_66", 18128c2ecf20Sopenharmony_ci ENABLE_ACLK_PERIS, 0, CLK_IGNORE_UNUSED, 0), 18138c2ecf20Sopenharmony_ci 18148c2ecf20Sopenharmony_ci /* ENABLE_PCLK_PERIS */ 18158c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HPM_APBIF, "pclk_hpm_apbif", "aclk_peris_66", 18168c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS, 30, CLK_IGNORE_UNUSED, 0), 18178c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TMU1_APBIF, "pclk_tmu1_apbif", "aclk_peris_66", 18188c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS, 24, CLK_IGNORE_UNUSED, 0), 18198c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TMU0_APBIF, "pclk_tmu0_apbif", "aclk_peris_66", 18208c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS, 23, CLK_IGNORE_UNUSED, 0), 18218c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_PERIS, "pclk_pmu_peris", "aclk_peris_66", 18228c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS, 22, CLK_IGNORE_UNUSED, 0), 18238c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_PERIS, "pclk_sysreg_peris", "aclk_peris_66", 18248c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS, 21, CLK_IGNORE_UNUSED, 0), 18258c2ecf20Sopenharmony_ci GATE(CLK_PCLK_CMU_TOP_APBIF, "pclk_cmu_top_apbif", "aclk_peris_66", 18268c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS, 20, CLK_IGNORE_UNUSED, 0), 18278c2ecf20Sopenharmony_ci GATE(CLK_PCLK_WDT_APOLLO, "pclk_wdt_apollo", "aclk_peris_66", 18288c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS, 17, CLK_IGNORE_UNUSED, 0), 18298c2ecf20Sopenharmony_ci GATE(CLK_PCLK_WDT_ATLAS, "pclk_wdt_atlas", "aclk_peris_66", 18308c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS, 16, CLK_IGNORE_UNUSED, 0), 18318c2ecf20Sopenharmony_ci GATE(CLK_PCLK_MCT, "pclk_mct", "aclk_peris_66", 18328c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS, 15, CLK_IGNORE_UNUSED, 0), 18338c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HDMI_CEC, "pclk_hdmi_cec", "aclk_peris_66", 18348c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS, 14, CLK_IGNORE_UNUSED, 0), 18358c2ecf20Sopenharmony_ci 18368c2ecf20Sopenharmony_ci /* ENABLE_PCLK_PERIS_SECURE_TZPC */ 18378c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC12, "pclk_tzpc12", "aclk_peris_66", 18388c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 12, CLK_IGNORE_UNUSED, 0), 18398c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC11, "pclk_tzpc11", "aclk_peris_66", 18408c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 11, CLK_IGNORE_UNUSED, 0), 18418c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC10, "pclk_tzpc10", "aclk_peris_66", 18428c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 10, CLK_IGNORE_UNUSED, 0), 18438c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC9, "pclk_tzpc9", "aclk_peris_66", 18448c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 9, CLK_IGNORE_UNUSED, 0), 18458c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC8, "pclk_tzpc8", "aclk_peris_66", 18468c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 8, CLK_IGNORE_UNUSED, 0), 18478c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC7, "pclk_tzpc7", "aclk_peris_66", 18488c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 7, CLK_IGNORE_UNUSED, 0), 18498c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC6, "pclk_tzpc6", "aclk_peris_66", 18508c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 6, CLK_IGNORE_UNUSED, 0), 18518c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC5, "pclk_tzpc5", "aclk_peris_66", 18528c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 5, CLK_IGNORE_UNUSED, 0), 18538c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC4, "pclk_tzpc4", "aclk_peris_66", 18548c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 4, CLK_IGNORE_UNUSED, 0), 18558c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC3, "pclk_tzpc3", "aclk_peris_66", 18568c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 3, CLK_IGNORE_UNUSED, 0), 18578c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC2, "pclk_tzpc2", "aclk_peris_66", 18588c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 2, CLK_IGNORE_UNUSED, 0), 18598c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC1, "pclk_tzpc1", "aclk_peris_66", 18608c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 1, CLK_IGNORE_UNUSED, 0), 18618c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TZPC0, "pclk_tzpc0", "aclk_peris_66", 18628c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TZPC, 0, CLK_IGNORE_UNUSED, 0), 18638c2ecf20Sopenharmony_ci 18648c2ecf20Sopenharmony_ci /* ENABLE_PCLK_PERIS_SECURE_SECKEY_APBIF */ 18658c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SECKEY_APBIF, "pclk_seckey_apbif", "aclk_peris_66", 18668c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_SECKEY_APBIF, 0, CLK_IGNORE_UNUSED, 0), 18678c2ecf20Sopenharmony_ci 18688c2ecf20Sopenharmony_ci /* ENABLE_PCLK_PERIS_SECURE_CHIPID_APBIF */ 18698c2ecf20Sopenharmony_ci GATE(CLK_PCLK_CHIPID_APBIF, "pclk_chipid_apbif", "aclk_peris_66", 18708c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_CHIPID_APBIF, 0, CLK_IGNORE_UNUSED, 0), 18718c2ecf20Sopenharmony_ci 18728c2ecf20Sopenharmony_ci /* ENABLE_PCLK_PERIS_SECURE_TOPRTC */ 18738c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TOPRTC, "pclk_toprtc", "aclk_peris_66", 18748c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_TOPRTC, 0, 0, 0), 18758c2ecf20Sopenharmony_ci 18768c2ecf20Sopenharmony_ci /* ENABLE_PCLK_PERIS_SECURE_CUSTOM_EFUSE_APBIF */ 18778c2ecf20Sopenharmony_ci GATE(CLK_PCLK_CUSTOM_EFUSE_APBIF, "pclk_custom_efuse_apbif", 18788c2ecf20Sopenharmony_ci "aclk_peris_66", 18798c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_CUSTOM_EFUSE_APBIF, 0, 0, 0), 18808c2ecf20Sopenharmony_ci 18818c2ecf20Sopenharmony_ci /* ENABLE_PCLK_PERIS_SECURE_ANTIRBK_CNT_APBIF */ 18828c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ANTIRBK_CNT_APBIF, "pclk_antirbk_cnt_apbif", 18838c2ecf20Sopenharmony_ci "aclk_peris_66", 18848c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_ANTIRBK_CNT_APBIF, 0, 0, 0), 18858c2ecf20Sopenharmony_ci 18868c2ecf20Sopenharmony_ci /* ENABLE_PCLK_PERIS_SECURE_OTP_CON_APBIF */ 18878c2ecf20Sopenharmony_ci GATE(CLK_PCLK_OTP_CON_APBIF, "pclk_otp_con_apbif", 18888c2ecf20Sopenharmony_ci "aclk_peris_66", 18898c2ecf20Sopenharmony_ci ENABLE_PCLK_PERIS_SECURE_OTP_CON_APBIF, 0, 0, 0), 18908c2ecf20Sopenharmony_ci 18918c2ecf20Sopenharmony_ci /* ENABLE_SCLK_PERIS */ 18928c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ASV_TB, "sclk_asv_tb", "oscclk_efuse_common", 18938c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS, 10, 0, 0), 18948c2ecf20Sopenharmony_ci GATE(CLK_SCLK_TMU1, "sclk_tmu1", "oscclk_efuse_common", 18958c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS, 4, 0, 0), 18968c2ecf20Sopenharmony_ci GATE(CLK_SCLK_TMU0, "sclk_tmu0", "oscclk_efuse_common", 18978c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS, 3, 0, 0), 18988c2ecf20Sopenharmony_ci 18998c2ecf20Sopenharmony_ci /* ENABLE_SCLK_PERIS_SECURE_SECKEY */ 19008c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SECKEY, "sclk_seckey", "oscclk_efuse_common", 19018c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_SECKEY, 0, CLK_IGNORE_UNUSED, 0), 19028c2ecf20Sopenharmony_ci 19038c2ecf20Sopenharmony_ci /* ENABLE_SCLK_PERIS_SECURE_CHIPID */ 19048c2ecf20Sopenharmony_ci GATE(CLK_SCLK_CHIPID, "sclk_chipid", "oscclk_efuse_common", 19058c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_CHIPID, 0, CLK_IGNORE_UNUSED, 0), 19068c2ecf20Sopenharmony_ci 19078c2ecf20Sopenharmony_ci /* ENABLE_SCLK_PERIS_SECURE_TOPRTC */ 19088c2ecf20Sopenharmony_ci GATE(CLK_SCLK_TOPRTC, "sclk_toprtc", "oscclk_efuse_common", 19098c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_TOPRTC, 0, 0, 0), 19108c2ecf20Sopenharmony_ci 19118c2ecf20Sopenharmony_ci /* ENABLE_SCLK_PERIS_SECURE_CUSTOM_EFUSE */ 19128c2ecf20Sopenharmony_ci GATE(CLK_SCLK_CUSTOM_EFUSE, "sclk_custom_efuse", "oscclk_efuse_common", 19138c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_CUSTOM_EFUSE, 0, 0, 0), 19148c2ecf20Sopenharmony_ci 19158c2ecf20Sopenharmony_ci /* ENABLE_SCLK_PERIS_SECURE_ANTIRBK_CNT */ 19168c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ANTIRBK_CNT, "sclk_antirbk_cnt", "oscclk_efuse_common", 19178c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_ANTIRBK_CNT, 0, 0, 0), 19188c2ecf20Sopenharmony_ci 19198c2ecf20Sopenharmony_ci /* ENABLE_SCLK_PERIS_SECURE_OTP_CON */ 19208c2ecf20Sopenharmony_ci GATE(CLK_SCLK_OTP_CON, "sclk_otp_con", "oscclk_efuse_common", 19218c2ecf20Sopenharmony_ci ENABLE_SCLK_PERIS_SECURE_OTP_CON, 0, 0, 0), 19228c2ecf20Sopenharmony_ci}; 19238c2ecf20Sopenharmony_ci 19248c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info peris_cmu_info __initconst = { 19258c2ecf20Sopenharmony_ci .gate_clks = peris_gate_clks, 19268c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(peris_gate_clks), 19278c2ecf20Sopenharmony_ci .nr_clk_ids = PERIS_NR_CLK, 19288c2ecf20Sopenharmony_ci .clk_regs = peris_clk_regs, 19298c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(peris_clk_regs), 19308c2ecf20Sopenharmony_ci}; 19318c2ecf20Sopenharmony_ci 19328c2ecf20Sopenharmony_cistatic void __init exynos5433_cmu_peris_init(struct device_node *np) 19338c2ecf20Sopenharmony_ci{ 19348c2ecf20Sopenharmony_ci samsung_cmu_register_one(np, &peris_cmu_info); 19358c2ecf20Sopenharmony_ci} 19368c2ecf20Sopenharmony_ci 19378c2ecf20Sopenharmony_ciCLK_OF_DECLARE(exynos5433_cmu_peris, "samsung,exynos5433-cmu-peris", 19388c2ecf20Sopenharmony_ci exynos5433_cmu_peris_init); 19398c2ecf20Sopenharmony_ci 19408c2ecf20Sopenharmony_ci/* 19418c2ecf20Sopenharmony_ci * Register offset definitions for CMU_FSYS 19428c2ecf20Sopenharmony_ci */ 19438c2ecf20Sopenharmony_ci#define MUX_SEL_FSYS0 0x0200 19448c2ecf20Sopenharmony_ci#define MUX_SEL_FSYS1 0x0204 19458c2ecf20Sopenharmony_ci#define MUX_SEL_FSYS2 0x0208 19468c2ecf20Sopenharmony_ci#define MUX_SEL_FSYS3 0x020c 19478c2ecf20Sopenharmony_ci#define MUX_SEL_FSYS4 0x0210 19488c2ecf20Sopenharmony_ci#define MUX_ENABLE_FSYS0 0x0300 19498c2ecf20Sopenharmony_ci#define MUX_ENABLE_FSYS1 0x0304 19508c2ecf20Sopenharmony_ci#define MUX_ENABLE_FSYS2 0x0308 19518c2ecf20Sopenharmony_ci#define MUX_ENABLE_FSYS3 0x030c 19528c2ecf20Sopenharmony_ci#define MUX_ENABLE_FSYS4 0x0310 19538c2ecf20Sopenharmony_ci#define MUX_STAT_FSYS0 0x0400 19548c2ecf20Sopenharmony_ci#define MUX_STAT_FSYS1 0x0404 19558c2ecf20Sopenharmony_ci#define MUX_STAT_FSYS2 0x0408 19568c2ecf20Sopenharmony_ci#define MUX_STAT_FSYS3 0x040c 19578c2ecf20Sopenharmony_ci#define MUX_STAT_FSYS4 0x0410 19588c2ecf20Sopenharmony_ci#define MUX_IGNORE_FSYS2 0x0508 19598c2ecf20Sopenharmony_ci#define MUX_IGNORE_FSYS3 0x050c 19608c2ecf20Sopenharmony_ci#define ENABLE_ACLK_FSYS0 0x0800 19618c2ecf20Sopenharmony_ci#define ENABLE_ACLK_FSYS1 0x0804 19628c2ecf20Sopenharmony_ci#define ENABLE_PCLK_FSYS 0x0900 19638c2ecf20Sopenharmony_ci#define ENABLE_SCLK_FSYS 0x0a00 19648c2ecf20Sopenharmony_ci#define ENABLE_IP_FSYS0 0x0b00 19658c2ecf20Sopenharmony_ci#define ENABLE_IP_FSYS1 0x0b04 19668c2ecf20Sopenharmony_ci 19678c2ecf20Sopenharmony_ci/* list of all parent clock list */ 19688c2ecf20Sopenharmony_ciPNAME(mout_sclk_ufs_mphy_user_p) = { "oscclk", "sclk_ufs_mphy", }; 19698c2ecf20Sopenharmony_ciPNAME(mout_aclk_fsys_200_user_p) = { "oscclk", "aclk_fsys_200", }; 19708c2ecf20Sopenharmony_ciPNAME(mout_sclk_pcie_100_user_p) = { "oscclk", "sclk_pcie_100_fsys",}; 19718c2ecf20Sopenharmony_ciPNAME(mout_sclk_ufsunipro_user_p) = { "oscclk", "sclk_ufsunipro_fsys",}; 19728c2ecf20Sopenharmony_ciPNAME(mout_sclk_mmc2_user_p) = { "oscclk", "sclk_mmc2_fsys", }; 19738c2ecf20Sopenharmony_ciPNAME(mout_sclk_mmc1_user_p) = { "oscclk", "sclk_mmc1_fsys", }; 19748c2ecf20Sopenharmony_ciPNAME(mout_sclk_mmc0_user_p) = { "oscclk", "sclk_mmc0_fsys", }; 19758c2ecf20Sopenharmony_ciPNAME(mout_sclk_usbhost30_user_p) = { "oscclk", "sclk_usbhost30_fsys",}; 19768c2ecf20Sopenharmony_ciPNAME(mout_sclk_usbdrd30_user_p) = { "oscclk", "sclk_usbdrd30_fsys", }; 19778c2ecf20Sopenharmony_ci 19788c2ecf20Sopenharmony_ciPNAME(mout_phyclk_usbhost30_uhost30_pipe_pclk_user_p) 19798c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_usbhost30_uhost30_pipe_pclk_phy", }; 19808c2ecf20Sopenharmony_ciPNAME(mout_phyclk_usbhost30_uhost30_phyclock_user_p) 19818c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_usbhost30_uhost30_phyclock_phy", }; 19828c2ecf20Sopenharmony_ciPNAME(mout_phyclk_usbhost20_phy_hsic1_p) 19838c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_usbhost20_phy_hsic1_phy", }; 19848c2ecf20Sopenharmony_ciPNAME(mout_phyclk_usbhost20_phy_clk48mohci_user_p) 19858c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_usbhost20_phy_clk48mohci_phy", }; 19868c2ecf20Sopenharmony_ciPNAME(mout_phyclk_usbhost20_phy_phyclock_user_p) 19878c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_usbhost20_phy_phyclock_phy", }; 19888c2ecf20Sopenharmony_ciPNAME(mout_phyclk_usbhost20_phy_freeclk_user_p) 19898c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_usbhost20_phy_freeclk_phy", }; 19908c2ecf20Sopenharmony_ciPNAME(mout_phyclk_usbdrd30_udrd30_pipe_pclk_p) 19918c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_usbdrd30_udrd30_pipe_pclk_phy", }; 19928c2ecf20Sopenharmony_ciPNAME(mout_phyclk_usbdrd30_udrd30_phyclock_user_p) 19938c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_usbdrd30_udrd30_phyclock_phy", }; 19948c2ecf20Sopenharmony_ciPNAME(mout_phyclk_ufs_rx1_symbol_user_p) 19958c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_ufs_rx1_symbol_phy", }; 19968c2ecf20Sopenharmony_ciPNAME(mout_phyclk_ufs_rx0_symbol_user_p) 19978c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_ufs_rx0_symbol_phy", }; 19988c2ecf20Sopenharmony_ciPNAME(mout_phyclk_ufs_tx1_symbol_user_p) 19998c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_ufs_tx1_symbol_phy", }; 20008c2ecf20Sopenharmony_ciPNAME(mout_phyclk_ufs_tx0_symbol_user_p) 20018c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_ufs_tx0_symbol_phy", }; 20028c2ecf20Sopenharmony_ciPNAME(mout_phyclk_lli_mphy_to_ufs_user_p) 20038c2ecf20Sopenharmony_ci = { "oscclk", "phyclk_lli_mphy_to_ufs_phy", }; 20048c2ecf20Sopenharmony_ciPNAME(mout_sclk_mphy_p) 20058c2ecf20Sopenharmony_ci = { "mout_sclk_ufs_mphy_user", 20068c2ecf20Sopenharmony_ci "mout_phyclk_lli_mphy_to_ufs_user", }; 20078c2ecf20Sopenharmony_ci 20088c2ecf20Sopenharmony_cistatic const unsigned long fsys_clk_regs[] __initconst = { 20098c2ecf20Sopenharmony_ci MUX_SEL_FSYS0, 20108c2ecf20Sopenharmony_ci MUX_SEL_FSYS1, 20118c2ecf20Sopenharmony_ci MUX_SEL_FSYS2, 20128c2ecf20Sopenharmony_ci MUX_SEL_FSYS3, 20138c2ecf20Sopenharmony_ci MUX_SEL_FSYS4, 20148c2ecf20Sopenharmony_ci MUX_ENABLE_FSYS0, 20158c2ecf20Sopenharmony_ci MUX_ENABLE_FSYS1, 20168c2ecf20Sopenharmony_ci MUX_ENABLE_FSYS2, 20178c2ecf20Sopenharmony_ci MUX_ENABLE_FSYS3, 20188c2ecf20Sopenharmony_ci MUX_ENABLE_FSYS4, 20198c2ecf20Sopenharmony_ci MUX_IGNORE_FSYS2, 20208c2ecf20Sopenharmony_ci MUX_IGNORE_FSYS3, 20218c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 20228c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 20238c2ecf20Sopenharmony_ci ENABLE_PCLK_FSYS, 20248c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 20258c2ecf20Sopenharmony_ci ENABLE_IP_FSYS0, 20268c2ecf20Sopenharmony_ci ENABLE_IP_FSYS1, 20278c2ecf20Sopenharmony_ci}; 20288c2ecf20Sopenharmony_ci 20298c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump fsys_suspend_regs[] = { 20308c2ecf20Sopenharmony_ci { MUX_SEL_FSYS0, 0 }, 20318c2ecf20Sopenharmony_ci { MUX_SEL_FSYS1, 0 }, 20328c2ecf20Sopenharmony_ci { MUX_SEL_FSYS2, 0 }, 20338c2ecf20Sopenharmony_ci { MUX_SEL_FSYS3, 0 }, 20348c2ecf20Sopenharmony_ci { MUX_SEL_FSYS4, 0 }, 20358c2ecf20Sopenharmony_ci}; 20368c2ecf20Sopenharmony_ci 20378c2ecf20Sopenharmony_cistatic const struct samsung_fixed_rate_clock fsys_fixed_clks[] __initconst = { 20388c2ecf20Sopenharmony_ci /* PHY clocks from USBDRD30_PHY */ 20398c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_USBDRD30_UDRD30_PHYCLOCK_PHY, 20408c2ecf20Sopenharmony_ci "phyclk_usbdrd30_udrd30_phyclock_phy", NULL, 20418c2ecf20Sopenharmony_ci 0, 60000000), 20428c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_USBDRD30_UDRD30_PIPE_PCLK_PHY, 20438c2ecf20Sopenharmony_ci "phyclk_usbdrd30_udrd30_pipe_pclk_phy", NULL, 20448c2ecf20Sopenharmony_ci 0, 125000000), 20458c2ecf20Sopenharmony_ci /* PHY clocks from USBHOST30_PHY */ 20468c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_USBHOST30_UHOST30_PHYCLOCK_PHY, 20478c2ecf20Sopenharmony_ci "phyclk_usbhost30_uhost30_phyclock_phy", NULL, 20488c2ecf20Sopenharmony_ci 0, 60000000), 20498c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_USBHOST30_UHOST30_PIPE_PCLK_PHY, 20508c2ecf20Sopenharmony_ci "phyclk_usbhost30_uhost30_pipe_pclk_phy", NULL, 20518c2ecf20Sopenharmony_ci 0, 125000000), 20528c2ecf20Sopenharmony_ci /* PHY clocks from USBHOST20_PHY */ 20538c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_USBHOST20_PHY_FREECLK_PHY, 20548c2ecf20Sopenharmony_ci "phyclk_usbhost20_phy_freeclk_phy", NULL, 0, 60000000), 20558c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_USBHOST20_PHY_PHYCLOCK_PHY, 20568c2ecf20Sopenharmony_ci "phyclk_usbhost20_phy_phyclock_phy", NULL, 0, 60000000), 20578c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_USBHOST20_PHY_CLK48MOHCI_PHY, 20588c2ecf20Sopenharmony_ci "phyclk_usbhost20_phy_clk48mohci_phy", NULL, 20598c2ecf20Sopenharmony_ci 0, 48000000), 20608c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_USBHOST20_PHY_HSIC1_PHY, 20618c2ecf20Sopenharmony_ci "phyclk_usbhost20_phy_hsic1_phy", NULL, 0, 20628c2ecf20Sopenharmony_ci 60000000), 20638c2ecf20Sopenharmony_ci /* PHY clocks from UFS_PHY */ 20648c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_UFS_TX0_SYMBOL_PHY, "phyclk_ufs_tx0_symbol_phy", 20658c2ecf20Sopenharmony_ci NULL, 0, 300000000), 20668c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_UFS_RX0_SYMBOL_PHY, "phyclk_ufs_rx0_symbol_phy", 20678c2ecf20Sopenharmony_ci NULL, 0, 300000000), 20688c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_UFS_TX1_SYMBOL_PHY, "phyclk_ufs_tx1_symbol_phy", 20698c2ecf20Sopenharmony_ci NULL, 0, 300000000), 20708c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_UFS_RX1_SYMBOL_PHY, "phyclk_ufs_rx1_symbol_phy", 20718c2ecf20Sopenharmony_ci NULL, 0, 300000000), 20728c2ecf20Sopenharmony_ci /* PHY clocks from LLI_PHY */ 20738c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_LLI_MPHY_TO_UFS_PHY, "phyclk_lli_mphy_to_ufs_phy", 20748c2ecf20Sopenharmony_ci NULL, 0, 26000000), 20758c2ecf20Sopenharmony_ci}; 20768c2ecf20Sopenharmony_ci 20778c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock fsys_mux_clks[] __initconst = { 20788c2ecf20Sopenharmony_ci /* MUX_SEL_FSYS0 */ 20798c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_UFS_MPHY_USER, "mout_sclk_ufs_mphy_user", 20808c2ecf20Sopenharmony_ci mout_sclk_ufs_mphy_user_p, MUX_SEL_FSYS0, 4, 1), 20818c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_FSYS_200_USER, "mout_aclk_fsys_200_user", 20828c2ecf20Sopenharmony_ci mout_aclk_fsys_200_user_p, MUX_SEL_FSYS0, 0, 1), 20838c2ecf20Sopenharmony_ci 20848c2ecf20Sopenharmony_ci /* MUX_SEL_FSYS1 */ 20858c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_PCIE_100_USER, "mout_sclk_pcie_100_user", 20868c2ecf20Sopenharmony_ci mout_sclk_pcie_100_user_p, MUX_SEL_FSYS1, 28, 1), 20878c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_UFSUNIPRO_USER, "mout_sclk_ufsunipro_user", 20888c2ecf20Sopenharmony_ci mout_sclk_ufsunipro_user_p, MUX_SEL_FSYS1, 24, 1), 20898c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MMC2_USER, "mout_sclk_mmc2_user", 20908c2ecf20Sopenharmony_ci mout_sclk_mmc2_user_p, MUX_SEL_FSYS1, 20, 1), 20918c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MMC1_USER, "mout_sclk_mmc1_user", 20928c2ecf20Sopenharmony_ci mout_sclk_mmc1_user_p, MUX_SEL_FSYS1, 16, 1), 20938c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MMC0_USER, "mout_sclk_mmc0_user", 20948c2ecf20Sopenharmony_ci mout_sclk_mmc0_user_p, MUX_SEL_FSYS1, 12, 1), 20958c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_USBHOST30_USER, "mout_sclk_usbhost30_user", 20968c2ecf20Sopenharmony_ci mout_sclk_usbhost30_user_p, MUX_SEL_FSYS1, 4, 1), 20978c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_USBDRD30_USER, "mout_sclk_usbdrd30_user", 20988c2ecf20Sopenharmony_ci mout_sclk_usbdrd30_user_p, MUX_SEL_FSYS1, 0, 1), 20998c2ecf20Sopenharmony_ci 21008c2ecf20Sopenharmony_ci /* MUX_SEL_FSYS2 */ 21018c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_USBHOST30_UHOST30_PIPE_PCLK_USER, 21028c2ecf20Sopenharmony_ci "mout_phyclk_usbhost30_uhost30_pipe_pclk_user", 21038c2ecf20Sopenharmony_ci mout_phyclk_usbhost30_uhost30_pipe_pclk_user_p, 21048c2ecf20Sopenharmony_ci MUX_SEL_FSYS2, 28, 1), 21058c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_USBHOST30_UHOST30_PHYCLOCK_USER, 21068c2ecf20Sopenharmony_ci "mout_phyclk_usbhost30_uhost30_phyclock_user", 21078c2ecf20Sopenharmony_ci mout_phyclk_usbhost30_uhost30_phyclock_user_p, 21088c2ecf20Sopenharmony_ci MUX_SEL_FSYS2, 24, 1), 21098c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_USBHOST20_PHY_HSIC1_USER, 21108c2ecf20Sopenharmony_ci "mout_phyclk_usbhost20_phy_hsic1", 21118c2ecf20Sopenharmony_ci mout_phyclk_usbhost20_phy_hsic1_p, 21128c2ecf20Sopenharmony_ci MUX_SEL_FSYS2, 20, 1), 21138c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_USBHOST20_PHY_CLK48MOHCI_USER, 21148c2ecf20Sopenharmony_ci "mout_phyclk_usbhost20_phy_clk48mohci_user", 21158c2ecf20Sopenharmony_ci mout_phyclk_usbhost20_phy_clk48mohci_user_p, 21168c2ecf20Sopenharmony_ci MUX_SEL_FSYS2, 16, 1), 21178c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_USBHOST20_PHY_PHYCLOCK_USER, 21188c2ecf20Sopenharmony_ci "mout_phyclk_usbhost20_phy_phyclock_user", 21198c2ecf20Sopenharmony_ci mout_phyclk_usbhost20_phy_phyclock_user_p, 21208c2ecf20Sopenharmony_ci MUX_SEL_FSYS2, 12, 1), 21218c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_USBHOST20_PHY_PHY_FREECLK_USER, 21228c2ecf20Sopenharmony_ci "mout_phyclk_usbhost20_phy_freeclk_user", 21238c2ecf20Sopenharmony_ci mout_phyclk_usbhost20_phy_freeclk_user_p, 21248c2ecf20Sopenharmony_ci MUX_SEL_FSYS2, 8, 1), 21258c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_USBDRD30_UDRD30_PIPE_PCLK_USER, 21268c2ecf20Sopenharmony_ci "mout_phyclk_usbdrd30_udrd30_pipe_pclk_user", 21278c2ecf20Sopenharmony_ci mout_phyclk_usbdrd30_udrd30_pipe_pclk_p, 21288c2ecf20Sopenharmony_ci MUX_SEL_FSYS2, 4, 1), 21298c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_USBDRD30_UDRD30_PHYCLOCK_USER, 21308c2ecf20Sopenharmony_ci "mout_phyclk_usbdrd30_udrd30_phyclock_user", 21318c2ecf20Sopenharmony_ci mout_phyclk_usbdrd30_udrd30_phyclock_user_p, 21328c2ecf20Sopenharmony_ci MUX_SEL_FSYS2, 0, 1), 21338c2ecf20Sopenharmony_ci 21348c2ecf20Sopenharmony_ci /* MUX_SEL_FSYS3 */ 21358c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_UFS_RX1_SYMBOL_USER, 21368c2ecf20Sopenharmony_ci "mout_phyclk_ufs_rx1_symbol_user", 21378c2ecf20Sopenharmony_ci mout_phyclk_ufs_rx1_symbol_user_p, 21388c2ecf20Sopenharmony_ci MUX_SEL_FSYS3, 16, 1), 21398c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_UFS_RX0_SYMBOL_USER, 21408c2ecf20Sopenharmony_ci "mout_phyclk_ufs_rx0_symbol_user", 21418c2ecf20Sopenharmony_ci mout_phyclk_ufs_rx0_symbol_user_p, 21428c2ecf20Sopenharmony_ci MUX_SEL_FSYS3, 12, 1), 21438c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_UFS_TX1_SYMBOL_USER, 21448c2ecf20Sopenharmony_ci "mout_phyclk_ufs_tx1_symbol_user", 21458c2ecf20Sopenharmony_ci mout_phyclk_ufs_tx1_symbol_user_p, 21468c2ecf20Sopenharmony_ci MUX_SEL_FSYS3, 8, 1), 21478c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_UFS_TX0_SYMBOL_USER, 21488c2ecf20Sopenharmony_ci "mout_phyclk_ufs_tx0_symbol_user", 21498c2ecf20Sopenharmony_ci mout_phyclk_ufs_tx0_symbol_user_p, 21508c2ecf20Sopenharmony_ci MUX_SEL_FSYS3, 4, 1), 21518c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_LLI_MPHY_TO_UFS_USER, 21528c2ecf20Sopenharmony_ci "mout_phyclk_lli_mphy_to_ufs_user", 21538c2ecf20Sopenharmony_ci mout_phyclk_lli_mphy_to_ufs_user_p, 21548c2ecf20Sopenharmony_ci MUX_SEL_FSYS3, 0, 1), 21558c2ecf20Sopenharmony_ci 21568c2ecf20Sopenharmony_ci /* MUX_SEL_FSYS4 */ 21578c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_MPHY, "mout_sclk_mphy", mout_sclk_mphy_p, 21588c2ecf20Sopenharmony_ci MUX_SEL_FSYS4, 0, 1), 21598c2ecf20Sopenharmony_ci}; 21608c2ecf20Sopenharmony_ci 21618c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock fsys_gate_clks[] __initconst = { 21628c2ecf20Sopenharmony_ci /* ENABLE_ACLK_FSYS0 */ 21638c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PCIE, "aclk_pcie", "mout_aclk_fsys_200_user", 21648c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 13, CLK_IGNORE_UNUSED, 0), 21658c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PDMA1, "aclk_pdma1", "mout_aclk_fsys_200_user", 21668c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 11, CLK_IGNORE_UNUSED, 0), 21678c2ecf20Sopenharmony_ci GATE(CLK_ACLK_TSI, "aclk_tsi", "mout_aclk_fsys_200_user", 21688c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 10, CLK_IGNORE_UNUSED, 0), 21698c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MMC2, "aclk_mmc2", "mout_aclk_fsys_200_user", 21708c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 8, CLK_IGNORE_UNUSED, 0), 21718c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MMC1, "aclk_mmc1", "mout_aclk_fsys_200_user", 21728c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 7, CLK_IGNORE_UNUSED, 0), 21738c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MMC0, "aclk_mmc0", "mout_aclk_fsys_200_user", 21748c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 6, CLK_IGNORE_UNUSED, 0), 21758c2ecf20Sopenharmony_ci GATE(CLK_ACLK_UFS, "aclk_ufs", "mout_aclk_fsys_200_user", 21768c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 5, CLK_IGNORE_UNUSED, 0), 21778c2ecf20Sopenharmony_ci GATE(CLK_ACLK_USBHOST20, "aclk_usbhost20", "mout_aclk_fsys_200_user", 21788c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 3, CLK_IGNORE_UNUSED, 0), 21798c2ecf20Sopenharmony_ci GATE(CLK_ACLK_USBHOST30, "aclk_usbhost30", "mout_aclk_fsys_200_user", 21808c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 2, CLK_IGNORE_UNUSED, 0), 21818c2ecf20Sopenharmony_ci GATE(CLK_ACLK_USBDRD30, "aclk_usbdrd30", "mout_aclk_fsys_200_user", 21828c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 1, CLK_IGNORE_UNUSED, 0), 21838c2ecf20Sopenharmony_ci GATE(CLK_ACLK_PDMA0, "aclk_pdma0", "mout_aclk_fsys_200_user", 21848c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS0, 0, CLK_IGNORE_UNUSED, 0), 21858c2ecf20Sopenharmony_ci 21868c2ecf20Sopenharmony_ci /* ENABLE_ACLK_FSYS1 */ 21878c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_FSYSPX, "aclk_xiu_fsyspx", "mout_aclk_fsys_200_user", 21888c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 27, CLK_IGNORE_UNUSED, 0), 21898c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB_USBLINKH1, "aclk_ahb_usblinkh1", 21908c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_ACLK_FSYS1, 21918c2ecf20Sopenharmony_ci 26, CLK_IGNORE_UNUSED, 0), 21928c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_PDMA1, "aclk_smmu_pdma1", "mout_aclk_fsys_200_user", 21938c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 25, CLK_IGNORE_UNUSED, 0), 21948c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_PCIE, "aclk_bts_pcie", "mout_aclk_fsys_200_user", 21958c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 24, CLK_IGNORE_UNUSED, 0), 21968c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_PDMA1, "aclk_axius_pdma1", 21978c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_ACLK_FSYS1, 21988c2ecf20Sopenharmony_ci 22, CLK_IGNORE_UNUSED, 0), 21998c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_PDMA0, "aclk_smmu_pdma0", "mout_aclk_fsys_200_user", 22008c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 17, CLK_IGNORE_UNUSED, 0), 22018c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_UFS, "aclk_bts_ufs", "mout_aclk_fsys_200_user", 22028c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 14, CLK_IGNORE_UNUSED, 0), 22038c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_USBHOST30, "aclk_bts_usbhost30", 22048c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_ACLK_FSYS1, 22058c2ecf20Sopenharmony_ci 13, 0, 0), 22068c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_USBDRD30, "aclk_bts_usbdrd30", 22078c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_ACLK_FSYS1, 22088c2ecf20Sopenharmony_ci 12, 0, 0), 22098c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_PDMA0, "aclk_axius_pdma0", 22108c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_ACLK_FSYS1, 22118c2ecf20Sopenharmony_ci 11, CLK_IGNORE_UNUSED, 0), 22128c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_USBHS, "aclk_axius_usbhs", 22138c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_ACLK_FSYS1, 22148c2ecf20Sopenharmony_ci 10, CLK_IGNORE_UNUSED, 0), 22158c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_FSYSSX, "aclk_axius_fsyssx", 22168c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_ACLK_FSYS1, 22178c2ecf20Sopenharmony_ci 9, CLK_IGNORE_UNUSED, 0), 22188c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_FSYSP, "aclk_ahb2apb_fsysp", 22198c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_ACLK_FSYS1, 22208c2ecf20Sopenharmony_ci 8, CLK_IGNORE_UNUSED, 0), 22218c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2AXI_USBHS, "aclk_ahb2axi_usbhs", 22228c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_ACLK_FSYS1, 22238c2ecf20Sopenharmony_ci 7, CLK_IGNORE_UNUSED, 0), 22248c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB_USBLINKH0, "aclk_ahb_usblinkh0", 22258c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_ACLK_FSYS1, 22268c2ecf20Sopenharmony_ci 6, CLK_IGNORE_UNUSED, 0), 22278c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB_USBHS, "aclk_ahb_usbhs", "mout_aclk_fsys_200_user", 22288c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 5, CLK_IGNORE_UNUSED, 0), 22298c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB_FSYSH, "aclk_ahb_fsysh", "mout_aclk_fsys_200_user", 22308c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 4, CLK_IGNORE_UNUSED, 0), 22318c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_FSYSX, "aclk_xiu_fsysx", "mout_aclk_fsys_200_user", 22328c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 3, CLK_IGNORE_UNUSED, 0), 22338c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_FSYSSX, "aclk_xiu_fsyssx", "mout_aclk_fsys_200_user", 22348c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 2, CLK_IGNORE_UNUSED, 0), 22358c2ecf20Sopenharmony_ci GATE(CLK_ACLK_FSYSNP_200, "aclk_fsysnp_200", "mout_aclk_fsys_200_user", 22368c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 1, CLK_IGNORE_UNUSED, 0), 22378c2ecf20Sopenharmony_ci GATE(CLK_ACLK_FSYSND_200, "aclk_fsysnd_200", "mout_aclk_fsys_200_user", 22388c2ecf20Sopenharmony_ci ENABLE_ACLK_FSYS1, 0, CLK_IGNORE_UNUSED, 0), 22398c2ecf20Sopenharmony_ci 22408c2ecf20Sopenharmony_ci /* ENABLE_PCLK_FSYS */ 22418c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PCIE_CTRL, "pclk_pcie_ctrl", "mout_aclk_fsys_200_user", 22428c2ecf20Sopenharmony_ci ENABLE_PCLK_FSYS, 17, CLK_IGNORE_UNUSED, 0), 22438c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_PDMA1, "pclk_smmu_pdma1", "mout_aclk_fsys_200_user", 22448c2ecf20Sopenharmony_ci ENABLE_PCLK_FSYS, 16, CLK_IGNORE_UNUSED, 0), 22458c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PCIE_PHY, "pclk_pcie_phy", "mout_aclk_fsys_200_user", 22468c2ecf20Sopenharmony_ci ENABLE_PCLK_FSYS, 14, CLK_IGNORE_UNUSED, 0), 22478c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_PCIE, "pclk_bts_pcie", "mout_aclk_fsys_200_user", 22488c2ecf20Sopenharmony_ci ENABLE_PCLK_FSYS, 13, CLK_IGNORE_UNUSED, 0), 22498c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_PDMA0, "pclk_smmu_pdma0", "mout_aclk_fsys_200_user", 22508c2ecf20Sopenharmony_ci ENABLE_PCLK_FSYS, 8, CLK_IGNORE_UNUSED, 0), 22518c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_UFS, "pclk_bts_ufs", "mout_aclk_fsys_200_user", 22528c2ecf20Sopenharmony_ci ENABLE_PCLK_FSYS, 5, 0, 0), 22538c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_USBHOST30, "pclk_bts_usbhost30", 22548c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_PCLK_FSYS, 4, 0, 0), 22558c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_USBDRD30, "pclk_bts_usbdrd30", 22568c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_PCLK_FSYS, 3, 0, 0), 22578c2ecf20Sopenharmony_ci GATE(CLK_PCLK_GPIO_FSYS, "pclk_gpio_fsys", "mout_aclk_fsys_200_user", 22588c2ecf20Sopenharmony_ci ENABLE_PCLK_FSYS, 2, CLK_IGNORE_UNUSED, 0), 22598c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_FSYS, "pclk_pmu_fsys", "mout_aclk_fsys_200_user", 22608c2ecf20Sopenharmony_ci ENABLE_PCLK_FSYS, 1, CLK_IGNORE_UNUSED, 0), 22618c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_FSYS, "pclk_sysreg_fsys", 22628c2ecf20Sopenharmony_ci "mout_aclk_fsys_200_user", ENABLE_PCLK_FSYS, 22638c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 22648c2ecf20Sopenharmony_ci 22658c2ecf20Sopenharmony_ci /* ENABLE_SCLK_FSYS */ 22668c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PCIE_100, "sclk_pcie_100", "mout_sclk_pcie_100_user", 22678c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 21, 0, 0), 22688c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_USBHOST30_UHOST30_PIPE_PCLK, 22698c2ecf20Sopenharmony_ci "phyclk_usbhost30_uhost30_pipe_pclk", 22708c2ecf20Sopenharmony_ci "mout_phyclk_usbhost30_uhost30_pipe_pclk_user", 22718c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 18, 0, 0), 22728c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_USBHOST30_UHOST30_PHYCLOCK, 22738c2ecf20Sopenharmony_ci "phyclk_usbhost30_uhost30_phyclock", 22748c2ecf20Sopenharmony_ci "mout_phyclk_usbhost30_uhost30_phyclock_user", 22758c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 17, 0, 0), 22768c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_UFS_RX1_SYMBOL, "phyclk_ufs_rx1_symbol", 22778c2ecf20Sopenharmony_ci "mout_phyclk_ufs_rx1_symbol_user", ENABLE_SCLK_FSYS, 22788c2ecf20Sopenharmony_ci 16, 0, 0), 22798c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_UFS_RX0_SYMBOL, "phyclk_ufs_rx0_symbol", 22808c2ecf20Sopenharmony_ci "mout_phyclk_ufs_rx0_symbol_user", ENABLE_SCLK_FSYS, 22818c2ecf20Sopenharmony_ci 15, 0, 0), 22828c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_UFS_TX1_SYMBOL, "phyclk_ufs_tx1_symbol", 22838c2ecf20Sopenharmony_ci "mout_phyclk_ufs_tx1_symbol_user", ENABLE_SCLK_FSYS, 22848c2ecf20Sopenharmony_ci 14, 0, 0), 22858c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_UFS_TX0_SYMBOL, "phyclk_ufs_tx0_symbol", 22868c2ecf20Sopenharmony_ci "mout_phyclk_ufs_tx0_symbol_user", ENABLE_SCLK_FSYS, 22878c2ecf20Sopenharmony_ci 13, 0, 0), 22888c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_USBHOST20_PHY_HSIC1, "phyclk_usbhost20_phy_hsic1", 22898c2ecf20Sopenharmony_ci "mout_phyclk_usbhost20_phy_hsic1", ENABLE_SCLK_FSYS, 22908c2ecf20Sopenharmony_ci 12, 0, 0), 22918c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_USBHOST20_PHY_CLK48MOHCI, 22928c2ecf20Sopenharmony_ci "phyclk_usbhost20_phy_clk48mohci", 22938c2ecf20Sopenharmony_ci "mout_phyclk_usbhost20_phy_clk48mohci_user", 22948c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 11, 0, 0), 22958c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_USBHOST20_PHY_PHYCLOCK, 22968c2ecf20Sopenharmony_ci "phyclk_usbhost20_phy_phyclock", 22978c2ecf20Sopenharmony_ci "mout_phyclk_usbhost20_phy_phyclock_user", 22988c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 10, 0, 0), 22998c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_USBHOST20_PHY_FREECLK, 23008c2ecf20Sopenharmony_ci "phyclk_usbhost20_phy_freeclk", 23018c2ecf20Sopenharmony_ci "mout_phyclk_usbhost20_phy_freeclk_user", 23028c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 9, 0, 0), 23038c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_USBDRD30_UDRD30_PIPE_PCLK, 23048c2ecf20Sopenharmony_ci "phyclk_usbdrd30_udrd30_pipe_pclk", 23058c2ecf20Sopenharmony_ci "mout_phyclk_usbdrd30_udrd30_pipe_pclk_user", 23068c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 8, 0, 0), 23078c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_USBDRD30_UDRD30_PHYCLOCK, 23088c2ecf20Sopenharmony_ci "phyclk_usbdrd30_udrd30_phyclock", 23098c2ecf20Sopenharmony_ci "mout_phyclk_usbdrd30_udrd30_phyclock_user", 23108c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 7, 0, 0), 23118c2ecf20Sopenharmony_ci GATE(CLK_SCLK_MPHY, "sclk_mphy", "mout_sclk_mphy", 23128c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 6, 0, 0), 23138c2ecf20Sopenharmony_ci GATE(CLK_SCLK_UFSUNIPRO, "sclk_ufsunipro", "mout_sclk_ufsunipro_user", 23148c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 5, 0, 0), 23158c2ecf20Sopenharmony_ci GATE(CLK_SCLK_MMC2, "sclk_mmc2", "mout_sclk_mmc2_user", 23168c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 4, CLK_SET_RATE_PARENT, 0), 23178c2ecf20Sopenharmony_ci GATE(CLK_SCLK_MMC1, "sclk_mmc1", "mout_sclk_mmc1_user", 23188c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 3, CLK_SET_RATE_PARENT, 0), 23198c2ecf20Sopenharmony_ci GATE(CLK_SCLK_MMC0, "sclk_mmc0", "mout_sclk_mmc0_user", 23208c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 2, CLK_SET_RATE_PARENT, 0), 23218c2ecf20Sopenharmony_ci GATE(CLK_SCLK_USBHOST30, "sclk_usbhost30", "mout_sclk_usbhost30_user", 23228c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 1, 0, 0), 23238c2ecf20Sopenharmony_ci GATE(CLK_SCLK_USBDRD30, "sclk_usbdrd30", "mout_sclk_usbdrd30_user", 23248c2ecf20Sopenharmony_ci ENABLE_SCLK_FSYS, 0, 0, 0), 23258c2ecf20Sopenharmony_ci 23268c2ecf20Sopenharmony_ci /* ENABLE_IP_FSYS0 */ 23278c2ecf20Sopenharmony_ci GATE(CLK_PCIE, "pcie", "sclk_pcie_100", ENABLE_IP_FSYS0, 17, 0, 0), 23288c2ecf20Sopenharmony_ci GATE(CLK_PDMA1, "pdma1", "aclk_pdma1", ENABLE_IP_FSYS0, 15, 0, 0), 23298c2ecf20Sopenharmony_ci GATE(CLK_PDMA0, "pdma0", "aclk_pdma0", ENABLE_IP_FSYS0, 0, 0, 0), 23308c2ecf20Sopenharmony_ci}; 23318c2ecf20Sopenharmony_ci 23328c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info fsys_cmu_info __initconst = { 23338c2ecf20Sopenharmony_ci .mux_clks = fsys_mux_clks, 23348c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(fsys_mux_clks), 23358c2ecf20Sopenharmony_ci .gate_clks = fsys_gate_clks, 23368c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(fsys_gate_clks), 23378c2ecf20Sopenharmony_ci .fixed_clks = fsys_fixed_clks, 23388c2ecf20Sopenharmony_ci .nr_fixed_clks = ARRAY_SIZE(fsys_fixed_clks), 23398c2ecf20Sopenharmony_ci .nr_clk_ids = FSYS_NR_CLK, 23408c2ecf20Sopenharmony_ci .clk_regs = fsys_clk_regs, 23418c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(fsys_clk_regs), 23428c2ecf20Sopenharmony_ci .suspend_regs = fsys_suspend_regs, 23438c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(fsys_suspend_regs), 23448c2ecf20Sopenharmony_ci .clk_name = "aclk_fsys_200", 23458c2ecf20Sopenharmony_ci}; 23468c2ecf20Sopenharmony_ci 23478c2ecf20Sopenharmony_ci/* 23488c2ecf20Sopenharmony_ci * Register offset definitions for CMU_G2D 23498c2ecf20Sopenharmony_ci */ 23508c2ecf20Sopenharmony_ci#define MUX_SEL_G2D0 0x0200 23518c2ecf20Sopenharmony_ci#define MUX_SEL_ENABLE_G2D0 0x0300 23528c2ecf20Sopenharmony_ci#define MUX_SEL_STAT_G2D0 0x0400 23538c2ecf20Sopenharmony_ci#define DIV_G2D 0x0600 23548c2ecf20Sopenharmony_ci#define DIV_STAT_G2D 0x0700 23558c2ecf20Sopenharmony_ci#define DIV_ENABLE_ACLK_G2D 0x0800 23568c2ecf20Sopenharmony_ci#define DIV_ENABLE_ACLK_G2D_SECURE_SMMU_G2D 0x0804 23578c2ecf20Sopenharmony_ci#define DIV_ENABLE_PCLK_G2D 0x0900 23588c2ecf20Sopenharmony_ci#define DIV_ENABLE_PCLK_G2D_SECURE_SMMU_G2D 0x0904 23598c2ecf20Sopenharmony_ci#define DIV_ENABLE_IP_G2D0 0x0b00 23608c2ecf20Sopenharmony_ci#define DIV_ENABLE_IP_G2D1 0x0b04 23618c2ecf20Sopenharmony_ci#define DIV_ENABLE_IP_G2D_SECURE_SMMU_G2D 0x0b08 23628c2ecf20Sopenharmony_ci 23638c2ecf20Sopenharmony_cistatic const unsigned long g2d_clk_regs[] __initconst = { 23648c2ecf20Sopenharmony_ci MUX_SEL_G2D0, 23658c2ecf20Sopenharmony_ci MUX_SEL_ENABLE_G2D0, 23668c2ecf20Sopenharmony_ci DIV_G2D, 23678c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 23688c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D_SECURE_SMMU_G2D, 23698c2ecf20Sopenharmony_ci DIV_ENABLE_PCLK_G2D, 23708c2ecf20Sopenharmony_ci DIV_ENABLE_PCLK_G2D_SECURE_SMMU_G2D, 23718c2ecf20Sopenharmony_ci DIV_ENABLE_IP_G2D0, 23728c2ecf20Sopenharmony_ci DIV_ENABLE_IP_G2D1, 23738c2ecf20Sopenharmony_ci DIV_ENABLE_IP_G2D_SECURE_SMMU_G2D, 23748c2ecf20Sopenharmony_ci}; 23758c2ecf20Sopenharmony_ci 23768c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump g2d_suspend_regs[] = { 23778c2ecf20Sopenharmony_ci { MUX_SEL_G2D0, 0 }, 23788c2ecf20Sopenharmony_ci}; 23798c2ecf20Sopenharmony_ci 23808c2ecf20Sopenharmony_ci/* list of all parent clock list */ 23818c2ecf20Sopenharmony_ciPNAME(mout_aclk_g2d_266_user_p) = { "oscclk", "aclk_g2d_266", }; 23828c2ecf20Sopenharmony_ciPNAME(mout_aclk_g2d_400_user_p) = { "oscclk", "aclk_g2d_400", }; 23838c2ecf20Sopenharmony_ci 23848c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock g2d_mux_clks[] __initconst = { 23858c2ecf20Sopenharmony_ci /* MUX_SEL_G2D0 */ 23868c2ecf20Sopenharmony_ci MUX(CLK_MUX_ACLK_G2D_266_USER, "mout_aclk_g2d_266_user", 23878c2ecf20Sopenharmony_ci mout_aclk_g2d_266_user_p, MUX_SEL_G2D0, 4, 1), 23888c2ecf20Sopenharmony_ci MUX(CLK_MUX_ACLK_G2D_400_USER, "mout_aclk_g2d_400_user", 23898c2ecf20Sopenharmony_ci mout_aclk_g2d_400_user_p, MUX_SEL_G2D0, 0, 1), 23908c2ecf20Sopenharmony_ci}; 23918c2ecf20Sopenharmony_ci 23928c2ecf20Sopenharmony_cistatic const struct samsung_div_clock g2d_div_clks[] __initconst = { 23938c2ecf20Sopenharmony_ci /* DIV_G2D */ 23948c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_G2D, "div_pclk_g2d", "mout_aclk_g2d_266_user", 23958c2ecf20Sopenharmony_ci DIV_G2D, 0, 2), 23968c2ecf20Sopenharmony_ci}; 23978c2ecf20Sopenharmony_ci 23988c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock g2d_gate_clks[] __initconst = { 23998c2ecf20Sopenharmony_ci /* DIV_ENABLE_ACLK_G2D */ 24008c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_MDMA1, "aclk_smmu_mdma1", "mout_aclk_g2d_266_user", 24018c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 12, 0, 0), 24028c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_MDMA1, "aclk_bts_mdam1", "mout_aclk_g2d_266_user", 24038c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 11, 0, 0), 24048c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_G2D, "aclk_bts_g2d", "mout_aclk_g2d_400_user", 24058c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 10, 0, 0), 24068c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ALB_G2D, "aclk_alb_g2d", "mout_aclk_g2d_400_user", 24078c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 9, 0, 0), 24088c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_G2DX, "aclk_axius_g2dx", "mout_aclk_g2d_400_user", 24098c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 8, 0, 0), 24108c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXI_SYSX, "aclk_asyncaxi_sysx", 24118c2ecf20Sopenharmony_ci "mout_aclk_g2d_400_user", DIV_ENABLE_ACLK_G2D, 24128c2ecf20Sopenharmony_ci 7, 0, 0), 24138c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_G2D1P, "aclk_ahb2apb_g2d1p", "div_pclk_g2d", 24148c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 6, CLK_IGNORE_UNUSED, 0), 24158c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_G2D0P, "aclk_ahb2apb_g2d0p", "div_pclk_g2d", 24168c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 5, CLK_IGNORE_UNUSED, 0), 24178c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_G2DX, "aclk_xiu_g2dx", "mout_aclk_g2d_400_user", 24188c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 4, CLK_IGNORE_UNUSED, 0), 24198c2ecf20Sopenharmony_ci GATE(CLK_ACLK_G2DNP_133, "aclk_g2dnp_133", "div_pclk_g2d", 24208c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 3, CLK_IGNORE_UNUSED, 0), 24218c2ecf20Sopenharmony_ci GATE(CLK_ACLK_G2DND_400, "aclk_g2dnd_400", "mout_aclk_g2d_400_user", 24228c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 2, CLK_IGNORE_UNUSED, 0), 24238c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MDMA1, "aclk_mdma1", "mout_aclk_g2d_266_user", 24248c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 1, 0, 0), 24258c2ecf20Sopenharmony_ci GATE(CLK_ACLK_G2D, "aclk_g2d", "mout_aclk_g2d_400_user", 24268c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D, 0, 0, 0), 24278c2ecf20Sopenharmony_ci 24288c2ecf20Sopenharmony_ci /* DIV_ENABLE_ACLK_G2D_SECURE_SMMU_G2D */ 24298c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_G2D, "aclk_smmu_g2d", "mout_aclk_g2d_400_user", 24308c2ecf20Sopenharmony_ci DIV_ENABLE_ACLK_G2D_SECURE_SMMU_G2D, 0, 0, 0), 24318c2ecf20Sopenharmony_ci 24328c2ecf20Sopenharmony_ci /* DIV_ENABLE_PCLK_G2D */ 24338c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_MDMA1, "pclk_smmu_mdma1", "div_pclk_g2d", 24348c2ecf20Sopenharmony_ci DIV_ENABLE_PCLK_G2D, 7, 0, 0), 24358c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_MDMA1, "pclk_bts_mdam1", "div_pclk_g2d", 24368c2ecf20Sopenharmony_ci DIV_ENABLE_PCLK_G2D, 6, 0, 0), 24378c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_G2D, "pclk_bts_g2d", "div_pclk_g2d", 24388c2ecf20Sopenharmony_ci DIV_ENABLE_PCLK_G2D, 5, 0, 0), 24398c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ALB_G2D, "pclk_alb_g2d", "div_pclk_g2d", 24408c2ecf20Sopenharmony_ci DIV_ENABLE_PCLK_G2D, 4, 0, 0), 24418c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_SYSX, "pclk_asyncaxi_sysx", "div_pclk_g2d", 24428c2ecf20Sopenharmony_ci DIV_ENABLE_PCLK_G2D, 3, 0, 0), 24438c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_G2D, "pclk_pmu_g2d", "div_pclk_g2d", 24448c2ecf20Sopenharmony_ci DIV_ENABLE_PCLK_G2D, 2, CLK_IGNORE_UNUSED, 0), 24458c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_G2D, "pclk_sysreg_g2d", "div_pclk_g2d", 24468c2ecf20Sopenharmony_ci DIV_ENABLE_PCLK_G2D, 1, CLK_IGNORE_UNUSED, 0), 24478c2ecf20Sopenharmony_ci GATE(CLK_PCLK_G2D, "pclk_g2d", "div_pclk_g2d", DIV_ENABLE_PCLK_G2D, 24488c2ecf20Sopenharmony_ci 0, 0, 0), 24498c2ecf20Sopenharmony_ci 24508c2ecf20Sopenharmony_ci /* DIV_ENABLE_PCLK_G2D_SECURE_SMMU_G2D */ 24518c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_G2D, "pclk_smmu_g2d", "div_pclk_g2d", 24528c2ecf20Sopenharmony_ci DIV_ENABLE_PCLK_G2D_SECURE_SMMU_G2D, 0, 0, 0), 24538c2ecf20Sopenharmony_ci}; 24548c2ecf20Sopenharmony_ci 24558c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info g2d_cmu_info __initconst = { 24568c2ecf20Sopenharmony_ci .mux_clks = g2d_mux_clks, 24578c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(g2d_mux_clks), 24588c2ecf20Sopenharmony_ci .div_clks = g2d_div_clks, 24598c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(g2d_div_clks), 24608c2ecf20Sopenharmony_ci .gate_clks = g2d_gate_clks, 24618c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(g2d_gate_clks), 24628c2ecf20Sopenharmony_ci .nr_clk_ids = G2D_NR_CLK, 24638c2ecf20Sopenharmony_ci .clk_regs = g2d_clk_regs, 24648c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(g2d_clk_regs), 24658c2ecf20Sopenharmony_ci .suspend_regs = g2d_suspend_regs, 24668c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(g2d_suspend_regs), 24678c2ecf20Sopenharmony_ci .clk_name = "aclk_g2d_400", 24688c2ecf20Sopenharmony_ci}; 24698c2ecf20Sopenharmony_ci 24708c2ecf20Sopenharmony_ci/* 24718c2ecf20Sopenharmony_ci * Register offset definitions for CMU_DISP 24728c2ecf20Sopenharmony_ci */ 24738c2ecf20Sopenharmony_ci#define DISP_PLL_LOCK 0x0000 24748c2ecf20Sopenharmony_ci#define DISP_PLL_CON0 0x0100 24758c2ecf20Sopenharmony_ci#define DISP_PLL_CON1 0x0104 24768c2ecf20Sopenharmony_ci#define DISP_PLL_FREQ_DET 0x0108 24778c2ecf20Sopenharmony_ci#define MUX_SEL_DISP0 0x0200 24788c2ecf20Sopenharmony_ci#define MUX_SEL_DISP1 0x0204 24798c2ecf20Sopenharmony_ci#define MUX_SEL_DISP2 0x0208 24808c2ecf20Sopenharmony_ci#define MUX_SEL_DISP3 0x020c 24818c2ecf20Sopenharmony_ci#define MUX_SEL_DISP4 0x0210 24828c2ecf20Sopenharmony_ci#define MUX_ENABLE_DISP0 0x0300 24838c2ecf20Sopenharmony_ci#define MUX_ENABLE_DISP1 0x0304 24848c2ecf20Sopenharmony_ci#define MUX_ENABLE_DISP2 0x0308 24858c2ecf20Sopenharmony_ci#define MUX_ENABLE_DISP3 0x030c 24868c2ecf20Sopenharmony_ci#define MUX_ENABLE_DISP4 0x0310 24878c2ecf20Sopenharmony_ci#define MUX_STAT_DISP0 0x0400 24888c2ecf20Sopenharmony_ci#define MUX_STAT_DISP1 0x0404 24898c2ecf20Sopenharmony_ci#define MUX_STAT_DISP2 0x0408 24908c2ecf20Sopenharmony_ci#define MUX_STAT_DISP3 0x040c 24918c2ecf20Sopenharmony_ci#define MUX_STAT_DISP4 0x0410 24928c2ecf20Sopenharmony_ci#define MUX_IGNORE_DISP2 0x0508 24938c2ecf20Sopenharmony_ci#define DIV_DISP 0x0600 24948c2ecf20Sopenharmony_ci#define DIV_DISP_PLL_FREQ_DET 0x0604 24958c2ecf20Sopenharmony_ci#define DIV_STAT_DISP 0x0700 24968c2ecf20Sopenharmony_ci#define DIV_STAT_DISP_PLL_FREQ_DET 0x0704 24978c2ecf20Sopenharmony_ci#define ENABLE_ACLK_DISP0 0x0800 24988c2ecf20Sopenharmony_ci#define ENABLE_ACLK_DISP1 0x0804 24998c2ecf20Sopenharmony_ci#define ENABLE_PCLK_DISP 0x0900 25008c2ecf20Sopenharmony_ci#define ENABLE_SCLK_DISP 0x0a00 25018c2ecf20Sopenharmony_ci#define ENABLE_IP_DISP0 0x0b00 25028c2ecf20Sopenharmony_ci#define ENABLE_IP_DISP1 0x0b04 25038c2ecf20Sopenharmony_ci#define CLKOUT_CMU_DISP 0x0c00 25048c2ecf20Sopenharmony_ci#define CLKOUT_CMU_DISP_DIV_STAT 0x0c04 25058c2ecf20Sopenharmony_ci 25068c2ecf20Sopenharmony_cistatic const unsigned long disp_clk_regs[] __initconst = { 25078c2ecf20Sopenharmony_ci DISP_PLL_LOCK, 25088c2ecf20Sopenharmony_ci DISP_PLL_CON0, 25098c2ecf20Sopenharmony_ci DISP_PLL_CON1, 25108c2ecf20Sopenharmony_ci DISP_PLL_FREQ_DET, 25118c2ecf20Sopenharmony_ci MUX_SEL_DISP0, 25128c2ecf20Sopenharmony_ci MUX_SEL_DISP1, 25138c2ecf20Sopenharmony_ci MUX_SEL_DISP2, 25148c2ecf20Sopenharmony_ci MUX_SEL_DISP3, 25158c2ecf20Sopenharmony_ci MUX_SEL_DISP4, 25168c2ecf20Sopenharmony_ci MUX_ENABLE_DISP0, 25178c2ecf20Sopenharmony_ci MUX_ENABLE_DISP1, 25188c2ecf20Sopenharmony_ci MUX_ENABLE_DISP2, 25198c2ecf20Sopenharmony_ci MUX_ENABLE_DISP3, 25208c2ecf20Sopenharmony_ci MUX_ENABLE_DISP4, 25218c2ecf20Sopenharmony_ci MUX_IGNORE_DISP2, 25228c2ecf20Sopenharmony_ci DIV_DISP, 25238c2ecf20Sopenharmony_ci DIV_DISP_PLL_FREQ_DET, 25248c2ecf20Sopenharmony_ci ENABLE_ACLK_DISP0, 25258c2ecf20Sopenharmony_ci ENABLE_ACLK_DISP1, 25268c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 25278c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 25288c2ecf20Sopenharmony_ci ENABLE_IP_DISP0, 25298c2ecf20Sopenharmony_ci ENABLE_IP_DISP1, 25308c2ecf20Sopenharmony_ci CLKOUT_CMU_DISP, 25318c2ecf20Sopenharmony_ci CLKOUT_CMU_DISP_DIV_STAT, 25328c2ecf20Sopenharmony_ci}; 25338c2ecf20Sopenharmony_ci 25348c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump disp_suspend_regs[] = { 25358c2ecf20Sopenharmony_ci /* PLL has to be enabled for suspend */ 25368c2ecf20Sopenharmony_ci { DISP_PLL_CON0, 0x85f40502 }, 25378c2ecf20Sopenharmony_ci /* ignore status of external PHY muxes during suspend to avoid hangs */ 25388c2ecf20Sopenharmony_ci { MUX_IGNORE_DISP2, 0x00111111 }, 25398c2ecf20Sopenharmony_ci { MUX_SEL_DISP0, 0 }, 25408c2ecf20Sopenharmony_ci { MUX_SEL_DISP1, 0 }, 25418c2ecf20Sopenharmony_ci { MUX_SEL_DISP2, 0 }, 25428c2ecf20Sopenharmony_ci { MUX_SEL_DISP3, 0 }, 25438c2ecf20Sopenharmony_ci { MUX_SEL_DISP4, 0 }, 25448c2ecf20Sopenharmony_ci}; 25458c2ecf20Sopenharmony_ci 25468c2ecf20Sopenharmony_ci/* list of all parent clock list */ 25478c2ecf20Sopenharmony_ciPNAME(mout_disp_pll_p) = { "oscclk", "fout_disp_pll", }; 25488c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsim1_user_p) = { "oscclk", "sclk_dsim1_disp", }; 25498c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsim0_user_p) = { "oscclk", "sclk_dsim0_disp", }; 25508c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsd_user_p) = { "oscclk", "sclk_dsd_disp", }; 25518c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_tv_eclk_user_p) = { "oscclk", 25528c2ecf20Sopenharmony_ci "sclk_decon_tv_eclk_disp", }; 25538c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_vclk_user_p) = { "oscclk", 25548c2ecf20Sopenharmony_ci "sclk_decon_vclk_disp", }; 25558c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_eclk_user_p) = { "oscclk", 25568c2ecf20Sopenharmony_ci "sclk_decon_eclk_disp", }; 25578c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_tv_vlkc_user_p) = { "oscclk", 25588c2ecf20Sopenharmony_ci "sclk_decon_tv_vclk_disp", }; 25598c2ecf20Sopenharmony_ciPNAME(mout_aclk_disp_333_user_p) = { "oscclk", "aclk_disp_333", }; 25608c2ecf20Sopenharmony_ci 25618c2ecf20Sopenharmony_ciPNAME(mout_phyclk_mipidphy1_bitclkdiv8_user_p) = { "oscclk", 25628c2ecf20Sopenharmony_ci "phyclk_mipidphy1_bitclkdiv8_phy", }; 25638c2ecf20Sopenharmony_ciPNAME(mout_phyclk_mipidphy1_rxclkesc0_user_p) = { "oscclk", 25648c2ecf20Sopenharmony_ci "phyclk_mipidphy1_rxclkesc0_phy", }; 25658c2ecf20Sopenharmony_ciPNAME(mout_phyclk_mipidphy0_bitclkdiv8_user_p) = { "oscclk", 25668c2ecf20Sopenharmony_ci "phyclk_mipidphy0_bitclkdiv8_phy", }; 25678c2ecf20Sopenharmony_ciPNAME(mout_phyclk_mipidphy0_rxclkesc0_user_p) = { "oscclk", 25688c2ecf20Sopenharmony_ci "phyclk_mipidphy0_rxclkesc0_phy", }; 25698c2ecf20Sopenharmony_ciPNAME(mout_phyclk_hdmiphy_tmds_clko_user_p) = { "oscclk", 25708c2ecf20Sopenharmony_ci "phyclk_hdmiphy_tmds_clko_phy", }; 25718c2ecf20Sopenharmony_ciPNAME(mout_phyclk_hdmiphy_pixel_clko_user_p) = { "oscclk", 25728c2ecf20Sopenharmony_ci "phyclk_hdmiphy_pixel_clko_phy", }; 25738c2ecf20Sopenharmony_ci 25748c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsim0_p) = { "mout_disp_pll", 25758c2ecf20Sopenharmony_ci "mout_sclk_dsim0_user", }; 25768c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_tv_eclk_p) = { "mout_disp_pll", 25778c2ecf20Sopenharmony_ci "mout_sclk_decon_tv_eclk_user", }; 25788c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_vclk_p) = { "mout_disp_pll", 25798c2ecf20Sopenharmony_ci "mout_sclk_decon_vclk_user", }; 25808c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_eclk_p) = { "mout_disp_pll", 25818c2ecf20Sopenharmony_ci "mout_sclk_decon_eclk_user", }; 25828c2ecf20Sopenharmony_ci 25838c2ecf20Sopenharmony_ciPNAME(mout_sclk_dsim1_b_disp_p) = { "mout_sclk_dsim1_a_disp", 25848c2ecf20Sopenharmony_ci "mout_sclk_dsim1_user", }; 25858c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_tv_vclk_c_disp_p) = { 25868c2ecf20Sopenharmony_ci "mout_phyclk_hdmiphy_pixel_clko_user", 25878c2ecf20Sopenharmony_ci "mout_sclk_decon_tv_vclk_b_disp", }; 25888c2ecf20Sopenharmony_ciPNAME(mout_sclk_decon_tv_vclk_b_disp_p) = { "mout_sclk_decon_tv_vclk_a_disp", 25898c2ecf20Sopenharmony_ci "mout_sclk_decon_tv_vclk_user", }; 25908c2ecf20Sopenharmony_ci 25918c2ecf20Sopenharmony_cistatic const struct samsung_pll_clock disp_pll_clks[] __initconst = { 25928c2ecf20Sopenharmony_ci PLL(pll_35xx, CLK_FOUT_DISP_PLL, "fout_disp_pll", "oscclk", 25938c2ecf20Sopenharmony_ci DISP_PLL_LOCK, DISP_PLL_CON0, exynos5433_pll_rates), 25948c2ecf20Sopenharmony_ci}; 25958c2ecf20Sopenharmony_ci 25968c2ecf20Sopenharmony_cistatic const struct samsung_fixed_factor_clock disp_fixed_factor_clks[] __initconst = { 25978c2ecf20Sopenharmony_ci /* 25988c2ecf20Sopenharmony_ci * sclk_rgb_{vclk|tv_vclk} is half clock of sclk_decon_{vclk|tv_vclk}. 25998c2ecf20Sopenharmony_ci * The divider has fixed value (2) between sclk_rgb_{vclk|tv_vclk} 26008c2ecf20Sopenharmony_ci * and sclk_decon_{vclk|tv_vclk}. 26018c2ecf20Sopenharmony_ci */ 26028c2ecf20Sopenharmony_ci FFACTOR(CLK_SCLK_RGB_VCLK, "sclk_rgb_vclk", "sclk_decon_vclk", 26038c2ecf20Sopenharmony_ci 1, 2, 0), 26048c2ecf20Sopenharmony_ci FFACTOR(CLK_SCLK_RGB_TV_VCLK, "sclk_rgb_tv_vclk", "sclk_decon_tv_vclk", 26058c2ecf20Sopenharmony_ci 1, 2, 0), 26068c2ecf20Sopenharmony_ci}; 26078c2ecf20Sopenharmony_ci 26088c2ecf20Sopenharmony_cistatic const struct samsung_fixed_rate_clock disp_fixed_clks[] __initconst = { 26098c2ecf20Sopenharmony_ci /* PHY clocks from MIPI_DPHY1 */ 26108c2ecf20Sopenharmony_ci FRATE(0, "phyclk_mipidphy1_bitclkdiv8_phy", NULL, 0, 188000000), 26118c2ecf20Sopenharmony_ci FRATE(0, "phyclk_mipidphy1_rxclkesc0_phy", NULL, 0, 100000000), 26128c2ecf20Sopenharmony_ci /* PHY clocks from MIPI_DPHY0 */ 26138c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_MIPIDPHY0_BITCLKDIV8_PHY, "phyclk_mipidphy0_bitclkdiv8_phy", 26148c2ecf20Sopenharmony_ci NULL, 0, 188000000), 26158c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_MIPIDPHY0_RXCLKESC0_PHY, "phyclk_mipidphy0_rxclkesc0_phy", 26168c2ecf20Sopenharmony_ci NULL, 0, 100000000), 26178c2ecf20Sopenharmony_ci /* PHY clocks from HDMI_PHY */ 26188c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_HDMIPHY_TMDS_CLKO_PHY, "phyclk_hdmiphy_tmds_clko_phy", 26198c2ecf20Sopenharmony_ci NULL, 0, 300000000), 26208c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_HDMIPHY_PIXEL_CLKO_PHY, "phyclk_hdmiphy_pixel_clko_phy", 26218c2ecf20Sopenharmony_ci NULL, 0, 166000000), 26228c2ecf20Sopenharmony_ci}; 26238c2ecf20Sopenharmony_ci 26248c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock disp_mux_clks[] __initconst = { 26258c2ecf20Sopenharmony_ci /* MUX_SEL_DISP0 */ 26268c2ecf20Sopenharmony_ci MUX(CLK_MOUT_DISP_PLL, "mout_disp_pll", mout_disp_pll_p, MUX_SEL_DISP0, 26278c2ecf20Sopenharmony_ci 0, 1), 26288c2ecf20Sopenharmony_ci 26298c2ecf20Sopenharmony_ci /* MUX_SEL_DISP1 */ 26308c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSIM1_USER, "mout_sclk_dsim1_user", 26318c2ecf20Sopenharmony_ci mout_sclk_dsim1_user_p, MUX_SEL_DISP1, 28, 1), 26328c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSIM0_USER, "mout_sclk_dsim0_user", 26338c2ecf20Sopenharmony_ci mout_sclk_dsim0_user_p, MUX_SEL_DISP1, 24, 1), 26348c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSD_USER, "mout_sclk_dsd_user", mout_sclk_dsd_user_p, 26358c2ecf20Sopenharmony_ci MUX_SEL_DISP1, 20, 1), 26368c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_ECLK_USER, "mout_sclk_decon_tv_eclk_user", 26378c2ecf20Sopenharmony_ci mout_sclk_decon_tv_eclk_user_p, MUX_SEL_DISP1, 16, 1), 26388c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_VCLK_USER, "mout_sclk_decon_vclk_user", 26398c2ecf20Sopenharmony_ci mout_sclk_decon_vclk_user_p, MUX_SEL_DISP1, 12, 1), 26408c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_ECLK_USER, "mout_sclk_decon_eclk_user", 26418c2ecf20Sopenharmony_ci mout_sclk_decon_eclk_user_p, MUX_SEL_DISP1, 8, 1), 26428c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_VCLK_USER, "mout_sclk_decon_tv_vclk_user", 26438c2ecf20Sopenharmony_ci mout_sclk_decon_tv_vlkc_user_p, MUX_SEL_DISP1, 4, 1), 26448c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_DISP_333_USER, "mout_aclk_disp_333_user", 26458c2ecf20Sopenharmony_ci mout_aclk_disp_333_user_p, MUX_SEL_DISP1, 0, 1), 26468c2ecf20Sopenharmony_ci 26478c2ecf20Sopenharmony_ci /* MUX_SEL_DISP2 */ 26488c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_MIPIDPHY1_BITCLKDIV8_USER, 26498c2ecf20Sopenharmony_ci "mout_phyclk_mipidphy1_bitclkdiv8_user", 26508c2ecf20Sopenharmony_ci mout_phyclk_mipidphy1_bitclkdiv8_user_p, MUX_SEL_DISP2, 26518c2ecf20Sopenharmony_ci 20, 1), 26528c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_MIPIDPHY1_RXCLKESC0_USER, 26538c2ecf20Sopenharmony_ci "mout_phyclk_mipidphy1_rxclkesc0_user", 26548c2ecf20Sopenharmony_ci mout_phyclk_mipidphy1_rxclkesc0_user_p, MUX_SEL_DISP2, 26558c2ecf20Sopenharmony_ci 16, 1), 26568c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_MIPIDPHY0_BITCLKDIV8_USER, 26578c2ecf20Sopenharmony_ci "mout_phyclk_mipidphy0_bitclkdiv8_user", 26588c2ecf20Sopenharmony_ci mout_phyclk_mipidphy0_bitclkdiv8_user_p, MUX_SEL_DISP2, 26598c2ecf20Sopenharmony_ci 12, 1), 26608c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_MIPIDPHY0_RXCLKESC0_USER, 26618c2ecf20Sopenharmony_ci "mout_phyclk_mipidphy0_rxclkesc0_user", 26628c2ecf20Sopenharmony_ci mout_phyclk_mipidphy0_rxclkesc0_user_p, MUX_SEL_DISP2, 26638c2ecf20Sopenharmony_ci 8, 1), 26648c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_HDMIPHY_TMDS_CLKO_USER, 26658c2ecf20Sopenharmony_ci "mout_phyclk_hdmiphy_tmds_clko_user", 26668c2ecf20Sopenharmony_ci mout_phyclk_hdmiphy_tmds_clko_user_p, MUX_SEL_DISP2, 26678c2ecf20Sopenharmony_ci 4, 1), 26688c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_HDMIPHY_PIXEL_CLKO_USER, 26698c2ecf20Sopenharmony_ci "mout_phyclk_hdmiphy_pixel_clko_user", 26708c2ecf20Sopenharmony_ci mout_phyclk_hdmiphy_pixel_clko_user_p, MUX_SEL_DISP2, 26718c2ecf20Sopenharmony_ci 0, 1), 26728c2ecf20Sopenharmony_ci 26738c2ecf20Sopenharmony_ci /* MUX_SEL_DISP3 */ 26748c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSIM0, "mout_sclk_dsim0", mout_sclk_dsim0_p, 26758c2ecf20Sopenharmony_ci MUX_SEL_DISP3, 12, 1), 26768c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_ECLK, "mout_sclk_decon_tv_eclk", 26778c2ecf20Sopenharmony_ci mout_sclk_decon_tv_eclk_p, MUX_SEL_DISP3, 8, 1), 26788c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_VCLK, "mout_sclk_decon_vclk", 26798c2ecf20Sopenharmony_ci mout_sclk_decon_vclk_p, MUX_SEL_DISP3, 4, 1), 26808c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_ECLK, "mout_sclk_decon_eclk", 26818c2ecf20Sopenharmony_ci mout_sclk_decon_eclk_p, MUX_SEL_DISP3, 0, 1), 26828c2ecf20Sopenharmony_ci 26838c2ecf20Sopenharmony_ci /* MUX_SEL_DISP4 */ 26848c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSIM1_B_DISP, "mout_sclk_dsim1_b_disp", 26858c2ecf20Sopenharmony_ci mout_sclk_dsim1_b_disp_p, MUX_SEL_DISP4, 16, 1), 26868c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DSIM1_A_DISP, "mout_sclk_dsim1_a_disp", 26878c2ecf20Sopenharmony_ci mout_sclk_dsim0_p, MUX_SEL_DISP4, 12, 1), 26888c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_VCLK_C_DISP, 26898c2ecf20Sopenharmony_ci "mout_sclk_decon_tv_vclk_c_disp", 26908c2ecf20Sopenharmony_ci mout_sclk_decon_tv_vclk_c_disp_p, MUX_SEL_DISP4, 8, 1), 26918c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_VCLK_B_DISP, 26928c2ecf20Sopenharmony_ci "mout_sclk_decon_tv_vclk_b_disp", 26938c2ecf20Sopenharmony_ci mout_sclk_decon_tv_vclk_b_disp_p, MUX_SEL_DISP4, 4, 1), 26948c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_DECON_TV_VCLK_A_DISP, 26958c2ecf20Sopenharmony_ci "mout_sclk_decon_tv_vclk_a_disp", 26968c2ecf20Sopenharmony_ci mout_sclk_decon_vclk_p, MUX_SEL_DISP4, 0, 1), 26978c2ecf20Sopenharmony_ci}; 26988c2ecf20Sopenharmony_ci 26998c2ecf20Sopenharmony_cistatic const struct samsung_div_clock disp_div_clks[] __initconst = { 27008c2ecf20Sopenharmony_ci /* DIV_DISP */ 27018c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DSIM1_DISP, "div_sclk_dsim1_disp", 27028c2ecf20Sopenharmony_ci "mout_sclk_dsim1_b_disp", DIV_DISP, 24, 3), 27038c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DECON_TV_VCLK_DISP, "div_sclk_decon_tv_vclk_disp", 27048c2ecf20Sopenharmony_ci "mout_sclk_decon_tv_vclk_c_disp", DIV_DISP, 20, 3), 27058c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DSIM0_DISP, "div_sclk_dsim0_disp", "mout_sclk_dsim0", 27068c2ecf20Sopenharmony_ci DIV_DISP, 16, 3), 27078c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DECON_TV_ECLK_DISP, "div_sclk_decon_tv_eclk_disp", 27088c2ecf20Sopenharmony_ci "mout_sclk_decon_tv_eclk", DIV_DISP, 12, 3), 27098c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DECON_VCLK_DISP, "div_sclk_decon_vclk_disp", 27108c2ecf20Sopenharmony_ci "mout_sclk_decon_vclk", DIV_DISP, 8, 3), 27118c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_DECON_ECLK_DISP, "div_sclk_decon_eclk_disp", 27128c2ecf20Sopenharmony_ci "mout_sclk_decon_eclk", DIV_DISP, 4, 3), 27138c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_DISP, "div_pclk_disp", "mout_aclk_disp_333_user", 27148c2ecf20Sopenharmony_ci DIV_DISP, 0, 2), 27158c2ecf20Sopenharmony_ci}; 27168c2ecf20Sopenharmony_ci 27178c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock disp_gate_clks[] __initconst = { 27188c2ecf20Sopenharmony_ci /* ENABLE_ACLK_DISP0 */ 27198c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DECON_TV, "aclk_decon_tv", "mout_aclk_disp_333_user", 27208c2ecf20Sopenharmony_ci ENABLE_ACLK_DISP0, 2, 0, 0), 27218c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DECON, "aclk_decon", "mout_aclk_disp_333_user", 27228c2ecf20Sopenharmony_ci ENABLE_ACLK_DISP0, 0, 0, 0), 27238c2ecf20Sopenharmony_ci 27248c2ecf20Sopenharmony_ci /* ENABLE_ACLK_DISP1 */ 27258c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_TV1X, "aclk_smmu_tv1x", "mout_aclk_disp_333_user", 27268c2ecf20Sopenharmony_ci ENABLE_ACLK_DISP1, 25, 0, 0), 27278c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_TV0X, "aclk_smmu_tv0x", "mout_aclk_disp_333_user", 27288c2ecf20Sopenharmony_ci ENABLE_ACLK_DISP1, 24, 0, 0), 27298c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_DECON1X, "aclk_smmu_decon1x", 27308c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 23, 0, 0), 27318c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_DECON0X, "aclk_smmu_decon0x", 27328c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 22, 0, 0), 27338c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DECON_TV_M3, "aclk_bts_decon_tv_m3", 27348c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 21, 0, 0), 27358c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DECON_TV_M2, "aclk_bts_decon_tv_m2", 27368c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 20, 0, 0), 27378c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DECON_TV_M1, "aclk_bts_decon_tv_m1", 27388c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 19, 0, 0), 27398c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DECON_TV_M0, "aclk-bts_decon_tv_m0", 27408c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 18, 0, 0), 27418c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DECON_NM4, "aclk_bts_decon_nm4", 27428c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 17, 0, 0), 27438c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DECON_NM3, "aclk_bts_decon_nm3", 27448c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 16, 0, 0), 27458c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DECON_NM2, "aclk_bts_decon_nm2", 27468c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 15, 0, 0), 27478c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DECON_NM1, "aclk_bts_decon_nm1", 27488c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 14, 0, 0), 27498c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DECON_NM0, "aclk_bts_decon_nm0", 27508c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 13, 0, 0), 27518c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_DISPSFR2P, "aclk_ahb2apb_dispsfr2p", 27528c2ecf20Sopenharmony_ci "div_pclk_disp", ENABLE_ACLK_DISP1, 27538c2ecf20Sopenharmony_ci 12, CLK_IGNORE_UNUSED, 0), 27548c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_DISPSFR1P, "aclk_ahb2apb_dispsfr1p", 27558c2ecf20Sopenharmony_ci "div_pclk_disp", ENABLE_ACLK_DISP1, 27568c2ecf20Sopenharmony_ci 11, CLK_IGNORE_UNUSED, 0), 27578c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_DISPSFR0P, "aclk_ahb2apb_dispsfr0p", 27588c2ecf20Sopenharmony_ci "div_pclk_disp", ENABLE_ACLK_DISP1, 27598c2ecf20Sopenharmony_ci 10, CLK_IGNORE_UNUSED, 0), 27608c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB_DISPH, "aclk_ahb_disph", "div_pclk_disp", 27618c2ecf20Sopenharmony_ci ENABLE_ACLK_DISP1, 8, CLK_IGNORE_UNUSED, 0), 27628c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_TV1X, "aclk_xiu_tv1x", "mout_aclk_disp_333_user", 27638c2ecf20Sopenharmony_ci ENABLE_ACLK_DISP1, 7, 0, 0), 27648c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_TV0X, "aclk_xiu_tv0x", "mout_aclk_disp_333_user", 27658c2ecf20Sopenharmony_ci ENABLE_ACLK_DISP1, 6, 0, 0), 27668c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_DECON1X, "aclk_xiu_decon1x", 27678c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 5, 0, 0), 27688c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_DECON0X, "aclk_xiu_decon0x", 27698c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 4, 0, 0), 27708c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_DISP1X, "aclk_xiu_disp1x", "mout_aclk_disp_333_user", 27718c2ecf20Sopenharmony_ci ENABLE_ACLK_DISP1, 3, CLK_IGNORE_UNUSED, 0), 27728c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_DISPNP_100, "aclk_xiu_dispnp_100", "div_pclk_disp", 27738c2ecf20Sopenharmony_ci ENABLE_ACLK_DISP1, 2, CLK_IGNORE_UNUSED, 0), 27748c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DISP1ND_333, "aclk_disp1nd_333", 27758c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 1, 27768c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 27778c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DISP0ND_333, "aclk_disp0nd_333", 27788c2ecf20Sopenharmony_ci "mout_aclk_disp_333_user", ENABLE_ACLK_DISP1, 27798c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 27808c2ecf20Sopenharmony_ci 27818c2ecf20Sopenharmony_ci /* ENABLE_PCLK_DISP */ 27828c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_TV1X, "pclk_smmu_tv1x", "div_pclk_disp", 27838c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 23, 0, 0), 27848c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_TV0X, "pclk_smmu_tv0x", "div_pclk_disp", 27858c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 22, 0, 0), 27868c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_DECON1X, "pclk_smmu_decon1x", "div_pclk_disp", 27878c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 21, 0, 0), 27888c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_DECON0X, "pclk_smmu_decon0x", "div_pclk_disp", 27898c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 20, 0, 0), 27908c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DECON_TV_M3, "pclk_bts_decon_tv_m3", "div_pclk_disp", 27918c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 19, 0, 0), 27928c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DECON_TV_M2, "pclk_bts_decon_tv_m2", "div_pclk_disp", 27938c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 18, 0, 0), 27948c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DECON_TV_M1, "pclk_bts_decon_tv_m1", "div_pclk_disp", 27958c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 17, 0, 0), 27968c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DECON_TV_M0, "pclk_bts_decon_tv_m0", "div_pclk_disp", 27978c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 16, 0, 0), 27988c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DECONM4, "pclk_bts_deconm4", "div_pclk_disp", 27998c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 15, 0, 0), 28008c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DECONM3, "pclk_bts_deconm3", "div_pclk_disp", 28018c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 14, 0, 0), 28028c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DECONM2, "pclk_bts_deconm2", "div_pclk_disp", 28038c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 13, 0, 0), 28048c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DECONM1, "pclk_bts_deconm1", "div_pclk_disp", 28058c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 12, 0, 0), 28068c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DECONM0, "pclk_bts_deconm0", "div_pclk_disp", 28078c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 11, 0, 0), 28088c2ecf20Sopenharmony_ci GATE(CLK_PCLK_MIC1, "pclk_mic1", "div_pclk_disp", 28098c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 10, 0, 0), 28108c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_DISP, "pclk_pmu_disp", "div_pclk_disp", 28118c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 9, CLK_IGNORE_UNUSED, 0), 28128c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_DISP, "pclk_sysreg_disp", "div_pclk_disp", 28138c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 8, CLK_IGNORE_UNUSED, 0), 28148c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HDMIPHY, "pclk_hdmiphy", "div_pclk_disp", 28158c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 7, 0, 0), 28168c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HDMI, "pclk_hdmi", "div_pclk_disp", 28178c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 6, 0, 0), 28188c2ecf20Sopenharmony_ci GATE(CLK_PCLK_MIC0, "pclk_mic0", "div_pclk_disp", 28198c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 5, 0, 0), 28208c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DSIM1, "pclk_dsim1", "div_pclk_disp", 28218c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 3, 0, 0), 28228c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DSIM0, "pclk_dsim0", "div_pclk_disp", 28238c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 2, 0, 0), 28248c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DECON_TV, "pclk_decon_tv", "div_pclk_disp", 28258c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 1, 0, 0), 28268c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DECON, "pclk_decon", "div_pclk_disp", 28278c2ecf20Sopenharmony_ci ENABLE_PCLK_DISP, 0, 0, 0), 28288c2ecf20Sopenharmony_ci 28298c2ecf20Sopenharmony_ci /* ENABLE_SCLK_DISP */ 28308c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_MIPIDPHY1_BITCLKDIV8, "phyclk_mipidphy1_bitclkdiv8", 28318c2ecf20Sopenharmony_ci "mout_phyclk_mipidphy1_bitclkdiv8_user", 28328c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 26, 0, 0), 28338c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_MIPIDPHY1_RXCLKESC0, "phyclk_mipidphy1_rxclkesc0", 28348c2ecf20Sopenharmony_ci "mout_phyclk_mipidphy1_rxclkesc0_user", 28358c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 25, 0, 0), 28368c2ecf20Sopenharmony_ci GATE(CLK_SCLK_RGB_TV_VCLK_TO_DSIM1, "sclk_rgb_tv_vclk_to_dsim1", 28378c2ecf20Sopenharmony_ci "sclk_rgb_tv_vclk", ENABLE_SCLK_DISP, 24, 0, 0), 28388c2ecf20Sopenharmony_ci GATE(CLK_SCLK_RGB_TV_VCLK_TO_MIC1, "sclk_rgb_tv_vclk_to_mic1", 28398c2ecf20Sopenharmony_ci "sclk_rgb_tv_vclk", ENABLE_SCLK_DISP, 23, 0, 0), 28408c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DSIM1, "sclk_dsim1", "div_sclk_dsim1_disp", 28418c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 22, 0, 0), 28428c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DECON_TV_VCLK, "sclk_decon_tv_vclk", 28438c2ecf20Sopenharmony_ci "div_sclk_decon_tv_vclk_disp", 28448c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 21, 0, 0), 28458c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_MIPIDPHY0_BITCLKDIV8, "phyclk_mipidphy0_bitclkdiv8", 28468c2ecf20Sopenharmony_ci "mout_phyclk_mipidphy0_bitclkdiv8_user", 28478c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 15, 0, 0), 28488c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_MIPIDPHY0_RXCLKESC0, "phyclk_mipidphy0_rxclkesc0", 28498c2ecf20Sopenharmony_ci "mout_phyclk_mipidphy0_rxclkesc0_user", 28508c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 14, 0, 0), 28518c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_HDMIPHY_TMDS_CLKO, "phyclk_hdmiphy_tmds_clko", 28528c2ecf20Sopenharmony_ci "mout_phyclk_hdmiphy_tmds_clko_user", 28538c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 13, 0, 0), 28548c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_HDMI_PIXEL, "phyclk_hdmi_pixel", 28558c2ecf20Sopenharmony_ci "sclk_rgb_tv_vclk", ENABLE_SCLK_DISP, 12, 0, 0), 28568c2ecf20Sopenharmony_ci GATE(CLK_SCLK_RGB_VCLK_TO_SMIES, "sclk_rgb_vclk_to_smies", 28578c2ecf20Sopenharmony_ci "sclk_rgb_vclk", ENABLE_SCLK_DISP, 11, 0, 0), 28588c2ecf20Sopenharmony_ci GATE(CLK_SCLK_RGB_VCLK_TO_DSIM0, "sclk_rgb_vclk_to_dsim0", 28598c2ecf20Sopenharmony_ci "sclk_rgb_vclk", ENABLE_SCLK_DISP, 9, 0, 0), 28608c2ecf20Sopenharmony_ci GATE(CLK_SCLK_RGB_VCLK_TO_MIC0, "sclk_rgb_vclk_to_mic0", 28618c2ecf20Sopenharmony_ci "sclk_rgb_vclk", ENABLE_SCLK_DISP, 8, 0, 0), 28628c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DSD, "sclk_dsd", "mout_sclk_dsd_user", 28638c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 7, 0, 0), 28648c2ecf20Sopenharmony_ci GATE(CLK_SCLK_HDMI_SPDIF, "sclk_hdmi_spdif", "sclk_hdmi_spdif_disp", 28658c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 6, 0, 0), 28668c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DSIM0, "sclk_dsim0", "div_sclk_dsim0_disp", 28678c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 5, 0, 0), 28688c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DECON_TV_ECLK, "sclk_decon_tv_eclk", 28698c2ecf20Sopenharmony_ci "div_sclk_decon_tv_eclk_disp", 28708c2ecf20Sopenharmony_ci ENABLE_SCLK_DISP, 4, 0, 0), 28718c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DECON_VCLK, "sclk_decon_vclk", 28728c2ecf20Sopenharmony_ci "div_sclk_decon_vclk_disp", ENABLE_SCLK_DISP, 3, 0, 0), 28738c2ecf20Sopenharmony_ci GATE(CLK_SCLK_DECON_ECLK, "sclk_decon_eclk", 28748c2ecf20Sopenharmony_ci "div_sclk_decon_eclk_disp", ENABLE_SCLK_DISP, 2, 0, 0), 28758c2ecf20Sopenharmony_ci}; 28768c2ecf20Sopenharmony_ci 28778c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info disp_cmu_info __initconst = { 28788c2ecf20Sopenharmony_ci .pll_clks = disp_pll_clks, 28798c2ecf20Sopenharmony_ci .nr_pll_clks = ARRAY_SIZE(disp_pll_clks), 28808c2ecf20Sopenharmony_ci .mux_clks = disp_mux_clks, 28818c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(disp_mux_clks), 28828c2ecf20Sopenharmony_ci .div_clks = disp_div_clks, 28838c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(disp_div_clks), 28848c2ecf20Sopenharmony_ci .gate_clks = disp_gate_clks, 28858c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(disp_gate_clks), 28868c2ecf20Sopenharmony_ci .fixed_clks = disp_fixed_clks, 28878c2ecf20Sopenharmony_ci .nr_fixed_clks = ARRAY_SIZE(disp_fixed_clks), 28888c2ecf20Sopenharmony_ci .fixed_factor_clks = disp_fixed_factor_clks, 28898c2ecf20Sopenharmony_ci .nr_fixed_factor_clks = ARRAY_SIZE(disp_fixed_factor_clks), 28908c2ecf20Sopenharmony_ci .nr_clk_ids = DISP_NR_CLK, 28918c2ecf20Sopenharmony_ci .clk_regs = disp_clk_regs, 28928c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(disp_clk_regs), 28938c2ecf20Sopenharmony_ci .suspend_regs = disp_suspend_regs, 28948c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(disp_suspend_regs), 28958c2ecf20Sopenharmony_ci .clk_name = "aclk_disp_333", 28968c2ecf20Sopenharmony_ci}; 28978c2ecf20Sopenharmony_ci 28988c2ecf20Sopenharmony_ci/* 28998c2ecf20Sopenharmony_ci * Register offset definitions for CMU_AUD 29008c2ecf20Sopenharmony_ci */ 29018c2ecf20Sopenharmony_ci#define MUX_SEL_AUD0 0x0200 29028c2ecf20Sopenharmony_ci#define MUX_SEL_AUD1 0x0204 29038c2ecf20Sopenharmony_ci#define MUX_ENABLE_AUD0 0x0300 29048c2ecf20Sopenharmony_ci#define MUX_ENABLE_AUD1 0x0304 29058c2ecf20Sopenharmony_ci#define MUX_STAT_AUD0 0x0400 29068c2ecf20Sopenharmony_ci#define DIV_AUD0 0x0600 29078c2ecf20Sopenharmony_ci#define DIV_AUD1 0x0604 29088c2ecf20Sopenharmony_ci#define DIV_STAT_AUD0 0x0700 29098c2ecf20Sopenharmony_ci#define DIV_STAT_AUD1 0x0704 29108c2ecf20Sopenharmony_ci#define ENABLE_ACLK_AUD 0x0800 29118c2ecf20Sopenharmony_ci#define ENABLE_PCLK_AUD 0x0900 29128c2ecf20Sopenharmony_ci#define ENABLE_SCLK_AUD0 0x0a00 29138c2ecf20Sopenharmony_ci#define ENABLE_SCLK_AUD1 0x0a04 29148c2ecf20Sopenharmony_ci#define ENABLE_IP_AUD0 0x0b00 29158c2ecf20Sopenharmony_ci#define ENABLE_IP_AUD1 0x0b04 29168c2ecf20Sopenharmony_ci 29178c2ecf20Sopenharmony_cistatic const unsigned long aud_clk_regs[] __initconst = { 29188c2ecf20Sopenharmony_ci MUX_SEL_AUD0, 29198c2ecf20Sopenharmony_ci MUX_SEL_AUD1, 29208c2ecf20Sopenharmony_ci MUX_ENABLE_AUD0, 29218c2ecf20Sopenharmony_ci MUX_ENABLE_AUD1, 29228c2ecf20Sopenharmony_ci DIV_AUD0, 29238c2ecf20Sopenharmony_ci DIV_AUD1, 29248c2ecf20Sopenharmony_ci ENABLE_ACLK_AUD, 29258c2ecf20Sopenharmony_ci ENABLE_PCLK_AUD, 29268c2ecf20Sopenharmony_ci ENABLE_SCLK_AUD0, 29278c2ecf20Sopenharmony_ci ENABLE_SCLK_AUD1, 29288c2ecf20Sopenharmony_ci ENABLE_IP_AUD0, 29298c2ecf20Sopenharmony_ci ENABLE_IP_AUD1, 29308c2ecf20Sopenharmony_ci}; 29318c2ecf20Sopenharmony_ci 29328c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump aud_suspend_regs[] = { 29338c2ecf20Sopenharmony_ci { MUX_SEL_AUD0, 0 }, 29348c2ecf20Sopenharmony_ci { MUX_SEL_AUD1, 0 }, 29358c2ecf20Sopenharmony_ci}; 29368c2ecf20Sopenharmony_ci 29378c2ecf20Sopenharmony_ci/* list of all parent clock list */ 29388c2ecf20Sopenharmony_ciPNAME(mout_aud_pll_user_aud_p) = { "oscclk", "fout_aud_pll", }; 29398c2ecf20Sopenharmony_ciPNAME(mout_sclk_aud_pcm_p) = { "mout_aud_pll_user", "ioclk_audiocdclk0",}; 29408c2ecf20Sopenharmony_ci 29418c2ecf20Sopenharmony_cistatic const struct samsung_fixed_rate_clock aud_fixed_clks[] __initconst = { 29428c2ecf20Sopenharmony_ci FRATE(0, "ioclk_jtag_tclk", NULL, 0, 33000000), 29438c2ecf20Sopenharmony_ci FRATE(0, "ioclk_slimbus_clk", NULL, 0, 25000000), 29448c2ecf20Sopenharmony_ci FRATE(0, "ioclk_i2s_bclk", NULL, 0, 50000000), 29458c2ecf20Sopenharmony_ci}; 29468c2ecf20Sopenharmony_ci 29478c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock aud_mux_clks[] __initconst = { 29488c2ecf20Sopenharmony_ci /* MUX_SEL_AUD0 */ 29498c2ecf20Sopenharmony_ci MUX(CLK_MOUT_AUD_PLL_USER, "mout_aud_pll_user", 29508c2ecf20Sopenharmony_ci mout_aud_pll_user_aud_p, MUX_SEL_AUD0, 0, 1), 29518c2ecf20Sopenharmony_ci 29528c2ecf20Sopenharmony_ci /* MUX_SEL_AUD1 */ 29538c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_AUD_PCM, "mout_sclk_aud_pcm", mout_sclk_aud_pcm_p, 29548c2ecf20Sopenharmony_ci MUX_SEL_AUD1, 8, 1), 29558c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_AUD_I2S, "mout_sclk_aud_i2s", mout_sclk_aud_pcm_p, 29568c2ecf20Sopenharmony_ci MUX_SEL_AUD1, 0, 1), 29578c2ecf20Sopenharmony_ci}; 29588c2ecf20Sopenharmony_ci 29598c2ecf20Sopenharmony_cistatic const struct samsung_div_clock aud_div_clks[] __initconst = { 29608c2ecf20Sopenharmony_ci /* DIV_AUD0 */ 29618c2ecf20Sopenharmony_ci DIV(CLK_DIV_ATCLK_AUD, "div_atclk_aud", "div_aud_ca5", DIV_AUD0, 29628c2ecf20Sopenharmony_ci 12, 4), 29638c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_DBG_AUD, "div_pclk_dbg_aud", "div_aud_ca5", DIV_AUD0, 29648c2ecf20Sopenharmony_ci 8, 4), 29658c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_AUD, "div_aclk_aud", "div_aud_ca5", DIV_AUD0, 29668c2ecf20Sopenharmony_ci 4, 4), 29678c2ecf20Sopenharmony_ci DIV(CLK_DIV_AUD_CA5, "div_aud_ca5", "mout_aud_pll_user", DIV_AUD0, 29688c2ecf20Sopenharmony_ci 0, 4), 29698c2ecf20Sopenharmony_ci 29708c2ecf20Sopenharmony_ci /* DIV_AUD1 */ 29718c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_AUD_SLIMBUS, "div_sclk_aud_slimbus", 29728c2ecf20Sopenharmony_ci "mout_aud_pll_user", DIV_AUD1, 16, 5), 29738c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_AUD_UART, "div_sclk_aud_uart", "mout_aud_pll_user", 29748c2ecf20Sopenharmony_ci DIV_AUD1, 12, 4), 29758c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_AUD_PCM, "div_sclk_aud_pcm", "mout_sclk_aud_pcm", 29768c2ecf20Sopenharmony_ci DIV_AUD1, 4, 8), 29778c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_AUD_I2S, "div_sclk_aud_i2s", "mout_sclk_aud_i2s", 29788c2ecf20Sopenharmony_ci DIV_AUD1, 0, 4), 29798c2ecf20Sopenharmony_ci}; 29808c2ecf20Sopenharmony_ci 29818c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock aud_gate_clks[] __initconst = { 29828c2ecf20Sopenharmony_ci /* ENABLE_ACLK_AUD */ 29838c2ecf20Sopenharmony_ci GATE(CLK_ACLK_INTR_CTRL, "aclk_intr_ctrl", "div_aclk_aud", 29848c2ecf20Sopenharmony_ci ENABLE_ACLK_AUD, 12, 0, 0), 29858c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_LPASSX, "aclk_smmu_lpassx", "div_aclk_aud", 29868c2ecf20Sopenharmony_ci ENABLE_ACLK_AUD, 7, 0, 0), 29878c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_LPASSX, "aclk_xiu_lpassx", "div_aclk_aud", 29888c2ecf20Sopenharmony_ci ENABLE_ACLK_AUD, 0, 4, 0), 29898c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AUDNP_133, "aclk_audnp_133", "div_aclk_aud", 29908c2ecf20Sopenharmony_ci ENABLE_ACLK_AUD, 0, 3, 0), 29918c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AUDND_133, "aclk_audnd_133", "div_aclk_aud", 29928c2ecf20Sopenharmony_ci ENABLE_ACLK_AUD, 0, 2, 0), 29938c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SRAMC, "aclk_sramc", "div_aclk_aud", ENABLE_ACLK_AUD, 29948c2ecf20Sopenharmony_ci 0, 1, 0), 29958c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DMAC, "aclk_dmac", "div_aclk_aud", ENABLE_ACLK_AUD, 29968c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 29978c2ecf20Sopenharmony_ci 29988c2ecf20Sopenharmony_ci /* ENABLE_PCLK_AUD */ 29998c2ecf20Sopenharmony_ci GATE(CLK_PCLK_WDT1, "pclk_wdt1", "div_aclk_aud", ENABLE_PCLK_AUD, 30008c2ecf20Sopenharmony_ci 13, 0, 0), 30018c2ecf20Sopenharmony_ci GATE(CLK_PCLK_WDT0, "pclk_wdt0", "div_aclk_aud", ENABLE_PCLK_AUD, 30028c2ecf20Sopenharmony_ci 12, 0, 0), 30038c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SFR1, "pclk_sfr1", "div_aclk_aud", ENABLE_PCLK_AUD, 30048c2ecf20Sopenharmony_ci 11, 0, 0), 30058c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_LPASSX, "pclk_smmu_lpassx", "div_aclk_aud", 30068c2ecf20Sopenharmony_ci ENABLE_PCLK_AUD, 10, 0, 0), 30078c2ecf20Sopenharmony_ci GATE(CLK_PCLK_GPIO_AUD, "pclk_gpio_aud", "div_aclk_aud", 30088c2ecf20Sopenharmony_ci ENABLE_PCLK_AUD, 9, CLK_IGNORE_UNUSED, 0), 30098c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_AUD, "pclk_pmu_aud", "div_aclk_aud", 30108c2ecf20Sopenharmony_ci ENABLE_PCLK_AUD, 8, CLK_IGNORE_UNUSED, 0), 30118c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_AUD, "pclk_sysreg_aud", "div_aclk_aud", 30128c2ecf20Sopenharmony_ci ENABLE_PCLK_AUD, 7, CLK_IGNORE_UNUSED, 0), 30138c2ecf20Sopenharmony_ci GATE(CLK_PCLK_AUD_SLIMBUS, "pclk_aud_slimbus", "div_aclk_aud", 30148c2ecf20Sopenharmony_ci ENABLE_PCLK_AUD, 6, 0, 0), 30158c2ecf20Sopenharmony_ci GATE(CLK_PCLK_AUD_UART, "pclk_aud_uart", "div_aclk_aud", 30168c2ecf20Sopenharmony_ci ENABLE_PCLK_AUD, 5, 0, 0), 30178c2ecf20Sopenharmony_ci GATE(CLK_PCLK_AUD_PCM, "pclk_aud_pcm", "div_aclk_aud", 30188c2ecf20Sopenharmony_ci ENABLE_PCLK_AUD, 4, 0, 0), 30198c2ecf20Sopenharmony_ci GATE(CLK_PCLK_AUD_I2S, "pclk_aud_i2s", "div_aclk_aud", 30208c2ecf20Sopenharmony_ci ENABLE_PCLK_AUD, 3, 0, 0), 30218c2ecf20Sopenharmony_ci GATE(CLK_PCLK_TIMER, "pclk_timer", "div_aclk_aud", ENABLE_PCLK_AUD, 30228c2ecf20Sopenharmony_ci 2, 0, 0), 30238c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SFR0_CTRL, "pclk_sfr0_ctrl", "div_aclk_aud", 30248c2ecf20Sopenharmony_ci ENABLE_PCLK_AUD, 0, 0, 0), 30258c2ecf20Sopenharmony_ci 30268c2ecf20Sopenharmony_ci /* ENABLE_SCLK_AUD0 */ 30278c2ecf20Sopenharmony_ci GATE(CLK_ATCLK_AUD, "atclk_aud", "div_atclk_aud", ENABLE_SCLK_AUD0, 30288c2ecf20Sopenharmony_ci 2, CLK_IGNORE_UNUSED, 0), 30298c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DBG_AUD, "pclk_dbg_aud", "div_pclk_dbg_aud", 30308c2ecf20Sopenharmony_ci ENABLE_SCLK_AUD0, 1, 0, 0), 30318c2ecf20Sopenharmony_ci GATE(CLK_SCLK_AUD_CA5, "sclk_aud_ca5", "div_aud_ca5", ENABLE_SCLK_AUD0, 30328c2ecf20Sopenharmony_ci 0, 0, 0), 30338c2ecf20Sopenharmony_ci 30348c2ecf20Sopenharmony_ci /* ENABLE_SCLK_AUD1 */ 30358c2ecf20Sopenharmony_ci GATE(CLK_SCLK_JTAG_TCK, "sclk_jtag_tck", "ioclk_jtag_tclk", 30368c2ecf20Sopenharmony_ci ENABLE_SCLK_AUD1, 6, 0, 0), 30378c2ecf20Sopenharmony_ci GATE(CLK_SCLK_SLIMBUS_CLKIN, "sclk_slimbus_clkin", "ioclk_slimbus_clk", 30388c2ecf20Sopenharmony_ci ENABLE_SCLK_AUD1, 5, 0, 0), 30398c2ecf20Sopenharmony_ci GATE(CLK_SCLK_AUD_SLIMBUS, "sclk_aud_slimbus", "div_sclk_aud_slimbus", 30408c2ecf20Sopenharmony_ci ENABLE_SCLK_AUD1, 4, 0, 0), 30418c2ecf20Sopenharmony_ci GATE(CLK_SCLK_AUD_UART, "sclk_aud_uart", "div_sclk_aud_uart", 30428c2ecf20Sopenharmony_ci ENABLE_SCLK_AUD1, 3, CLK_IGNORE_UNUSED, 0), 30438c2ecf20Sopenharmony_ci GATE(CLK_SCLK_AUD_PCM, "sclk_aud_pcm", "div_sclk_aud_pcm", 30448c2ecf20Sopenharmony_ci ENABLE_SCLK_AUD1, 2, 0, 0), 30458c2ecf20Sopenharmony_ci GATE(CLK_SCLK_I2S_BCLK, "sclk_i2s_bclk", "ioclk_i2s_bclk", 30468c2ecf20Sopenharmony_ci ENABLE_SCLK_AUD1, 1, CLK_IGNORE_UNUSED, 0), 30478c2ecf20Sopenharmony_ci GATE(CLK_SCLK_AUD_I2S, "sclk_aud_i2s", "div_sclk_aud_i2s", 30488c2ecf20Sopenharmony_ci ENABLE_SCLK_AUD1, 0, CLK_IGNORE_UNUSED, 0), 30498c2ecf20Sopenharmony_ci}; 30508c2ecf20Sopenharmony_ci 30518c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info aud_cmu_info __initconst = { 30528c2ecf20Sopenharmony_ci .mux_clks = aud_mux_clks, 30538c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(aud_mux_clks), 30548c2ecf20Sopenharmony_ci .div_clks = aud_div_clks, 30558c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(aud_div_clks), 30568c2ecf20Sopenharmony_ci .gate_clks = aud_gate_clks, 30578c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(aud_gate_clks), 30588c2ecf20Sopenharmony_ci .fixed_clks = aud_fixed_clks, 30598c2ecf20Sopenharmony_ci .nr_fixed_clks = ARRAY_SIZE(aud_fixed_clks), 30608c2ecf20Sopenharmony_ci .nr_clk_ids = AUD_NR_CLK, 30618c2ecf20Sopenharmony_ci .clk_regs = aud_clk_regs, 30628c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(aud_clk_regs), 30638c2ecf20Sopenharmony_ci .suspend_regs = aud_suspend_regs, 30648c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(aud_suspend_regs), 30658c2ecf20Sopenharmony_ci .clk_name = "fout_aud_pll", 30668c2ecf20Sopenharmony_ci}; 30678c2ecf20Sopenharmony_ci 30688c2ecf20Sopenharmony_ci/* 30698c2ecf20Sopenharmony_ci * Register offset definitions for CMU_BUS{0|1|2} 30708c2ecf20Sopenharmony_ci */ 30718c2ecf20Sopenharmony_ci#define DIV_BUS 0x0600 30728c2ecf20Sopenharmony_ci#define DIV_STAT_BUS 0x0700 30738c2ecf20Sopenharmony_ci#define ENABLE_ACLK_BUS 0x0800 30748c2ecf20Sopenharmony_ci#define ENABLE_PCLK_BUS 0x0900 30758c2ecf20Sopenharmony_ci#define ENABLE_IP_BUS0 0x0b00 30768c2ecf20Sopenharmony_ci#define ENABLE_IP_BUS1 0x0b04 30778c2ecf20Sopenharmony_ci 30788c2ecf20Sopenharmony_ci#define MUX_SEL_BUS2 0x0200 /* Only for CMU_BUS2 */ 30798c2ecf20Sopenharmony_ci#define MUX_ENABLE_BUS2 0x0300 /* Only for CMU_BUS2 */ 30808c2ecf20Sopenharmony_ci#define MUX_STAT_BUS2 0x0400 /* Only for CMU_BUS2 */ 30818c2ecf20Sopenharmony_ci 30828c2ecf20Sopenharmony_ci/* list of all parent clock list */ 30838c2ecf20Sopenharmony_ciPNAME(mout_aclk_bus2_400_p) = { "oscclk", "aclk_bus2_400", }; 30848c2ecf20Sopenharmony_ci 30858c2ecf20Sopenharmony_ci#define CMU_BUS_COMMON_CLK_REGS \ 30868c2ecf20Sopenharmony_ci DIV_BUS, \ 30878c2ecf20Sopenharmony_ci ENABLE_ACLK_BUS, \ 30888c2ecf20Sopenharmony_ci ENABLE_PCLK_BUS, \ 30898c2ecf20Sopenharmony_ci ENABLE_IP_BUS0, \ 30908c2ecf20Sopenharmony_ci ENABLE_IP_BUS1 30918c2ecf20Sopenharmony_ci 30928c2ecf20Sopenharmony_cistatic const unsigned long bus01_clk_regs[] __initconst = { 30938c2ecf20Sopenharmony_ci CMU_BUS_COMMON_CLK_REGS, 30948c2ecf20Sopenharmony_ci}; 30958c2ecf20Sopenharmony_ci 30968c2ecf20Sopenharmony_cistatic const unsigned long bus2_clk_regs[] __initconst = { 30978c2ecf20Sopenharmony_ci MUX_SEL_BUS2, 30988c2ecf20Sopenharmony_ci MUX_ENABLE_BUS2, 30998c2ecf20Sopenharmony_ci CMU_BUS_COMMON_CLK_REGS, 31008c2ecf20Sopenharmony_ci}; 31018c2ecf20Sopenharmony_ci 31028c2ecf20Sopenharmony_cistatic const struct samsung_div_clock bus0_div_clks[] __initconst = { 31038c2ecf20Sopenharmony_ci /* DIV_BUS0 */ 31048c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_BUS_133, "div_pclk_bus0_133", "aclk_bus0_400", 31058c2ecf20Sopenharmony_ci DIV_BUS, 0, 3), 31068c2ecf20Sopenharmony_ci}; 31078c2ecf20Sopenharmony_ci 31088c2ecf20Sopenharmony_ci/* CMU_BUS0 clocks */ 31098c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock bus0_gate_clks[] __initconst = { 31108c2ecf20Sopenharmony_ci /* ENABLE_ACLK_BUS0 */ 31118c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_BUSP, "aclk_ahb2apb_bus0p", "div_pclk_bus0_133", 31128c2ecf20Sopenharmony_ci ENABLE_ACLK_BUS, 4, CLK_IGNORE_UNUSED, 0), 31138c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BUSNP_133, "aclk_bus0np_133", "div_pclk_bus0_133", 31148c2ecf20Sopenharmony_ci ENABLE_ACLK_BUS, 2, CLK_IGNORE_UNUSED, 0), 31158c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BUSND_400, "aclk_bus0nd_400", "aclk_bus0_400", 31168c2ecf20Sopenharmony_ci ENABLE_ACLK_BUS, 0, CLK_IGNORE_UNUSED, 0), 31178c2ecf20Sopenharmony_ci 31188c2ecf20Sopenharmony_ci /* ENABLE_PCLK_BUS0 */ 31198c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BUSSRVND_133, "pclk_bus0srvnd_133", "div_pclk_bus0_133", 31208c2ecf20Sopenharmony_ci ENABLE_PCLK_BUS, 2, 0, 0), 31218c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_BUS, "pclk_pmu_bus0", "div_pclk_bus0_133", 31228c2ecf20Sopenharmony_ci ENABLE_PCLK_BUS, 1, CLK_IGNORE_UNUSED, 0), 31238c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_BUS, "pclk_sysreg_bus0", "div_pclk_bus0_133", 31248c2ecf20Sopenharmony_ci ENABLE_PCLK_BUS, 0, CLK_IGNORE_UNUSED, 0), 31258c2ecf20Sopenharmony_ci}; 31268c2ecf20Sopenharmony_ci 31278c2ecf20Sopenharmony_ci/* CMU_BUS1 clocks */ 31288c2ecf20Sopenharmony_cistatic const struct samsung_div_clock bus1_div_clks[] __initconst = { 31298c2ecf20Sopenharmony_ci /* DIV_BUS1 */ 31308c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_BUS_133, "div_pclk_bus1_133", "aclk_bus1_400", 31318c2ecf20Sopenharmony_ci DIV_BUS, 0, 3), 31328c2ecf20Sopenharmony_ci}; 31338c2ecf20Sopenharmony_ci 31348c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock bus1_gate_clks[] __initconst = { 31358c2ecf20Sopenharmony_ci /* ENABLE_ACLK_BUS1 */ 31368c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_BUSP, "aclk_ahb2apb_bus1p", "div_pclk_bus1_133", 31378c2ecf20Sopenharmony_ci ENABLE_ACLK_BUS, 4, CLK_IGNORE_UNUSED, 0), 31388c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BUSNP_133, "aclk_bus1np_133", "div_pclk_bus1_133", 31398c2ecf20Sopenharmony_ci ENABLE_ACLK_BUS, 2, CLK_IGNORE_UNUSED, 0), 31408c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BUSND_400, "aclk_bus1nd_400", "aclk_bus1_400", 31418c2ecf20Sopenharmony_ci ENABLE_ACLK_BUS, 0, CLK_IGNORE_UNUSED, 0), 31428c2ecf20Sopenharmony_ci 31438c2ecf20Sopenharmony_ci /* ENABLE_PCLK_BUS1 */ 31448c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BUSSRVND_133, "pclk_bus1srvnd_133", "div_pclk_bus1_133", 31458c2ecf20Sopenharmony_ci ENABLE_PCLK_BUS, 2, 0, 0), 31468c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_BUS, "pclk_pmu_bus1", "div_pclk_bus1_133", 31478c2ecf20Sopenharmony_ci ENABLE_PCLK_BUS, 1, CLK_IGNORE_UNUSED, 0), 31488c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_BUS, "pclk_sysreg_bus1", "div_pclk_bus1_133", 31498c2ecf20Sopenharmony_ci ENABLE_PCLK_BUS, 0, CLK_IGNORE_UNUSED, 0), 31508c2ecf20Sopenharmony_ci}; 31518c2ecf20Sopenharmony_ci 31528c2ecf20Sopenharmony_ci/* CMU_BUS2 clocks */ 31538c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock bus2_mux_clks[] __initconst = { 31548c2ecf20Sopenharmony_ci /* MUX_SEL_BUS2 */ 31558c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_BUS2_400_USER, "mout_aclk_bus2_400_user", 31568c2ecf20Sopenharmony_ci mout_aclk_bus2_400_p, MUX_SEL_BUS2, 0, 1), 31578c2ecf20Sopenharmony_ci}; 31588c2ecf20Sopenharmony_ci 31598c2ecf20Sopenharmony_cistatic const struct samsung_div_clock bus2_div_clks[] __initconst = { 31608c2ecf20Sopenharmony_ci /* DIV_BUS2 */ 31618c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_BUS_133, "div_pclk_bus2_133", 31628c2ecf20Sopenharmony_ci "mout_aclk_bus2_400_user", DIV_BUS, 0, 3), 31638c2ecf20Sopenharmony_ci}; 31648c2ecf20Sopenharmony_ci 31658c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock bus2_gate_clks[] __initconst = { 31668c2ecf20Sopenharmony_ci /* ENABLE_ACLK_BUS2 */ 31678c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_BUSP, "aclk_ahb2apb_bus2p", "div_pclk_bus2_133", 31688c2ecf20Sopenharmony_ci ENABLE_ACLK_BUS, 3, CLK_IGNORE_UNUSED, 0), 31698c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BUSNP_133, "aclk_bus2np_133", "div_pclk_bus2_133", 31708c2ecf20Sopenharmony_ci ENABLE_ACLK_BUS, 2, CLK_IGNORE_UNUSED, 0), 31718c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BUS2BEND_400, "aclk_bus2bend_400", 31728c2ecf20Sopenharmony_ci "mout_aclk_bus2_400_user", ENABLE_ACLK_BUS, 31738c2ecf20Sopenharmony_ci 1, CLK_IGNORE_UNUSED, 0), 31748c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BUS2RTND_400, "aclk_bus2rtnd_400", 31758c2ecf20Sopenharmony_ci "mout_aclk_bus2_400_user", ENABLE_ACLK_BUS, 31768c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 31778c2ecf20Sopenharmony_ci 31788c2ecf20Sopenharmony_ci /* ENABLE_PCLK_BUS2 */ 31798c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BUSSRVND_133, "pclk_bus2srvnd_133", "div_pclk_bus2_133", 31808c2ecf20Sopenharmony_ci ENABLE_PCLK_BUS, 2, 0, 0), 31818c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_BUS, "pclk_pmu_bus2", "div_pclk_bus2_133", 31828c2ecf20Sopenharmony_ci ENABLE_PCLK_BUS, 1, CLK_IGNORE_UNUSED, 0), 31838c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_BUS, "pclk_sysreg_bus2", "div_pclk_bus2_133", 31848c2ecf20Sopenharmony_ci ENABLE_PCLK_BUS, 0, CLK_IGNORE_UNUSED, 0), 31858c2ecf20Sopenharmony_ci}; 31868c2ecf20Sopenharmony_ci 31878c2ecf20Sopenharmony_ci#define CMU_BUS_INFO_CLKS(id) \ 31888c2ecf20Sopenharmony_ci .div_clks = bus##id##_div_clks, \ 31898c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(bus##id##_div_clks), \ 31908c2ecf20Sopenharmony_ci .gate_clks = bus##id##_gate_clks, \ 31918c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(bus##id##_gate_clks), \ 31928c2ecf20Sopenharmony_ci .nr_clk_ids = BUSx_NR_CLK 31938c2ecf20Sopenharmony_ci 31948c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info bus0_cmu_info __initconst = { 31958c2ecf20Sopenharmony_ci CMU_BUS_INFO_CLKS(0), 31968c2ecf20Sopenharmony_ci .clk_regs = bus01_clk_regs, 31978c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(bus01_clk_regs), 31988c2ecf20Sopenharmony_ci}; 31998c2ecf20Sopenharmony_ci 32008c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info bus1_cmu_info __initconst = { 32018c2ecf20Sopenharmony_ci CMU_BUS_INFO_CLKS(1), 32028c2ecf20Sopenharmony_ci .clk_regs = bus01_clk_regs, 32038c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(bus01_clk_regs), 32048c2ecf20Sopenharmony_ci}; 32058c2ecf20Sopenharmony_ci 32068c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info bus2_cmu_info __initconst = { 32078c2ecf20Sopenharmony_ci CMU_BUS_INFO_CLKS(2), 32088c2ecf20Sopenharmony_ci .mux_clks = bus2_mux_clks, 32098c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(bus2_mux_clks), 32108c2ecf20Sopenharmony_ci .clk_regs = bus2_clk_regs, 32118c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(bus2_clk_regs), 32128c2ecf20Sopenharmony_ci}; 32138c2ecf20Sopenharmony_ci 32148c2ecf20Sopenharmony_ci#define exynos5433_cmu_bus_init(id) \ 32158c2ecf20Sopenharmony_cistatic void __init exynos5433_cmu_bus##id##_init(struct device_node *np)\ 32168c2ecf20Sopenharmony_ci{ \ 32178c2ecf20Sopenharmony_ci samsung_cmu_register_one(np, &bus##id##_cmu_info); \ 32188c2ecf20Sopenharmony_ci} \ 32198c2ecf20Sopenharmony_ciCLK_OF_DECLARE(exynos5433_cmu_bus##id, \ 32208c2ecf20Sopenharmony_ci "samsung,exynos5433-cmu-bus"#id, \ 32218c2ecf20Sopenharmony_ci exynos5433_cmu_bus##id##_init) 32228c2ecf20Sopenharmony_ci 32238c2ecf20Sopenharmony_ciexynos5433_cmu_bus_init(0); 32248c2ecf20Sopenharmony_ciexynos5433_cmu_bus_init(1); 32258c2ecf20Sopenharmony_ciexynos5433_cmu_bus_init(2); 32268c2ecf20Sopenharmony_ci 32278c2ecf20Sopenharmony_ci/* 32288c2ecf20Sopenharmony_ci * Register offset definitions for CMU_G3D 32298c2ecf20Sopenharmony_ci */ 32308c2ecf20Sopenharmony_ci#define G3D_PLL_LOCK 0x0000 32318c2ecf20Sopenharmony_ci#define G3D_PLL_CON0 0x0100 32328c2ecf20Sopenharmony_ci#define G3D_PLL_CON1 0x0104 32338c2ecf20Sopenharmony_ci#define G3D_PLL_FREQ_DET 0x010c 32348c2ecf20Sopenharmony_ci#define MUX_SEL_G3D 0x0200 32358c2ecf20Sopenharmony_ci#define MUX_ENABLE_G3D 0x0300 32368c2ecf20Sopenharmony_ci#define MUX_STAT_G3D 0x0400 32378c2ecf20Sopenharmony_ci#define DIV_G3D 0x0600 32388c2ecf20Sopenharmony_ci#define DIV_G3D_PLL_FREQ_DET 0x0604 32398c2ecf20Sopenharmony_ci#define DIV_STAT_G3D 0x0700 32408c2ecf20Sopenharmony_ci#define DIV_STAT_G3D_PLL_FREQ_DET 0x0704 32418c2ecf20Sopenharmony_ci#define ENABLE_ACLK_G3D 0x0800 32428c2ecf20Sopenharmony_ci#define ENABLE_PCLK_G3D 0x0900 32438c2ecf20Sopenharmony_ci#define ENABLE_SCLK_G3D 0x0a00 32448c2ecf20Sopenharmony_ci#define ENABLE_IP_G3D0 0x0b00 32458c2ecf20Sopenharmony_ci#define ENABLE_IP_G3D1 0x0b04 32468c2ecf20Sopenharmony_ci#define CLKOUT_CMU_G3D 0x0c00 32478c2ecf20Sopenharmony_ci#define CLKOUT_CMU_G3D_DIV_STAT 0x0c04 32488c2ecf20Sopenharmony_ci#define CLK_STOPCTRL 0x1000 32498c2ecf20Sopenharmony_ci 32508c2ecf20Sopenharmony_cistatic const unsigned long g3d_clk_regs[] __initconst = { 32518c2ecf20Sopenharmony_ci G3D_PLL_LOCK, 32528c2ecf20Sopenharmony_ci G3D_PLL_CON0, 32538c2ecf20Sopenharmony_ci G3D_PLL_CON1, 32548c2ecf20Sopenharmony_ci G3D_PLL_FREQ_DET, 32558c2ecf20Sopenharmony_ci MUX_SEL_G3D, 32568c2ecf20Sopenharmony_ci MUX_ENABLE_G3D, 32578c2ecf20Sopenharmony_ci DIV_G3D, 32588c2ecf20Sopenharmony_ci DIV_G3D_PLL_FREQ_DET, 32598c2ecf20Sopenharmony_ci ENABLE_ACLK_G3D, 32608c2ecf20Sopenharmony_ci ENABLE_PCLK_G3D, 32618c2ecf20Sopenharmony_ci ENABLE_SCLK_G3D, 32628c2ecf20Sopenharmony_ci ENABLE_IP_G3D0, 32638c2ecf20Sopenharmony_ci ENABLE_IP_G3D1, 32648c2ecf20Sopenharmony_ci CLKOUT_CMU_G3D, 32658c2ecf20Sopenharmony_ci CLKOUT_CMU_G3D_DIV_STAT, 32668c2ecf20Sopenharmony_ci CLK_STOPCTRL, 32678c2ecf20Sopenharmony_ci}; 32688c2ecf20Sopenharmony_ci 32698c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump g3d_suspend_regs[] = { 32708c2ecf20Sopenharmony_ci { MUX_SEL_G3D, 0 }, 32718c2ecf20Sopenharmony_ci}; 32728c2ecf20Sopenharmony_ci 32738c2ecf20Sopenharmony_ci/* list of all parent clock list */ 32748c2ecf20Sopenharmony_ciPNAME(mout_aclk_g3d_400_p) = { "mout_g3d_pll", "aclk_g3d_400", }; 32758c2ecf20Sopenharmony_ciPNAME(mout_g3d_pll_p) = { "oscclk", "fout_g3d_pll", }; 32768c2ecf20Sopenharmony_ci 32778c2ecf20Sopenharmony_cistatic const struct samsung_pll_clock g3d_pll_clks[] __initconst = { 32788c2ecf20Sopenharmony_ci PLL(pll_35xx, CLK_FOUT_G3D_PLL, "fout_g3d_pll", "oscclk", 32798c2ecf20Sopenharmony_ci G3D_PLL_LOCK, G3D_PLL_CON0, exynos5433_pll_rates), 32808c2ecf20Sopenharmony_ci}; 32818c2ecf20Sopenharmony_ci 32828c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock g3d_mux_clks[] __initconst = { 32838c2ecf20Sopenharmony_ci /* MUX_SEL_G3D */ 32848c2ecf20Sopenharmony_ci MUX_F(CLK_MOUT_ACLK_G3D_400, "mout_aclk_g3d_400", mout_aclk_g3d_400_p, 32858c2ecf20Sopenharmony_ci MUX_SEL_G3D, 8, 1, CLK_SET_RATE_PARENT, 0), 32868c2ecf20Sopenharmony_ci MUX_F(CLK_MOUT_G3D_PLL, "mout_g3d_pll", mout_g3d_pll_p, 32878c2ecf20Sopenharmony_ci MUX_SEL_G3D, 0, 1, CLK_SET_RATE_PARENT, 0), 32888c2ecf20Sopenharmony_ci}; 32898c2ecf20Sopenharmony_ci 32908c2ecf20Sopenharmony_cistatic const struct samsung_div_clock g3d_div_clks[] __initconst = { 32918c2ecf20Sopenharmony_ci /* DIV_G3D */ 32928c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_HPM_G3D, "div_sclk_hpm_g3d", "mout_g3d_pll", DIV_G3D, 32938c2ecf20Sopenharmony_ci 8, 2), 32948c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_G3D, "div_pclk_g3d", "div_aclk_g3d", DIV_G3D, 32958c2ecf20Sopenharmony_ci 4, 3), 32968c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_ACLK_G3D, "div_aclk_g3d", "mout_aclk_g3d_400", DIV_G3D, 32978c2ecf20Sopenharmony_ci 0, 3, CLK_SET_RATE_PARENT, 0), 32988c2ecf20Sopenharmony_ci}; 32998c2ecf20Sopenharmony_ci 33008c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock g3d_gate_clks[] __initconst = { 33018c2ecf20Sopenharmony_ci /* ENABLE_ACLK_G3D */ 33028c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_G3D1, "aclk_bts_g3d1", "div_aclk_g3d", 33038c2ecf20Sopenharmony_ci ENABLE_ACLK_G3D, 7, 0, 0), 33048c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_G3D0, "aclk_bts_g3d0", "div_aclk_g3d", 33058c2ecf20Sopenharmony_ci ENABLE_ACLK_G3D, 6, 0, 0), 33068c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBS_G3D, "aclk_asyncapbs_g3d", "div_pclk_g3d", 33078c2ecf20Sopenharmony_ci ENABLE_ACLK_G3D, 5, CLK_IGNORE_UNUSED, 0), 33088c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBM_G3D, "aclk_asyncapbm_g3d", "div_aclk_g3d", 33098c2ecf20Sopenharmony_ci ENABLE_ACLK_G3D, 4, CLK_IGNORE_UNUSED, 0), 33108c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_G3DP, "aclk_ahb2apb_g3dp", "div_pclk_g3d", 33118c2ecf20Sopenharmony_ci ENABLE_ACLK_G3D, 3, CLK_IGNORE_UNUSED, 0), 33128c2ecf20Sopenharmony_ci GATE(CLK_ACLK_G3DNP_150, "aclk_g3dnp_150", "div_pclk_g3d", 33138c2ecf20Sopenharmony_ci ENABLE_ACLK_G3D, 2, CLK_IGNORE_UNUSED, 0), 33148c2ecf20Sopenharmony_ci GATE(CLK_ACLK_G3DND_600, "aclk_g3dnd_600", "div_aclk_g3d", 33158c2ecf20Sopenharmony_ci ENABLE_ACLK_G3D, 1, CLK_IGNORE_UNUSED, 0), 33168c2ecf20Sopenharmony_ci GATE(CLK_ACLK_G3D, "aclk_g3d", "div_aclk_g3d", 33178c2ecf20Sopenharmony_ci ENABLE_ACLK_G3D, 0, CLK_SET_RATE_PARENT, 0), 33188c2ecf20Sopenharmony_ci 33198c2ecf20Sopenharmony_ci /* ENABLE_PCLK_G3D */ 33208c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_G3D1, "pclk_bts_g3d1", "div_pclk_g3d", 33218c2ecf20Sopenharmony_ci ENABLE_PCLK_G3D, 3, 0, 0), 33228c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_G3D0, "pclk_bts_g3d0", "div_pclk_g3d", 33238c2ecf20Sopenharmony_ci ENABLE_PCLK_G3D, 2, 0, 0), 33248c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_G3D, "pclk_pmu_g3d", "div_pclk_g3d", 33258c2ecf20Sopenharmony_ci ENABLE_PCLK_G3D, 1, CLK_IGNORE_UNUSED, 0), 33268c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_G3D, "pclk_sysreg_g3d", "div_pclk_g3d", 33278c2ecf20Sopenharmony_ci ENABLE_PCLK_G3D, 0, CLK_IGNORE_UNUSED, 0), 33288c2ecf20Sopenharmony_ci 33298c2ecf20Sopenharmony_ci /* ENABLE_SCLK_G3D */ 33308c2ecf20Sopenharmony_ci GATE(CLK_SCLK_HPM_G3D, "sclk_hpm_g3d", "div_sclk_hpm_g3d", 33318c2ecf20Sopenharmony_ci ENABLE_SCLK_G3D, 0, 0, 0), 33328c2ecf20Sopenharmony_ci}; 33338c2ecf20Sopenharmony_ci 33348c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info g3d_cmu_info __initconst = { 33358c2ecf20Sopenharmony_ci .pll_clks = g3d_pll_clks, 33368c2ecf20Sopenharmony_ci .nr_pll_clks = ARRAY_SIZE(g3d_pll_clks), 33378c2ecf20Sopenharmony_ci .mux_clks = g3d_mux_clks, 33388c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(g3d_mux_clks), 33398c2ecf20Sopenharmony_ci .div_clks = g3d_div_clks, 33408c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(g3d_div_clks), 33418c2ecf20Sopenharmony_ci .gate_clks = g3d_gate_clks, 33428c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(g3d_gate_clks), 33438c2ecf20Sopenharmony_ci .nr_clk_ids = G3D_NR_CLK, 33448c2ecf20Sopenharmony_ci .clk_regs = g3d_clk_regs, 33458c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(g3d_clk_regs), 33468c2ecf20Sopenharmony_ci .suspend_regs = g3d_suspend_regs, 33478c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(g3d_suspend_regs), 33488c2ecf20Sopenharmony_ci .clk_name = "aclk_g3d_400", 33498c2ecf20Sopenharmony_ci}; 33508c2ecf20Sopenharmony_ci 33518c2ecf20Sopenharmony_ci/* 33528c2ecf20Sopenharmony_ci * Register offset definitions for CMU_GSCL 33538c2ecf20Sopenharmony_ci */ 33548c2ecf20Sopenharmony_ci#define MUX_SEL_GSCL 0x0200 33558c2ecf20Sopenharmony_ci#define MUX_ENABLE_GSCL 0x0300 33568c2ecf20Sopenharmony_ci#define MUX_STAT_GSCL 0x0400 33578c2ecf20Sopenharmony_ci#define ENABLE_ACLK_GSCL 0x0800 33588c2ecf20Sopenharmony_ci#define ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL0 0x0804 33598c2ecf20Sopenharmony_ci#define ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL1 0x0808 33608c2ecf20Sopenharmony_ci#define ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL2 0x080c 33618c2ecf20Sopenharmony_ci#define ENABLE_PCLK_GSCL 0x0900 33628c2ecf20Sopenharmony_ci#define ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL0 0x0904 33638c2ecf20Sopenharmony_ci#define ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL1 0x0908 33648c2ecf20Sopenharmony_ci#define ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL2 0x090c 33658c2ecf20Sopenharmony_ci#define ENABLE_IP_GSCL0 0x0b00 33668c2ecf20Sopenharmony_ci#define ENABLE_IP_GSCL1 0x0b04 33678c2ecf20Sopenharmony_ci#define ENABLE_IP_GSCL_SECURE_SMMU_GSCL0 0x0b08 33688c2ecf20Sopenharmony_ci#define ENABLE_IP_GSCL_SECURE_SMMU_GSCL1 0x0b0c 33698c2ecf20Sopenharmony_ci#define ENABLE_IP_GSCL_SECURE_SMMU_GSCL2 0x0b10 33708c2ecf20Sopenharmony_ci 33718c2ecf20Sopenharmony_cistatic const unsigned long gscl_clk_regs[] __initconst = { 33728c2ecf20Sopenharmony_ci MUX_SEL_GSCL, 33738c2ecf20Sopenharmony_ci MUX_ENABLE_GSCL, 33748c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL, 33758c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL0, 33768c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL1, 33778c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL2, 33788c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL, 33798c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL0, 33808c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL1, 33818c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL2, 33828c2ecf20Sopenharmony_ci ENABLE_IP_GSCL0, 33838c2ecf20Sopenharmony_ci ENABLE_IP_GSCL1, 33848c2ecf20Sopenharmony_ci ENABLE_IP_GSCL_SECURE_SMMU_GSCL0, 33858c2ecf20Sopenharmony_ci ENABLE_IP_GSCL_SECURE_SMMU_GSCL1, 33868c2ecf20Sopenharmony_ci ENABLE_IP_GSCL_SECURE_SMMU_GSCL2, 33878c2ecf20Sopenharmony_ci}; 33888c2ecf20Sopenharmony_ci 33898c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump gscl_suspend_regs[] = { 33908c2ecf20Sopenharmony_ci { MUX_SEL_GSCL, 0 }, 33918c2ecf20Sopenharmony_ci { ENABLE_ACLK_GSCL, 0xfff }, 33928c2ecf20Sopenharmony_ci { ENABLE_PCLK_GSCL, 0xff }, 33938c2ecf20Sopenharmony_ci}; 33948c2ecf20Sopenharmony_ci 33958c2ecf20Sopenharmony_ci/* list of all parent clock list */ 33968c2ecf20Sopenharmony_ciPNAME(aclk_gscl_111_user_p) = { "oscclk", "aclk_gscl_111", }; 33978c2ecf20Sopenharmony_ciPNAME(aclk_gscl_333_user_p) = { "oscclk", "aclk_gscl_333", }; 33988c2ecf20Sopenharmony_ci 33998c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock gscl_mux_clks[] __initconst = { 34008c2ecf20Sopenharmony_ci /* MUX_SEL_GSCL */ 34018c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_GSCL_111_USER, "mout_aclk_gscl_111_user", 34028c2ecf20Sopenharmony_ci aclk_gscl_111_user_p, MUX_SEL_GSCL, 4, 1), 34038c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_GSCL_333_USER, "mout_aclk_gscl_333_user", 34048c2ecf20Sopenharmony_ci aclk_gscl_333_user_p, MUX_SEL_GSCL, 0, 1), 34058c2ecf20Sopenharmony_ci}; 34068c2ecf20Sopenharmony_ci 34078c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock gscl_gate_clks[] __initconst = { 34088c2ecf20Sopenharmony_ci /* ENABLE_ACLK_GSCL */ 34098c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_GSCL2, "aclk_bts_gscl2", "mout_aclk_gscl_333_user", 34108c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL, 11, 0, 0), 34118c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_GSCL1, "aclk_bts_gscl1", "mout_aclk_gscl_333_user", 34128c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL, 10, 0, 0), 34138c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_GSCL0, "aclk_bts_gscl0", "mout_aclk_gscl_333_user", 34148c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL, 9, 0, 0), 34158c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_GSCLP, "aclk_ahb2apb_gsclp", 34168c2ecf20Sopenharmony_ci "mout_aclk_gscl_111_user", ENABLE_ACLK_GSCL, 34178c2ecf20Sopenharmony_ci 8, CLK_IGNORE_UNUSED, 0), 34188c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_GSCLX, "aclk_xiu_gsclx", "mout_aclk_gscl_333_user", 34198c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL, 7, 0, 0), 34208c2ecf20Sopenharmony_ci GATE(CLK_ACLK_GSCLNP_111, "aclk_gsclnp_111", "mout_aclk_gscl_111_user", 34218c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL, 6, CLK_IGNORE_UNUSED, 0), 34228c2ecf20Sopenharmony_ci GATE(CLK_ACLK_GSCLRTND_333, "aclk_gsclrtnd_333", 34238c2ecf20Sopenharmony_ci "mout_aclk_gscl_333_user", ENABLE_ACLK_GSCL, 5, 34248c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 34258c2ecf20Sopenharmony_ci GATE(CLK_ACLK_GSCLBEND_333, "aclk_gsclbend_333", 34268c2ecf20Sopenharmony_ci "mout_aclk_gscl_333_user", ENABLE_ACLK_GSCL, 4, 34278c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED, 0), 34288c2ecf20Sopenharmony_ci GATE(CLK_ACLK_GSD, "aclk_gsd", "mout_aclk_gscl_333_user", 34298c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL, 3, 0, 0), 34308c2ecf20Sopenharmony_ci GATE(CLK_ACLK_GSCL2, "aclk_gscl2", "mout_aclk_gscl_333_user", 34318c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL, 2, 0, 0), 34328c2ecf20Sopenharmony_ci GATE(CLK_ACLK_GSCL1, "aclk_gscl1", "mout_aclk_gscl_333_user", 34338c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL, 1, 0, 0), 34348c2ecf20Sopenharmony_ci GATE(CLK_ACLK_GSCL0, "aclk_gscl0", "mout_aclk_gscl_333_user", 34358c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL, 0, 0, 0), 34368c2ecf20Sopenharmony_ci 34378c2ecf20Sopenharmony_ci /* ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL0 */ 34388c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_GSCL0, "aclk_smmu_gscl0", "mout_aclk_gscl_333_user", 34398c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL0, 0, 0, 0), 34408c2ecf20Sopenharmony_ci 34418c2ecf20Sopenharmony_ci /* ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL1 */ 34428c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_GSCL1, "aclk_smmu_gscl1", "mout_aclk_gscl_333_user", 34438c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL1, 0, 0, 0), 34448c2ecf20Sopenharmony_ci 34458c2ecf20Sopenharmony_ci /* ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL2 */ 34468c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_GSCL2, "aclk_smmu_gscl2", "mout_aclk_gscl_333_user", 34478c2ecf20Sopenharmony_ci ENABLE_ACLK_GSCL_SECURE_SMMU_GSCL2, 0, 0, 0), 34488c2ecf20Sopenharmony_ci 34498c2ecf20Sopenharmony_ci /* ENABLE_PCLK_GSCL */ 34508c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_GSCL2, "pclk_bts_gscl2", "mout_aclk_gscl_111_user", 34518c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL, 7, 0, 0), 34528c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_GSCL1, "pclk_bts_gscl1", "mout_aclk_gscl_111_user", 34538c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL, 6, 0, 0), 34548c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_GSCL0, "pclk_bts_gscl0", "mout_aclk_gscl_111_user", 34558c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL, 5, 0, 0), 34568c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_GSCL, "pclk_pmu_gscl", "mout_aclk_gscl_111_user", 34578c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL, 4, CLK_IGNORE_UNUSED, 0), 34588c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_GSCL, "pclk_sysreg_gscl", 34598c2ecf20Sopenharmony_ci "mout_aclk_gscl_111_user", ENABLE_PCLK_GSCL, 34608c2ecf20Sopenharmony_ci 3, CLK_IGNORE_UNUSED, 0), 34618c2ecf20Sopenharmony_ci GATE(CLK_PCLK_GSCL2, "pclk_gscl2", "mout_aclk_gscl_111_user", 34628c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL, 2, 0, 0), 34638c2ecf20Sopenharmony_ci GATE(CLK_PCLK_GSCL1, "pclk_gscl1", "mout_aclk_gscl_111_user", 34648c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL, 1, 0, 0), 34658c2ecf20Sopenharmony_ci GATE(CLK_PCLK_GSCL0, "pclk_gscl0", "mout_aclk_gscl_111_user", 34668c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL, 0, 0, 0), 34678c2ecf20Sopenharmony_ci 34688c2ecf20Sopenharmony_ci /* ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL0 */ 34698c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_GSCL0, "pclk_smmu_gscl0", "mout_aclk_gscl_111_user", 34708c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL0, 0, 0, 0), 34718c2ecf20Sopenharmony_ci 34728c2ecf20Sopenharmony_ci /* ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL1 */ 34738c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_GSCL1, "pclk_smmu_gscl1", "mout_aclk_gscl_111_user", 34748c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL1, 0, 0, 0), 34758c2ecf20Sopenharmony_ci 34768c2ecf20Sopenharmony_ci /* ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL2 */ 34778c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_GSCL2, "pclk_smmu_gscl2", "mout_aclk_gscl_111_user", 34788c2ecf20Sopenharmony_ci ENABLE_PCLK_GSCL_SECURE_SMMU_GSCL2, 0, 0, 0), 34798c2ecf20Sopenharmony_ci}; 34808c2ecf20Sopenharmony_ci 34818c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info gscl_cmu_info __initconst = { 34828c2ecf20Sopenharmony_ci .mux_clks = gscl_mux_clks, 34838c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(gscl_mux_clks), 34848c2ecf20Sopenharmony_ci .gate_clks = gscl_gate_clks, 34858c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(gscl_gate_clks), 34868c2ecf20Sopenharmony_ci .nr_clk_ids = GSCL_NR_CLK, 34878c2ecf20Sopenharmony_ci .clk_regs = gscl_clk_regs, 34888c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(gscl_clk_regs), 34898c2ecf20Sopenharmony_ci .suspend_regs = gscl_suspend_regs, 34908c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(gscl_suspend_regs), 34918c2ecf20Sopenharmony_ci .clk_name = "aclk_gscl_111", 34928c2ecf20Sopenharmony_ci}; 34938c2ecf20Sopenharmony_ci 34948c2ecf20Sopenharmony_ci/* 34958c2ecf20Sopenharmony_ci * Register offset definitions for CMU_APOLLO 34968c2ecf20Sopenharmony_ci */ 34978c2ecf20Sopenharmony_ci#define APOLLO_PLL_LOCK 0x0000 34988c2ecf20Sopenharmony_ci#define APOLLO_PLL_CON0 0x0100 34998c2ecf20Sopenharmony_ci#define APOLLO_PLL_CON1 0x0104 35008c2ecf20Sopenharmony_ci#define APOLLO_PLL_FREQ_DET 0x010c 35018c2ecf20Sopenharmony_ci#define MUX_SEL_APOLLO0 0x0200 35028c2ecf20Sopenharmony_ci#define MUX_SEL_APOLLO1 0x0204 35038c2ecf20Sopenharmony_ci#define MUX_SEL_APOLLO2 0x0208 35048c2ecf20Sopenharmony_ci#define MUX_ENABLE_APOLLO0 0x0300 35058c2ecf20Sopenharmony_ci#define MUX_ENABLE_APOLLO1 0x0304 35068c2ecf20Sopenharmony_ci#define MUX_ENABLE_APOLLO2 0x0308 35078c2ecf20Sopenharmony_ci#define MUX_STAT_APOLLO0 0x0400 35088c2ecf20Sopenharmony_ci#define MUX_STAT_APOLLO1 0x0404 35098c2ecf20Sopenharmony_ci#define MUX_STAT_APOLLO2 0x0408 35108c2ecf20Sopenharmony_ci#define DIV_APOLLO0 0x0600 35118c2ecf20Sopenharmony_ci#define DIV_APOLLO1 0x0604 35128c2ecf20Sopenharmony_ci#define DIV_APOLLO_PLL_FREQ_DET 0x0608 35138c2ecf20Sopenharmony_ci#define DIV_STAT_APOLLO0 0x0700 35148c2ecf20Sopenharmony_ci#define DIV_STAT_APOLLO1 0x0704 35158c2ecf20Sopenharmony_ci#define DIV_STAT_APOLLO_PLL_FREQ_DET 0x0708 35168c2ecf20Sopenharmony_ci#define ENABLE_ACLK_APOLLO 0x0800 35178c2ecf20Sopenharmony_ci#define ENABLE_PCLK_APOLLO 0x0900 35188c2ecf20Sopenharmony_ci#define ENABLE_SCLK_APOLLO 0x0a00 35198c2ecf20Sopenharmony_ci#define ENABLE_IP_APOLLO0 0x0b00 35208c2ecf20Sopenharmony_ci#define ENABLE_IP_APOLLO1 0x0b04 35218c2ecf20Sopenharmony_ci#define CLKOUT_CMU_APOLLO 0x0c00 35228c2ecf20Sopenharmony_ci#define CLKOUT_CMU_APOLLO_DIV_STAT 0x0c04 35238c2ecf20Sopenharmony_ci#define ARMCLK_STOPCTRL 0x1000 35248c2ecf20Sopenharmony_ci#define APOLLO_PWR_CTRL 0x1020 35258c2ecf20Sopenharmony_ci#define APOLLO_PWR_CTRL2 0x1024 35268c2ecf20Sopenharmony_ci#define APOLLO_INTR_SPREAD_ENABLE 0x1080 35278c2ecf20Sopenharmony_ci#define APOLLO_INTR_SPREAD_USE_STANDBYWFI 0x1084 35288c2ecf20Sopenharmony_ci#define APOLLO_INTR_SPREAD_BLOCKING_DURATION 0x1088 35298c2ecf20Sopenharmony_ci 35308c2ecf20Sopenharmony_cistatic const unsigned long apollo_clk_regs[] __initconst = { 35318c2ecf20Sopenharmony_ci APOLLO_PLL_LOCK, 35328c2ecf20Sopenharmony_ci APOLLO_PLL_CON0, 35338c2ecf20Sopenharmony_ci APOLLO_PLL_CON1, 35348c2ecf20Sopenharmony_ci APOLLO_PLL_FREQ_DET, 35358c2ecf20Sopenharmony_ci MUX_SEL_APOLLO0, 35368c2ecf20Sopenharmony_ci MUX_SEL_APOLLO1, 35378c2ecf20Sopenharmony_ci MUX_SEL_APOLLO2, 35388c2ecf20Sopenharmony_ci MUX_ENABLE_APOLLO0, 35398c2ecf20Sopenharmony_ci MUX_ENABLE_APOLLO1, 35408c2ecf20Sopenharmony_ci MUX_ENABLE_APOLLO2, 35418c2ecf20Sopenharmony_ci DIV_APOLLO0, 35428c2ecf20Sopenharmony_ci DIV_APOLLO1, 35438c2ecf20Sopenharmony_ci DIV_APOLLO_PLL_FREQ_DET, 35448c2ecf20Sopenharmony_ci ENABLE_ACLK_APOLLO, 35458c2ecf20Sopenharmony_ci ENABLE_PCLK_APOLLO, 35468c2ecf20Sopenharmony_ci ENABLE_SCLK_APOLLO, 35478c2ecf20Sopenharmony_ci ENABLE_IP_APOLLO0, 35488c2ecf20Sopenharmony_ci ENABLE_IP_APOLLO1, 35498c2ecf20Sopenharmony_ci CLKOUT_CMU_APOLLO, 35508c2ecf20Sopenharmony_ci CLKOUT_CMU_APOLLO_DIV_STAT, 35518c2ecf20Sopenharmony_ci ARMCLK_STOPCTRL, 35528c2ecf20Sopenharmony_ci APOLLO_PWR_CTRL, 35538c2ecf20Sopenharmony_ci APOLLO_PWR_CTRL2, 35548c2ecf20Sopenharmony_ci APOLLO_INTR_SPREAD_ENABLE, 35558c2ecf20Sopenharmony_ci APOLLO_INTR_SPREAD_USE_STANDBYWFI, 35568c2ecf20Sopenharmony_ci APOLLO_INTR_SPREAD_BLOCKING_DURATION, 35578c2ecf20Sopenharmony_ci}; 35588c2ecf20Sopenharmony_ci 35598c2ecf20Sopenharmony_ci/* list of all parent clock list */ 35608c2ecf20Sopenharmony_ciPNAME(mout_apollo_pll_p) = { "oscclk", "fout_apollo_pll", }; 35618c2ecf20Sopenharmony_ciPNAME(mout_bus_pll_apollo_user_p) = { "oscclk", "sclk_bus_pll_apollo", }; 35628c2ecf20Sopenharmony_ciPNAME(mout_apollo_p) = { "mout_apollo_pll", 35638c2ecf20Sopenharmony_ci "mout_bus_pll_apollo_user", }; 35648c2ecf20Sopenharmony_ci 35658c2ecf20Sopenharmony_cistatic const struct samsung_pll_clock apollo_pll_clks[] __initconst = { 35668c2ecf20Sopenharmony_ci PLL(pll_35xx, CLK_FOUT_APOLLO_PLL, "fout_apollo_pll", "oscclk", 35678c2ecf20Sopenharmony_ci APOLLO_PLL_LOCK, APOLLO_PLL_CON0, exynos5433_pll_rates), 35688c2ecf20Sopenharmony_ci}; 35698c2ecf20Sopenharmony_ci 35708c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock apollo_mux_clks[] __initconst = { 35718c2ecf20Sopenharmony_ci /* MUX_SEL_APOLLO0 */ 35728c2ecf20Sopenharmony_ci MUX_F(CLK_MOUT_APOLLO_PLL, "mout_apollo_pll", mout_apollo_pll_p, 35738c2ecf20Sopenharmony_ci MUX_SEL_APOLLO0, 0, 1, CLK_SET_RATE_PARENT | 35748c2ecf20Sopenharmony_ci CLK_RECALC_NEW_RATES, 0), 35758c2ecf20Sopenharmony_ci 35768c2ecf20Sopenharmony_ci /* MUX_SEL_APOLLO1 */ 35778c2ecf20Sopenharmony_ci MUX(CLK_MOUT_BUS_PLL_APOLLO_USER, "mout_bus_pll_apollo_user", 35788c2ecf20Sopenharmony_ci mout_bus_pll_apollo_user_p, MUX_SEL_APOLLO1, 0, 1), 35798c2ecf20Sopenharmony_ci 35808c2ecf20Sopenharmony_ci /* MUX_SEL_APOLLO2 */ 35818c2ecf20Sopenharmony_ci MUX_F(CLK_MOUT_APOLLO, "mout_apollo", mout_apollo_p, MUX_SEL_APOLLO2, 35828c2ecf20Sopenharmony_ci 0, 1, CLK_SET_RATE_PARENT, 0), 35838c2ecf20Sopenharmony_ci}; 35848c2ecf20Sopenharmony_ci 35858c2ecf20Sopenharmony_cistatic const struct samsung_div_clock apollo_div_clks[] __initconst = { 35868c2ecf20Sopenharmony_ci /* DIV_APOLLO0 */ 35878c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_CNTCLK_APOLLO, "div_cntclk_apollo", "div_apollo2", 35888c2ecf20Sopenharmony_ci DIV_APOLLO0, 24, 3, CLK_GET_RATE_NOCACHE, 35898c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 35908c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_PCLK_DBG_APOLLO, "div_pclk_dbg_apollo", "div_apollo2", 35918c2ecf20Sopenharmony_ci DIV_APOLLO0, 20, 3, CLK_GET_RATE_NOCACHE, 35928c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 35938c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_ATCLK_APOLLO, "div_atclk_apollo", "div_apollo2", 35948c2ecf20Sopenharmony_ci DIV_APOLLO0, 16, 3, CLK_GET_RATE_NOCACHE, 35958c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 35968c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_PCLK_APOLLO, "div_pclk_apollo", "div_apollo2", 35978c2ecf20Sopenharmony_ci DIV_APOLLO0, 12, 3, CLK_GET_RATE_NOCACHE, 35988c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 35998c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_ACLK_APOLLO, "div_aclk_apollo", "div_apollo2", 36008c2ecf20Sopenharmony_ci DIV_APOLLO0, 8, 3, CLK_GET_RATE_NOCACHE, 36018c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 36028c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_APOLLO2, "div_apollo2", "div_apollo1", 36038c2ecf20Sopenharmony_ci DIV_APOLLO0, 4, 3, CLK_SET_RATE_PARENT, 0), 36048c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_APOLLO1, "div_apollo1", "mout_apollo", 36058c2ecf20Sopenharmony_ci DIV_APOLLO0, 0, 3, CLK_SET_RATE_PARENT, 0), 36068c2ecf20Sopenharmony_ci 36078c2ecf20Sopenharmony_ci /* DIV_APOLLO1 */ 36088c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_SCLK_HPM_APOLLO, "div_sclk_hpm_apollo", "mout_apollo", 36098c2ecf20Sopenharmony_ci DIV_APOLLO1, 4, 3, CLK_GET_RATE_NOCACHE, 36108c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 36118c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_APOLLO_PLL, "div_apollo_pll", "mout_apollo", 36128c2ecf20Sopenharmony_ci DIV_APOLLO1, 0, 3, CLK_GET_RATE_NOCACHE, 36138c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 36148c2ecf20Sopenharmony_ci}; 36158c2ecf20Sopenharmony_ci 36168c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock apollo_gate_clks[] __initconst = { 36178c2ecf20Sopenharmony_ci /* ENABLE_ACLK_APOLLO */ 36188c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASATBSLV_APOLLO_3_CSSYS, "aclk_asatbslv_apollo_3_cssys", 36198c2ecf20Sopenharmony_ci "div_atclk_apollo", ENABLE_ACLK_APOLLO, 36208c2ecf20Sopenharmony_ci 6, CLK_IGNORE_UNUSED, 0), 36218c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASATBSLV_APOLLO_2_CSSYS, "aclk_asatbslv_apollo_2_cssys", 36228c2ecf20Sopenharmony_ci "div_atclk_apollo", ENABLE_ACLK_APOLLO, 36238c2ecf20Sopenharmony_ci 5, CLK_IGNORE_UNUSED, 0), 36248c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASATBSLV_APOLLO_1_CSSYS, "aclk_asatbslv_apollo_1_cssys", 36258c2ecf20Sopenharmony_ci "div_atclk_apollo", ENABLE_ACLK_APOLLO, 36268c2ecf20Sopenharmony_ci 4, CLK_IGNORE_UNUSED, 0), 36278c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASATBSLV_APOLLO_0_CSSYS, "aclk_asatbslv_apollo_0_cssys", 36288c2ecf20Sopenharmony_ci "div_atclk_apollo", ENABLE_ACLK_APOLLO, 36298c2ecf20Sopenharmony_ci 3, CLK_IGNORE_UNUSED, 0), 36308c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCACES_APOLLO_CCI, "aclk_asyncaces_apollo_cci", 36318c2ecf20Sopenharmony_ci "div_aclk_apollo", ENABLE_ACLK_APOLLO, 36328c2ecf20Sopenharmony_ci 2, CLK_IGNORE_UNUSED, 0), 36338c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_APOLLOP, "aclk_ahb2apb_apollop", 36348c2ecf20Sopenharmony_ci "div_pclk_apollo", ENABLE_ACLK_APOLLO, 36358c2ecf20Sopenharmony_ci 1, CLK_IGNORE_UNUSED, 0), 36368c2ecf20Sopenharmony_ci GATE(CLK_ACLK_APOLLONP_200, "aclk_apollonp_200", 36378c2ecf20Sopenharmony_ci "div_pclk_apollo", ENABLE_ACLK_APOLLO, 36388c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 36398c2ecf20Sopenharmony_ci 36408c2ecf20Sopenharmony_ci /* ENABLE_PCLK_APOLLO */ 36418c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASAPBMST_CSSYS_APOLLO, "pclk_asapbmst_cssys_apollo", 36428c2ecf20Sopenharmony_ci "div_pclk_dbg_apollo", ENABLE_PCLK_APOLLO, 36438c2ecf20Sopenharmony_ci 2, CLK_IGNORE_UNUSED, 0), 36448c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_APOLLO, "pclk_pmu_apollo", "div_pclk_apollo", 36458c2ecf20Sopenharmony_ci ENABLE_PCLK_APOLLO, 1, CLK_IGNORE_UNUSED, 0), 36468c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_APOLLO, "pclk_sysreg_apollo", 36478c2ecf20Sopenharmony_ci "div_pclk_apollo", ENABLE_PCLK_APOLLO, 36488c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 36498c2ecf20Sopenharmony_ci 36508c2ecf20Sopenharmony_ci /* ENABLE_SCLK_APOLLO */ 36518c2ecf20Sopenharmony_ci GATE(CLK_CNTCLK_APOLLO, "cntclk_apollo", "div_cntclk_apollo", 36528c2ecf20Sopenharmony_ci ENABLE_SCLK_APOLLO, 3, CLK_IGNORE_UNUSED, 0), 36538c2ecf20Sopenharmony_ci GATE(CLK_SCLK_HPM_APOLLO, "sclk_hpm_apollo", "div_sclk_hpm_apollo", 36548c2ecf20Sopenharmony_ci ENABLE_SCLK_APOLLO, 1, CLK_IGNORE_UNUSED, 0), 36558c2ecf20Sopenharmony_ci}; 36568c2ecf20Sopenharmony_ci 36578c2ecf20Sopenharmony_ci#define E5433_APOLLO_DIV0(cntclk, pclk_dbg, atclk, pclk, aclk) \ 36588c2ecf20Sopenharmony_ci (((cntclk) << 24) | ((pclk_dbg) << 20) | ((atclk) << 16) | \ 36598c2ecf20Sopenharmony_ci ((pclk) << 12) | ((aclk) << 8)) 36608c2ecf20Sopenharmony_ci 36618c2ecf20Sopenharmony_ci#define E5433_APOLLO_DIV1(hpm, copy) \ 36628c2ecf20Sopenharmony_ci (((hpm) << 4) | ((copy) << 0)) 36638c2ecf20Sopenharmony_ci 36648c2ecf20Sopenharmony_cistatic const struct exynos_cpuclk_cfg_data exynos5433_apolloclk_d[] __initconst = { 36658c2ecf20Sopenharmony_ci { 1300000, E5433_APOLLO_DIV0(3, 7, 7, 7, 2), E5433_APOLLO_DIV1(7, 1), }, 36668c2ecf20Sopenharmony_ci { 1200000, E5433_APOLLO_DIV0(3, 7, 7, 7, 2), E5433_APOLLO_DIV1(7, 1), }, 36678c2ecf20Sopenharmony_ci { 1100000, E5433_APOLLO_DIV0(3, 7, 7, 7, 2), E5433_APOLLO_DIV1(7, 1), }, 36688c2ecf20Sopenharmony_ci { 1000000, E5433_APOLLO_DIV0(3, 7, 7, 7, 2), E5433_APOLLO_DIV1(7, 1), }, 36698c2ecf20Sopenharmony_ci { 900000, E5433_APOLLO_DIV0(3, 7, 7, 7, 2), E5433_APOLLO_DIV1(7, 1), }, 36708c2ecf20Sopenharmony_ci { 800000, E5433_APOLLO_DIV0(3, 7, 7, 7, 2), E5433_APOLLO_DIV1(7, 1), }, 36718c2ecf20Sopenharmony_ci { 700000, E5433_APOLLO_DIV0(3, 7, 7, 7, 2), E5433_APOLLO_DIV1(7, 1), }, 36728c2ecf20Sopenharmony_ci { 600000, E5433_APOLLO_DIV0(3, 7, 7, 7, 1), E5433_APOLLO_DIV1(7, 1), }, 36738c2ecf20Sopenharmony_ci { 500000, E5433_APOLLO_DIV0(3, 7, 7, 7, 1), E5433_APOLLO_DIV1(7, 1), }, 36748c2ecf20Sopenharmony_ci { 400000, E5433_APOLLO_DIV0(3, 7, 7, 7, 1), E5433_APOLLO_DIV1(7, 1), }, 36758c2ecf20Sopenharmony_ci { 0 }, 36768c2ecf20Sopenharmony_ci}; 36778c2ecf20Sopenharmony_ci 36788c2ecf20Sopenharmony_cistatic void __init exynos5433_cmu_apollo_init(struct device_node *np) 36798c2ecf20Sopenharmony_ci{ 36808c2ecf20Sopenharmony_ci void __iomem *reg_base; 36818c2ecf20Sopenharmony_ci struct samsung_clk_provider *ctx; 36828c2ecf20Sopenharmony_ci struct clk_hw **hws; 36838c2ecf20Sopenharmony_ci 36848c2ecf20Sopenharmony_ci reg_base = of_iomap(np, 0); 36858c2ecf20Sopenharmony_ci if (!reg_base) { 36868c2ecf20Sopenharmony_ci panic("%s: failed to map registers\n", __func__); 36878c2ecf20Sopenharmony_ci return; 36888c2ecf20Sopenharmony_ci } 36898c2ecf20Sopenharmony_ci 36908c2ecf20Sopenharmony_ci ctx = samsung_clk_init(np, reg_base, APOLLO_NR_CLK); 36918c2ecf20Sopenharmony_ci if (!ctx) { 36928c2ecf20Sopenharmony_ci panic("%s: unable to allocate ctx\n", __func__); 36938c2ecf20Sopenharmony_ci return; 36948c2ecf20Sopenharmony_ci } 36958c2ecf20Sopenharmony_ci 36968c2ecf20Sopenharmony_ci samsung_clk_register_pll(ctx, apollo_pll_clks, 36978c2ecf20Sopenharmony_ci ARRAY_SIZE(apollo_pll_clks), reg_base); 36988c2ecf20Sopenharmony_ci samsung_clk_register_mux(ctx, apollo_mux_clks, 36998c2ecf20Sopenharmony_ci ARRAY_SIZE(apollo_mux_clks)); 37008c2ecf20Sopenharmony_ci samsung_clk_register_div(ctx, apollo_div_clks, 37018c2ecf20Sopenharmony_ci ARRAY_SIZE(apollo_div_clks)); 37028c2ecf20Sopenharmony_ci samsung_clk_register_gate(ctx, apollo_gate_clks, 37038c2ecf20Sopenharmony_ci ARRAY_SIZE(apollo_gate_clks)); 37048c2ecf20Sopenharmony_ci 37058c2ecf20Sopenharmony_ci hws = ctx->clk_data.hws; 37068c2ecf20Sopenharmony_ci 37078c2ecf20Sopenharmony_ci exynos_register_cpu_clock(ctx, CLK_SCLK_APOLLO, "apolloclk", 37088c2ecf20Sopenharmony_ci hws[CLK_MOUT_APOLLO_PLL], hws[CLK_MOUT_BUS_PLL_APOLLO_USER], 0x200, 37098c2ecf20Sopenharmony_ci exynos5433_apolloclk_d, ARRAY_SIZE(exynos5433_apolloclk_d), 37108c2ecf20Sopenharmony_ci CLK_CPU_HAS_E5433_REGS_LAYOUT); 37118c2ecf20Sopenharmony_ci 37128c2ecf20Sopenharmony_ci samsung_clk_sleep_init(reg_base, apollo_clk_regs, 37138c2ecf20Sopenharmony_ci ARRAY_SIZE(apollo_clk_regs)); 37148c2ecf20Sopenharmony_ci 37158c2ecf20Sopenharmony_ci samsung_clk_of_add_provider(np, ctx); 37168c2ecf20Sopenharmony_ci} 37178c2ecf20Sopenharmony_ciCLK_OF_DECLARE(exynos5433_cmu_apollo, "samsung,exynos5433-cmu-apollo", 37188c2ecf20Sopenharmony_ci exynos5433_cmu_apollo_init); 37198c2ecf20Sopenharmony_ci 37208c2ecf20Sopenharmony_ci/* 37218c2ecf20Sopenharmony_ci * Register offset definitions for CMU_ATLAS 37228c2ecf20Sopenharmony_ci */ 37238c2ecf20Sopenharmony_ci#define ATLAS_PLL_LOCK 0x0000 37248c2ecf20Sopenharmony_ci#define ATLAS_PLL_CON0 0x0100 37258c2ecf20Sopenharmony_ci#define ATLAS_PLL_CON1 0x0104 37268c2ecf20Sopenharmony_ci#define ATLAS_PLL_FREQ_DET 0x010c 37278c2ecf20Sopenharmony_ci#define MUX_SEL_ATLAS0 0x0200 37288c2ecf20Sopenharmony_ci#define MUX_SEL_ATLAS1 0x0204 37298c2ecf20Sopenharmony_ci#define MUX_SEL_ATLAS2 0x0208 37308c2ecf20Sopenharmony_ci#define MUX_ENABLE_ATLAS0 0x0300 37318c2ecf20Sopenharmony_ci#define MUX_ENABLE_ATLAS1 0x0304 37328c2ecf20Sopenharmony_ci#define MUX_ENABLE_ATLAS2 0x0308 37338c2ecf20Sopenharmony_ci#define MUX_STAT_ATLAS0 0x0400 37348c2ecf20Sopenharmony_ci#define MUX_STAT_ATLAS1 0x0404 37358c2ecf20Sopenharmony_ci#define MUX_STAT_ATLAS2 0x0408 37368c2ecf20Sopenharmony_ci#define DIV_ATLAS0 0x0600 37378c2ecf20Sopenharmony_ci#define DIV_ATLAS1 0x0604 37388c2ecf20Sopenharmony_ci#define DIV_ATLAS_PLL_FREQ_DET 0x0608 37398c2ecf20Sopenharmony_ci#define DIV_STAT_ATLAS0 0x0700 37408c2ecf20Sopenharmony_ci#define DIV_STAT_ATLAS1 0x0704 37418c2ecf20Sopenharmony_ci#define DIV_STAT_ATLAS_PLL_FREQ_DET 0x0708 37428c2ecf20Sopenharmony_ci#define ENABLE_ACLK_ATLAS 0x0800 37438c2ecf20Sopenharmony_ci#define ENABLE_PCLK_ATLAS 0x0900 37448c2ecf20Sopenharmony_ci#define ENABLE_SCLK_ATLAS 0x0a00 37458c2ecf20Sopenharmony_ci#define ENABLE_IP_ATLAS0 0x0b00 37468c2ecf20Sopenharmony_ci#define ENABLE_IP_ATLAS1 0x0b04 37478c2ecf20Sopenharmony_ci#define CLKOUT_CMU_ATLAS 0x0c00 37488c2ecf20Sopenharmony_ci#define CLKOUT_CMU_ATLAS_DIV_STAT 0x0c04 37498c2ecf20Sopenharmony_ci#define ARMCLK_STOPCTRL 0x1000 37508c2ecf20Sopenharmony_ci#define ATLAS_PWR_CTRL 0x1020 37518c2ecf20Sopenharmony_ci#define ATLAS_PWR_CTRL2 0x1024 37528c2ecf20Sopenharmony_ci#define ATLAS_INTR_SPREAD_ENABLE 0x1080 37538c2ecf20Sopenharmony_ci#define ATLAS_INTR_SPREAD_USE_STANDBYWFI 0x1084 37548c2ecf20Sopenharmony_ci#define ATLAS_INTR_SPREAD_BLOCKING_DURATION 0x1088 37558c2ecf20Sopenharmony_ci 37568c2ecf20Sopenharmony_cistatic const unsigned long atlas_clk_regs[] __initconst = { 37578c2ecf20Sopenharmony_ci ATLAS_PLL_LOCK, 37588c2ecf20Sopenharmony_ci ATLAS_PLL_CON0, 37598c2ecf20Sopenharmony_ci ATLAS_PLL_CON1, 37608c2ecf20Sopenharmony_ci ATLAS_PLL_FREQ_DET, 37618c2ecf20Sopenharmony_ci MUX_SEL_ATLAS0, 37628c2ecf20Sopenharmony_ci MUX_SEL_ATLAS1, 37638c2ecf20Sopenharmony_ci MUX_SEL_ATLAS2, 37648c2ecf20Sopenharmony_ci MUX_ENABLE_ATLAS0, 37658c2ecf20Sopenharmony_ci MUX_ENABLE_ATLAS1, 37668c2ecf20Sopenharmony_ci MUX_ENABLE_ATLAS2, 37678c2ecf20Sopenharmony_ci DIV_ATLAS0, 37688c2ecf20Sopenharmony_ci DIV_ATLAS1, 37698c2ecf20Sopenharmony_ci DIV_ATLAS_PLL_FREQ_DET, 37708c2ecf20Sopenharmony_ci ENABLE_ACLK_ATLAS, 37718c2ecf20Sopenharmony_ci ENABLE_PCLK_ATLAS, 37728c2ecf20Sopenharmony_ci ENABLE_SCLK_ATLAS, 37738c2ecf20Sopenharmony_ci ENABLE_IP_ATLAS0, 37748c2ecf20Sopenharmony_ci ENABLE_IP_ATLAS1, 37758c2ecf20Sopenharmony_ci CLKOUT_CMU_ATLAS, 37768c2ecf20Sopenharmony_ci CLKOUT_CMU_ATLAS_DIV_STAT, 37778c2ecf20Sopenharmony_ci ARMCLK_STOPCTRL, 37788c2ecf20Sopenharmony_ci ATLAS_PWR_CTRL, 37798c2ecf20Sopenharmony_ci ATLAS_PWR_CTRL2, 37808c2ecf20Sopenharmony_ci ATLAS_INTR_SPREAD_ENABLE, 37818c2ecf20Sopenharmony_ci ATLAS_INTR_SPREAD_USE_STANDBYWFI, 37828c2ecf20Sopenharmony_ci ATLAS_INTR_SPREAD_BLOCKING_DURATION, 37838c2ecf20Sopenharmony_ci}; 37848c2ecf20Sopenharmony_ci 37858c2ecf20Sopenharmony_ci/* list of all parent clock list */ 37868c2ecf20Sopenharmony_ciPNAME(mout_atlas_pll_p) = { "oscclk", "fout_atlas_pll", }; 37878c2ecf20Sopenharmony_ciPNAME(mout_bus_pll_atlas_user_p) = { "oscclk", "sclk_bus_pll_atlas", }; 37888c2ecf20Sopenharmony_ciPNAME(mout_atlas_p) = { "mout_atlas_pll", 37898c2ecf20Sopenharmony_ci "mout_bus_pll_atlas_user", }; 37908c2ecf20Sopenharmony_ci 37918c2ecf20Sopenharmony_cistatic const struct samsung_pll_clock atlas_pll_clks[] __initconst = { 37928c2ecf20Sopenharmony_ci PLL(pll_35xx, CLK_FOUT_ATLAS_PLL, "fout_atlas_pll", "oscclk", 37938c2ecf20Sopenharmony_ci ATLAS_PLL_LOCK, ATLAS_PLL_CON0, exynos5433_pll_rates), 37948c2ecf20Sopenharmony_ci}; 37958c2ecf20Sopenharmony_ci 37968c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock atlas_mux_clks[] __initconst = { 37978c2ecf20Sopenharmony_ci /* MUX_SEL_ATLAS0 */ 37988c2ecf20Sopenharmony_ci MUX_F(CLK_MOUT_ATLAS_PLL, "mout_atlas_pll", mout_atlas_pll_p, 37998c2ecf20Sopenharmony_ci MUX_SEL_ATLAS0, 0, 1, CLK_SET_RATE_PARENT | 38008c2ecf20Sopenharmony_ci CLK_RECALC_NEW_RATES, 0), 38018c2ecf20Sopenharmony_ci 38028c2ecf20Sopenharmony_ci /* MUX_SEL_ATLAS1 */ 38038c2ecf20Sopenharmony_ci MUX(CLK_MOUT_BUS_PLL_ATLAS_USER, "mout_bus_pll_atlas_user", 38048c2ecf20Sopenharmony_ci mout_bus_pll_atlas_user_p, MUX_SEL_ATLAS1, 0, 1), 38058c2ecf20Sopenharmony_ci 38068c2ecf20Sopenharmony_ci /* MUX_SEL_ATLAS2 */ 38078c2ecf20Sopenharmony_ci MUX_F(CLK_MOUT_ATLAS, "mout_atlas", mout_atlas_p, MUX_SEL_ATLAS2, 38088c2ecf20Sopenharmony_ci 0, 1, CLK_SET_RATE_PARENT, 0), 38098c2ecf20Sopenharmony_ci}; 38108c2ecf20Sopenharmony_ci 38118c2ecf20Sopenharmony_cistatic const struct samsung_div_clock atlas_div_clks[] __initconst = { 38128c2ecf20Sopenharmony_ci /* DIV_ATLAS0 */ 38138c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_CNTCLK_ATLAS, "div_cntclk_atlas", "div_atlas2", 38148c2ecf20Sopenharmony_ci DIV_ATLAS0, 24, 3, CLK_GET_RATE_NOCACHE, 38158c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 38168c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_PCLK_DBG_ATLAS, "div_pclk_dbg_atlas", "div_atclk_atlas", 38178c2ecf20Sopenharmony_ci DIV_ATLAS0, 20, 3, CLK_GET_RATE_NOCACHE, 38188c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 38198c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_ATCLK_ATLASO, "div_atclk_atlas", "div_atlas2", 38208c2ecf20Sopenharmony_ci DIV_ATLAS0, 16, 3, CLK_GET_RATE_NOCACHE, 38218c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 38228c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_PCLK_ATLAS, "div_pclk_atlas", "div_atlas2", 38238c2ecf20Sopenharmony_ci DIV_ATLAS0, 12, 3, CLK_GET_RATE_NOCACHE, 38248c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 38258c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_ACLK_ATLAS, "div_aclk_atlas", "div_atlas2", 38268c2ecf20Sopenharmony_ci DIV_ATLAS0, 8, 3, CLK_GET_RATE_NOCACHE, 38278c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 38288c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_ATLAS2, "div_atlas2", "div_atlas1", 38298c2ecf20Sopenharmony_ci DIV_ATLAS0, 4, 3, CLK_SET_RATE_PARENT, 0), 38308c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_ATLAS1, "div_atlas1", "mout_atlas", 38318c2ecf20Sopenharmony_ci DIV_ATLAS0, 0, 3, CLK_SET_RATE_PARENT, 0), 38328c2ecf20Sopenharmony_ci 38338c2ecf20Sopenharmony_ci /* DIV_ATLAS1 */ 38348c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_SCLK_HPM_ATLAS, "div_sclk_hpm_atlas", "mout_atlas", 38358c2ecf20Sopenharmony_ci DIV_ATLAS1, 4, 3, CLK_GET_RATE_NOCACHE, 38368c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 38378c2ecf20Sopenharmony_ci DIV_F(CLK_DIV_ATLAS_PLL, "div_atlas_pll", "mout_atlas", 38388c2ecf20Sopenharmony_ci DIV_ATLAS1, 0, 3, CLK_GET_RATE_NOCACHE, 38398c2ecf20Sopenharmony_ci CLK_DIVIDER_READ_ONLY), 38408c2ecf20Sopenharmony_ci}; 38418c2ecf20Sopenharmony_ci 38428c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock atlas_gate_clks[] __initconst = { 38438c2ecf20Sopenharmony_ci /* ENABLE_ACLK_ATLAS */ 38448c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ATB_AUD_CSSYS, "aclk_atb_aud_cssys", 38458c2ecf20Sopenharmony_ci "div_atclk_atlas", ENABLE_ACLK_ATLAS, 38468c2ecf20Sopenharmony_ci 9, CLK_IGNORE_UNUSED, 0), 38478c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ATB_APOLLO3_CSSYS, "aclk_atb_apollo3_cssys", 38488c2ecf20Sopenharmony_ci "div_atclk_atlas", ENABLE_ACLK_ATLAS, 38498c2ecf20Sopenharmony_ci 8, CLK_IGNORE_UNUSED, 0), 38508c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ATB_APOLLO2_CSSYS, "aclk_atb_apollo2_cssys", 38518c2ecf20Sopenharmony_ci "div_atclk_atlas", ENABLE_ACLK_ATLAS, 38528c2ecf20Sopenharmony_ci 7, CLK_IGNORE_UNUSED, 0), 38538c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ATB_APOLLO1_CSSYS, "aclk_atb_apollo1_cssys", 38548c2ecf20Sopenharmony_ci "div_atclk_atlas", ENABLE_ACLK_ATLAS, 38558c2ecf20Sopenharmony_ci 6, CLK_IGNORE_UNUSED, 0), 38568c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ATB_APOLLO0_CSSYS, "aclk_atb_apollo0_cssys", 38578c2ecf20Sopenharmony_ci "div_atclk_atlas", ENABLE_ACLK_ATLAS, 38588c2ecf20Sopenharmony_ci 5, CLK_IGNORE_UNUSED, 0), 38598c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAHBS_CSSYS_SSS, "aclk_asyncahbs_cssys_sss", 38608c2ecf20Sopenharmony_ci "div_atclk_atlas", ENABLE_ACLK_ATLAS, 38618c2ecf20Sopenharmony_ci 4, CLK_IGNORE_UNUSED, 0), 38628c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_CSSYS_CCIX, "aclk_asyncaxis_cssys_ccix", 38638c2ecf20Sopenharmony_ci "div_pclk_dbg_atlas", ENABLE_ACLK_ATLAS, 38648c2ecf20Sopenharmony_ci 3, CLK_IGNORE_UNUSED, 0), 38658c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCACES_ATLAS_CCI, "aclk_asyncaces_atlas_cci", 38668c2ecf20Sopenharmony_ci "div_aclk_atlas", ENABLE_ACLK_ATLAS, 38678c2ecf20Sopenharmony_ci 2, CLK_IGNORE_UNUSED, 0), 38688c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_ATLASP, "aclk_ahb2apb_atlasp", "div_pclk_atlas", 38698c2ecf20Sopenharmony_ci ENABLE_ACLK_ATLAS, 1, CLK_IGNORE_UNUSED, 0), 38708c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ATLASNP_200, "aclk_atlasnp_200", "div_pclk_atlas", 38718c2ecf20Sopenharmony_ci ENABLE_ACLK_ATLAS, 0, CLK_IGNORE_UNUSED, 0), 38728c2ecf20Sopenharmony_ci 38738c2ecf20Sopenharmony_ci /* ENABLE_PCLK_ATLAS */ 38748c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAPB_AUD_CSSYS, "pclk_asyncapb_aud_cssys", 38758c2ecf20Sopenharmony_ci "div_pclk_dbg_atlas", ENABLE_PCLK_ATLAS, 38768c2ecf20Sopenharmony_ci 5, CLK_IGNORE_UNUSED, 0), 38778c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAPB_ISP_CSSYS, "pclk_asyncapb_isp_cssys", 38788c2ecf20Sopenharmony_ci "div_pclk_dbg_atlas", ENABLE_PCLK_ATLAS, 38798c2ecf20Sopenharmony_ci 4, CLK_IGNORE_UNUSED, 0), 38808c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAPB_APOLLO_CSSYS, "pclk_asyncapb_apollo_cssys", 38818c2ecf20Sopenharmony_ci "div_pclk_dbg_atlas", ENABLE_PCLK_ATLAS, 38828c2ecf20Sopenharmony_ci 3, CLK_IGNORE_UNUSED, 0), 38838c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_ATLAS, "pclk_pmu_atlas", "div_pclk_atlas", 38848c2ecf20Sopenharmony_ci ENABLE_PCLK_ATLAS, 2, CLK_IGNORE_UNUSED, 0), 38858c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_ATLAS, "pclk_sysreg_atlas", "div_pclk_atlas", 38868c2ecf20Sopenharmony_ci ENABLE_PCLK_ATLAS, 1, CLK_IGNORE_UNUSED, 0), 38878c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SECJTAG, "pclk_secjtag", "div_pclk_dbg_atlas", 38888c2ecf20Sopenharmony_ci ENABLE_PCLK_ATLAS, 0, CLK_IGNORE_UNUSED, 0), 38898c2ecf20Sopenharmony_ci 38908c2ecf20Sopenharmony_ci /* ENABLE_SCLK_ATLAS */ 38918c2ecf20Sopenharmony_ci GATE(CLK_CNTCLK_ATLAS, "cntclk_atlas", "div_cntclk_atlas", 38928c2ecf20Sopenharmony_ci ENABLE_SCLK_ATLAS, 10, CLK_IGNORE_UNUSED, 0), 38938c2ecf20Sopenharmony_ci GATE(CLK_SCLK_HPM_ATLAS, "sclk_hpm_atlas", "div_sclk_hpm_atlas", 38948c2ecf20Sopenharmony_ci ENABLE_SCLK_ATLAS, 7, CLK_IGNORE_UNUSED, 0), 38958c2ecf20Sopenharmony_ci GATE(CLK_TRACECLK, "traceclk", "div_atclk_atlas", 38968c2ecf20Sopenharmony_ci ENABLE_SCLK_ATLAS, 6, CLK_IGNORE_UNUSED, 0), 38978c2ecf20Sopenharmony_ci GATE(CLK_CTMCLK, "ctmclk", "div_atclk_atlas", 38988c2ecf20Sopenharmony_ci ENABLE_SCLK_ATLAS, 5, CLK_IGNORE_UNUSED, 0), 38998c2ecf20Sopenharmony_ci GATE(CLK_HCLK_CSSYS, "hclk_cssys", "div_atclk_atlas", 39008c2ecf20Sopenharmony_ci ENABLE_SCLK_ATLAS, 4, CLK_IGNORE_UNUSED, 0), 39018c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DBG_CSSYS, "pclk_dbg_cssys", "div_pclk_dbg_atlas", 39028c2ecf20Sopenharmony_ci ENABLE_SCLK_ATLAS, 3, CLK_IGNORE_UNUSED, 0), 39038c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DBG, "pclk_dbg", "div_pclk_dbg_atlas", 39048c2ecf20Sopenharmony_ci ENABLE_SCLK_ATLAS, 2, CLK_IGNORE_UNUSED, 0), 39058c2ecf20Sopenharmony_ci GATE(CLK_ATCLK, "atclk", "div_atclk_atlas", 39068c2ecf20Sopenharmony_ci ENABLE_SCLK_ATLAS, 1, CLK_IGNORE_UNUSED, 0), 39078c2ecf20Sopenharmony_ci}; 39088c2ecf20Sopenharmony_ci 39098c2ecf20Sopenharmony_ci#define E5433_ATLAS_DIV0(cntclk, pclk_dbg, atclk, pclk, aclk) \ 39108c2ecf20Sopenharmony_ci (((cntclk) << 24) | ((pclk_dbg) << 20) | ((atclk) << 16) | \ 39118c2ecf20Sopenharmony_ci ((pclk) << 12) | ((aclk) << 8)) 39128c2ecf20Sopenharmony_ci 39138c2ecf20Sopenharmony_ci#define E5433_ATLAS_DIV1(hpm, copy) \ 39148c2ecf20Sopenharmony_ci (((hpm) << 4) | ((copy) << 0)) 39158c2ecf20Sopenharmony_ci 39168c2ecf20Sopenharmony_cistatic const struct exynos_cpuclk_cfg_data exynos5433_atlasclk_d[] __initconst = { 39178c2ecf20Sopenharmony_ci { 1900000, E5433_ATLAS_DIV0(7, 7, 7, 7, 4), E5433_ATLAS_DIV1(7, 1), }, 39188c2ecf20Sopenharmony_ci { 1800000, E5433_ATLAS_DIV0(7, 7, 7, 7, 4), E5433_ATLAS_DIV1(7, 1), }, 39198c2ecf20Sopenharmony_ci { 1700000, E5433_ATLAS_DIV0(7, 7, 7, 7, 4), E5433_ATLAS_DIV1(7, 1), }, 39208c2ecf20Sopenharmony_ci { 1600000, E5433_ATLAS_DIV0(7, 7, 7, 7, 4), E5433_ATLAS_DIV1(7, 1), }, 39218c2ecf20Sopenharmony_ci { 1500000, E5433_ATLAS_DIV0(7, 7, 7, 7, 3), E5433_ATLAS_DIV1(7, 1), }, 39228c2ecf20Sopenharmony_ci { 1400000, E5433_ATLAS_DIV0(7, 7, 7, 7, 3), E5433_ATLAS_DIV1(7, 1), }, 39238c2ecf20Sopenharmony_ci { 1300000, E5433_ATLAS_DIV0(7, 7, 7, 7, 3), E5433_ATLAS_DIV1(7, 1), }, 39248c2ecf20Sopenharmony_ci { 1200000, E5433_ATLAS_DIV0(7, 7, 7, 7, 3), E5433_ATLAS_DIV1(7, 1), }, 39258c2ecf20Sopenharmony_ci { 1100000, E5433_ATLAS_DIV0(7, 7, 7, 7, 3), E5433_ATLAS_DIV1(7, 1), }, 39268c2ecf20Sopenharmony_ci { 1000000, E5433_ATLAS_DIV0(7, 7, 7, 7, 3), E5433_ATLAS_DIV1(7, 1), }, 39278c2ecf20Sopenharmony_ci { 900000, E5433_ATLAS_DIV0(7, 7, 7, 7, 2), E5433_ATLAS_DIV1(7, 1), }, 39288c2ecf20Sopenharmony_ci { 800000, E5433_ATLAS_DIV0(7, 7, 7, 7, 2), E5433_ATLAS_DIV1(7, 1), }, 39298c2ecf20Sopenharmony_ci { 700000, E5433_ATLAS_DIV0(7, 7, 7, 7, 2), E5433_ATLAS_DIV1(7, 1), }, 39308c2ecf20Sopenharmony_ci { 600000, E5433_ATLAS_DIV0(7, 7, 7, 7, 2), E5433_ATLAS_DIV1(7, 1), }, 39318c2ecf20Sopenharmony_ci { 500000, E5433_ATLAS_DIV0(7, 7, 7, 7, 2), E5433_ATLAS_DIV1(7, 1), }, 39328c2ecf20Sopenharmony_ci { 0 }, 39338c2ecf20Sopenharmony_ci}; 39348c2ecf20Sopenharmony_ci 39358c2ecf20Sopenharmony_cistatic void __init exynos5433_cmu_atlas_init(struct device_node *np) 39368c2ecf20Sopenharmony_ci{ 39378c2ecf20Sopenharmony_ci void __iomem *reg_base; 39388c2ecf20Sopenharmony_ci struct samsung_clk_provider *ctx; 39398c2ecf20Sopenharmony_ci struct clk_hw **hws; 39408c2ecf20Sopenharmony_ci 39418c2ecf20Sopenharmony_ci reg_base = of_iomap(np, 0); 39428c2ecf20Sopenharmony_ci if (!reg_base) { 39438c2ecf20Sopenharmony_ci panic("%s: failed to map registers\n", __func__); 39448c2ecf20Sopenharmony_ci return; 39458c2ecf20Sopenharmony_ci } 39468c2ecf20Sopenharmony_ci 39478c2ecf20Sopenharmony_ci ctx = samsung_clk_init(np, reg_base, ATLAS_NR_CLK); 39488c2ecf20Sopenharmony_ci if (!ctx) { 39498c2ecf20Sopenharmony_ci panic("%s: unable to allocate ctx\n", __func__); 39508c2ecf20Sopenharmony_ci return; 39518c2ecf20Sopenharmony_ci } 39528c2ecf20Sopenharmony_ci 39538c2ecf20Sopenharmony_ci samsung_clk_register_pll(ctx, atlas_pll_clks, 39548c2ecf20Sopenharmony_ci ARRAY_SIZE(atlas_pll_clks), reg_base); 39558c2ecf20Sopenharmony_ci samsung_clk_register_mux(ctx, atlas_mux_clks, 39568c2ecf20Sopenharmony_ci ARRAY_SIZE(atlas_mux_clks)); 39578c2ecf20Sopenharmony_ci samsung_clk_register_div(ctx, atlas_div_clks, 39588c2ecf20Sopenharmony_ci ARRAY_SIZE(atlas_div_clks)); 39598c2ecf20Sopenharmony_ci samsung_clk_register_gate(ctx, atlas_gate_clks, 39608c2ecf20Sopenharmony_ci ARRAY_SIZE(atlas_gate_clks)); 39618c2ecf20Sopenharmony_ci 39628c2ecf20Sopenharmony_ci hws = ctx->clk_data.hws; 39638c2ecf20Sopenharmony_ci 39648c2ecf20Sopenharmony_ci exynos_register_cpu_clock(ctx, CLK_SCLK_ATLAS, "atlasclk", 39658c2ecf20Sopenharmony_ci hws[CLK_MOUT_ATLAS_PLL], hws[CLK_MOUT_BUS_PLL_ATLAS_USER], 0x200, 39668c2ecf20Sopenharmony_ci exynos5433_atlasclk_d, ARRAY_SIZE(exynos5433_atlasclk_d), 39678c2ecf20Sopenharmony_ci CLK_CPU_HAS_E5433_REGS_LAYOUT); 39688c2ecf20Sopenharmony_ci 39698c2ecf20Sopenharmony_ci samsung_clk_sleep_init(reg_base, atlas_clk_regs, 39708c2ecf20Sopenharmony_ci ARRAY_SIZE(atlas_clk_regs)); 39718c2ecf20Sopenharmony_ci 39728c2ecf20Sopenharmony_ci samsung_clk_of_add_provider(np, ctx); 39738c2ecf20Sopenharmony_ci} 39748c2ecf20Sopenharmony_ciCLK_OF_DECLARE(exynos5433_cmu_atlas, "samsung,exynos5433-cmu-atlas", 39758c2ecf20Sopenharmony_ci exynos5433_cmu_atlas_init); 39768c2ecf20Sopenharmony_ci 39778c2ecf20Sopenharmony_ci/* 39788c2ecf20Sopenharmony_ci * Register offset definitions for CMU_MSCL 39798c2ecf20Sopenharmony_ci */ 39808c2ecf20Sopenharmony_ci#define MUX_SEL_MSCL0 0x0200 39818c2ecf20Sopenharmony_ci#define MUX_SEL_MSCL1 0x0204 39828c2ecf20Sopenharmony_ci#define MUX_ENABLE_MSCL0 0x0300 39838c2ecf20Sopenharmony_ci#define MUX_ENABLE_MSCL1 0x0304 39848c2ecf20Sopenharmony_ci#define MUX_STAT_MSCL0 0x0400 39858c2ecf20Sopenharmony_ci#define MUX_STAT_MSCL1 0x0404 39868c2ecf20Sopenharmony_ci#define DIV_MSCL 0x0600 39878c2ecf20Sopenharmony_ci#define DIV_STAT_MSCL 0x0700 39888c2ecf20Sopenharmony_ci#define ENABLE_ACLK_MSCL 0x0800 39898c2ecf20Sopenharmony_ci#define ENABLE_ACLK_MSCL_SECURE_SMMU_M2MSCALER0 0x0804 39908c2ecf20Sopenharmony_ci#define ENABLE_ACLK_MSCL_SECURE_SMMU_M2MSCALER1 0x0808 39918c2ecf20Sopenharmony_ci#define ENABLE_ACLK_MSCL_SECURE_SMMU_JPEG 0x080c 39928c2ecf20Sopenharmony_ci#define ENABLE_PCLK_MSCL 0x0900 39938c2ecf20Sopenharmony_ci#define ENABLE_PCLK_MSCL_SECURE_SMMU_M2MSCALER0 0x0904 39948c2ecf20Sopenharmony_ci#define ENABLE_PCLK_MSCL_SECURE_SMMU_M2MSCALER1 0x0908 39958c2ecf20Sopenharmony_ci#define ENABLE_PCLK_MSCL_SECURE_SMMU_JPEG 0x090c 39968c2ecf20Sopenharmony_ci#define ENABLE_SCLK_MSCL 0x0a00 39978c2ecf20Sopenharmony_ci#define ENABLE_IP_MSCL0 0x0b00 39988c2ecf20Sopenharmony_ci#define ENABLE_IP_MSCL1 0x0b04 39998c2ecf20Sopenharmony_ci#define ENABLE_IP_MSCL_SECURE_SMMU_M2MSCALER0 0x0b08 40008c2ecf20Sopenharmony_ci#define ENABLE_IP_MSCL_SECURE_SMMU_M2MSCALER1 0x0b0c 40018c2ecf20Sopenharmony_ci#define ENABLE_IP_MSCL_SECURE_SMMU_JPEG 0x0b10 40028c2ecf20Sopenharmony_ci 40038c2ecf20Sopenharmony_cistatic const unsigned long mscl_clk_regs[] __initconst = { 40048c2ecf20Sopenharmony_ci MUX_SEL_MSCL0, 40058c2ecf20Sopenharmony_ci MUX_SEL_MSCL1, 40068c2ecf20Sopenharmony_ci MUX_ENABLE_MSCL0, 40078c2ecf20Sopenharmony_ci MUX_ENABLE_MSCL1, 40088c2ecf20Sopenharmony_ci DIV_MSCL, 40098c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL, 40108c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL_SECURE_SMMU_M2MSCALER0, 40118c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL_SECURE_SMMU_M2MSCALER1, 40128c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL_SECURE_SMMU_JPEG, 40138c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL, 40148c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL_SECURE_SMMU_M2MSCALER0, 40158c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL_SECURE_SMMU_M2MSCALER1, 40168c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL_SECURE_SMMU_JPEG, 40178c2ecf20Sopenharmony_ci ENABLE_SCLK_MSCL, 40188c2ecf20Sopenharmony_ci ENABLE_IP_MSCL0, 40198c2ecf20Sopenharmony_ci ENABLE_IP_MSCL1, 40208c2ecf20Sopenharmony_ci ENABLE_IP_MSCL_SECURE_SMMU_M2MSCALER0, 40218c2ecf20Sopenharmony_ci ENABLE_IP_MSCL_SECURE_SMMU_M2MSCALER1, 40228c2ecf20Sopenharmony_ci ENABLE_IP_MSCL_SECURE_SMMU_JPEG, 40238c2ecf20Sopenharmony_ci}; 40248c2ecf20Sopenharmony_ci 40258c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump mscl_suspend_regs[] = { 40268c2ecf20Sopenharmony_ci { MUX_SEL_MSCL0, 0 }, 40278c2ecf20Sopenharmony_ci { MUX_SEL_MSCL1, 0 }, 40288c2ecf20Sopenharmony_ci}; 40298c2ecf20Sopenharmony_ci 40308c2ecf20Sopenharmony_ci/* list of all parent clock list */ 40318c2ecf20Sopenharmony_ciPNAME(mout_sclk_jpeg_user_p) = { "oscclk", "sclk_jpeg_mscl", }; 40328c2ecf20Sopenharmony_ciPNAME(mout_aclk_mscl_400_user_p) = { "oscclk", "aclk_mscl_400", }; 40338c2ecf20Sopenharmony_ciPNAME(mout_sclk_jpeg_p) = { "mout_sclk_jpeg_user", 40348c2ecf20Sopenharmony_ci "mout_aclk_mscl_400_user", }; 40358c2ecf20Sopenharmony_ci 40368c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock mscl_mux_clks[] __initconst = { 40378c2ecf20Sopenharmony_ci /* MUX_SEL_MSCL0 */ 40388c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_JPEG_USER, "mout_sclk_jpeg_user", 40398c2ecf20Sopenharmony_ci mout_sclk_jpeg_user_p, MUX_SEL_MSCL0, 4, 1), 40408c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_MSCL_400_USER, "mout_aclk_mscl_400_user", 40418c2ecf20Sopenharmony_ci mout_aclk_mscl_400_user_p, MUX_SEL_MSCL0, 0, 1), 40428c2ecf20Sopenharmony_ci 40438c2ecf20Sopenharmony_ci /* MUX_SEL_MSCL1 */ 40448c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_JPEG, "mout_sclk_jpeg", mout_sclk_jpeg_p, 40458c2ecf20Sopenharmony_ci MUX_SEL_MSCL1, 0, 1), 40468c2ecf20Sopenharmony_ci}; 40478c2ecf20Sopenharmony_ci 40488c2ecf20Sopenharmony_cistatic const struct samsung_div_clock mscl_div_clks[] __initconst = { 40498c2ecf20Sopenharmony_ci /* DIV_MSCL */ 40508c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_MSCL, "div_pclk_mscl", "mout_aclk_mscl_400_user", 40518c2ecf20Sopenharmony_ci DIV_MSCL, 0, 3), 40528c2ecf20Sopenharmony_ci}; 40538c2ecf20Sopenharmony_ci 40548c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock mscl_gate_clks[] __initconst = { 40558c2ecf20Sopenharmony_ci /* ENABLE_ACLK_MSCL */ 40568c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_JPEG, "aclk_bts_jpeg", "mout_aclk_mscl_400_user", 40578c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL, 9, 0, 0), 40588c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_M2MSCALER1, "aclk_bts_m2mscaler1", 40598c2ecf20Sopenharmony_ci "mout_aclk_mscl_400_user", ENABLE_ACLK_MSCL, 8, 0, 0), 40608c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_M2MSCALER0, "aclk_bts_m2mscaler0", 40618c2ecf20Sopenharmony_ci "mout_aclk_mscl_400_user", ENABLE_ACLK_MSCL, 7, 0, 0), 40628c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_MSCL0P, "aclk_abh2apb_mscl0p", "div_pclk_mscl", 40638c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL, 6, CLK_IGNORE_UNUSED, 0), 40648c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_MSCLX, "aclk_xiu_msclx", "mout_aclk_mscl_400_user", 40658c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL, 5, CLK_IGNORE_UNUSED, 0), 40668c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MSCLNP_100, "aclk_msclnp_100", "div_pclk_mscl", 40678c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL, 4, CLK_IGNORE_UNUSED, 0), 40688c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MSCLND_400, "aclk_msclnd_400", "mout_aclk_mscl_400_user", 40698c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL, 3, CLK_IGNORE_UNUSED, 0), 40708c2ecf20Sopenharmony_ci GATE(CLK_ACLK_JPEG, "aclk_jpeg", "mout_aclk_mscl_400_user", 40718c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL, 2, 0, 0), 40728c2ecf20Sopenharmony_ci GATE(CLK_ACLK_M2MSCALER1, "aclk_m2mscaler1", "mout_aclk_mscl_400_user", 40738c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL, 1, 0, 0), 40748c2ecf20Sopenharmony_ci GATE(CLK_ACLK_M2MSCALER0, "aclk_m2mscaler0", "mout_aclk_mscl_400_user", 40758c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL, 0, 0, 0), 40768c2ecf20Sopenharmony_ci 40778c2ecf20Sopenharmony_ci /* ENABLE_ACLK_MSCL_SECURE_SMMU_M2MSCALER0 */ 40788c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_M2MSCALER0, "aclk_smmu_m2mscaler0", 40798c2ecf20Sopenharmony_ci "mout_aclk_mscl_400_user", 40808c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL_SECURE_SMMU_M2MSCALER0, 40818c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 40828c2ecf20Sopenharmony_ci 40838c2ecf20Sopenharmony_ci /* ENABLE_ACLK_MSCL_SECURE_SMMU_M2MSCALER1 */ 40848c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_M2MSCALER1, "aclk_smmu_m2mscaler1", 40858c2ecf20Sopenharmony_ci "mout_aclk_mscl_400_user", 40868c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL_SECURE_SMMU_M2MSCALER1, 40878c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 40888c2ecf20Sopenharmony_ci 40898c2ecf20Sopenharmony_ci /* ENABLE_ACLK_MSCL_SECURE_SMMU_JPEG */ 40908c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_JPEG, "aclk_smmu_jpeg", "mout_aclk_mscl_400_user", 40918c2ecf20Sopenharmony_ci ENABLE_ACLK_MSCL_SECURE_SMMU_JPEG, 40928c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 40938c2ecf20Sopenharmony_ci 40948c2ecf20Sopenharmony_ci /* ENABLE_PCLK_MSCL */ 40958c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_JPEG, "pclk_bts_jpeg", "div_pclk_mscl", 40968c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL, 7, 0, 0), 40978c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_M2MSCALER1, "pclk_bts_m2mscaler1", "div_pclk_mscl", 40988c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL, 6, 0, 0), 40998c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_M2MSCALER0, "pclk_bts_m2mscaler0", "div_pclk_mscl", 41008c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL, 5, 0, 0), 41018c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_MSCL, "pclk_pmu_mscl", "div_pclk_mscl", 41028c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL, 4, CLK_IGNORE_UNUSED, 0), 41038c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_MSCL, "pclk_sysreg_mscl", "div_pclk_mscl", 41048c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL, 3, CLK_IGNORE_UNUSED, 0), 41058c2ecf20Sopenharmony_ci GATE(CLK_PCLK_JPEG, "pclk_jpeg", "div_pclk_mscl", 41068c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL, 2, 0, 0), 41078c2ecf20Sopenharmony_ci GATE(CLK_PCLK_M2MSCALER1, "pclk_m2mscaler1", "div_pclk_mscl", 41088c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL, 1, 0, 0), 41098c2ecf20Sopenharmony_ci GATE(CLK_PCLK_M2MSCALER0, "pclk_m2mscaler0", "div_pclk_mscl", 41108c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL, 0, 0, 0), 41118c2ecf20Sopenharmony_ci 41128c2ecf20Sopenharmony_ci /* ENABLE_PCLK_MSCL_SECURE_SMMU_M2MSCALER0 */ 41138c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_M2MSCALER0, "pclk_smmu_m2mscaler0", "div_pclk_mscl", 41148c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL_SECURE_SMMU_M2MSCALER0, 41158c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 41168c2ecf20Sopenharmony_ci 41178c2ecf20Sopenharmony_ci /* ENABLE_PCLK_MSCL_SECURE_SMMU_M2MSCALER1 */ 41188c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_M2MSCALER1, "pclk_smmu_m2mscaler1", "div_pclk_mscl", 41198c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL_SECURE_SMMU_M2MSCALER1, 41208c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 41218c2ecf20Sopenharmony_ci 41228c2ecf20Sopenharmony_ci /* ENABLE_PCLK_MSCL_SECURE_SMMU_JPEG */ 41238c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_JPEG, "pclk_smmu_jpeg", "div_pclk_mscl", 41248c2ecf20Sopenharmony_ci ENABLE_PCLK_MSCL_SECURE_SMMU_JPEG, 41258c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 41268c2ecf20Sopenharmony_ci 41278c2ecf20Sopenharmony_ci /* ENABLE_SCLK_MSCL */ 41288c2ecf20Sopenharmony_ci GATE(CLK_SCLK_JPEG, "sclk_jpeg", "mout_sclk_jpeg", ENABLE_SCLK_MSCL, 0, 41298c2ecf20Sopenharmony_ci CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), 41308c2ecf20Sopenharmony_ci}; 41318c2ecf20Sopenharmony_ci 41328c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info mscl_cmu_info __initconst = { 41338c2ecf20Sopenharmony_ci .mux_clks = mscl_mux_clks, 41348c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(mscl_mux_clks), 41358c2ecf20Sopenharmony_ci .div_clks = mscl_div_clks, 41368c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(mscl_div_clks), 41378c2ecf20Sopenharmony_ci .gate_clks = mscl_gate_clks, 41388c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(mscl_gate_clks), 41398c2ecf20Sopenharmony_ci .nr_clk_ids = MSCL_NR_CLK, 41408c2ecf20Sopenharmony_ci .clk_regs = mscl_clk_regs, 41418c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(mscl_clk_regs), 41428c2ecf20Sopenharmony_ci .suspend_regs = mscl_suspend_regs, 41438c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(mscl_suspend_regs), 41448c2ecf20Sopenharmony_ci .clk_name = "aclk_mscl_400", 41458c2ecf20Sopenharmony_ci}; 41468c2ecf20Sopenharmony_ci 41478c2ecf20Sopenharmony_ci/* 41488c2ecf20Sopenharmony_ci * Register offset definitions for CMU_MFC 41498c2ecf20Sopenharmony_ci */ 41508c2ecf20Sopenharmony_ci#define MUX_SEL_MFC 0x0200 41518c2ecf20Sopenharmony_ci#define MUX_ENABLE_MFC 0x0300 41528c2ecf20Sopenharmony_ci#define MUX_STAT_MFC 0x0400 41538c2ecf20Sopenharmony_ci#define DIV_MFC 0x0600 41548c2ecf20Sopenharmony_ci#define DIV_STAT_MFC 0x0700 41558c2ecf20Sopenharmony_ci#define ENABLE_ACLK_MFC 0x0800 41568c2ecf20Sopenharmony_ci#define ENABLE_ACLK_MFC_SECURE_SMMU_MFC 0x0804 41578c2ecf20Sopenharmony_ci#define ENABLE_PCLK_MFC 0x0900 41588c2ecf20Sopenharmony_ci#define ENABLE_PCLK_MFC_SECURE_SMMU_MFC 0x0904 41598c2ecf20Sopenharmony_ci#define ENABLE_IP_MFC0 0x0b00 41608c2ecf20Sopenharmony_ci#define ENABLE_IP_MFC1 0x0b04 41618c2ecf20Sopenharmony_ci#define ENABLE_IP_MFC_SECURE_SMMU_MFC 0x0b08 41628c2ecf20Sopenharmony_ci 41638c2ecf20Sopenharmony_cistatic const unsigned long mfc_clk_regs[] __initconst = { 41648c2ecf20Sopenharmony_ci MUX_SEL_MFC, 41658c2ecf20Sopenharmony_ci MUX_ENABLE_MFC, 41668c2ecf20Sopenharmony_ci DIV_MFC, 41678c2ecf20Sopenharmony_ci ENABLE_ACLK_MFC, 41688c2ecf20Sopenharmony_ci ENABLE_ACLK_MFC_SECURE_SMMU_MFC, 41698c2ecf20Sopenharmony_ci ENABLE_PCLK_MFC, 41708c2ecf20Sopenharmony_ci ENABLE_PCLK_MFC_SECURE_SMMU_MFC, 41718c2ecf20Sopenharmony_ci ENABLE_IP_MFC0, 41728c2ecf20Sopenharmony_ci ENABLE_IP_MFC1, 41738c2ecf20Sopenharmony_ci ENABLE_IP_MFC_SECURE_SMMU_MFC, 41748c2ecf20Sopenharmony_ci}; 41758c2ecf20Sopenharmony_ci 41768c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump mfc_suspend_regs[] = { 41778c2ecf20Sopenharmony_ci { MUX_SEL_MFC, 0 }, 41788c2ecf20Sopenharmony_ci}; 41798c2ecf20Sopenharmony_ci 41808c2ecf20Sopenharmony_ciPNAME(mout_aclk_mfc_400_user_p) = { "oscclk", "aclk_mfc_400", }; 41818c2ecf20Sopenharmony_ci 41828c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock mfc_mux_clks[] __initconst = { 41838c2ecf20Sopenharmony_ci /* MUX_SEL_MFC */ 41848c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_MFC_400_USER, "mout_aclk_mfc_400_user", 41858c2ecf20Sopenharmony_ci mout_aclk_mfc_400_user_p, MUX_SEL_MFC, 0, 0), 41868c2ecf20Sopenharmony_ci}; 41878c2ecf20Sopenharmony_ci 41888c2ecf20Sopenharmony_cistatic const struct samsung_div_clock mfc_div_clks[] __initconst = { 41898c2ecf20Sopenharmony_ci /* DIV_MFC */ 41908c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_MFC, "div_pclk_mfc", "mout_aclk_mfc_400_user", 41918c2ecf20Sopenharmony_ci DIV_MFC, 0, 2), 41928c2ecf20Sopenharmony_ci}; 41938c2ecf20Sopenharmony_ci 41948c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock mfc_gate_clks[] __initconst = { 41958c2ecf20Sopenharmony_ci /* ENABLE_ACLK_MFC */ 41968c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_MFC_1, "aclk_bts_mfc_1", "mout_aclk_mfc_400_user", 41978c2ecf20Sopenharmony_ci ENABLE_ACLK_MFC, 6, 0, 0), 41988c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_MFC_0, "aclk_bts_mfc_0", "mout_aclk_mfc_400_user", 41998c2ecf20Sopenharmony_ci ENABLE_ACLK_MFC, 5, 0, 0), 42008c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_MFCP, "aclk_ahb2apb_mfcp", "div_pclk_mfc", 42018c2ecf20Sopenharmony_ci ENABLE_ACLK_MFC, 4, CLK_IGNORE_UNUSED, 0), 42028c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_MFCX, "aclk_xiu_mfcx", "mout_aclk_mfc_400_user", 42038c2ecf20Sopenharmony_ci ENABLE_ACLK_MFC, 3, CLK_IGNORE_UNUSED, 0), 42048c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MFCNP_100, "aclk_mfcnp_100", "div_pclk_mfc", 42058c2ecf20Sopenharmony_ci ENABLE_ACLK_MFC, 2, CLK_IGNORE_UNUSED, 0), 42068c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MFCND_400, "aclk_mfcnd_400", "mout_aclk_mfc_400_user", 42078c2ecf20Sopenharmony_ci ENABLE_ACLK_MFC, 1, CLK_IGNORE_UNUSED, 0), 42088c2ecf20Sopenharmony_ci GATE(CLK_ACLK_MFC, "aclk_mfc", "mout_aclk_mfc_400_user", 42098c2ecf20Sopenharmony_ci ENABLE_ACLK_MFC, 0, 0, 0), 42108c2ecf20Sopenharmony_ci 42118c2ecf20Sopenharmony_ci /* ENABLE_ACLK_MFC_SECURE_SMMU_MFC */ 42128c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_MFC_1, "aclk_smmu_mfc_1", "mout_aclk_mfc_400_user", 42138c2ecf20Sopenharmony_ci ENABLE_ACLK_MFC_SECURE_SMMU_MFC, 42148c2ecf20Sopenharmony_ci 1, CLK_IGNORE_UNUSED, 0), 42158c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_MFC_0, "aclk_smmu_mfc_0", "mout_aclk_mfc_400_user", 42168c2ecf20Sopenharmony_ci ENABLE_ACLK_MFC_SECURE_SMMU_MFC, 42178c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 42188c2ecf20Sopenharmony_ci 42198c2ecf20Sopenharmony_ci /* ENABLE_PCLK_MFC */ 42208c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_MFC_1, "pclk_bts_mfc_1", "div_pclk_mfc", 42218c2ecf20Sopenharmony_ci ENABLE_PCLK_MFC, 4, 0, 0), 42228c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_MFC_0, "pclk_bts_mfc_0", "div_pclk_mfc", 42238c2ecf20Sopenharmony_ci ENABLE_PCLK_MFC, 3, 0, 0), 42248c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_MFC, "pclk_pmu_mfc", "div_pclk_mfc", 42258c2ecf20Sopenharmony_ci ENABLE_PCLK_MFC, 2, CLK_IGNORE_UNUSED, 0), 42268c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_MFC, "pclk_sysreg_mfc", "div_pclk_mfc", 42278c2ecf20Sopenharmony_ci ENABLE_PCLK_MFC, 1, CLK_IGNORE_UNUSED, 0), 42288c2ecf20Sopenharmony_ci GATE(CLK_PCLK_MFC, "pclk_mfc", "div_pclk_mfc", 42298c2ecf20Sopenharmony_ci ENABLE_PCLK_MFC, 4, CLK_IGNORE_UNUSED, 0), 42308c2ecf20Sopenharmony_ci 42318c2ecf20Sopenharmony_ci /* ENABLE_PCLK_MFC_SECURE_SMMU_MFC */ 42328c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_MFC_1, "pclk_smmu_mfc_1", "div_pclk_mfc", 42338c2ecf20Sopenharmony_ci ENABLE_PCLK_MFC_SECURE_SMMU_MFC, 42348c2ecf20Sopenharmony_ci 1, CLK_IGNORE_UNUSED, 0), 42358c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_MFC_0, "pclk_smmu_mfc_0", "div_pclk_mfc", 42368c2ecf20Sopenharmony_ci ENABLE_PCLK_MFC_SECURE_SMMU_MFC, 42378c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 42388c2ecf20Sopenharmony_ci}; 42398c2ecf20Sopenharmony_ci 42408c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info mfc_cmu_info __initconst = { 42418c2ecf20Sopenharmony_ci .mux_clks = mfc_mux_clks, 42428c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(mfc_mux_clks), 42438c2ecf20Sopenharmony_ci .div_clks = mfc_div_clks, 42448c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(mfc_div_clks), 42458c2ecf20Sopenharmony_ci .gate_clks = mfc_gate_clks, 42468c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(mfc_gate_clks), 42478c2ecf20Sopenharmony_ci .nr_clk_ids = MFC_NR_CLK, 42488c2ecf20Sopenharmony_ci .clk_regs = mfc_clk_regs, 42498c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(mfc_clk_regs), 42508c2ecf20Sopenharmony_ci .suspend_regs = mfc_suspend_regs, 42518c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(mfc_suspend_regs), 42528c2ecf20Sopenharmony_ci .clk_name = "aclk_mfc_400", 42538c2ecf20Sopenharmony_ci}; 42548c2ecf20Sopenharmony_ci 42558c2ecf20Sopenharmony_ci/* 42568c2ecf20Sopenharmony_ci * Register offset definitions for CMU_HEVC 42578c2ecf20Sopenharmony_ci */ 42588c2ecf20Sopenharmony_ci#define MUX_SEL_HEVC 0x0200 42598c2ecf20Sopenharmony_ci#define MUX_ENABLE_HEVC 0x0300 42608c2ecf20Sopenharmony_ci#define MUX_STAT_HEVC 0x0400 42618c2ecf20Sopenharmony_ci#define DIV_HEVC 0x0600 42628c2ecf20Sopenharmony_ci#define DIV_STAT_HEVC 0x0700 42638c2ecf20Sopenharmony_ci#define ENABLE_ACLK_HEVC 0x0800 42648c2ecf20Sopenharmony_ci#define ENABLE_ACLK_HEVC_SECURE_SMMU_HEVC 0x0804 42658c2ecf20Sopenharmony_ci#define ENABLE_PCLK_HEVC 0x0900 42668c2ecf20Sopenharmony_ci#define ENABLE_PCLK_HEVC_SECURE_SMMU_HEVC 0x0904 42678c2ecf20Sopenharmony_ci#define ENABLE_IP_HEVC0 0x0b00 42688c2ecf20Sopenharmony_ci#define ENABLE_IP_HEVC1 0x0b04 42698c2ecf20Sopenharmony_ci#define ENABLE_IP_HEVC_SECURE_SMMU_HEVC 0x0b08 42708c2ecf20Sopenharmony_ci 42718c2ecf20Sopenharmony_cistatic const unsigned long hevc_clk_regs[] __initconst = { 42728c2ecf20Sopenharmony_ci MUX_SEL_HEVC, 42738c2ecf20Sopenharmony_ci MUX_ENABLE_HEVC, 42748c2ecf20Sopenharmony_ci DIV_HEVC, 42758c2ecf20Sopenharmony_ci ENABLE_ACLK_HEVC, 42768c2ecf20Sopenharmony_ci ENABLE_ACLK_HEVC_SECURE_SMMU_HEVC, 42778c2ecf20Sopenharmony_ci ENABLE_PCLK_HEVC, 42788c2ecf20Sopenharmony_ci ENABLE_PCLK_HEVC_SECURE_SMMU_HEVC, 42798c2ecf20Sopenharmony_ci ENABLE_IP_HEVC0, 42808c2ecf20Sopenharmony_ci ENABLE_IP_HEVC1, 42818c2ecf20Sopenharmony_ci ENABLE_IP_HEVC_SECURE_SMMU_HEVC, 42828c2ecf20Sopenharmony_ci}; 42838c2ecf20Sopenharmony_ci 42848c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump hevc_suspend_regs[] = { 42858c2ecf20Sopenharmony_ci { MUX_SEL_HEVC, 0 }, 42868c2ecf20Sopenharmony_ci}; 42878c2ecf20Sopenharmony_ci 42888c2ecf20Sopenharmony_ciPNAME(mout_aclk_hevc_400_user_p) = { "oscclk", "aclk_hevc_400", }; 42898c2ecf20Sopenharmony_ci 42908c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock hevc_mux_clks[] __initconst = { 42918c2ecf20Sopenharmony_ci /* MUX_SEL_HEVC */ 42928c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_HEVC_400_USER, "mout_aclk_hevc_400_user", 42938c2ecf20Sopenharmony_ci mout_aclk_hevc_400_user_p, MUX_SEL_HEVC, 0, 0), 42948c2ecf20Sopenharmony_ci}; 42958c2ecf20Sopenharmony_ci 42968c2ecf20Sopenharmony_cistatic const struct samsung_div_clock hevc_div_clks[] __initconst = { 42978c2ecf20Sopenharmony_ci /* DIV_HEVC */ 42988c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_HEVC, "div_pclk_hevc", "mout_aclk_hevc_400_user", 42998c2ecf20Sopenharmony_ci DIV_HEVC, 0, 2), 43008c2ecf20Sopenharmony_ci}; 43018c2ecf20Sopenharmony_ci 43028c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock hevc_gate_clks[] __initconst = { 43038c2ecf20Sopenharmony_ci /* ENABLE_ACLK_HEVC */ 43048c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_HEVC_1, "aclk_bts_hevc_1", "mout_aclk_hevc_400_user", 43058c2ecf20Sopenharmony_ci ENABLE_ACLK_HEVC, 6, 0, 0), 43068c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_HEVC_0, "aclk_bts_hevc_0", "mout_aclk_hevc_400_user", 43078c2ecf20Sopenharmony_ci ENABLE_ACLK_HEVC, 5, 0, 0), 43088c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_HEVCP, "aclk_ahb2apb_hevcp", "div_pclk_hevc", 43098c2ecf20Sopenharmony_ci ENABLE_ACLK_HEVC, 4, CLK_IGNORE_UNUSED, 0), 43108c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_HEVCX, "aclk_xiu_hevcx", "mout_aclk_hevc_400_user", 43118c2ecf20Sopenharmony_ci ENABLE_ACLK_HEVC, 3, CLK_IGNORE_UNUSED, 0), 43128c2ecf20Sopenharmony_ci GATE(CLK_ACLK_HEVCNP_100, "aclk_hevcnp_100", "div_pclk_hevc", 43138c2ecf20Sopenharmony_ci ENABLE_ACLK_HEVC, 2, CLK_IGNORE_UNUSED, 0), 43148c2ecf20Sopenharmony_ci GATE(CLK_ACLK_HEVCND_400, "aclk_hevcnd_400", "mout_aclk_hevc_400_user", 43158c2ecf20Sopenharmony_ci ENABLE_ACLK_HEVC, 1, CLK_IGNORE_UNUSED, 0), 43168c2ecf20Sopenharmony_ci GATE(CLK_ACLK_HEVC, "aclk_hevc", "mout_aclk_hevc_400_user", 43178c2ecf20Sopenharmony_ci ENABLE_ACLK_HEVC, 0, 0, 0), 43188c2ecf20Sopenharmony_ci 43198c2ecf20Sopenharmony_ci /* ENABLE_ACLK_HEVC_SECURE_SMMU_HEVC */ 43208c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_HEVC_1, "aclk_smmu_hevc_1", 43218c2ecf20Sopenharmony_ci "mout_aclk_hevc_400_user", 43228c2ecf20Sopenharmony_ci ENABLE_ACLK_HEVC_SECURE_SMMU_HEVC, 43238c2ecf20Sopenharmony_ci 1, CLK_IGNORE_UNUSED, 0), 43248c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_HEVC_0, "aclk_smmu_hevc_0", 43258c2ecf20Sopenharmony_ci "mout_aclk_hevc_400_user", 43268c2ecf20Sopenharmony_ci ENABLE_ACLK_HEVC_SECURE_SMMU_HEVC, 43278c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 43288c2ecf20Sopenharmony_ci 43298c2ecf20Sopenharmony_ci /* ENABLE_PCLK_HEVC */ 43308c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_HEVC_1, "pclk_bts_hevc_1", "div_pclk_hevc", 43318c2ecf20Sopenharmony_ci ENABLE_PCLK_HEVC, 4, 0, 0), 43328c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_HEVC_0, "pclk_bts_hevc_0", "div_pclk_hevc", 43338c2ecf20Sopenharmony_ci ENABLE_PCLK_HEVC, 3, 0, 0), 43348c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_HEVC, "pclk_pmu_hevc", "div_pclk_hevc", 43358c2ecf20Sopenharmony_ci ENABLE_PCLK_HEVC, 2, CLK_IGNORE_UNUSED, 0), 43368c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_HEVC, "pclk_sysreg_hevc", "div_pclk_hevc", 43378c2ecf20Sopenharmony_ci ENABLE_PCLK_HEVC, 1, CLK_IGNORE_UNUSED, 0), 43388c2ecf20Sopenharmony_ci GATE(CLK_PCLK_HEVC, "pclk_hevc", "div_pclk_hevc", 43398c2ecf20Sopenharmony_ci ENABLE_PCLK_HEVC, 4, CLK_IGNORE_UNUSED, 0), 43408c2ecf20Sopenharmony_ci 43418c2ecf20Sopenharmony_ci /* ENABLE_PCLK_HEVC_SECURE_SMMU_HEVC */ 43428c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_HEVC_1, "pclk_smmu_hevc_1", "div_pclk_hevc", 43438c2ecf20Sopenharmony_ci ENABLE_PCLK_HEVC_SECURE_SMMU_HEVC, 43448c2ecf20Sopenharmony_ci 1, CLK_IGNORE_UNUSED, 0), 43458c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_HEVC_0, "pclk_smmu_hevc_0", "div_pclk_hevc", 43468c2ecf20Sopenharmony_ci ENABLE_PCLK_HEVC_SECURE_SMMU_HEVC, 43478c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 43488c2ecf20Sopenharmony_ci}; 43498c2ecf20Sopenharmony_ci 43508c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info hevc_cmu_info __initconst = { 43518c2ecf20Sopenharmony_ci .mux_clks = hevc_mux_clks, 43528c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(hevc_mux_clks), 43538c2ecf20Sopenharmony_ci .div_clks = hevc_div_clks, 43548c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(hevc_div_clks), 43558c2ecf20Sopenharmony_ci .gate_clks = hevc_gate_clks, 43568c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(hevc_gate_clks), 43578c2ecf20Sopenharmony_ci .nr_clk_ids = HEVC_NR_CLK, 43588c2ecf20Sopenharmony_ci .clk_regs = hevc_clk_regs, 43598c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(hevc_clk_regs), 43608c2ecf20Sopenharmony_ci .suspend_regs = hevc_suspend_regs, 43618c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(hevc_suspend_regs), 43628c2ecf20Sopenharmony_ci .clk_name = "aclk_hevc_400", 43638c2ecf20Sopenharmony_ci}; 43648c2ecf20Sopenharmony_ci 43658c2ecf20Sopenharmony_ci/* 43668c2ecf20Sopenharmony_ci * Register offset definitions for CMU_ISP 43678c2ecf20Sopenharmony_ci */ 43688c2ecf20Sopenharmony_ci#define MUX_SEL_ISP 0x0200 43698c2ecf20Sopenharmony_ci#define MUX_ENABLE_ISP 0x0300 43708c2ecf20Sopenharmony_ci#define MUX_STAT_ISP 0x0400 43718c2ecf20Sopenharmony_ci#define DIV_ISP 0x0600 43728c2ecf20Sopenharmony_ci#define DIV_STAT_ISP 0x0700 43738c2ecf20Sopenharmony_ci#define ENABLE_ACLK_ISP0 0x0800 43748c2ecf20Sopenharmony_ci#define ENABLE_ACLK_ISP1 0x0804 43758c2ecf20Sopenharmony_ci#define ENABLE_ACLK_ISP2 0x0808 43768c2ecf20Sopenharmony_ci#define ENABLE_PCLK_ISP 0x0900 43778c2ecf20Sopenharmony_ci#define ENABLE_SCLK_ISP 0x0a00 43788c2ecf20Sopenharmony_ci#define ENABLE_IP_ISP0 0x0b00 43798c2ecf20Sopenharmony_ci#define ENABLE_IP_ISP1 0x0b04 43808c2ecf20Sopenharmony_ci#define ENABLE_IP_ISP2 0x0b08 43818c2ecf20Sopenharmony_ci#define ENABLE_IP_ISP3 0x0b0c 43828c2ecf20Sopenharmony_ci 43838c2ecf20Sopenharmony_cistatic const unsigned long isp_clk_regs[] __initconst = { 43848c2ecf20Sopenharmony_ci MUX_SEL_ISP, 43858c2ecf20Sopenharmony_ci MUX_ENABLE_ISP, 43868c2ecf20Sopenharmony_ci DIV_ISP, 43878c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP0, 43888c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP1, 43898c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP2, 43908c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 43918c2ecf20Sopenharmony_ci ENABLE_SCLK_ISP, 43928c2ecf20Sopenharmony_ci ENABLE_IP_ISP0, 43938c2ecf20Sopenharmony_ci ENABLE_IP_ISP1, 43948c2ecf20Sopenharmony_ci ENABLE_IP_ISP2, 43958c2ecf20Sopenharmony_ci ENABLE_IP_ISP3, 43968c2ecf20Sopenharmony_ci}; 43978c2ecf20Sopenharmony_ci 43988c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump isp_suspend_regs[] = { 43998c2ecf20Sopenharmony_ci { MUX_SEL_ISP, 0 }, 44008c2ecf20Sopenharmony_ci}; 44018c2ecf20Sopenharmony_ci 44028c2ecf20Sopenharmony_ciPNAME(mout_aclk_isp_dis_400_user_p) = { "oscclk", "aclk_isp_dis_400", }; 44038c2ecf20Sopenharmony_ciPNAME(mout_aclk_isp_400_user_p) = { "oscclk", "aclk_isp_400", }; 44048c2ecf20Sopenharmony_ci 44058c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock isp_mux_clks[] __initconst = { 44068c2ecf20Sopenharmony_ci /* MUX_SEL_ISP */ 44078c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_ISP_DIS_400_USER, "mout_aclk_isp_dis_400_user", 44088c2ecf20Sopenharmony_ci mout_aclk_isp_dis_400_user_p, MUX_SEL_ISP, 4, 0), 44098c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_ISP_400_USER, "mout_aclk_isp_400_user", 44108c2ecf20Sopenharmony_ci mout_aclk_isp_400_user_p, MUX_SEL_ISP, 0, 0), 44118c2ecf20Sopenharmony_ci}; 44128c2ecf20Sopenharmony_ci 44138c2ecf20Sopenharmony_cistatic const struct samsung_div_clock isp_div_clks[] __initconst = { 44148c2ecf20Sopenharmony_ci /* DIV_ISP */ 44158c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_ISP_DIS, "div_pclk_isp_dis", 44168c2ecf20Sopenharmony_ci "mout_aclk_isp_dis_400_user", DIV_ISP, 12, 3), 44178c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_ISP, "div_pclk_isp", "mout_aclk_isp_400_user", 44188c2ecf20Sopenharmony_ci DIV_ISP, 8, 3), 44198c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_ISP_D_200, "div_aclk_isp_d_200", 44208c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", DIV_ISP, 4, 3), 44218c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_ISP_C_200, "div_aclk_isp_c_200", 44228c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", DIV_ISP, 0, 3), 44238c2ecf20Sopenharmony_ci}; 44248c2ecf20Sopenharmony_ci 44258c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock isp_gate_clks[] __initconst = { 44268c2ecf20Sopenharmony_ci /* ENABLE_ACLK_ISP0 */ 44278c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ISP_D_GLUE, "aclk_isp_d_glue", "mout_aclk_isp_400_user", 44288c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP0, 6, CLK_IGNORE_UNUSED, 0), 44298c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SCALERP, "aclk_scalerp", "mout_aclk_isp_400_user", 44308c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP0, 5, 0, 0), 44318c2ecf20Sopenharmony_ci GATE(CLK_ACLK_3DNR, "aclk_3dnr", "mout_aclk_isp_400_user", 44328c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP0, 4, 0, 0), 44338c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DIS, "aclk_dis", "mout_aclk_isp_dis_400_user", 44348c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP0, 3, 0, 0), 44358c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SCALERC, "aclk_scalerc", "mout_aclk_isp_400_user", 44368c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP0, 2, 0, 0), 44378c2ecf20Sopenharmony_ci GATE(CLK_ACLK_DRC, "aclk_drc", "mout_aclk_isp_400_user", 44388c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP0, 1, 0, 0), 44398c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ISP, "aclk_isp", "mout_aclk_isp_400_user", 44408c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP0, 0, 0, 0), 44418c2ecf20Sopenharmony_ci 44428c2ecf20Sopenharmony_ci /* ENABLE_ACLK_ISP1 */ 44438c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_SCALERP, "aclk_axius_scalerp", 44448c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_ACLK_ISP1, 44458c2ecf20Sopenharmony_ci 17, CLK_IGNORE_UNUSED, 0), 44468c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_SCALERC, "aclk_axius_scalerc", 44478c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_ACLK_ISP1, 44488c2ecf20Sopenharmony_ci 16, CLK_IGNORE_UNUSED, 0), 44498c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_DRC, "aclk_axius_drc", 44508c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_ACLK_ISP1, 44518c2ecf20Sopenharmony_ci 15, CLK_IGNORE_UNUSED, 0), 44528c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAHBM_ISP2P, "aclk_asyncahbm_isp2p", 44538c2ecf20Sopenharmony_ci "div_pclk_isp", ENABLE_ACLK_ISP1, 44548c2ecf20Sopenharmony_ci 14, CLK_IGNORE_UNUSED, 0), 44558c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAHBM_ISP1P, "aclk_asyncahbm_isp1p", 44568c2ecf20Sopenharmony_ci "div_pclk_isp", ENABLE_ACLK_ISP1, 44578c2ecf20Sopenharmony_ci 13, CLK_IGNORE_UNUSED, 0), 44588c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_DIS1, "aclk_asyncaxis_dis1", 44598c2ecf20Sopenharmony_ci "mout_aclk_isp_dis_400_user", ENABLE_ACLK_ISP1, 44608c2ecf20Sopenharmony_ci 12, CLK_IGNORE_UNUSED, 0), 44618c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_DIS0, "aclk_asyncaxis_dis0", 44628c2ecf20Sopenharmony_ci "mout_aclk_isp_dis_400_user", ENABLE_ACLK_ISP1, 44638c2ecf20Sopenharmony_ci 11, CLK_IGNORE_UNUSED, 0), 44648c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_DIS1, "aclk_asyncaxim_dis1", 44658c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_ACLK_ISP1, 44668c2ecf20Sopenharmony_ci 10, CLK_IGNORE_UNUSED, 0), 44678c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_DIS0, "aclk_asyncaxim_dis0", 44688c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_ACLK_ISP1, 44698c2ecf20Sopenharmony_ci 9, CLK_IGNORE_UNUSED, 0), 44708c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_ISP2P, "aclk_asyncaxim_isp2p", 44718c2ecf20Sopenharmony_ci "div_aclk_isp_d_200", ENABLE_ACLK_ISP1, 44728c2ecf20Sopenharmony_ci 8, CLK_IGNORE_UNUSED, 0), 44738c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_ISP1P, "aclk_asyncaxim_isp1p", 44748c2ecf20Sopenharmony_ci "div_aclk_isp_c_200", ENABLE_ACLK_ISP1, 44758c2ecf20Sopenharmony_ci 7, CLK_IGNORE_UNUSED, 0), 44768c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_ISP2P, "aclk_ahb2apb_isp2p", "div_pclk_isp", 44778c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP1, 6, CLK_IGNORE_UNUSED, 0), 44788c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_ISP1P, "aclk_ahb2apb_isp1p", "div_pclk_isp", 44798c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP1, 5, CLK_IGNORE_UNUSED, 0), 44808c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXI2APB_ISP2P, "aclk_axi2apb_isp2p", 44818c2ecf20Sopenharmony_ci "div_aclk_isp_d_200", ENABLE_ACLK_ISP1, 44828c2ecf20Sopenharmony_ci 4, CLK_IGNORE_UNUSED, 0), 44838c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXI2APB_ISP1P, "aclk_axi2apb_isp1p", 44848c2ecf20Sopenharmony_ci "div_aclk_isp_c_200", ENABLE_ACLK_ISP1, 44858c2ecf20Sopenharmony_ci 3, CLK_IGNORE_UNUSED, 0), 44868c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_ISPEX1, "aclk_xiu_ispex1", "mout_aclk_isp_400_user", 44878c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP1, 2, CLK_IGNORE_UNUSED, 0), 44888c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_ISPEX0, "aclk_xiu_ispex0", "mout_aclk_isp_400_user", 44898c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP1, 1, CLK_IGNORE_UNUSED, 0), 44908c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ISPND_400, "aclk_ispnd_400", "mout_aclk_isp_400_user", 44918c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP1, 1, CLK_IGNORE_UNUSED, 0), 44928c2ecf20Sopenharmony_ci 44938c2ecf20Sopenharmony_ci /* ENABLE_ACLK_ISP2 */ 44948c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_SCALERP, "aclk_smmu_scalerp", 44958c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_ACLK_ISP2, 44968c2ecf20Sopenharmony_ci 13, CLK_IGNORE_UNUSED, 0), 44978c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_3DNR, "aclk_smmu_3dnr", "mout_aclk_isp_400_user", 44988c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP2, 12, CLK_IGNORE_UNUSED, 0), 44998c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_DIS1, "aclk_smmu_dis1", "mout_aclk_isp_400_user", 45008c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP2, 11, CLK_IGNORE_UNUSED, 0), 45018c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_DIS0, "aclk_smmu_dis0", "mout_aclk_isp_400_user", 45028c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP2, 10, CLK_IGNORE_UNUSED, 0), 45038c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_SCALERC, "aclk_smmu_scalerc", 45048c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_ACLK_ISP2, 45058c2ecf20Sopenharmony_ci 9, CLK_IGNORE_UNUSED, 0), 45068c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_DRC, "aclk_smmu_drc", "mout_aclk_isp_400_user", 45078c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP2, 8, CLK_IGNORE_UNUSED, 0), 45088c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_ISP, "aclk_smmu_isp", "mout_aclk_isp_400_user", 45098c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP2, 7, CLK_IGNORE_UNUSED, 0), 45108c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_SCALERP, "aclk_bts_scalerp", 45118c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_ACLK_ISP2, 45128c2ecf20Sopenharmony_ci 6, CLK_IGNORE_UNUSED, 0), 45138c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_3DR, "aclk_bts_3dnr", "mout_aclk_isp_400_user", 45148c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP2, 5, CLK_IGNORE_UNUSED, 0), 45158c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DIS1, "aclk_bts_dis1", "mout_aclk_isp_400_user", 45168c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP2, 4, CLK_IGNORE_UNUSED, 0), 45178c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DIS0, "aclk_bts_dis0", "mout_aclk_isp_400_user", 45188c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP2, 3, CLK_IGNORE_UNUSED, 0), 45198c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_SCALERC, "aclk_bts_scalerc", 45208c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_ACLK_ISP2, 45218c2ecf20Sopenharmony_ci 2, CLK_IGNORE_UNUSED, 0), 45228c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_DRC, "aclk_bts_drc", "mout_aclk_isp_400_user", 45238c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP2, 1, CLK_IGNORE_UNUSED, 0), 45248c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_ISP, "aclk_bts_isp", "mout_aclk_isp_400_user", 45258c2ecf20Sopenharmony_ci ENABLE_ACLK_ISP2, 0, CLK_IGNORE_UNUSED, 0), 45268c2ecf20Sopenharmony_ci 45278c2ecf20Sopenharmony_ci /* ENABLE_PCLK_ISP */ 45288c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_SCALERP, "pclk_smmu_scalerp", "div_aclk_isp_d_200", 45298c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 25, CLK_IGNORE_UNUSED, 0), 45308c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_3DNR, "pclk_smmu_3dnr", "div_aclk_isp_d_200", 45318c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 24, CLK_IGNORE_UNUSED, 0), 45328c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_DIS1, "pclk_smmu_dis1", "div_aclk_isp_d_200", 45338c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 23, CLK_IGNORE_UNUSED, 0), 45348c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_DIS0, "pclk_smmu_dis0", "div_aclk_isp_d_200", 45358c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 22, CLK_IGNORE_UNUSED, 0), 45368c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_SCALERC, "pclk_smmu_scalerc", "div_aclk_isp_c_200", 45378c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 21, CLK_IGNORE_UNUSED, 0), 45388c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_DRC, "pclk_smmu_drc", "div_aclk_isp_c_200", 45398c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 20, CLK_IGNORE_UNUSED, 0), 45408c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_ISP, "pclk_smmu_isp", "div_aclk_isp_c_200", 45418c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 19, CLK_IGNORE_UNUSED, 0), 45428c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_SCALERP, "pclk_bts_scalerp", "div_pclk_isp", 45438c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 18, CLK_IGNORE_UNUSED, 0), 45448c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_3DNR, "pclk_bts_3dnr", "div_pclk_isp", 45458c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 17, CLK_IGNORE_UNUSED, 0), 45468c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DIS1, "pclk_bts_dis1", "div_pclk_isp", 45478c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 16, CLK_IGNORE_UNUSED, 0), 45488c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DIS0, "pclk_bts_dis0", "div_pclk_isp", 45498c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 15, CLK_IGNORE_UNUSED, 0), 45508c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_SCALERC, "pclk_bts_scalerc", "div_pclk_isp", 45518c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 14, CLK_IGNORE_UNUSED, 0), 45528c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_DRC, "pclk_bts_drc", "div_pclk_isp", 45538c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 13, CLK_IGNORE_UNUSED, 0), 45548c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_ISP, "pclk_bts_isp", "div_pclk_isp", 45558c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 12, CLK_IGNORE_UNUSED, 0), 45568c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_DIS1, "pclk_asyncaxi_dis1", "div_pclk_isp", 45578c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 11, CLK_IGNORE_UNUSED, 0), 45588c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_DIS0, "pclk_asyncaxi_dis0", "div_pclk_isp", 45598c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 10, CLK_IGNORE_UNUSED, 0), 45608c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_ISP, "pclk_pmu_isp", "div_pclk_isp", 45618c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 9, CLK_IGNORE_UNUSED, 0), 45628c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_ISP, "pclk_sysreg_isp", "div_pclk_isp", 45638c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 8, CLK_IGNORE_UNUSED, 0), 45648c2ecf20Sopenharmony_ci GATE(CLK_PCLK_CMU_ISP_LOCAL, "pclk_cmu_isp_local", 45658c2ecf20Sopenharmony_ci "div_aclk_isp_c_200", ENABLE_PCLK_ISP, 45668c2ecf20Sopenharmony_ci 7, CLK_IGNORE_UNUSED, 0), 45678c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SCALERP, "pclk_scalerp", "div_aclk_isp_d_200", 45688c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 6, CLK_IGNORE_UNUSED, 0), 45698c2ecf20Sopenharmony_ci GATE(CLK_PCLK_3DNR, "pclk_3dnr", "div_aclk_isp_d_200", 45708c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 5, CLK_IGNORE_UNUSED, 0), 45718c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DIS_CORE, "pclk_dis_core", "div_pclk_isp_dis", 45728c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 4, CLK_IGNORE_UNUSED, 0), 45738c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DIS, "pclk_dis", "div_aclk_isp_d_200", 45748c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 3, CLK_IGNORE_UNUSED, 0), 45758c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SCALERC, "pclk_scalerc", "div_aclk_isp_c_200", 45768c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 2, CLK_IGNORE_UNUSED, 0), 45778c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DRC, "pclk_drc", "div_aclk_isp_c_200", 45788c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 1, CLK_IGNORE_UNUSED, 0), 45798c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP, "pclk_isp", "div_aclk_isp_c_200", 45808c2ecf20Sopenharmony_ci ENABLE_PCLK_ISP, 0, CLK_IGNORE_UNUSED, 0), 45818c2ecf20Sopenharmony_ci 45828c2ecf20Sopenharmony_ci /* ENABLE_SCLK_ISP */ 45838c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCS_DIS, "sclk_pixelasyncs_dis", 45848c2ecf20Sopenharmony_ci "mout_aclk_isp_dis_400_user", ENABLE_SCLK_ISP, 45858c2ecf20Sopenharmony_ci 5, CLK_IGNORE_UNUSED, 0), 45868c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCM_DIS, "sclk_pixelasyncm_dis", 45878c2ecf20Sopenharmony_ci "mout_aclk_isp_dis_400_user", ENABLE_SCLK_ISP, 45888c2ecf20Sopenharmony_ci 4, CLK_IGNORE_UNUSED, 0), 45898c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCS_SCALERP, "sclk_pixelasyncs_scalerp", 45908c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_SCLK_ISP, 45918c2ecf20Sopenharmony_ci 3, CLK_IGNORE_UNUSED, 0), 45928c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCM_ISPD, "sclk_pixelasyncm_ispd", 45938c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_SCLK_ISP, 45948c2ecf20Sopenharmony_ci 2, CLK_IGNORE_UNUSED, 0), 45958c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCS_ISPC, "sclk_pixelasyncs_ispc", 45968c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_SCLK_ISP, 45978c2ecf20Sopenharmony_ci 1, CLK_IGNORE_UNUSED, 0), 45988c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCM_ISPC, "sclk_pixelasyncm_ispc", 45998c2ecf20Sopenharmony_ci "mout_aclk_isp_400_user", ENABLE_SCLK_ISP, 46008c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 46018c2ecf20Sopenharmony_ci}; 46028c2ecf20Sopenharmony_ci 46038c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info isp_cmu_info __initconst = { 46048c2ecf20Sopenharmony_ci .mux_clks = isp_mux_clks, 46058c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(isp_mux_clks), 46068c2ecf20Sopenharmony_ci .div_clks = isp_div_clks, 46078c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(isp_div_clks), 46088c2ecf20Sopenharmony_ci .gate_clks = isp_gate_clks, 46098c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(isp_gate_clks), 46108c2ecf20Sopenharmony_ci .nr_clk_ids = ISP_NR_CLK, 46118c2ecf20Sopenharmony_ci .clk_regs = isp_clk_regs, 46128c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(isp_clk_regs), 46138c2ecf20Sopenharmony_ci .suspend_regs = isp_suspend_regs, 46148c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(isp_suspend_regs), 46158c2ecf20Sopenharmony_ci .clk_name = "aclk_isp_400", 46168c2ecf20Sopenharmony_ci}; 46178c2ecf20Sopenharmony_ci 46188c2ecf20Sopenharmony_ci/* 46198c2ecf20Sopenharmony_ci * Register offset definitions for CMU_CAM0 46208c2ecf20Sopenharmony_ci */ 46218c2ecf20Sopenharmony_ci#define MUX_SEL_CAM00 0x0200 46228c2ecf20Sopenharmony_ci#define MUX_SEL_CAM01 0x0204 46238c2ecf20Sopenharmony_ci#define MUX_SEL_CAM02 0x0208 46248c2ecf20Sopenharmony_ci#define MUX_SEL_CAM03 0x020c 46258c2ecf20Sopenharmony_ci#define MUX_SEL_CAM04 0x0210 46268c2ecf20Sopenharmony_ci#define MUX_ENABLE_CAM00 0x0300 46278c2ecf20Sopenharmony_ci#define MUX_ENABLE_CAM01 0x0304 46288c2ecf20Sopenharmony_ci#define MUX_ENABLE_CAM02 0x0308 46298c2ecf20Sopenharmony_ci#define MUX_ENABLE_CAM03 0x030c 46308c2ecf20Sopenharmony_ci#define MUX_ENABLE_CAM04 0x0310 46318c2ecf20Sopenharmony_ci#define MUX_STAT_CAM00 0x0400 46328c2ecf20Sopenharmony_ci#define MUX_STAT_CAM01 0x0404 46338c2ecf20Sopenharmony_ci#define MUX_STAT_CAM02 0x0408 46348c2ecf20Sopenharmony_ci#define MUX_STAT_CAM03 0x040c 46358c2ecf20Sopenharmony_ci#define MUX_STAT_CAM04 0x0410 46368c2ecf20Sopenharmony_ci#define MUX_IGNORE_CAM01 0x0504 46378c2ecf20Sopenharmony_ci#define DIV_CAM00 0x0600 46388c2ecf20Sopenharmony_ci#define DIV_CAM01 0x0604 46398c2ecf20Sopenharmony_ci#define DIV_CAM02 0x0608 46408c2ecf20Sopenharmony_ci#define DIV_CAM03 0x060c 46418c2ecf20Sopenharmony_ci#define DIV_STAT_CAM00 0x0700 46428c2ecf20Sopenharmony_ci#define DIV_STAT_CAM01 0x0704 46438c2ecf20Sopenharmony_ci#define DIV_STAT_CAM02 0x0708 46448c2ecf20Sopenharmony_ci#define DIV_STAT_CAM03 0x070c 46458c2ecf20Sopenharmony_ci#define ENABLE_ACLK_CAM00 0X0800 46468c2ecf20Sopenharmony_ci#define ENABLE_ACLK_CAM01 0X0804 46478c2ecf20Sopenharmony_ci#define ENABLE_ACLK_CAM02 0X0808 46488c2ecf20Sopenharmony_ci#define ENABLE_PCLK_CAM0 0X0900 46498c2ecf20Sopenharmony_ci#define ENABLE_SCLK_CAM0 0X0a00 46508c2ecf20Sopenharmony_ci#define ENABLE_IP_CAM00 0X0b00 46518c2ecf20Sopenharmony_ci#define ENABLE_IP_CAM01 0X0b04 46528c2ecf20Sopenharmony_ci#define ENABLE_IP_CAM02 0X0b08 46538c2ecf20Sopenharmony_ci#define ENABLE_IP_CAM03 0X0b0C 46548c2ecf20Sopenharmony_ci 46558c2ecf20Sopenharmony_cistatic const unsigned long cam0_clk_regs[] __initconst = { 46568c2ecf20Sopenharmony_ci MUX_SEL_CAM00, 46578c2ecf20Sopenharmony_ci MUX_SEL_CAM01, 46588c2ecf20Sopenharmony_ci MUX_SEL_CAM02, 46598c2ecf20Sopenharmony_ci MUX_SEL_CAM03, 46608c2ecf20Sopenharmony_ci MUX_SEL_CAM04, 46618c2ecf20Sopenharmony_ci MUX_ENABLE_CAM00, 46628c2ecf20Sopenharmony_ci MUX_ENABLE_CAM01, 46638c2ecf20Sopenharmony_ci MUX_ENABLE_CAM02, 46648c2ecf20Sopenharmony_ci MUX_ENABLE_CAM03, 46658c2ecf20Sopenharmony_ci MUX_ENABLE_CAM04, 46668c2ecf20Sopenharmony_ci MUX_IGNORE_CAM01, 46678c2ecf20Sopenharmony_ci DIV_CAM00, 46688c2ecf20Sopenharmony_ci DIV_CAM01, 46698c2ecf20Sopenharmony_ci DIV_CAM02, 46708c2ecf20Sopenharmony_ci DIV_CAM03, 46718c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM00, 46728c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 46738c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM02, 46748c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 46758c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM0, 46768c2ecf20Sopenharmony_ci ENABLE_IP_CAM00, 46778c2ecf20Sopenharmony_ci ENABLE_IP_CAM01, 46788c2ecf20Sopenharmony_ci ENABLE_IP_CAM02, 46798c2ecf20Sopenharmony_ci ENABLE_IP_CAM03, 46808c2ecf20Sopenharmony_ci}; 46818c2ecf20Sopenharmony_ci 46828c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump cam0_suspend_regs[] = { 46838c2ecf20Sopenharmony_ci { MUX_SEL_CAM00, 0 }, 46848c2ecf20Sopenharmony_ci { MUX_SEL_CAM01, 0 }, 46858c2ecf20Sopenharmony_ci { MUX_SEL_CAM02, 0 }, 46868c2ecf20Sopenharmony_ci { MUX_SEL_CAM03, 0 }, 46878c2ecf20Sopenharmony_ci { MUX_SEL_CAM04, 0 }, 46888c2ecf20Sopenharmony_ci}; 46898c2ecf20Sopenharmony_ci 46908c2ecf20Sopenharmony_ciPNAME(mout_aclk_cam0_333_user_p) = { "oscclk", "aclk_cam0_333", }; 46918c2ecf20Sopenharmony_ciPNAME(mout_aclk_cam0_400_user_p) = { "oscclk", "aclk_cam0_400", }; 46928c2ecf20Sopenharmony_ciPNAME(mout_aclk_cam0_552_user_p) = { "oscclk", "aclk_cam0_552", }; 46938c2ecf20Sopenharmony_ci 46948c2ecf20Sopenharmony_ciPNAME(mout_phyclk_rxbyteclkhs0_s4_user_p) = { "oscclk", 46958c2ecf20Sopenharmony_ci "phyclk_rxbyteclkhs0_s4_phy", }; 46968c2ecf20Sopenharmony_ciPNAME(mout_phyclk_rxbyteclkhs0_s2a_user_p) = { "oscclk", 46978c2ecf20Sopenharmony_ci "phyclk_rxbyteclkhs0_s2a_phy", }; 46988c2ecf20Sopenharmony_ci 46998c2ecf20Sopenharmony_ciPNAME(mout_aclk_lite_d_b_p) = { "mout_aclk_lite_d_a", 47008c2ecf20Sopenharmony_ci "mout_aclk_cam0_333_user", }; 47018c2ecf20Sopenharmony_ciPNAME(mout_aclk_lite_d_a_p) = { "mout_aclk_cam0_552_user", 47028c2ecf20Sopenharmony_ci "mout_aclk_cam0_400_user", }; 47038c2ecf20Sopenharmony_ciPNAME(mout_aclk_lite_b_b_p) = { "mout_aclk_lite_b_a", 47048c2ecf20Sopenharmony_ci "mout_aclk_cam0_333_user", }; 47058c2ecf20Sopenharmony_ciPNAME(mout_aclk_lite_b_a_p) = { "mout_aclk_cam0_552_user", 47068c2ecf20Sopenharmony_ci "mout_aclk_cam0_400_user", }; 47078c2ecf20Sopenharmony_ciPNAME(mout_aclk_lite_a_b_p) = { "mout_aclk_lite_a_a", 47088c2ecf20Sopenharmony_ci "mout_aclk_cam0_333_user", }; 47098c2ecf20Sopenharmony_ciPNAME(mout_aclk_lite_a_a_p) = { "mout_aclk_cam0_552_user", 47108c2ecf20Sopenharmony_ci "mout_aclk_cam0_400_user", }; 47118c2ecf20Sopenharmony_ciPNAME(mout_aclk_cam0_400_p) = { "mout_aclk_cam0_400_user", 47128c2ecf20Sopenharmony_ci "mout_aclk_cam0_333_user", }; 47138c2ecf20Sopenharmony_ci 47148c2ecf20Sopenharmony_ciPNAME(mout_aclk_csis1_b_p) = { "mout_aclk_csis1_a", 47158c2ecf20Sopenharmony_ci "mout_aclk_cam0_333_user" }; 47168c2ecf20Sopenharmony_ciPNAME(mout_aclk_csis1_a_p) = { "mout_aclk_cam0_552_user", 47178c2ecf20Sopenharmony_ci "mout_aclk_cam0_400_user", }; 47188c2ecf20Sopenharmony_ciPNAME(mout_aclk_csis0_b_p) = { "mout_aclk_csis0_a", 47198c2ecf20Sopenharmony_ci "mout_aclk_cam0_333_user", }; 47208c2ecf20Sopenharmony_ciPNAME(mout_aclk_csis0_a_p) = { "mout_aclk_cam0_552_user", 47218c2ecf20Sopenharmony_ci "mout_aclk-cam0_400_user", }; 47228c2ecf20Sopenharmony_ciPNAME(mout_aclk_3aa1_b_p) = { "mout_aclk_3aa1_a", 47238c2ecf20Sopenharmony_ci "mout_aclk_cam0_333_user", }; 47248c2ecf20Sopenharmony_ciPNAME(mout_aclk_3aa1_a_p) = { "mout_aclk_cam0_552_user", 47258c2ecf20Sopenharmony_ci "mout_aclk_cam0_400_user", }; 47268c2ecf20Sopenharmony_ciPNAME(mout_aclk_3aa0_b_p) = { "mout_aclk_3aa0_a", 47278c2ecf20Sopenharmony_ci "mout_aclk_cam0_333_user", }; 47288c2ecf20Sopenharmony_ciPNAME(mout_aclk_3aa0_a_p) = { "mout_aclk_cam0_552_user", 47298c2ecf20Sopenharmony_ci "mout_aclk_cam0_400_user", }; 47308c2ecf20Sopenharmony_ci 47318c2ecf20Sopenharmony_ciPNAME(mout_sclk_lite_freecnt_c_p) = { "mout_sclk_lite_freecnt_b", 47328c2ecf20Sopenharmony_ci "div_pclk_lite_d", }; 47338c2ecf20Sopenharmony_ciPNAME(mout_sclk_lite_freecnt_b_p) = { "mout_sclk_lite_freecnt_a", 47348c2ecf20Sopenharmony_ci "div_pclk_pixelasync_lite_c", }; 47358c2ecf20Sopenharmony_ciPNAME(mout_sclk_lite_freecnt_a_p) = { "div_pclk_lite_a", 47368c2ecf20Sopenharmony_ci "div_pclk_lite_b", }; 47378c2ecf20Sopenharmony_ciPNAME(mout_sclk_pixelasync_lite_c_b_p) = { "mout_sclk_pixelasync_lite_c_a", 47388c2ecf20Sopenharmony_ci "mout_aclk_cam0_333_user", }; 47398c2ecf20Sopenharmony_ciPNAME(mout_sclk_pixelasync_lite_c_a_p) = { "mout_aclk_cam0_552_user", 47408c2ecf20Sopenharmony_ci "mout_aclk_cam0_400_user", }; 47418c2ecf20Sopenharmony_ciPNAME(mout_sclk_pixelasync_lite_c_init_b_p) = { 47428c2ecf20Sopenharmony_ci "mout_sclk_pixelasync_lite_c_init_a", 47438c2ecf20Sopenharmony_ci "mout_aclk_cam0_400_user", }; 47448c2ecf20Sopenharmony_ciPNAME(mout_sclk_pixelasync_lite_c_init_a_p) = { 47458c2ecf20Sopenharmony_ci "mout_aclk_cam0_552_user", 47468c2ecf20Sopenharmony_ci "mout_aclk_cam0_400_user", }; 47478c2ecf20Sopenharmony_ci 47488c2ecf20Sopenharmony_cistatic const struct samsung_fixed_rate_clock cam0_fixed_clks[] __initconst = { 47498c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_RXBYTEECLKHS0_S4_PHY, "phyclk_rxbyteclkhs0_s4_phy", 47508c2ecf20Sopenharmony_ci NULL, 0, 100000000), 47518c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_RXBYTEECLKHS0_S2A_PHY, "phyclk_rxbyteclkhs0_s2a_phy", 47528c2ecf20Sopenharmony_ci NULL, 0, 100000000), 47538c2ecf20Sopenharmony_ci}; 47548c2ecf20Sopenharmony_ci 47558c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock cam0_mux_clks[] __initconst = { 47568c2ecf20Sopenharmony_ci /* MUX_SEL_CAM00 */ 47578c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CAM0_333_USER, "mout_aclk_cam0_333_user", 47588c2ecf20Sopenharmony_ci mout_aclk_cam0_333_user_p, MUX_SEL_CAM00, 8, 1), 47598c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CAM0_400_USER, "mout_aclk_cam0_400_user", 47608c2ecf20Sopenharmony_ci mout_aclk_cam0_400_user_p, MUX_SEL_CAM00, 4, 1), 47618c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CAM0_552_USER, "mout_aclk_cam0_552_user", 47628c2ecf20Sopenharmony_ci mout_aclk_cam0_552_user_p, MUX_SEL_CAM00, 0, 1), 47638c2ecf20Sopenharmony_ci 47648c2ecf20Sopenharmony_ci /* MUX_SEL_CAM01 */ 47658c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_RXBYTECLKHS0_S4_USER, 47668c2ecf20Sopenharmony_ci "mout_phyclk_rxbyteclkhs0_s4_user", 47678c2ecf20Sopenharmony_ci mout_phyclk_rxbyteclkhs0_s4_user_p, 47688c2ecf20Sopenharmony_ci MUX_SEL_CAM01, 4, 1), 47698c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_RXBYTECLKHS0_S2A_USER, 47708c2ecf20Sopenharmony_ci "mout_phyclk_rxbyteclkhs0_s2a_user", 47718c2ecf20Sopenharmony_ci mout_phyclk_rxbyteclkhs0_s2a_user_p, 47728c2ecf20Sopenharmony_ci MUX_SEL_CAM01, 0, 1), 47738c2ecf20Sopenharmony_ci 47748c2ecf20Sopenharmony_ci /* MUX_SEL_CAM02 */ 47758c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_LITE_D_B, "mout_aclk_lite_d_b", mout_aclk_lite_d_b_p, 47768c2ecf20Sopenharmony_ci MUX_SEL_CAM02, 24, 1), 47778c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_LITE_D_A, "mout_aclk_lite_d_a", mout_aclk_lite_d_a_p, 47788c2ecf20Sopenharmony_ci MUX_SEL_CAM02, 20, 1), 47798c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_LITE_B_B, "mout_aclk_lite_b_b", mout_aclk_lite_b_b_p, 47808c2ecf20Sopenharmony_ci MUX_SEL_CAM02, 16, 1), 47818c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_LITE_B_A, "mout_aclk_lite_b_a", mout_aclk_lite_b_a_p, 47828c2ecf20Sopenharmony_ci MUX_SEL_CAM02, 12, 1), 47838c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_LITE_A_B, "mout_aclk_lite_a_b", mout_aclk_lite_a_b_p, 47848c2ecf20Sopenharmony_ci MUX_SEL_CAM02, 8, 1), 47858c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_LITE_A_A, "mout_aclk_lite_a_a", mout_aclk_lite_a_a_p, 47868c2ecf20Sopenharmony_ci MUX_SEL_CAM02, 4, 1), 47878c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CAM0_400, "mout_aclk_cam0_400", mout_aclk_cam0_400_p, 47888c2ecf20Sopenharmony_ci MUX_SEL_CAM02, 0, 1), 47898c2ecf20Sopenharmony_ci 47908c2ecf20Sopenharmony_ci /* MUX_SEL_CAM03 */ 47918c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CSIS1_B, "mout_aclk_csis1_b", mout_aclk_csis1_b_p, 47928c2ecf20Sopenharmony_ci MUX_SEL_CAM03, 28, 1), 47938c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CSIS1_A, "mout_aclk_csis1_a", mout_aclk_csis1_a_p, 47948c2ecf20Sopenharmony_ci MUX_SEL_CAM03, 24, 1), 47958c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CSIS0_B, "mout_aclk_csis0_b", mout_aclk_csis0_b_p, 47968c2ecf20Sopenharmony_ci MUX_SEL_CAM03, 20, 1), 47978c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CSIS0_A, "mout_aclk_csis0_a", mout_aclk_csis0_a_p, 47988c2ecf20Sopenharmony_ci MUX_SEL_CAM03, 16, 1), 47998c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_3AA1_B, "mout_aclk_3aa1_b", mout_aclk_3aa1_b_p, 48008c2ecf20Sopenharmony_ci MUX_SEL_CAM03, 12, 1), 48018c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_3AA1_A, "mout_aclk_3aa1_a", mout_aclk_3aa1_a_p, 48028c2ecf20Sopenharmony_ci MUX_SEL_CAM03, 8, 1), 48038c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_3AA0_B, "mout_aclk_3aa0_b", mout_aclk_3aa0_b_p, 48048c2ecf20Sopenharmony_ci MUX_SEL_CAM03, 4, 1), 48058c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_3AA0_A, "mout_aclk_3aa0_a", mout_aclk_3aa0_a_p, 48068c2ecf20Sopenharmony_ci MUX_SEL_CAM03, 0, 1), 48078c2ecf20Sopenharmony_ci 48088c2ecf20Sopenharmony_ci /* MUX_SEL_CAM04 */ 48098c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_LITE_FREECNT_C, "mout_sclk_lite_freecnt_c", 48108c2ecf20Sopenharmony_ci mout_sclk_lite_freecnt_c_p, MUX_SEL_CAM04, 24, 1), 48118c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_LITE_FREECNT_B, "mout_sclk_lite_freecnt_b", 48128c2ecf20Sopenharmony_ci mout_sclk_lite_freecnt_b_p, MUX_SEL_CAM04, 20, 1), 48138c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_LITE_FREECNT_A, "mout_sclk_lite_freecnt_a", 48148c2ecf20Sopenharmony_ci mout_sclk_lite_freecnt_a_p, MUX_SEL_CAM04, 16, 1), 48158c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_PIXELASYNC_LITE_C_B, "mout_sclk_pixelasync_lite_c_b", 48168c2ecf20Sopenharmony_ci mout_sclk_pixelasync_lite_c_b_p, MUX_SEL_CAM04, 12, 1), 48178c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_PIXELASYNC_LITE_C_A, "mout_sclk_pixelasync_lite_c_a", 48188c2ecf20Sopenharmony_ci mout_sclk_pixelasync_lite_c_a_p, MUX_SEL_CAM04, 8, 1), 48198c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_PIXELASYNC_LITE_C_INIT_B, 48208c2ecf20Sopenharmony_ci "mout_sclk_pixelasync_lite_c_init_b", 48218c2ecf20Sopenharmony_ci mout_sclk_pixelasync_lite_c_init_b_p, 48228c2ecf20Sopenharmony_ci MUX_SEL_CAM04, 4, 1), 48238c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_PIXELASYNC_LITE_C_INIT_A, 48248c2ecf20Sopenharmony_ci "mout_sclk_pixelasync_lite_c_init_a", 48258c2ecf20Sopenharmony_ci mout_sclk_pixelasync_lite_c_init_a_p, 48268c2ecf20Sopenharmony_ci MUX_SEL_CAM04, 0, 1), 48278c2ecf20Sopenharmony_ci}; 48288c2ecf20Sopenharmony_ci 48298c2ecf20Sopenharmony_cistatic const struct samsung_div_clock cam0_div_clks[] __initconst = { 48308c2ecf20Sopenharmony_ci /* DIV_CAM00 */ 48318c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_CAM0_50, "div_pclk_cam0_50", "div_aclk_cam0_200", 48328c2ecf20Sopenharmony_ci DIV_CAM00, 8, 2), 48338c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CAM0_200, "div_aclk_cam0_200", "mout_aclk_cam0_400", 48348c2ecf20Sopenharmony_ci DIV_CAM00, 4, 3), 48358c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CAM0_BUS_400, "div_aclk_cam0_bus_400", 48368c2ecf20Sopenharmony_ci "mout_aclk_cam0_400", DIV_CAM00, 0, 3), 48378c2ecf20Sopenharmony_ci 48388c2ecf20Sopenharmony_ci /* DIV_CAM01 */ 48398c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_LITE_D, "div_pclk_lite_d", "div_aclk_lite_d", 48408c2ecf20Sopenharmony_ci DIV_CAM01, 20, 2), 48418c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_LITE_D, "div_aclk_lite_d", "mout_aclk_lite_d_b", 48428c2ecf20Sopenharmony_ci DIV_CAM01, 16, 3), 48438c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_LITE_B, "div_pclk_lite_b", "div_aclk_lite_b", 48448c2ecf20Sopenharmony_ci DIV_CAM01, 12, 2), 48458c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_LITE_B, "div_aclk_lite_b", "mout_aclk_lite_b_b", 48468c2ecf20Sopenharmony_ci DIV_CAM01, 8, 3), 48478c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_LITE_A, "div_pclk_lite_a", "div_aclk_lite_a", 48488c2ecf20Sopenharmony_ci DIV_CAM01, 4, 2), 48498c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_LITE_A, "div_aclk_lite_a", "mout_aclk_lite_a_b", 48508c2ecf20Sopenharmony_ci DIV_CAM01, 0, 3), 48518c2ecf20Sopenharmony_ci 48528c2ecf20Sopenharmony_ci /* DIV_CAM02 */ 48538c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CSIS1, "div_aclk_csis1", "mout_aclk_csis1_b", 48548c2ecf20Sopenharmony_ci DIV_CAM02, 20, 3), 48558c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CSIS0, "div_aclk_csis0", "mout_aclk_csis0_b", 48568c2ecf20Sopenharmony_ci DIV_CAM02, 16, 3), 48578c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_3AA1, "div_pclk_3aa1", "div_aclk_3aa1", 48588c2ecf20Sopenharmony_ci DIV_CAM02, 12, 2), 48598c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_3AA1, "div_aclk_3aa1", "mout_aclk_3aa1_b", 48608c2ecf20Sopenharmony_ci DIV_CAM02, 8, 3), 48618c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_3AA0, "div_pclk_3aa0", "div_aclk_3aa0", 48628c2ecf20Sopenharmony_ci DIV_CAM02, 4, 2), 48638c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_3AA0, "div_aclk_3aa0", "mout_aclk_3aa0_b", 48648c2ecf20Sopenharmony_ci DIV_CAM02, 0, 3), 48658c2ecf20Sopenharmony_ci 48668c2ecf20Sopenharmony_ci /* DIV_CAM03 */ 48678c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_PIXELASYNC_LITE_C, "div_sclk_pixelasync_lite_c", 48688c2ecf20Sopenharmony_ci "mout_sclk_pixelasync_lite_c_b", DIV_CAM03, 8, 3), 48698c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_PIXELASYNC_LITE_C, "div_pclk_pixelasync_lite_c", 48708c2ecf20Sopenharmony_ci "div_sclk_pixelasync_lite_c_init", DIV_CAM03, 4, 2), 48718c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_PIXELASYNC_LITE_C_INIT, 48728c2ecf20Sopenharmony_ci "div_sclk_pixelasync_lite_c_init", 48738c2ecf20Sopenharmony_ci "mout_sclk_pixelasync_lite_c_init_b", DIV_CAM03, 0, 3), 48748c2ecf20Sopenharmony_ci}; 48758c2ecf20Sopenharmony_ci 48768c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock cam0_gate_clks[] __initconst = { 48778c2ecf20Sopenharmony_ci /* ENABLE_ACLK_CAM00 */ 48788c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CSIS1, "aclk_csis1", "div_aclk_csis1", ENABLE_ACLK_CAM00, 48798c2ecf20Sopenharmony_ci 6, 0, 0), 48808c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CSIS0, "aclk_csis0", "div_aclk_csis0", ENABLE_ACLK_CAM00, 48818c2ecf20Sopenharmony_ci 5, 0, 0), 48828c2ecf20Sopenharmony_ci GATE(CLK_ACLK_3AA1, "aclk_3aa1", "div_aclk_3aa1", ENABLE_ACLK_CAM00, 48838c2ecf20Sopenharmony_ci 4, 0, 0), 48848c2ecf20Sopenharmony_ci GATE(CLK_ACLK_3AA0, "aclk_3aa0", "div_aclk_3aa0", ENABLE_ACLK_CAM00, 48858c2ecf20Sopenharmony_ci 3, 0, 0), 48868c2ecf20Sopenharmony_ci GATE(CLK_ACLK_LITE_D, "aclk_lite_d", "div_aclk_lite_d", 48878c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM00, 2, 0, 0), 48888c2ecf20Sopenharmony_ci GATE(CLK_ACLK_LITE_B, "aclk_lite_b", "div_aclk_lite_b", 48898c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM00, 1, 0, 0), 48908c2ecf20Sopenharmony_ci GATE(CLK_ACLK_LITE_A, "aclk_lite_a", "div_aclk_lite_a", 48918c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM00, 0, 0, 0), 48928c2ecf20Sopenharmony_ci 48938c2ecf20Sopenharmony_ci /* ENABLE_ACLK_CAM01 */ 48948c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHBSYNCDN, "aclk_ahbsyncdn", "div_aclk_cam0_200", 48958c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 31, CLK_IGNORE_UNUSED, 0), 48968c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_LITE_D, "aclk_axius_lite_d", "div_aclk_cam0_bus_400", 48978c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 30, CLK_IGNORE_UNUSED, 0), 48988c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_LITE_B, "aclk_axius_lite_b", "div_aclk_cam0_bus_400", 48998c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 29, CLK_IGNORE_UNUSED, 0), 49008c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_LITE_A, "aclk_axius_lite_a", "div_aclk_cam0_bus_400", 49018c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 28, CLK_IGNORE_UNUSED, 0), 49028c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBM_3AA1, "aclk_asyncapbm_3aa1", "div_pclk_3aa1", 49038c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 27, CLK_IGNORE_UNUSED, 0), 49048c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBS_3AA1, "aclk_asyncapbs_3aa1", "div_aclk_3aa1", 49058c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 26, CLK_IGNORE_UNUSED, 0), 49068c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBM_3AA0, "aclk_asyncapbm_3aa0", "div_pclk_3aa0", 49078c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 25, CLK_IGNORE_UNUSED, 0), 49088c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBS_3AA0, "aclk_asyncapbs_3aa0", "div_aclk_3aa0", 49098c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 24, CLK_IGNORE_UNUSED, 0), 49108c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBM_LITE_D, "aclk_asyncapbm_lite_d", 49118c2ecf20Sopenharmony_ci "div_pclk_lite_d", ENABLE_ACLK_CAM01, 49128c2ecf20Sopenharmony_ci 23, CLK_IGNORE_UNUSED, 0), 49138c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBS_LITE_D, "aclk_asyncapbs_lite_d", 49148c2ecf20Sopenharmony_ci "div_aclk_cam0_200", ENABLE_ACLK_CAM01, 49158c2ecf20Sopenharmony_ci 22, CLK_IGNORE_UNUSED, 0), 49168c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBM_LITE_B, "aclk_asyncapbm_lite_b", 49178c2ecf20Sopenharmony_ci "div_pclk_lite_b", ENABLE_ACLK_CAM01, 49188c2ecf20Sopenharmony_ci 21, CLK_IGNORE_UNUSED, 0), 49198c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBS_LITE_B, "aclk_asyncapbs_lite_b", 49208c2ecf20Sopenharmony_ci "div_aclk_cam0_200", ENABLE_ACLK_CAM01, 49218c2ecf20Sopenharmony_ci 20, CLK_IGNORE_UNUSED, 0), 49228c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBM_LITE_A, "aclk_asyncapbm_lite_a", 49238c2ecf20Sopenharmony_ci "div_pclk_lite_a", ENABLE_ACLK_CAM01, 49248c2ecf20Sopenharmony_ci 19, CLK_IGNORE_UNUSED, 0), 49258c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBS_LITE_A, "aclk_asyncapbs_lite_a", 49268c2ecf20Sopenharmony_ci "div_aclk_cam0_200", ENABLE_ACLK_CAM01, 49278c2ecf20Sopenharmony_ci 18, CLK_IGNORE_UNUSED, 0), 49288c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_ISP0P, "aclk_asyncaxim_isp0p", 49298c2ecf20Sopenharmony_ci "div_aclk_cam0_200", ENABLE_ACLK_CAM01, 49308c2ecf20Sopenharmony_ci 17, CLK_IGNORE_UNUSED, 0), 49318c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_3AA1, "aclk_asyncaxim_3aa1", 49328c2ecf20Sopenharmony_ci "div_aclk_cam0_bus_400", ENABLE_ACLK_CAM01, 49338c2ecf20Sopenharmony_ci 16, CLK_IGNORE_UNUSED, 0), 49348c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_3AA1, "aclk_asyncaxis_3aa1", 49358c2ecf20Sopenharmony_ci "div_aclk_3aa1", ENABLE_ACLK_CAM01, 49368c2ecf20Sopenharmony_ci 15, CLK_IGNORE_UNUSED, 0), 49378c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_3AA0, "aclk_asyncaxim_3aa0", 49388c2ecf20Sopenharmony_ci "div_aclk_cam0_bus_400", ENABLE_ACLK_CAM01, 49398c2ecf20Sopenharmony_ci 14, CLK_IGNORE_UNUSED, 0), 49408c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_3AA0, "aclk_asyncaxis_3aa0", 49418c2ecf20Sopenharmony_ci "div_aclk_3aa0", ENABLE_ACLK_CAM01, 49428c2ecf20Sopenharmony_ci 13, CLK_IGNORE_UNUSED, 0), 49438c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_LITE_D, "aclk_asyncaxim_lite_d", 49448c2ecf20Sopenharmony_ci "div_aclk_cam0_bus_400", ENABLE_ACLK_CAM01, 49458c2ecf20Sopenharmony_ci 12, CLK_IGNORE_UNUSED, 0), 49468c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_LITE_D, "aclk_asyncaxis_lite_d", 49478c2ecf20Sopenharmony_ci "div_aclk_lite_d", ENABLE_ACLK_CAM01, 49488c2ecf20Sopenharmony_ci 11, CLK_IGNORE_UNUSED, 0), 49498c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_LITE_B, "aclk_asyncaxim_lite_b", 49508c2ecf20Sopenharmony_ci "div_aclk_cam0_bus_400", ENABLE_ACLK_CAM01, 49518c2ecf20Sopenharmony_ci 10, CLK_IGNORE_UNUSED, 0), 49528c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_LITE_B, "aclk_asyncaxis_lite_b", 49538c2ecf20Sopenharmony_ci "div_aclk_lite_b", ENABLE_ACLK_CAM01, 49548c2ecf20Sopenharmony_ci 9, CLK_IGNORE_UNUSED, 0), 49558c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_LITE_A, "aclk_asyncaxim_lite_a", 49568c2ecf20Sopenharmony_ci "div_aclk_cam0_bus_400", ENABLE_ACLK_CAM01, 49578c2ecf20Sopenharmony_ci 8, CLK_IGNORE_UNUSED, 0), 49588c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_LITE_A, "aclk_asyncaxis_lite_a", 49598c2ecf20Sopenharmony_ci "div_aclk_lite_a", ENABLE_ACLK_CAM01, 49608c2ecf20Sopenharmony_ci 7, CLK_IGNORE_UNUSED, 0), 49618c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_ISPSFRP, "aclk_ahb2apb_ispsfrp", 49628c2ecf20Sopenharmony_ci "div_pclk_cam0_50", ENABLE_ACLK_CAM01, 49638c2ecf20Sopenharmony_ci 6, CLK_IGNORE_UNUSED, 0), 49648c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXI2APB_ISP0P, "aclk_axi2apb_isp0p", "div_aclk_cam0_200", 49658c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 5, CLK_IGNORE_UNUSED, 0), 49668c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXI2AHB_ISP0P, "aclk_axi2ahb_isp0p", "div_aclk_cam0_200", 49678c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 4, CLK_IGNORE_UNUSED, 0), 49688c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_IS0X, "aclk_xiu_is0x", "div_aclk_cam0_200", 49698c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 3, CLK_IGNORE_UNUSED, 0), 49708c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_ISP0EX, "aclk_xiu_isp0ex", "div_aclk_cam0_bus_400", 49718c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 2, CLK_IGNORE_UNUSED, 0), 49728c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CAM0NP_276, "aclk_cam0np_276", "div_aclk_cam0_200", 49738c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 1, CLK_IGNORE_UNUSED, 0), 49748c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CAM0ND_400, "aclk_cam0nd_400", "div_aclk_cam0_bus_400", 49758c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM01, 0, CLK_IGNORE_UNUSED, 0), 49768c2ecf20Sopenharmony_ci 49778c2ecf20Sopenharmony_ci /* ENABLE_ACLK_CAM02 */ 49788c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_3AA1, "aclk_smmu_3aa1", "div_aclk_cam0_bus_400", 49798c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM02, 9, CLK_IGNORE_UNUSED, 0), 49808c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_3AA0, "aclk_smmu_3aa0", "div_aclk_cam0_bus_400", 49818c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM02, 8, CLK_IGNORE_UNUSED, 0), 49828c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_LITE_D, "aclk_smmu_lite_d", "div_aclk_cam0_bus_400", 49838c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM02, 7, CLK_IGNORE_UNUSED, 0), 49848c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_LITE_B, "aclk_smmu_lite_b", "div_aclk_cam0_bus_400", 49858c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM02, 6, CLK_IGNORE_UNUSED, 0), 49868c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_LITE_A, "aclk_smmu_lite_a", "div_aclk_cam0_bus_400", 49878c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM02, 5, CLK_IGNORE_UNUSED, 0), 49888c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_3AA1, "aclk_bts_3aa1", "div_aclk_cam0_bus_400", 49898c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM02, 4, CLK_IGNORE_UNUSED, 0), 49908c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_3AA0, "aclk_bts_3aa0", "div_aclk_cam0_bus_400", 49918c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM02, 3, CLK_IGNORE_UNUSED, 0), 49928c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_LITE_D, "aclk_bts_lite_d", "div_aclk_cam0_bus_400", 49938c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM02, 2, CLK_IGNORE_UNUSED, 0), 49948c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_LITE_B, "aclk_bts_lite_b", "div_aclk_cam0_bus_400", 49958c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM02, 1, CLK_IGNORE_UNUSED, 0), 49968c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_LITE_A, "aclk_bts_lite_a", "div_aclk_cam0_bus_400", 49978c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM02, 0, CLK_IGNORE_UNUSED, 0), 49988c2ecf20Sopenharmony_ci 49998c2ecf20Sopenharmony_ci /* ENABLE_PCLK_CAM0 */ 50008c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_3AA1, "pclk_smmu_3aa1", "div_aclk_cam0_200", 50018c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 25, CLK_IGNORE_UNUSED, 0), 50028c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_3AA0, "pclk_smmu_3aa0", "div_aclk_cam0_200", 50038c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 24, CLK_IGNORE_UNUSED, 0), 50048c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_LITE_D, "pclk_smmu_lite_d", "div_aclk_cam0_200", 50058c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 23, CLK_IGNORE_UNUSED, 0), 50068c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_LITE_B, "pclk_smmu_lite_b", "div_aclk_cam0_200", 50078c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 22, CLK_IGNORE_UNUSED, 0), 50088c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_LITE_A, "pclk_smmu_lite_a", "div_aclk_cam0_200", 50098c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 21, CLK_IGNORE_UNUSED, 0), 50108c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_3AA1, "pclk_bts_3aa1", "div_pclk_cam0_50", 50118c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 20, CLK_IGNORE_UNUSED, 0), 50128c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_3AA0, "pclk_bts_3aa0", "div_pclk_cam0_50", 50138c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 19, CLK_IGNORE_UNUSED, 0), 50148c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_LITE_D, "pclk_bts_lite_d", "div_pclk_cam0_50", 50158c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 18, CLK_IGNORE_UNUSED, 0), 50168c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_LITE_B, "pclk_bts_lite_b", "div_pclk_cam0_50", 50178c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 17, CLK_IGNORE_UNUSED, 0), 50188c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_LITE_A, "pclk_bts_lite_a", "div_pclk_cam0_50", 50198c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 16, CLK_IGNORE_UNUSED, 0), 50208c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_CAM1, "pclk_asyncaxi_cam1", "div_pclk_cam0_50", 50218c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 15, CLK_IGNORE_UNUSED, 0), 50228c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_3AA1, "pclk_asyncaxi_3aa1", "div_pclk_cam0_50", 50238c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 14, CLK_IGNORE_UNUSED, 0), 50248c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_3AA0, "pclk_asyncaxi_3aa0", "div_pclk_cam0_50", 50258c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 13, CLK_IGNORE_UNUSED, 0), 50268c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_LITE_D, "pclk_asyncaxi_lite_d", 50278c2ecf20Sopenharmony_ci "div_pclk_cam0_50", ENABLE_PCLK_CAM0, 50288c2ecf20Sopenharmony_ci 12, CLK_IGNORE_UNUSED, 0), 50298c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_LITE_B, "pclk_asyncaxi_lite_b", 50308c2ecf20Sopenharmony_ci "div_pclk_cam0_50", ENABLE_PCLK_CAM0, 50318c2ecf20Sopenharmony_ci 11, CLK_IGNORE_UNUSED, 0), 50328c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXI_LITE_A, "pclk_asyncaxi_lite_a", 50338c2ecf20Sopenharmony_ci "div_pclk_cam0_50", ENABLE_PCLK_CAM0, 50348c2ecf20Sopenharmony_ci 10, CLK_IGNORE_UNUSED, 0), 50358c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_CAM0, "pclk_pmu_cam0", "div_pclk_cam0_50", 50368c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 9, CLK_IGNORE_UNUSED, 0), 50378c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_CAM0, "pclk_sysreg_cam0", "div_pclk_cam0_50", 50388c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 8, CLK_IGNORE_UNUSED, 0), 50398c2ecf20Sopenharmony_ci GATE(CLK_PCLK_CMU_CAM0_LOCAL, "pclk_cmu_cam0_local", 50408c2ecf20Sopenharmony_ci "div_aclk_cam0_200", ENABLE_PCLK_CAM0, 50418c2ecf20Sopenharmony_ci 7, CLK_IGNORE_UNUSED, 0), 50428c2ecf20Sopenharmony_ci GATE(CLK_PCLK_CSIS1, "pclk_csis1", "div_aclk_cam0_200", 50438c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 6, CLK_IGNORE_UNUSED, 0), 50448c2ecf20Sopenharmony_ci GATE(CLK_PCLK_CSIS0, "pclk_csis0", "div_aclk_cam0_200", 50458c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 5, CLK_IGNORE_UNUSED, 0), 50468c2ecf20Sopenharmony_ci GATE(CLK_PCLK_3AA1, "pclk_3aa1", "div_pclk_3aa1", 50478c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 4, CLK_IGNORE_UNUSED, 0), 50488c2ecf20Sopenharmony_ci GATE(CLK_PCLK_3AA0, "pclk_3aa0", "div_pclk_3aa0", 50498c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 3, CLK_IGNORE_UNUSED, 0), 50508c2ecf20Sopenharmony_ci GATE(CLK_PCLK_LITE_D, "pclk_lite_d", "div_pclk_lite_d", 50518c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 2, CLK_IGNORE_UNUSED, 0), 50528c2ecf20Sopenharmony_ci GATE(CLK_PCLK_LITE_B, "pclk_lite_b", "div_pclk_lite_b", 50538c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 1, CLK_IGNORE_UNUSED, 0), 50548c2ecf20Sopenharmony_ci GATE(CLK_PCLK_LITE_A, "pclk_lite_a", "div_pclk_lite_a", 50558c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM0, 0, CLK_IGNORE_UNUSED, 0), 50568c2ecf20Sopenharmony_ci 50578c2ecf20Sopenharmony_ci /* ENABLE_SCLK_CAM0 */ 50588c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_RXBYTECLKHS0_S4, "phyclk_rxbyteclkhs0_s4", 50598c2ecf20Sopenharmony_ci "mout_phyclk_rxbyteclkhs0_s4_user", 50608c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM0, 8, 0, 0), 50618c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_RXBYTECLKHS0_S2A, "phyclk_rxbyteclkhs0_s2a", 50628c2ecf20Sopenharmony_ci "mout_phyclk_rxbyteclkhs0_s2a_user", 50638c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM0, 7, 0, 0), 50648c2ecf20Sopenharmony_ci GATE(CLK_SCLK_LITE_FREECNT, "sclk_lite_freecnt", 50658c2ecf20Sopenharmony_ci "mout_sclk_lite_freecnt_c", ENABLE_SCLK_CAM0, 6, 0, 0), 50668c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCM_3AA1, "sclk_pixelasycm_3aa1", 50678c2ecf20Sopenharmony_ci "div_aclk_3aa1", ENABLE_SCLK_CAM0, 5, 0, 0), 50688c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCM_3AA0, "sclk_pixelasycm_3aa0", 50698c2ecf20Sopenharmony_ci "div_aclk_3aa0", ENABLE_SCLK_CAM0, 4, 0, 0), 50708c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCS_3AA0, "sclk_pixelasycs_3aa0", 50718c2ecf20Sopenharmony_ci "div_aclk_3aa0", ENABLE_SCLK_CAM0, 3, 0, 0), 50728c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCM_LITE_C, "sclk_pixelasyncm_lite_c", 50738c2ecf20Sopenharmony_ci "div_sclk_pixelasync_lite_c", 50748c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM0, 2, 0, 0), 50758c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCM_LITE_C_INIT, "sclk_pixelasyncm_lite_c_init", 50768c2ecf20Sopenharmony_ci "div_sclk_pixelasync_lite_c_init", 50778c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM0, 1, 0, 0), 50788c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCS_LITE_C_INIT, "sclk_pixelasyncs_lite_c_init", 50798c2ecf20Sopenharmony_ci "div_sclk_pixelasync_lite_c", 50808c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM0, 0, 0, 0), 50818c2ecf20Sopenharmony_ci}; 50828c2ecf20Sopenharmony_ci 50838c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info cam0_cmu_info __initconst = { 50848c2ecf20Sopenharmony_ci .mux_clks = cam0_mux_clks, 50858c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(cam0_mux_clks), 50868c2ecf20Sopenharmony_ci .div_clks = cam0_div_clks, 50878c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(cam0_div_clks), 50888c2ecf20Sopenharmony_ci .gate_clks = cam0_gate_clks, 50898c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(cam0_gate_clks), 50908c2ecf20Sopenharmony_ci .fixed_clks = cam0_fixed_clks, 50918c2ecf20Sopenharmony_ci .nr_fixed_clks = ARRAY_SIZE(cam0_fixed_clks), 50928c2ecf20Sopenharmony_ci .nr_clk_ids = CAM0_NR_CLK, 50938c2ecf20Sopenharmony_ci .clk_regs = cam0_clk_regs, 50948c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(cam0_clk_regs), 50958c2ecf20Sopenharmony_ci .suspend_regs = cam0_suspend_regs, 50968c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(cam0_suspend_regs), 50978c2ecf20Sopenharmony_ci .clk_name = "aclk_cam0_400", 50988c2ecf20Sopenharmony_ci}; 50998c2ecf20Sopenharmony_ci 51008c2ecf20Sopenharmony_ci/* 51018c2ecf20Sopenharmony_ci * Register offset definitions for CMU_CAM1 51028c2ecf20Sopenharmony_ci */ 51038c2ecf20Sopenharmony_ci#define MUX_SEL_CAM10 0x0200 51048c2ecf20Sopenharmony_ci#define MUX_SEL_CAM11 0x0204 51058c2ecf20Sopenharmony_ci#define MUX_SEL_CAM12 0x0208 51068c2ecf20Sopenharmony_ci#define MUX_ENABLE_CAM10 0x0300 51078c2ecf20Sopenharmony_ci#define MUX_ENABLE_CAM11 0x0304 51088c2ecf20Sopenharmony_ci#define MUX_ENABLE_CAM12 0x0308 51098c2ecf20Sopenharmony_ci#define MUX_STAT_CAM10 0x0400 51108c2ecf20Sopenharmony_ci#define MUX_STAT_CAM11 0x0404 51118c2ecf20Sopenharmony_ci#define MUX_STAT_CAM12 0x0408 51128c2ecf20Sopenharmony_ci#define MUX_IGNORE_CAM11 0x0504 51138c2ecf20Sopenharmony_ci#define DIV_CAM10 0x0600 51148c2ecf20Sopenharmony_ci#define DIV_CAM11 0x0604 51158c2ecf20Sopenharmony_ci#define DIV_STAT_CAM10 0x0700 51168c2ecf20Sopenharmony_ci#define DIV_STAT_CAM11 0x0704 51178c2ecf20Sopenharmony_ci#define ENABLE_ACLK_CAM10 0X0800 51188c2ecf20Sopenharmony_ci#define ENABLE_ACLK_CAM11 0X0804 51198c2ecf20Sopenharmony_ci#define ENABLE_ACLK_CAM12 0X0808 51208c2ecf20Sopenharmony_ci#define ENABLE_PCLK_CAM1 0X0900 51218c2ecf20Sopenharmony_ci#define ENABLE_SCLK_CAM1 0X0a00 51228c2ecf20Sopenharmony_ci#define ENABLE_IP_CAM10 0X0b00 51238c2ecf20Sopenharmony_ci#define ENABLE_IP_CAM11 0X0b04 51248c2ecf20Sopenharmony_ci#define ENABLE_IP_CAM12 0X0b08 51258c2ecf20Sopenharmony_ci 51268c2ecf20Sopenharmony_cistatic const unsigned long cam1_clk_regs[] __initconst = { 51278c2ecf20Sopenharmony_ci MUX_SEL_CAM10, 51288c2ecf20Sopenharmony_ci MUX_SEL_CAM11, 51298c2ecf20Sopenharmony_ci MUX_SEL_CAM12, 51308c2ecf20Sopenharmony_ci MUX_ENABLE_CAM10, 51318c2ecf20Sopenharmony_ci MUX_ENABLE_CAM11, 51328c2ecf20Sopenharmony_ci MUX_ENABLE_CAM12, 51338c2ecf20Sopenharmony_ci MUX_IGNORE_CAM11, 51348c2ecf20Sopenharmony_ci DIV_CAM10, 51358c2ecf20Sopenharmony_ci DIV_CAM11, 51368c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM10, 51378c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 51388c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM12, 51398c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 51408c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 51418c2ecf20Sopenharmony_ci ENABLE_IP_CAM10, 51428c2ecf20Sopenharmony_ci ENABLE_IP_CAM11, 51438c2ecf20Sopenharmony_ci ENABLE_IP_CAM12, 51448c2ecf20Sopenharmony_ci}; 51458c2ecf20Sopenharmony_ci 51468c2ecf20Sopenharmony_cistatic const struct samsung_clk_reg_dump cam1_suspend_regs[] = { 51478c2ecf20Sopenharmony_ci { MUX_SEL_CAM10, 0 }, 51488c2ecf20Sopenharmony_ci { MUX_SEL_CAM11, 0 }, 51498c2ecf20Sopenharmony_ci { MUX_SEL_CAM12, 0 }, 51508c2ecf20Sopenharmony_ci}; 51518c2ecf20Sopenharmony_ci 51528c2ecf20Sopenharmony_ciPNAME(mout_sclk_isp_uart_user_p) = { "oscclk", "sclk_isp_uart_cam1", }; 51538c2ecf20Sopenharmony_ciPNAME(mout_sclk_isp_spi1_user_p) = { "oscclk", "sclk_isp_spi1_cam1", }; 51548c2ecf20Sopenharmony_ciPNAME(mout_sclk_isp_spi0_user_p) = { "oscclk", "sclk_isp_spi0_cam1", }; 51558c2ecf20Sopenharmony_ci 51568c2ecf20Sopenharmony_ciPNAME(mout_aclk_cam1_333_user_p) = { "oscclk", "aclk_cam1_333", }; 51578c2ecf20Sopenharmony_ciPNAME(mout_aclk_cam1_400_user_p) = { "oscclk", "aclk_cam1_400", }; 51588c2ecf20Sopenharmony_ciPNAME(mout_aclk_cam1_552_user_p) = { "oscclk", "aclk_cam1_552", }; 51598c2ecf20Sopenharmony_ci 51608c2ecf20Sopenharmony_ciPNAME(mout_phyclk_rxbyteclkhs0_s2b_user_p) = { "oscclk", 51618c2ecf20Sopenharmony_ci "phyclk_rxbyteclkhs0_s2b_phy", }; 51628c2ecf20Sopenharmony_ci 51638c2ecf20Sopenharmony_ciPNAME(mout_aclk_csis2_b_p) = { "mout_aclk_csis2_a", 51648c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", }; 51658c2ecf20Sopenharmony_ciPNAME(mout_aclk_csis2_a_p) = { "mout_aclk_cam1_552_user", 51668c2ecf20Sopenharmony_ci "mout_aclk_cam1_400_user", }; 51678c2ecf20Sopenharmony_ci 51688c2ecf20Sopenharmony_ciPNAME(mout_aclk_fd_b_p) = { "mout_aclk_fd_a", 51698c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", }; 51708c2ecf20Sopenharmony_ciPNAME(mout_aclk_fd_a_p) = { "mout_aclk_cam1_552_user", 51718c2ecf20Sopenharmony_ci "mout_aclk_cam1_400_user", }; 51728c2ecf20Sopenharmony_ci 51738c2ecf20Sopenharmony_ciPNAME(mout_aclk_lite_c_b_p) = { "mout_aclk_lite_c_a", 51748c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", }; 51758c2ecf20Sopenharmony_ciPNAME(mout_aclk_lite_c_a_p) = { "mout_aclk_cam1_552_user", 51768c2ecf20Sopenharmony_ci "mout_aclk_cam1_400_user", }; 51778c2ecf20Sopenharmony_ci 51788c2ecf20Sopenharmony_cistatic const struct samsung_fixed_rate_clock cam1_fixed_clks[] __initconst = { 51798c2ecf20Sopenharmony_ci FRATE(CLK_PHYCLK_RXBYTEECLKHS0_S2B, "phyclk_rxbyteclkhs0_s2b_phy", NULL, 51808c2ecf20Sopenharmony_ci 0, 100000000), 51818c2ecf20Sopenharmony_ci}; 51828c2ecf20Sopenharmony_ci 51838c2ecf20Sopenharmony_cistatic const struct samsung_mux_clock cam1_mux_clks[] __initconst = { 51848c2ecf20Sopenharmony_ci /* MUX_SEL_CAM10 */ 51858c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_ISP_UART_USER, "mout_sclk_isp_uart_user", 51868c2ecf20Sopenharmony_ci mout_sclk_isp_uart_user_p, MUX_SEL_CAM10, 20, 1), 51878c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_ISP_SPI1_USER, "mout_sclk_isp_spi1_user", 51888c2ecf20Sopenharmony_ci mout_sclk_isp_spi1_user_p, MUX_SEL_CAM10, 16, 1), 51898c2ecf20Sopenharmony_ci MUX(CLK_MOUT_SCLK_ISP_SPI0_USER, "mout_sclk_isp_spi0_user", 51908c2ecf20Sopenharmony_ci mout_sclk_isp_spi0_user_p, MUX_SEL_CAM10, 12, 1), 51918c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CAM1_333_USER, "mout_aclk_cam1_333_user", 51928c2ecf20Sopenharmony_ci mout_aclk_cam1_333_user_p, MUX_SEL_CAM10, 8, 1), 51938c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CAM1_400_USER, "mout_aclk_cam1_400_user", 51948c2ecf20Sopenharmony_ci mout_aclk_cam1_400_user_p, MUX_SEL_CAM10, 4, 1), 51958c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CAM1_552_USER, "mout_aclk_cam1_552_user", 51968c2ecf20Sopenharmony_ci mout_aclk_cam1_552_user_p, MUX_SEL_CAM10, 0, 1), 51978c2ecf20Sopenharmony_ci 51988c2ecf20Sopenharmony_ci /* MUX_SEL_CAM11 */ 51998c2ecf20Sopenharmony_ci MUX(CLK_MOUT_PHYCLK_RXBYTECLKHS0_S2B_USER, 52008c2ecf20Sopenharmony_ci "mout_phyclk_rxbyteclkhs0_s2b_user", 52018c2ecf20Sopenharmony_ci mout_phyclk_rxbyteclkhs0_s2b_user_p, 52028c2ecf20Sopenharmony_ci MUX_SEL_CAM11, 0, 1), 52038c2ecf20Sopenharmony_ci 52048c2ecf20Sopenharmony_ci /* MUX_SEL_CAM12 */ 52058c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CSIS2_B, "mout_aclk_csis2_b", mout_aclk_csis2_b_p, 52068c2ecf20Sopenharmony_ci MUX_SEL_CAM12, 20, 1), 52078c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_CSIS2_A, "mout_aclk_csis2_a", mout_aclk_csis2_a_p, 52088c2ecf20Sopenharmony_ci MUX_SEL_CAM12, 16, 1), 52098c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_FD_B, "mout_aclk_fd_b", mout_aclk_fd_b_p, 52108c2ecf20Sopenharmony_ci MUX_SEL_CAM12, 12, 1), 52118c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_FD_A, "mout_aclk_fd_a", mout_aclk_fd_a_p, 52128c2ecf20Sopenharmony_ci MUX_SEL_CAM12, 8, 1), 52138c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_LITE_C_B, "mout_aclk_lite_c_b", mout_aclk_lite_c_b_p, 52148c2ecf20Sopenharmony_ci MUX_SEL_CAM12, 4, 1), 52158c2ecf20Sopenharmony_ci MUX(CLK_MOUT_ACLK_LITE_C_A, "mout_aclk_lite_c_a", mout_aclk_lite_c_a_p, 52168c2ecf20Sopenharmony_ci MUX_SEL_CAM12, 0, 1), 52178c2ecf20Sopenharmony_ci}; 52188c2ecf20Sopenharmony_ci 52198c2ecf20Sopenharmony_cistatic const struct samsung_div_clock cam1_div_clks[] __initconst = { 52208c2ecf20Sopenharmony_ci /* DIV_CAM10 */ 52218c2ecf20Sopenharmony_ci DIV(CLK_DIV_SCLK_ISP_MPWM, "div_sclk_isp_mpwm", 52228c2ecf20Sopenharmony_ci "div_pclk_cam1_83", DIV_CAM10, 16, 2), 52238c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_CAM1_83, "div_pclk_cam1_83", 52248c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", DIV_CAM10, 12, 2), 52258c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_CAM1_166, "div_pclk_cam1_166", 52268c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", DIV_CAM10, 8, 2), 52278c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_DBG_CAM1, "div_pclk_dbg_cam1", 52288c2ecf20Sopenharmony_ci "mout_aclk_cam1_552_user", DIV_CAM10, 4, 3), 52298c2ecf20Sopenharmony_ci DIV(CLK_DIV_ATCLK_CAM1, "div_atclk_cam1", "mout_aclk_cam1_552_user", 52308c2ecf20Sopenharmony_ci DIV_CAM10, 0, 3), 52318c2ecf20Sopenharmony_ci 52328c2ecf20Sopenharmony_ci /* DIV_CAM11 */ 52338c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_CSIS2, "div_aclk_csis2", "mout_aclk_csis2_b", 52348c2ecf20Sopenharmony_ci DIV_CAM11, 16, 3), 52358c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_FD, "div_pclk_fd", "div_aclk_fd", DIV_CAM11, 12, 2), 52368c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_FD, "div_aclk_fd", "mout_aclk_fd_b", DIV_CAM11, 8, 3), 52378c2ecf20Sopenharmony_ci DIV(CLK_DIV_PCLK_LITE_C, "div_pclk_lite_c", "div_aclk_lite_c", 52388c2ecf20Sopenharmony_ci DIV_CAM11, 4, 2), 52398c2ecf20Sopenharmony_ci DIV(CLK_DIV_ACLK_LITE_C, "div_aclk_lite_c", "mout_aclk_lite_c_b", 52408c2ecf20Sopenharmony_ci DIV_CAM11, 0, 3), 52418c2ecf20Sopenharmony_ci}; 52428c2ecf20Sopenharmony_ci 52438c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock cam1_gate_clks[] __initconst = { 52448c2ecf20Sopenharmony_ci /* ENABLE_ACLK_CAM10 */ 52458c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ISP_GIC, "aclk_isp_gic", "mout_aclk_cam1_333_user", 52468c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM10, 4, 0, 0), 52478c2ecf20Sopenharmony_ci GATE(CLK_ACLK_FD, "aclk_fd", "div_aclk_fd", 52488c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM10, 3, 0, 0), 52498c2ecf20Sopenharmony_ci GATE(CLK_ACLK_LITE_C, "aclk_lite_c", "div_aclk_lite_c", 52508c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM10, 1, 0, 0), 52518c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CSIS2, "aclk_csis2", "div_aclk_csis2", 52528c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM10, 0, 0, 0), 52538c2ecf20Sopenharmony_ci 52548c2ecf20Sopenharmony_ci /* ENABLE_ACLK_CAM11 */ 52558c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBM_FD, "aclk_asyncapbm_fd", "div_pclk_fd", 52568c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 29, CLK_IGNORE_UNUSED, 0), 52578c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBS_FD, "aclk_asyncapbs_fd", "div_pclk_cam1_166", 52588c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 28, CLK_IGNORE_UNUSED, 0), 52598c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBM_LITE_C, "aclk_asyncapbm_lite_c", 52608c2ecf20Sopenharmony_ci "div_pclk_lite_c", ENABLE_ACLK_CAM11, 52618c2ecf20Sopenharmony_ci 27, CLK_IGNORE_UNUSED, 0), 52628c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAPBS_LITE_C, "aclk_asyncapbs_lite_c", 52638c2ecf20Sopenharmony_ci "div_pclk_cam1_166", ENABLE_ACLK_CAM11, 52648c2ecf20Sopenharmony_ci 26, CLK_IGNORE_UNUSED, 0), 52658c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAHBS_SFRISP2H2, "aclk_asyncahbs_sfrisp2h2", 52668c2ecf20Sopenharmony_ci "div_pclk_cam1_83", ENABLE_ACLK_CAM11, 52678c2ecf20Sopenharmony_ci 25, CLK_IGNORE_UNUSED, 0), 52688c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAHBS_SFRISP2H1, "aclk_asyncahbs_sfrisp2h1", 52698c2ecf20Sopenharmony_ci "div_pclk_cam1_83", ENABLE_ACLK_CAM11, 52708c2ecf20Sopenharmony_ci 24, CLK_IGNORE_UNUSED, 0), 52718c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_CA5, "aclk_asyncaxim_ca5", 52728c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", ENABLE_ACLK_CAM11, 52738c2ecf20Sopenharmony_ci 23, CLK_IGNORE_UNUSED, 0), 52748c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_CA5, "aclk_asyncaxis_ca5", 52758c2ecf20Sopenharmony_ci "mout_aclk_cam1_552_user", ENABLE_ACLK_CAM11, 52768c2ecf20Sopenharmony_ci 22, CLK_IGNORE_UNUSED, 0), 52778c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_ISPX2, "aclk_asyncaxis_ispx2", 52788c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", ENABLE_ACLK_CAM11, 52798c2ecf20Sopenharmony_ci 21, CLK_IGNORE_UNUSED, 0), 52808c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_ISPX1, "aclk_asyncaxis_ispx1", 52818c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", ENABLE_ACLK_CAM11, 52828c2ecf20Sopenharmony_ci 20, CLK_IGNORE_UNUSED, 0), 52838c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_ISPX0, "aclk_asyncaxis_ispx0", 52848c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", ENABLE_ACLK_CAM11, 52858c2ecf20Sopenharmony_ci 19, CLK_IGNORE_UNUSED, 0), 52868c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_ISPEX, "aclk_asyncaxim_ispex", 52878c2ecf20Sopenharmony_ci "mout_aclk_cam1_400_user", ENABLE_ACLK_CAM11, 52888c2ecf20Sopenharmony_ci 18, CLK_IGNORE_UNUSED, 0), 52898c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_ISP3P, "aclk_asyncaxim_isp3p", 52908c2ecf20Sopenharmony_ci "mout_aclk_cam1_400_user", ENABLE_ACLK_CAM11, 52918c2ecf20Sopenharmony_ci 17, CLK_IGNORE_UNUSED, 0), 52928c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_ISP3P, "aclk_asyncaxis_isp3p", 52938c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", ENABLE_ACLK_CAM11, 52948c2ecf20Sopenharmony_ci 16, CLK_IGNORE_UNUSED, 0), 52958c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_FD, "aclk_asyncaxim_fd", 52968c2ecf20Sopenharmony_ci "mout_aclk_cam1_400_user", ENABLE_ACLK_CAM11, 52978c2ecf20Sopenharmony_ci 15, CLK_IGNORE_UNUSED, 0), 52988c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_FD, "aclk_asyncaxis_fd", "div_aclk_fd", 52998c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 14, CLK_IGNORE_UNUSED, 0), 53008c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIM_LITE_C, "aclk_asyncaxim_lite_c", 53018c2ecf20Sopenharmony_ci "mout_aclk_cam1_400_user", ENABLE_ACLK_CAM11, 53028c2ecf20Sopenharmony_ci 13, CLK_IGNORE_UNUSED, 0), 53038c2ecf20Sopenharmony_ci GATE(CLK_ACLK_ASYNCAXIS_LITE_C, "aclk_asyncaxis_lite_c", 53048c2ecf20Sopenharmony_ci "div_aclk_lite_c", ENABLE_ACLK_CAM11, 53058c2ecf20Sopenharmony_ci 12, CLK_IGNORE_UNUSED, 0), 53068c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_ISP5P, "aclk_ahb2apb_isp5p", "div_pclk_cam1_83", 53078c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 11, CLK_IGNORE_UNUSED, 0), 53088c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB2APB_ISP3P, "aclk_ahb2apb_isp3p", "div_pclk_cam1_83", 53098c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 10, CLK_IGNORE_UNUSED, 0), 53108c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXI2APB_ISP3P, "aclk_axi2apb_isp3p", 53118c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", ENABLE_ACLK_CAM11, 53128c2ecf20Sopenharmony_ci 9, CLK_IGNORE_UNUSED, 0), 53138c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHB_SFRISP2H, "aclk_ahb_sfrisp2h", "div_pclk_cam1_83", 53148c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 8, CLK_IGNORE_UNUSED, 0), 53158c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXI_ISP_HX_R, "aclk_axi_isp_hx_r", "div_pclk_cam1_166", 53168c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 7, CLK_IGNORE_UNUSED, 0), 53178c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXI_ISP_CX_R, "aclk_axi_isp_cx_r", "div_pclk_cam1_166", 53188c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 6, CLK_IGNORE_UNUSED, 0), 53198c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXI_ISP_HX, "aclk_axi_isp_hx", "mout_aclk_cam1_333_user", 53208c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 5, CLK_IGNORE_UNUSED, 0), 53218c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXI_ISP_CX, "aclk_axi_isp_cx", "mout_aclk_cam1_333_user", 53228c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 4, CLK_IGNORE_UNUSED, 0), 53238c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_ISPX, "aclk_xiu_ispx", "mout_aclk_cam1_333_user", 53248c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 3, CLK_IGNORE_UNUSED, 0), 53258c2ecf20Sopenharmony_ci GATE(CLK_ACLK_XIU_ISPEX, "aclk_xiu_ispex", "mout_aclk_cam1_400_user", 53268c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 2, CLK_IGNORE_UNUSED, 0), 53278c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CAM1NP_333, "aclk_cam1np_333", "mout_aclk_cam1_333_user", 53288c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 1, CLK_IGNORE_UNUSED, 0), 53298c2ecf20Sopenharmony_ci GATE(CLK_ACLK_CAM1ND_400, "aclk_cam1nd_400", "mout_aclk_cam1_400_user", 53308c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM11, 0, CLK_IGNORE_UNUSED, 0), 53318c2ecf20Sopenharmony_ci 53328c2ecf20Sopenharmony_ci /* ENABLE_ACLK_CAM12 */ 53338c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_ISPCPU, "aclk_smmu_ispcpu", 53348c2ecf20Sopenharmony_ci "mout_aclk_cam1_400_user", ENABLE_ACLK_CAM12, 53358c2ecf20Sopenharmony_ci 10, CLK_IGNORE_UNUSED, 0), 53368c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_FD, "aclk_smmu_fd", "mout_aclk_cam1_400_user", 53378c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM12, 9, CLK_IGNORE_UNUSED, 0), 53388c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SMMU_LITE_C, "aclk_smmu_lite_c", 53398c2ecf20Sopenharmony_ci "mout_aclk_cam1_400_user", ENABLE_ACLK_CAM12, 53408c2ecf20Sopenharmony_ci 8, CLK_IGNORE_UNUSED, 0), 53418c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_ISP3P, "aclk_bts_isp3p", "mout_aclk_cam1_400_user", 53428c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM12, 7, CLK_IGNORE_UNUSED, 0), 53438c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_FD, "aclk_bts_fd", "mout_aclk_cam1_400_user", 53448c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM12, 6, CLK_IGNORE_UNUSED, 0), 53458c2ecf20Sopenharmony_ci GATE(CLK_ACLK_BTS_LITE_C, "aclk_bts_lite_c", "mout_aclk_cam1_400_user", 53468c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM12, 5, CLK_IGNORE_UNUSED, 0), 53478c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHBDN_SFRISP2H, "aclk_ahbdn_sfrisp2h", 53488c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", ENABLE_ACLK_CAM12, 53498c2ecf20Sopenharmony_ci 4, CLK_IGNORE_UNUSED, 0), 53508c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AHBDN_ISP5P, "aclk_aclk-shbdn_isp5p", 53518c2ecf20Sopenharmony_ci "mout_aclk_cam1_333_user", ENABLE_ACLK_CAM12, 53528c2ecf20Sopenharmony_ci 3, CLK_IGNORE_UNUSED, 0), 53538c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_ISP3P, "aclk_axius_isp3p", 53548c2ecf20Sopenharmony_ci "mout_aclk_cam1_400_user", ENABLE_ACLK_CAM12, 53558c2ecf20Sopenharmony_ci 2, CLK_IGNORE_UNUSED, 0), 53568c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_FD, "aclk_axius_fd", "mout_aclk_cam1_400_user", 53578c2ecf20Sopenharmony_ci ENABLE_ACLK_CAM12, 1, CLK_IGNORE_UNUSED, 0), 53588c2ecf20Sopenharmony_ci GATE(CLK_ACLK_AXIUS_LITE_C, "aclk_axius_lite_c", 53598c2ecf20Sopenharmony_ci "mout_aclk_cam1_400_user", ENABLE_ACLK_CAM12, 53608c2ecf20Sopenharmony_ci 0, CLK_IGNORE_UNUSED, 0), 53618c2ecf20Sopenharmony_ci 53628c2ecf20Sopenharmony_ci /* ENABLE_PCLK_CAM1 */ 53638c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_ISPCPU, "pclk_smmu_ispcpu", "div_pclk_cam1_166", 53648c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 27, CLK_IGNORE_UNUSED, 0), 53658c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_FD, "pclk_smmu_fd", "div_pclk_cam1_166", 53668c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 26, CLK_IGNORE_UNUSED, 0), 53678c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SMMU_LITE_C, "pclk_smmu_lite_c", "div_pclk_cam1_166", 53688c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 25, CLK_IGNORE_UNUSED, 0), 53698c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_ISP3P, "pclk_bts_isp3p", "div_pclk_cam1_83", 53708c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 24, CLK_IGNORE_UNUSED, 0), 53718c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_FD, "pclk_bts_fd", "div_pclk_cam1_83", 53728c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 23, CLK_IGNORE_UNUSED, 0), 53738c2ecf20Sopenharmony_ci GATE(CLK_PCLK_BTS_LITE_C, "pclk_bts_lite_c", "div_pclk_cam1_83", 53748c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 22, CLK_IGNORE_UNUSED, 0), 53758c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXIM_CA5, "pclk_asyncaxim_ca5", "div_pclk_cam1_166", 53768c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 21, CLK_IGNORE_UNUSED, 0), 53778c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXIM_ISPEX, "pclk_asyncaxim_ispex", 53788c2ecf20Sopenharmony_ci "div_pclk_cam1_83", ENABLE_PCLK_CAM1, 53798c2ecf20Sopenharmony_ci 20, CLK_IGNORE_UNUSED, 0), 53808c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXIM_ISP3P, "pclk_asyncaxim_isp3p", 53818c2ecf20Sopenharmony_ci "div_pclk_cam1_83", ENABLE_PCLK_CAM1, 53828c2ecf20Sopenharmony_ci 19, CLK_IGNORE_UNUSED, 0), 53838c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXIM_FD, "pclk_asyncaxim_fd", "div_pclk_cam1_83", 53848c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 18, CLK_IGNORE_UNUSED, 0), 53858c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ASYNCAXIM_LITE_C, "pclk_asyncaxim_lite_c", 53868c2ecf20Sopenharmony_ci "div_pclk_cam1_83", ENABLE_PCLK_CAM1, 53878c2ecf20Sopenharmony_ci 17, CLK_IGNORE_UNUSED, 0), 53888c2ecf20Sopenharmony_ci GATE(CLK_PCLK_PMU_CAM1, "pclk_pmu_cam1", "div_pclk_cam1_83", 53898c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 16, CLK_IGNORE_UNUSED, 0), 53908c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SYSREG_CAM1, "pclk_sysreg_cam1", "div_pclk_cam1_83", 53918c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 15, CLK_IGNORE_UNUSED, 0), 53928c2ecf20Sopenharmony_ci GATE(CLK_PCLK_CMU_CAM1_LOCAL, "pclk_cmu_cam1_local", 53938c2ecf20Sopenharmony_ci "div_pclk_cam1_166", ENABLE_PCLK_CAM1, 53948c2ecf20Sopenharmony_ci 14, CLK_IGNORE_UNUSED, 0), 53958c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP_MCTADC, "pclk_isp_mctadc", "div_pclk_cam1_83", 53968c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 13, CLK_IGNORE_UNUSED, 0), 53978c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP_WDT, "pclk_isp_wdt", "div_pclk_cam1_83", 53988c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 12, CLK_IGNORE_UNUSED, 0), 53998c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP_PWM, "pclk_isp_pwm", "div_pclk_cam1_83", 54008c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 11, CLK_IGNORE_UNUSED, 0), 54018c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP_UART, "pclk_isp_uart", "div_pclk_cam1_83", 54028c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 10, CLK_IGNORE_UNUSED, 0), 54038c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP_MCUCTL, "pclk_isp_mcuctl", "div_pclk_cam1_83", 54048c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 9, CLK_IGNORE_UNUSED, 0), 54058c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP_SPI1, "pclk_isp_spi1", "div_pclk_cam1_83", 54068c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 8, CLK_IGNORE_UNUSED, 0), 54078c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP_SPI0, "pclk_isp_spi0", "div_pclk_cam1_83", 54088c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 7, CLK_IGNORE_UNUSED, 0), 54098c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP_I2C2, "pclk_isp_i2c2", "div_pclk_cam1_83", 54108c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 6, CLK_IGNORE_UNUSED, 0), 54118c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP_I2C1, "pclk_isp_i2c1", "div_pclk_cam1_83", 54128c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 5, CLK_IGNORE_UNUSED, 0), 54138c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP_I2C0, "pclk_isp_i2c0", "div_pclk_cam1_83", 54148c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 4, CLK_IGNORE_UNUSED, 0), 54158c2ecf20Sopenharmony_ci GATE(CLK_PCLK_ISP_MPWM, "pclk_isp_mpwm", "div_pclk_cam1_83", 54168c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 3, CLK_IGNORE_UNUSED, 0), 54178c2ecf20Sopenharmony_ci GATE(CLK_PCLK_FD, "pclk_fd", "div_pclk_fd", 54188c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 3, CLK_IGNORE_UNUSED, 0), 54198c2ecf20Sopenharmony_ci GATE(CLK_PCLK_LITE_C, "pclk_lite_c", "div_pclk_lite_c", 54208c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 1, CLK_IGNORE_UNUSED, 0), 54218c2ecf20Sopenharmony_ci GATE(CLK_PCLK_CSIS2, "pclk_csis2", "div_pclk_cam1_166", 54228c2ecf20Sopenharmony_ci ENABLE_PCLK_CAM1, 0, CLK_IGNORE_UNUSED, 0), 54238c2ecf20Sopenharmony_ci 54248c2ecf20Sopenharmony_ci /* ENABLE_SCLK_CAM1 */ 54258c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_I2C2, "sclk_isp_i2c2", "oscclk", ENABLE_SCLK_CAM1, 54268c2ecf20Sopenharmony_ci 15, 0, 0), 54278c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_I2C1, "sclk_isp_i2c1", "oscclk", ENABLE_SCLK_CAM1, 54288c2ecf20Sopenharmony_ci 14, 0, 0), 54298c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_I2C0, "sclk_isp_i2c0", "oscclk", ENABLE_SCLK_CAM1, 54308c2ecf20Sopenharmony_ci 13, 0, 0), 54318c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_PWM, "sclk_isp_pwm", "oscclk", ENABLE_SCLK_CAM1, 54328c2ecf20Sopenharmony_ci 12, 0, 0), 54338c2ecf20Sopenharmony_ci GATE(CLK_PHYCLK_RXBYTECLKHS0_S2B, "phyclk_rxbyteclkhs0_s2b", 54348c2ecf20Sopenharmony_ci "mout_phyclk_rxbyteclkhs0_s2b_user", 54358c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 11, 0, 0), 54368c2ecf20Sopenharmony_ci GATE(CLK_SCLK_LITE_C_FREECNT, "sclk_lite_c_freecnt", "div_pclk_lite_c", 54378c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 10, 0, 0), 54388c2ecf20Sopenharmony_ci GATE(CLK_SCLK_PIXELASYNCM_FD, "sclk_pixelasyncm_fd", "div_aclk_fd", 54398c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 9, 0, 0), 54408c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_MCTADC, "sclk_isp_mctadc", "sclk_isp_mctadc_cam1", 54418c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 7, 0, 0), 54428c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_UART, "sclk_isp_uart", "mout_sclk_isp_uart_user", 54438c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 6, 0, 0), 54448c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_SPI1, "sclk_isp_spi1", "mout_sclk_isp_spi1_user", 54458c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 5, 0, 0), 54468c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_SPI0, "sclk_isp_spi0", "mout_sclk_isp_spi0_user", 54478c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 4, 0, 0), 54488c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_MPWM, "sclk_isp_mpwm", "div_sclk_isp_mpwm", 54498c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 3, 0, 0), 54508c2ecf20Sopenharmony_ci GATE(CLK_PCLK_DBG_ISP, "sclk_dbg_isp", "div_pclk_dbg_cam1", 54518c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 2, 0, 0), 54528c2ecf20Sopenharmony_ci GATE(CLK_ATCLK_ISP, "atclk_isp", "div_atclk_cam1", 54538c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 1, 0, 0), 54548c2ecf20Sopenharmony_ci GATE(CLK_SCLK_ISP_CA5, "sclk_isp_ca5", "mout_aclk_cam1_552_user", 54558c2ecf20Sopenharmony_ci ENABLE_SCLK_CAM1, 0, 0, 0), 54568c2ecf20Sopenharmony_ci}; 54578c2ecf20Sopenharmony_ci 54588c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info cam1_cmu_info __initconst = { 54598c2ecf20Sopenharmony_ci .mux_clks = cam1_mux_clks, 54608c2ecf20Sopenharmony_ci .nr_mux_clks = ARRAY_SIZE(cam1_mux_clks), 54618c2ecf20Sopenharmony_ci .div_clks = cam1_div_clks, 54628c2ecf20Sopenharmony_ci .nr_div_clks = ARRAY_SIZE(cam1_div_clks), 54638c2ecf20Sopenharmony_ci .gate_clks = cam1_gate_clks, 54648c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(cam1_gate_clks), 54658c2ecf20Sopenharmony_ci .fixed_clks = cam1_fixed_clks, 54668c2ecf20Sopenharmony_ci .nr_fixed_clks = ARRAY_SIZE(cam1_fixed_clks), 54678c2ecf20Sopenharmony_ci .nr_clk_ids = CAM1_NR_CLK, 54688c2ecf20Sopenharmony_ci .clk_regs = cam1_clk_regs, 54698c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(cam1_clk_regs), 54708c2ecf20Sopenharmony_ci .suspend_regs = cam1_suspend_regs, 54718c2ecf20Sopenharmony_ci .nr_suspend_regs = ARRAY_SIZE(cam1_suspend_regs), 54728c2ecf20Sopenharmony_ci .clk_name = "aclk_cam1_400", 54738c2ecf20Sopenharmony_ci}; 54748c2ecf20Sopenharmony_ci 54758c2ecf20Sopenharmony_ci/* 54768c2ecf20Sopenharmony_ci * Register offset definitions for CMU_IMEM 54778c2ecf20Sopenharmony_ci */ 54788c2ecf20Sopenharmony_ci#define ENABLE_ACLK_IMEM_SLIMSSS 0x080c 54798c2ecf20Sopenharmony_ci#define ENABLE_PCLK_IMEM_SLIMSSS 0x0908 54808c2ecf20Sopenharmony_ci 54818c2ecf20Sopenharmony_cistatic const unsigned long imem_clk_regs[] __initconst = { 54828c2ecf20Sopenharmony_ci ENABLE_ACLK_IMEM_SLIMSSS, 54838c2ecf20Sopenharmony_ci ENABLE_PCLK_IMEM_SLIMSSS, 54848c2ecf20Sopenharmony_ci}; 54858c2ecf20Sopenharmony_ci 54868c2ecf20Sopenharmony_cistatic const struct samsung_gate_clock imem_gate_clks[] __initconst = { 54878c2ecf20Sopenharmony_ci /* ENABLE_ACLK_IMEM_SLIMSSS */ 54888c2ecf20Sopenharmony_ci GATE(CLK_ACLK_SLIMSSS, "aclk_slimsss", "aclk_imem_sssx_266", 54898c2ecf20Sopenharmony_ci ENABLE_ACLK_IMEM_SLIMSSS, 0, CLK_IGNORE_UNUSED, 0), 54908c2ecf20Sopenharmony_ci 54918c2ecf20Sopenharmony_ci /* ENABLE_PCLK_IMEM_SLIMSSS */ 54928c2ecf20Sopenharmony_ci GATE(CLK_PCLK_SLIMSSS, "pclk_slimsss", "aclk_imem_200", 54938c2ecf20Sopenharmony_ci ENABLE_PCLK_IMEM_SLIMSSS, 0, CLK_IGNORE_UNUSED, 0), 54948c2ecf20Sopenharmony_ci}; 54958c2ecf20Sopenharmony_ci 54968c2ecf20Sopenharmony_cistatic const struct samsung_cmu_info imem_cmu_info __initconst = { 54978c2ecf20Sopenharmony_ci .gate_clks = imem_gate_clks, 54988c2ecf20Sopenharmony_ci .nr_gate_clks = ARRAY_SIZE(imem_gate_clks), 54998c2ecf20Sopenharmony_ci .nr_clk_ids = IMEM_NR_CLK, 55008c2ecf20Sopenharmony_ci .clk_regs = imem_clk_regs, 55018c2ecf20Sopenharmony_ci .nr_clk_regs = ARRAY_SIZE(imem_clk_regs), 55028c2ecf20Sopenharmony_ci .clk_name = "aclk_imem_200", 55038c2ecf20Sopenharmony_ci}; 55048c2ecf20Sopenharmony_ci 55058c2ecf20Sopenharmony_cistruct exynos5433_cmu_data { 55068c2ecf20Sopenharmony_ci struct samsung_clk_reg_dump *clk_save; 55078c2ecf20Sopenharmony_ci unsigned int nr_clk_save; 55088c2ecf20Sopenharmony_ci const struct samsung_clk_reg_dump *clk_suspend; 55098c2ecf20Sopenharmony_ci unsigned int nr_clk_suspend; 55108c2ecf20Sopenharmony_ci 55118c2ecf20Sopenharmony_ci struct clk *clk; 55128c2ecf20Sopenharmony_ci struct clk **pclks; 55138c2ecf20Sopenharmony_ci int nr_pclks; 55148c2ecf20Sopenharmony_ci 55158c2ecf20Sopenharmony_ci /* must be the last entry */ 55168c2ecf20Sopenharmony_ci struct samsung_clk_provider ctx; 55178c2ecf20Sopenharmony_ci}; 55188c2ecf20Sopenharmony_ci 55198c2ecf20Sopenharmony_cistatic int __maybe_unused exynos5433_cmu_suspend(struct device *dev) 55208c2ecf20Sopenharmony_ci{ 55218c2ecf20Sopenharmony_ci struct exynos5433_cmu_data *data = dev_get_drvdata(dev); 55228c2ecf20Sopenharmony_ci int i; 55238c2ecf20Sopenharmony_ci 55248c2ecf20Sopenharmony_ci samsung_clk_save(data->ctx.reg_base, data->clk_save, 55258c2ecf20Sopenharmony_ci data->nr_clk_save); 55268c2ecf20Sopenharmony_ci 55278c2ecf20Sopenharmony_ci for (i = 0; i < data->nr_pclks; i++) 55288c2ecf20Sopenharmony_ci clk_prepare_enable(data->pclks[i]); 55298c2ecf20Sopenharmony_ci 55308c2ecf20Sopenharmony_ci /* for suspend some registers have to be set to certain values */ 55318c2ecf20Sopenharmony_ci samsung_clk_restore(data->ctx.reg_base, data->clk_suspend, 55328c2ecf20Sopenharmony_ci data->nr_clk_suspend); 55338c2ecf20Sopenharmony_ci 55348c2ecf20Sopenharmony_ci for (i = 0; i < data->nr_pclks; i++) 55358c2ecf20Sopenharmony_ci clk_disable_unprepare(data->pclks[i]); 55368c2ecf20Sopenharmony_ci 55378c2ecf20Sopenharmony_ci clk_disable_unprepare(data->clk); 55388c2ecf20Sopenharmony_ci 55398c2ecf20Sopenharmony_ci return 0; 55408c2ecf20Sopenharmony_ci} 55418c2ecf20Sopenharmony_ci 55428c2ecf20Sopenharmony_cistatic int __maybe_unused exynos5433_cmu_resume(struct device *dev) 55438c2ecf20Sopenharmony_ci{ 55448c2ecf20Sopenharmony_ci struct exynos5433_cmu_data *data = dev_get_drvdata(dev); 55458c2ecf20Sopenharmony_ci int i; 55468c2ecf20Sopenharmony_ci 55478c2ecf20Sopenharmony_ci clk_prepare_enable(data->clk); 55488c2ecf20Sopenharmony_ci 55498c2ecf20Sopenharmony_ci for (i = 0; i < data->nr_pclks; i++) 55508c2ecf20Sopenharmony_ci clk_prepare_enable(data->pclks[i]); 55518c2ecf20Sopenharmony_ci 55528c2ecf20Sopenharmony_ci samsung_clk_restore(data->ctx.reg_base, data->clk_save, 55538c2ecf20Sopenharmony_ci data->nr_clk_save); 55548c2ecf20Sopenharmony_ci 55558c2ecf20Sopenharmony_ci for (i = 0; i < data->nr_pclks; i++) 55568c2ecf20Sopenharmony_ci clk_disable_unprepare(data->pclks[i]); 55578c2ecf20Sopenharmony_ci 55588c2ecf20Sopenharmony_ci return 0; 55598c2ecf20Sopenharmony_ci} 55608c2ecf20Sopenharmony_ci 55618c2ecf20Sopenharmony_cistatic int __init exynos5433_cmu_probe(struct platform_device *pdev) 55628c2ecf20Sopenharmony_ci{ 55638c2ecf20Sopenharmony_ci const struct samsung_cmu_info *info; 55648c2ecf20Sopenharmony_ci struct exynos5433_cmu_data *data; 55658c2ecf20Sopenharmony_ci struct samsung_clk_provider *ctx; 55668c2ecf20Sopenharmony_ci struct device *dev = &pdev->dev; 55678c2ecf20Sopenharmony_ci struct resource *res; 55688c2ecf20Sopenharmony_ci void __iomem *reg_base; 55698c2ecf20Sopenharmony_ci int i; 55708c2ecf20Sopenharmony_ci 55718c2ecf20Sopenharmony_ci info = of_device_get_match_data(dev); 55728c2ecf20Sopenharmony_ci 55738c2ecf20Sopenharmony_ci data = devm_kzalloc(dev, 55748c2ecf20Sopenharmony_ci struct_size(data, ctx.clk_data.hws, info->nr_clk_ids), 55758c2ecf20Sopenharmony_ci GFP_KERNEL); 55768c2ecf20Sopenharmony_ci if (!data) 55778c2ecf20Sopenharmony_ci return -ENOMEM; 55788c2ecf20Sopenharmony_ci ctx = &data->ctx; 55798c2ecf20Sopenharmony_ci 55808c2ecf20Sopenharmony_ci res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 55818c2ecf20Sopenharmony_ci reg_base = devm_ioremap_resource(dev, res); 55828c2ecf20Sopenharmony_ci if (IS_ERR(reg_base)) 55838c2ecf20Sopenharmony_ci return PTR_ERR(reg_base); 55848c2ecf20Sopenharmony_ci 55858c2ecf20Sopenharmony_ci for (i = 0; i < info->nr_clk_ids; ++i) 55868c2ecf20Sopenharmony_ci ctx->clk_data.hws[i] = ERR_PTR(-ENOENT); 55878c2ecf20Sopenharmony_ci 55888c2ecf20Sopenharmony_ci ctx->clk_data.num = info->nr_clk_ids; 55898c2ecf20Sopenharmony_ci ctx->reg_base = reg_base; 55908c2ecf20Sopenharmony_ci ctx->dev = dev; 55918c2ecf20Sopenharmony_ci spin_lock_init(&ctx->lock); 55928c2ecf20Sopenharmony_ci 55938c2ecf20Sopenharmony_ci data->clk_save = samsung_clk_alloc_reg_dump(info->clk_regs, 55948c2ecf20Sopenharmony_ci info->nr_clk_regs); 55958c2ecf20Sopenharmony_ci if (!data->clk_save) 55968c2ecf20Sopenharmony_ci return -ENOMEM; 55978c2ecf20Sopenharmony_ci data->nr_clk_save = info->nr_clk_regs; 55988c2ecf20Sopenharmony_ci data->clk_suspend = info->suspend_regs; 55998c2ecf20Sopenharmony_ci data->nr_clk_suspend = info->nr_suspend_regs; 56008c2ecf20Sopenharmony_ci data->nr_pclks = of_clk_get_parent_count(dev->of_node); 56018c2ecf20Sopenharmony_ci 56028c2ecf20Sopenharmony_ci if (data->nr_pclks > 0) { 56038c2ecf20Sopenharmony_ci data->pclks = devm_kcalloc(dev, sizeof(struct clk *), 56048c2ecf20Sopenharmony_ci data->nr_pclks, GFP_KERNEL); 56058c2ecf20Sopenharmony_ci if (!data->pclks) { 56068c2ecf20Sopenharmony_ci kfree(data->clk_save); 56078c2ecf20Sopenharmony_ci return -ENOMEM; 56088c2ecf20Sopenharmony_ci } 56098c2ecf20Sopenharmony_ci for (i = 0; i < data->nr_pclks; i++) { 56108c2ecf20Sopenharmony_ci struct clk *clk = of_clk_get(dev->of_node, i); 56118c2ecf20Sopenharmony_ci 56128c2ecf20Sopenharmony_ci if (IS_ERR(clk)) { 56138c2ecf20Sopenharmony_ci kfree(data->clk_save); 56148c2ecf20Sopenharmony_ci while (--i >= 0) 56158c2ecf20Sopenharmony_ci clk_put(data->pclks[i]); 56168c2ecf20Sopenharmony_ci return PTR_ERR(clk); 56178c2ecf20Sopenharmony_ci } 56188c2ecf20Sopenharmony_ci data->pclks[i] = clk; 56198c2ecf20Sopenharmony_ci } 56208c2ecf20Sopenharmony_ci } 56218c2ecf20Sopenharmony_ci 56228c2ecf20Sopenharmony_ci if (info->clk_name) 56238c2ecf20Sopenharmony_ci data->clk = clk_get(dev, info->clk_name); 56248c2ecf20Sopenharmony_ci clk_prepare_enable(data->clk); 56258c2ecf20Sopenharmony_ci 56268c2ecf20Sopenharmony_ci platform_set_drvdata(pdev, data); 56278c2ecf20Sopenharmony_ci 56288c2ecf20Sopenharmony_ci /* 56298c2ecf20Sopenharmony_ci * Enable runtime PM here to allow the clock core using runtime PM 56308c2ecf20Sopenharmony_ci * for the registered clocks. Additionally, we increase the runtime 56318c2ecf20Sopenharmony_ci * PM usage count before registering the clocks, to prevent the 56328c2ecf20Sopenharmony_ci * clock core from runtime suspending the device. 56338c2ecf20Sopenharmony_ci */ 56348c2ecf20Sopenharmony_ci pm_runtime_get_noresume(dev); 56358c2ecf20Sopenharmony_ci pm_runtime_set_active(dev); 56368c2ecf20Sopenharmony_ci pm_runtime_enable(dev); 56378c2ecf20Sopenharmony_ci 56388c2ecf20Sopenharmony_ci if (info->pll_clks) 56398c2ecf20Sopenharmony_ci samsung_clk_register_pll(ctx, info->pll_clks, info->nr_pll_clks, 56408c2ecf20Sopenharmony_ci reg_base); 56418c2ecf20Sopenharmony_ci if (info->mux_clks) 56428c2ecf20Sopenharmony_ci samsung_clk_register_mux(ctx, info->mux_clks, 56438c2ecf20Sopenharmony_ci info->nr_mux_clks); 56448c2ecf20Sopenharmony_ci if (info->div_clks) 56458c2ecf20Sopenharmony_ci samsung_clk_register_div(ctx, info->div_clks, 56468c2ecf20Sopenharmony_ci info->nr_div_clks); 56478c2ecf20Sopenharmony_ci if (info->gate_clks) 56488c2ecf20Sopenharmony_ci samsung_clk_register_gate(ctx, info->gate_clks, 56498c2ecf20Sopenharmony_ci info->nr_gate_clks); 56508c2ecf20Sopenharmony_ci if (info->fixed_clks) 56518c2ecf20Sopenharmony_ci samsung_clk_register_fixed_rate(ctx, info->fixed_clks, 56528c2ecf20Sopenharmony_ci info->nr_fixed_clks); 56538c2ecf20Sopenharmony_ci if (info->fixed_factor_clks) 56548c2ecf20Sopenharmony_ci samsung_clk_register_fixed_factor(ctx, info->fixed_factor_clks, 56558c2ecf20Sopenharmony_ci info->nr_fixed_factor_clks); 56568c2ecf20Sopenharmony_ci 56578c2ecf20Sopenharmony_ci samsung_clk_of_add_provider(dev->of_node, ctx); 56588c2ecf20Sopenharmony_ci pm_runtime_put_sync(dev); 56598c2ecf20Sopenharmony_ci 56608c2ecf20Sopenharmony_ci return 0; 56618c2ecf20Sopenharmony_ci} 56628c2ecf20Sopenharmony_ci 56638c2ecf20Sopenharmony_cistatic const struct of_device_id exynos5433_cmu_of_match[] = { 56648c2ecf20Sopenharmony_ci { 56658c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-aud", 56668c2ecf20Sopenharmony_ci .data = &aud_cmu_info, 56678c2ecf20Sopenharmony_ci }, { 56688c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-cam0", 56698c2ecf20Sopenharmony_ci .data = &cam0_cmu_info, 56708c2ecf20Sopenharmony_ci }, { 56718c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-cam1", 56728c2ecf20Sopenharmony_ci .data = &cam1_cmu_info, 56738c2ecf20Sopenharmony_ci }, { 56748c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-disp", 56758c2ecf20Sopenharmony_ci .data = &disp_cmu_info, 56768c2ecf20Sopenharmony_ci }, { 56778c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-g2d", 56788c2ecf20Sopenharmony_ci .data = &g2d_cmu_info, 56798c2ecf20Sopenharmony_ci }, { 56808c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-g3d", 56818c2ecf20Sopenharmony_ci .data = &g3d_cmu_info, 56828c2ecf20Sopenharmony_ci }, { 56838c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-fsys", 56848c2ecf20Sopenharmony_ci .data = &fsys_cmu_info, 56858c2ecf20Sopenharmony_ci }, { 56868c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-gscl", 56878c2ecf20Sopenharmony_ci .data = &gscl_cmu_info, 56888c2ecf20Sopenharmony_ci }, { 56898c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-mfc", 56908c2ecf20Sopenharmony_ci .data = &mfc_cmu_info, 56918c2ecf20Sopenharmony_ci }, { 56928c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-hevc", 56938c2ecf20Sopenharmony_ci .data = &hevc_cmu_info, 56948c2ecf20Sopenharmony_ci }, { 56958c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-isp", 56968c2ecf20Sopenharmony_ci .data = &isp_cmu_info, 56978c2ecf20Sopenharmony_ci }, { 56988c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-mscl", 56998c2ecf20Sopenharmony_ci .data = &mscl_cmu_info, 57008c2ecf20Sopenharmony_ci }, { 57018c2ecf20Sopenharmony_ci .compatible = "samsung,exynos5433-cmu-imem", 57028c2ecf20Sopenharmony_ci .data = &imem_cmu_info, 57038c2ecf20Sopenharmony_ci }, { 57048c2ecf20Sopenharmony_ci }, 57058c2ecf20Sopenharmony_ci}; 57068c2ecf20Sopenharmony_ci 57078c2ecf20Sopenharmony_cistatic const struct dev_pm_ops exynos5433_cmu_pm_ops = { 57088c2ecf20Sopenharmony_ci SET_RUNTIME_PM_OPS(exynos5433_cmu_suspend, exynos5433_cmu_resume, 57098c2ecf20Sopenharmony_ci NULL) 57108c2ecf20Sopenharmony_ci SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, 57118c2ecf20Sopenharmony_ci pm_runtime_force_resume) 57128c2ecf20Sopenharmony_ci}; 57138c2ecf20Sopenharmony_ci 57148c2ecf20Sopenharmony_cistatic struct platform_driver exynos5433_cmu_driver __refdata = { 57158c2ecf20Sopenharmony_ci .driver = { 57168c2ecf20Sopenharmony_ci .name = "exynos5433-cmu", 57178c2ecf20Sopenharmony_ci .of_match_table = exynos5433_cmu_of_match, 57188c2ecf20Sopenharmony_ci .suppress_bind_attrs = true, 57198c2ecf20Sopenharmony_ci .pm = &exynos5433_cmu_pm_ops, 57208c2ecf20Sopenharmony_ci }, 57218c2ecf20Sopenharmony_ci .probe = exynos5433_cmu_probe, 57228c2ecf20Sopenharmony_ci}; 57238c2ecf20Sopenharmony_ci 57248c2ecf20Sopenharmony_cistatic int __init exynos5433_cmu_init(void) 57258c2ecf20Sopenharmony_ci{ 57268c2ecf20Sopenharmony_ci return platform_driver_register(&exynos5433_cmu_driver); 57278c2ecf20Sopenharmony_ci} 57288c2ecf20Sopenharmony_cicore_initcall(exynos5433_cmu_init); 5729