18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * r8a779a0 Clock Pulse Generator / Module Standby and Software Reset 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2020 Renesas Electronics Corp. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Based on r8a7795-cpg-mssr.c 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * Copyright (C) 2015 Glider bvba 108c2ecf20Sopenharmony_ci * Copyright (C) 2015 Renesas Electronics Corp. 118c2ecf20Sopenharmony_ci */ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include <linux/bug.h> 148c2ecf20Sopenharmony_ci#include <linux/bitfield.h> 158c2ecf20Sopenharmony_ci#include <linux/clk.h> 168c2ecf20Sopenharmony_ci#include <linux/clk-provider.h> 178c2ecf20Sopenharmony_ci#include <linux/device.h> 188c2ecf20Sopenharmony_ci#include <linux/err.h> 198c2ecf20Sopenharmony_ci#include <linux/init.h> 208c2ecf20Sopenharmony_ci#include <linux/io.h> 218c2ecf20Sopenharmony_ci#include <linux/kernel.h> 228c2ecf20Sopenharmony_ci#include <linux/pm.h> 238c2ecf20Sopenharmony_ci#include <linux/slab.h> 248c2ecf20Sopenharmony_ci#include <linux/soc/renesas/rcar-rst.h> 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#include <dt-bindings/clock/r8a779a0-cpg-mssr.h> 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#include "renesas-cpg-mssr.h" 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_cienum rcar_r8a779a0_clk_types { 318c2ecf20Sopenharmony_ci CLK_TYPE_R8A779A0_MAIN = CLK_TYPE_CUSTOM, 328c2ecf20Sopenharmony_ci CLK_TYPE_R8A779A0_PLL1, 338c2ecf20Sopenharmony_ci CLK_TYPE_R8A779A0_PLL2X_3X, /* PLL[23][01] */ 348c2ecf20Sopenharmony_ci CLK_TYPE_R8A779A0_PLL5, 358c2ecf20Sopenharmony_ci CLK_TYPE_R8A779A0_MDSEL, /* Select parent/divider using mode pin */ 368c2ecf20Sopenharmony_ci CLK_TYPE_R8A779A0_OSC, /* OSC EXTAL predivider and fixed divider */ 378c2ecf20Sopenharmony_ci}; 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_cistruct rcar_r8a779a0_cpg_pll_config { 408c2ecf20Sopenharmony_ci u8 extal_div; 418c2ecf20Sopenharmony_ci u8 pll1_mult; 428c2ecf20Sopenharmony_ci u8 pll1_div; 438c2ecf20Sopenharmony_ci u8 pll5_mult; 448c2ecf20Sopenharmony_ci u8 pll5_div; 458c2ecf20Sopenharmony_ci u8 osc_prediv; 468c2ecf20Sopenharmony_ci}; 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_cienum clk_ids { 498c2ecf20Sopenharmony_ci /* Core Clock Outputs exported to DT */ 508c2ecf20Sopenharmony_ci LAST_DT_CORE_CLK = R8A779A0_CLK_OSC, 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci /* External Input Clocks */ 538c2ecf20Sopenharmony_ci CLK_EXTAL, 548c2ecf20Sopenharmony_ci CLK_EXTALR, 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci /* Internal Core Clocks */ 578c2ecf20Sopenharmony_ci CLK_MAIN, 588c2ecf20Sopenharmony_ci CLK_PLL1, 598c2ecf20Sopenharmony_ci CLK_PLL20, 608c2ecf20Sopenharmony_ci CLK_PLL21, 618c2ecf20Sopenharmony_ci CLK_PLL30, 628c2ecf20Sopenharmony_ci CLK_PLL31, 638c2ecf20Sopenharmony_ci CLK_PLL5, 648c2ecf20Sopenharmony_ci CLK_PLL1_DIV2, 658c2ecf20Sopenharmony_ci CLK_PLL20_DIV2, 668c2ecf20Sopenharmony_ci CLK_PLL21_DIV2, 678c2ecf20Sopenharmony_ci CLK_PLL30_DIV2, 688c2ecf20Sopenharmony_ci CLK_PLL31_DIV2, 698c2ecf20Sopenharmony_ci CLK_PLL5_DIV2, 708c2ecf20Sopenharmony_ci CLK_PLL5_DIV4, 718c2ecf20Sopenharmony_ci CLK_S1, 728c2ecf20Sopenharmony_ci CLK_S3, 738c2ecf20Sopenharmony_ci CLK_SDSRC, 748c2ecf20Sopenharmony_ci CLK_RPCSRC, 758c2ecf20Sopenharmony_ci CLK_OCO, 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci /* Module Clocks */ 788c2ecf20Sopenharmony_ci MOD_CLK_BASE 798c2ecf20Sopenharmony_ci}; 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci#define DEF_PLL(_name, _id, _offset) \ 828c2ecf20Sopenharmony_ci DEF_BASE(_name, _id, CLK_TYPE_R8A779A0_PLL2X_3X, CLK_MAIN, \ 838c2ecf20Sopenharmony_ci .offset = _offset) 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ci#define DEF_MDSEL(_name, _id, _md, _parent0, _div0, _parent1, _div1) \ 868c2ecf20Sopenharmony_ci DEF_BASE(_name, _id, CLK_TYPE_R8A779A0_MDSEL, \ 878c2ecf20Sopenharmony_ci (_parent0) << 16 | (_parent1), \ 888c2ecf20Sopenharmony_ci .div = (_div0) << 16 | (_div1), .offset = _md) 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ci#define DEF_OSC(_name, _id, _parent, _div) \ 918c2ecf20Sopenharmony_ci DEF_BASE(_name, _id, CLK_TYPE_R8A779A0_OSC, _parent, .div = _div) 928c2ecf20Sopenharmony_ci 938c2ecf20Sopenharmony_cistatic const struct cpg_core_clk r8a779a0_core_clks[] __initconst = { 948c2ecf20Sopenharmony_ci /* External Clock Inputs */ 958c2ecf20Sopenharmony_ci DEF_INPUT("extal", CLK_EXTAL), 968c2ecf20Sopenharmony_ci DEF_INPUT("extalr", CLK_EXTALR), 978c2ecf20Sopenharmony_ci 988c2ecf20Sopenharmony_ci /* Internal Core Clocks */ 998c2ecf20Sopenharmony_ci DEF_BASE(".main", CLK_MAIN, CLK_TYPE_R8A779A0_MAIN, CLK_EXTAL), 1008c2ecf20Sopenharmony_ci DEF_BASE(".pll1", CLK_PLL1, CLK_TYPE_R8A779A0_PLL1, CLK_MAIN), 1018c2ecf20Sopenharmony_ci DEF_BASE(".pll5", CLK_PLL5, CLK_TYPE_R8A779A0_PLL5, CLK_MAIN), 1028c2ecf20Sopenharmony_ci DEF_PLL(".pll20", CLK_PLL20, 0x0834), 1038c2ecf20Sopenharmony_ci DEF_PLL(".pll21", CLK_PLL21, 0x0838), 1048c2ecf20Sopenharmony_ci DEF_PLL(".pll30", CLK_PLL30, 0x083c), 1058c2ecf20Sopenharmony_ci DEF_PLL(".pll31", CLK_PLL31, 0x0840), 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci DEF_FIXED(".pll1_div2", CLK_PLL1_DIV2, CLK_PLL1, 2, 1), 1088c2ecf20Sopenharmony_ci DEF_FIXED(".pll20_div2", CLK_PLL20_DIV2, CLK_PLL20, 2, 1), 1098c2ecf20Sopenharmony_ci DEF_FIXED(".pll21_div2", CLK_PLL21_DIV2, CLK_PLL21, 2, 1), 1108c2ecf20Sopenharmony_ci DEF_FIXED(".pll30_div2", CLK_PLL30_DIV2, CLK_PLL30, 2, 1), 1118c2ecf20Sopenharmony_ci DEF_FIXED(".pll31_div2", CLK_PLL31_DIV2, CLK_PLL31, 2, 1), 1128c2ecf20Sopenharmony_ci DEF_FIXED(".pll5_div2", CLK_PLL5_DIV2, CLK_PLL5, 2, 1), 1138c2ecf20Sopenharmony_ci DEF_FIXED(".pll5_div4", CLK_PLL5_DIV4, CLK_PLL5_DIV2, 2, 1), 1148c2ecf20Sopenharmony_ci DEF_FIXED(".s1", CLK_S1, CLK_PLL1_DIV2, 2, 1), 1158c2ecf20Sopenharmony_ci DEF_FIXED(".s3", CLK_S3, CLK_PLL1_DIV2, 4, 1), 1168c2ecf20Sopenharmony_ci DEF_RATE(".oco", CLK_OCO, 32768), 1178c2ecf20Sopenharmony_ci 1188c2ecf20Sopenharmony_ci /* Core Clock Outputs */ 1198c2ecf20Sopenharmony_ci DEF_FIXED("zx", R8A779A0_CLK_ZX, CLK_PLL20_DIV2, 2, 1), 1208c2ecf20Sopenharmony_ci DEF_FIXED("s1d1", R8A779A0_CLK_S1D1, CLK_S1, 1, 1), 1218c2ecf20Sopenharmony_ci DEF_FIXED("s1d2", R8A779A0_CLK_S1D2, CLK_S1, 2, 1), 1228c2ecf20Sopenharmony_ci DEF_FIXED("s1d4", R8A779A0_CLK_S1D4, CLK_S1, 4, 1), 1238c2ecf20Sopenharmony_ci DEF_FIXED("s1d8", R8A779A0_CLK_S1D8, CLK_S1, 8, 1), 1248c2ecf20Sopenharmony_ci DEF_FIXED("s1d12", R8A779A0_CLK_S1D12, CLK_S1, 12, 1), 1258c2ecf20Sopenharmony_ci DEF_FIXED("s3d1", R8A779A0_CLK_S3D1, CLK_S3, 1, 1), 1268c2ecf20Sopenharmony_ci DEF_FIXED("s3d2", R8A779A0_CLK_S3D2, CLK_S3, 2, 1), 1278c2ecf20Sopenharmony_ci DEF_FIXED("s3d4", R8A779A0_CLK_S3D4, CLK_S3, 4, 1), 1288c2ecf20Sopenharmony_ci DEF_FIXED("zs", R8A779A0_CLK_ZS, CLK_PLL1_DIV2, 4, 1), 1298c2ecf20Sopenharmony_ci DEF_FIXED("zt", R8A779A0_CLK_ZT, CLK_PLL1_DIV2, 2, 1), 1308c2ecf20Sopenharmony_ci DEF_FIXED("ztr", R8A779A0_CLK_ZTR, CLK_PLL1_DIV2, 2, 1), 1318c2ecf20Sopenharmony_ci DEF_FIXED("zr", R8A779A0_CLK_ZR, CLK_PLL1_DIV2, 1, 1), 1328c2ecf20Sopenharmony_ci DEF_FIXED("dsi", R8A779A0_CLK_DSI, CLK_PLL5_DIV4, 1, 1), 1338c2ecf20Sopenharmony_ci DEF_FIXED("cnndsp", R8A779A0_CLK_CNNDSP, CLK_PLL5_DIV4, 1, 1), 1348c2ecf20Sopenharmony_ci DEF_FIXED("vip", R8A779A0_CLK_VIP, CLK_PLL5, 5, 1), 1358c2ecf20Sopenharmony_ci DEF_FIXED("adgh", R8A779A0_CLK_ADGH, CLK_PLL5_DIV4, 1, 1), 1368c2ecf20Sopenharmony_ci DEF_FIXED("icu", R8A779A0_CLK_ICU, CLK_PLL5_DIV4, 2, 1), 1378c2ecf20Sopenharmony_ci DEF_FIXED("icud2", R8A779A0_CLK_ICUD2, CLK_PLL5_DIV4, 4, 1), 1388c2ecf20Sopenharmony_ci DEF_FIXED("vcbus", R8A779A0_CLK_VCBUS, CLK_PLL5_DIV4, 1, 1), 1398c2ecf20Sopenharmony_ci DEF_FIXED("cbfusa", R8A779A0_CLK_CBFUSA, CLK_EXTAL, 2, 1), 1408c2ecf20Sopenharmony_ci 1418c2ecf20Sopenharmony_ci DEF_DIV6P1("mso", R8A779A0_CLK_MSO, CLK_PLL5_DIV4, 0x87c), 1428c2ecf20Sopenharmony_ci DEF_DIV6P1("canfd", R8A779A0_CLK_CANFD, CLK_PLL5_DIV4, 0x878), 1438c2ecf20Sopenharmony_ci DEF_DIV6P1("csi0", R8A779A0_CLK_CSI0, CLK_PLL5_DIV4, 0x880), 1448c2ecf20Sopenharmony_ci 1458c2ecf20Sopenharmony_ci DEF_OSC("osc", R8A779A0_CLK_OSC, CLK_EXTAL, 8), 1468c2ecf20Sopenharmony_ci DEF_MDSEL("r", R8A779A0_CLK_R, 29, CLK_EXTALR, 1, CLK_OCO, 1), 1478c2ecf20Sopenharmony_ci}; 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_cistatic const struct mssr_mod_clk r8a779a0_mod_clks[] __initconst = { 1508c2ecf20Sopenharmony_ci DEF_MOD("scif0", 702, R8A779A0_CLK_S1D8), 1518c2ecf20Sopenharmony_ci DEF_MOD("scif1", 703, R8A779A0_CLK_S1D8), 1528c2ecf20Sopenharmony_ci DEF_MOD("scif3", 704, R8A779A0_CLK_S1D8), 1538c2ecf20Sopenharmony_ci DEF_MOD("scif4", 705, R8A779A0_CLK_S1D8), 1548c2ecf20Sopenharmony_ci}; 1558c2ecf20Sopenharmony_ci 1568c2ecf20Sopenharmony_cistatic spinlock_t cpg_lock; 1578c2ecf20Sopenharmony_ci 1588c2ecf20Sopenharmony_cistatic const struct rcar_r8a779a0_cpg_pll_config *cpg_pll_config __initdata; 1598c2ecf20Sopenharmony_cistatic unsigned int cpg_clk_extalr __initdata; 1608c2ecf20Sopenharmony_cistatic u32 cpg_mode __initdata; 1618c2ecf20Sopenharmony_ci 1628c2ecf20Sopenharmony_cistruct clk * __init rcar_r8a779a0_cpg_clk_register(struct device *dev, 1638c2ecf20Sopenharmony_ci const struct cpg_core_clk *core, const struct cpg_mssr_info *info, 1648c2ecf20Sopenharmony_ci struct clk **clks, void __iomem *base, 1658c2ecf20Sopenharmony_ci struct raw_notifier_head *notifiers) 1668c2ecf20Sopenharmony_ci{ 1678c2ecf20Sopenharmony_ci const struct clk *parent; 1688c2ecf20Sopenharmony_ci unsigned int mult = 1; 1698c2ecf20Sopenharmony_ci unsigned int div = 1; 1708c2ecf20Sopenharmony_ci u32 value; 1718c2ecf20Sopenharmony_ci 1728c2ecf20Sopenharmony_ci parent = clks[core->parent & 0xffff]; /* some types use high bits */ 1738c2ecf20Sopenharmony_ci if (IS_ERR(parent)) 1748c2ecf20Sopenharmony_ci return ERR_CAST(parent); 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_ci switch (core->type) { 1778c2ecf20Sopenharmony_ci case CLK_TYPE_R8A779A0_MAIN: 1788c2ecf20Sopenharmony_ci div = cpg_pll_config->extal_div; 1798c2ecf20Sopenharmony_ci break; 1808c2ecf20Sopenharmony_ci 1818c2ecf20Sopenharmony_ci case CLK_TYPE_R8A779A0_PLL1: 1828c2ecf20Sopenharmony_ci mult = cpg_pll_config->pll1_mult; 1838c2ecf20Sopenharmony_ci div = cpg_pll_config->pll1_div; 1848c2ecf20Sopenharmony_ci break; 1858c2ecf20Sopenharmony_ci 1868c2ecf20Sopenharmony_ci case CLK_TYPE_R8A779A0_PLL2X_3X: 1878c2ecf20Sopenharmony_ci value = readl(base + core->offset); 1888c2ecf20Sopenharmony_ci mult = (((value >> 24) & 0x7f) + 1) * 2; 1898c2ecf20Sopenharmony_ci break; 1908c2ecf20Sopenharmony_ci 1918c2ecf20Sopenharmony_ci case CLK_TYPE_R8A779A0_PLL5: 1928c2ecf20Sopenharmony_ci mult = cpg_pll_config->pll5_mult; 1938c2ecf20Sopenharmony_ci div = cpg_pll_config->pll5_div; 1948c2ecf20Sopenharmony_ci break; 1958c2ecf20Sopenharmony_ci 1968c2ecf20Sopenharmony_ci case CLK_TYPE_R8A779A0_MDSEL: 1978c2ecf20Sopenharmony_ci /* 1988c2ecf20Sopenharmony_ci * Clock selectable between two parents and two fixed dividers 1998c2ecf20Sopenharmony_ci * using a mode pin 2008c2ecf20Sopenharmony_ci */ 2018c2ecf20Sopenharmony_ci if (cpg_mode & BIT(core->offset)) { 2028c2ecf20Sopenharmony_ci div = core->div & 0xffff; 2038c2ecf20Sopenharmony_ci } else { 2048c2ecf20Sopenharmony_ci parent = clks[core->parent >> 16]; 2058c2ecf20Sopenharmony_ci if (IS_ERR(parent)) 2068c2ecf20Sopenharmony_ci return ERR_CAST(parent); 2078c2ecf20Sopenharmony_ci div = core->div >> 16; 2088c2ecf20Sopenharmony_ci } 2098c2ecf20Sopenharmony_ci mult = 1; 2108c2ecf20Sopenharmony_ci break; 2118c2ecf20Sopenharmony_ci 2128c2ecf20Sopenharmony_ci case CLK_TYPE_R8A779A0_OSC: 2138c2ecf20Sopenharmony_ci /* 2148c2ecf20Sopenharmony_ci * Clock combining OSC EXTAL predivider and a fixed divider 2158c2ecf20Sopenharmony_ci */ 2168c2ecf20Sopenharmony_ci div = cpg_pll_config->osc_prediv * core->div; 2178c2ecf20Sopenharmony_ci break; 2188c2ecf20Sopenharmony_ci 2198c2ecf20Sopenharmony_ci default: 2208c2ecf20Sopenharmony_ci return ERR_PTR(-EINVAL); 2218c2ecf20Sopenharmony_ci } 2228c2ecf20Sopenharmony_ci 2238c2ecf20Sopenharmony_ci return clk_register_fixed_factor(NULL, core->name, 2248c2ecf20Sopenharmony_ci __clk_get_name(parent), 0, mult, div); 2258c2ecf20Sopenharmony_ci} 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ci/* 2288c2ecf20Sopenharmony_ci * CPG Clock Data 2298c2ecf20Sopenharmony_ci */ 2308c2ecf20Sopenharmony_ci/* 2318c2ecf20Sopenharmony_ci * MD EXTAL PLL1 PLL20 PLL30 PLL4 PLL5 OSC 2328c2ecf20Sopenharmony_ci * 14 13 (MHz) 21 31 2338c2ecf20Sopenharmony_ci * -------------------------------------------------------- 2348c2ecf20Sopenharmony_ci * 0 0 16.66 x 1 x128 x216 x128 x144 x192 /16 2358c2ecf20Sopenharmony_ci * 0 1 20 x 1 x106 x180 x106 x120 x160 /19 2368c2ecf20Sopenharmony_ci * 1 0 Prohibited setting 2378c2ecf20Sopenharmony_ci * 1 1 33.33 / 2 x128 x216 x128 x144 x192 /32 2388c2ecf20Sopenharmony_ci */ 2398c2ecf20Sopenharmony_ci#define CPG_PLL_CONFIG_INDEX(md) ((((md) & BIT(14)) >> 13) | \ 2408c2ecf20Sopenharmony_ci (((md) & BIT(13)) >> 13)) 2418c2ecf20Sopenharmony_ci 2428c2ecf20Sopenharmony_cistatic const struct rcar_r8a779a0_cpg_pll_config cpg_pll_configs[4] = { 2438c2ecf20Sopenharmony_ci /* EXTAL div PLL1 mult/div PLL5 mult/div OSC prediv */ 2448c2ecf20Sopenharmony_ci { 1, 128, 1, 192, 1, 16, }, 2458c2ecf20Sopenharmony_ci { 1, 106, 1, 160, 1, 19, }, 2468c2ecf20Sopenharmony_ci { 0, 0, 0, 0, 0, 0, }, 2478c2ecf20Sopenharmony_ci { 2, 128, 1, 192, 1, 32, }, 2488c2ecf20Sopenharmony_ci}; 2498c2ecf20Sopenharmony_ci 2508c2ecf20Sopenharmony_cistatic int __init r8a779a0_cpg_mssr_init(struct device *dev) 2518c2ecf20Sopenharmony_ci{ 2528c2ecf20Sopenharmony_ci int error; 2538c2ecf20Sopenharmony_ci 2548c2ecf20Sopenharmony_ci error = rcar_rst_read_mode_pins(&cpg_mode); 2558c2ecf20Sopenharmony_ci if (error) 2568c2ecf20Sopenharmony_ci return error; 2578c2ecf20Sopenharmony_ci 2588c2ecf20Sopenharmony_ci cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; 2598c2ecf20Sopenharmony_ci cpg_clk_extalr = CLK_EXTALR; 2608c2ecf20Sopenharmony_ci spin_lock_init(&cpg_lock); 2618c2ecf20Sopenharmony_ci 2628c2ecf20Sopenharmony_ci return 0; 2638c2ecf20Sopenharmony_ci} 2648c2ecf20Sopenharmony_ci 2658c2ecf20Sopenharmony_ciconst struct cpg_mssr_info r8a779a0_cpg_mssr_info __initconst = { 2668c2ecf20Sopenharmony_ci /* Core Clocks */ 2678c2ecf20Sopenharmony_ci .core_clks = r8a779a0_core_clks, 2688c2ecf20Sopenharmony_ci .num_core_clks = ARRAY_SIZE(r8a779a0_core_clks), 2698c2ecf20Sopenharmony_ci .last_dt_core_clk = LAST_DT_CORE_CLK, 2708c2ecf20Sopenharmony_ci .num_total_core_clks = MOD_CLK_BASE, 2718c2ecf20Sopenharmony_ci 2728c2ecf20Sopenharmony_ci /* Module Clocks */ 2738c2ecf20Sopenharmony_ci .mod_clks = r8a779a0_mod_clks, 2748c2ecf20Sopenharmony_ci .num_mod_clks = ARRAY_SIZE(r8a779a0_mod_clks), 2758c2ecf20Sopenharmony_ci .num_hw_mod_clks = 15 * 32, 2768c2ecf20Sopenharmony_ci 2778c2ecf20Sopenharmony_ci /* Callbacks */ 2788c2ecf20Sopenharmony_ci .init = r8a779a0_cpg_mssr_init, 2798c2ecf20Sopenharmony_ci .cpg_clk_register = rcar_r8a779a0_cpg_clk_register, 2808c2ecf20Sopenharmony_ci 2818c2ecf20Sopenharmony_ci .reg_layout = CLK_REG_LAYOUT_RCAR_V3U, 2828c2ecf20Sopenharmony_ci}; 283