Hai Pham | 2802869 | 2024-01-28 16:52:01 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * r8a779h0 Clock Pulse Generator / Module Standby and Software Reset |
| 4 | * |
| 5 | * Copyright (C) 2023 Renesas Electronics Corp. |
| 6 | * |
| 7 | * Based on r8a779g0-cpg-mssr.c |
| 8 | */ |
| 9 | |
| 10 | #include <clk-uclass.h> |
| 11 | #include <dm.h> |
| 12 | |
| 13 | #include <dt-bindings/clock/renesas,r8a779h0-cpg-mssr.h> |
| 14 | |
| 15 | #include "renesas-cpg-mssr.h" |
| 16 | #include "rcar-gen3-cpg.h" |
| 17 | |
| 18 | enum clk_ids { |
| 19 | /* Core Clock Outputs exported to DT */ |
| 20 | LAST_DT_CORE_CLK = R8A779H0_CLK_R, |
| 21 | |
| 22 | /* External Input Clocks */ |
| 23 | CLK_EXTAL, |
| 24 | CLK_EXTALR, |
| 25 | |
| 26 | /* Internal Core Clocks */ |
| 27 | CLK_MAIN, |
| 28 | CLK_PLL1, |
| 29 | CLK_PLL2, |
| 30 | CLK_PLL3, |
| 31 | CLK_PLL4, |
| 32 | CLK_PLL5, |
| 33 | CLK_PLL6, |
| 34 | CLK_PLL7, |
| 35 | CLK_PLL1_DIV2, |
| 36 | CLK_PLL2_DIV2, |
| 37 | CLK_PLL3_DIV2, |
| 38 | CLK_PLL4_DIV2, |
| 39 | CLK_PLL4_DIV5, |
| 40 | CLK_PLL5_DIV2, |
| 41 | CLK_PLL5_DIV4, |
| 42 | CLK_PLL6_DIV2, |
| 43 | CLK_PLL7_DIV2, |
| 44 | CLK_S0, |
| 45 | CLK_S0_VIO, |
| 46 | CLK_S0_VC, |
| 47 | CLK_S0_HSC, |
| 48 | CLK_SASYNCPER, |
| 49 | CLK_SV_VIP, |
| 50 | CLK_SV_IR, |
| 51 | CLK_IMPASRC, |
| 52 | CLK_IMPBSRC, |
| 53 | CLK_VIOSRC, |
| 54 | CLK_VCSRC, |
| 55 | CLK_SDSRC, |
| 56 | CLK_RPCSRC, |
| 57 | CLK_OCO, |
| 58 | |
| 59 | /* Module Clocks */ |
| 60 | MOD_CLK_BASE |
| 61 | }; |
| 62 | |
| 63 | static const struct cpg_core_clk r8a779h0_core_clks[] = { |
| 64 | /* External Clock Inputs */ |
| 65 | DEF_INPUT("extal", CLK_EXTAL), |
| 66 | DEF_INPUT("extalr", CLK_EXTALR), |
| 67 | |
| 68 | /* Internal Core Clocks */ |
| 69 | DEF_BASE(".main", CLK_MAIN, CLK_TYPE_GEN4_MAIN, CLK_EXTAL), |
| 70 | DEF_BASE(".pll1", CLK_PLL1, CLK_TYPE_GEN4_PLL1, CLK_MAIN), |
| 71 | DEF_BASE(".pll2", CLK_PLL2, CLK_TYPE_GEN4_PLL2, CLK_MAIN), |
| 72 | DEF_BASE(".pll3", CLK_PLL3, CLK_TYPE_GEN4_PLL3, CLK_MAIN), |
| 73 | DEF_BASE(".pll4", CLK_PLL4, CLK_TYPE_GEN4_PLL4, CLK_MAIN), |
| 74 | DEF_BASE(".pll5", CLK_PLL5, CLK_TYPE_GEN4_PLL5, CLK_MAIN), |
| 75 | DEF_BASE(".pll6", CLK_PLL6, CLK_TYPE_GEN4_PLL6, CLK_MAIN), |
| 76 | DEF_BASE(".pll7", CLK_PLL7, CLK_TYPE_GEN4_PLL7, CLK_MAIN), |
| 77 | |
| 78 | DEF_FIXED(".pll1_div2", CLK_PLL1_DIV2, CLK_PLL1, 2, 1), |
| 79 | DEF_FIXED(".pll2_div2", CLK_PLL2_DIV2, CLK_PLL2, 2, 1), |
| 80 | DEF_FIXED(".pll3_div2", CLK_PLL3_DIV2, CLK_PLL3, 2, 1), |
| 81 | DEF_FIXED(".pll4_div2", CLK_PLL4_DIV2, CLK_PLL4, 2, 1), |
| 82 | DEF_FIXED(".pll4_div5", CLK_PLL4_DIV5, CLK_PLL4, 5, 1), |
| 83 | DEF_FIXED(".pll5_div2", CLK_PLL5_DIV2, CLK_PLL5, 2, 1), |
| 84 | DEF_FIXED(".pll5_div4", CLK_PLL5_DIV4, CLK_PLL5_DIV2, 2, 1), |
| 85 | DEF_FIXED(".pll6_div2", CLK_PLL6_DIV2, CLK_PLL6, 2, 1), |
| 86 | DEF_FIXED(".pll7_div2", CLK_PLL7_DIV2, CLK_PLL7, 2, 1), |
| 87 | DEF_FIXED(".s0", CLK_S0, CLK_PLL1_DIV2, 2, 1), |
| 88 | DEF_FIXED(".s0_vio", CLK_S0_VIO, CLK_PLL1_DIV2, 2, 1), |
| 89 | DEF_FIXED(".s0_vc", CLK_S0_VC, CLK_PLL1_DIV2, 2, 1), |
| 90 | DEF_FIXED(".s0_hsc", CLK_S0_HSC, CLK_PLL1_DIV2, 2, 1), |
| 91 | DEF_FIXED(".sasyncper", CLK_SASYNCPER, CLK_PLL5_DIV4, 3, 1), |
| 92 | DEF_FIXED(".sv_vip", CLK_SV_VIP, CLK_PLL1, 5, 1), |
| 93 | DEF_FIXED(".sv_ir", CLK_SV_IR, CLK_PLL1, 5, 1), |
| 94 | DEF_FIXED(".impasrc", CLK_IMPASRC, CLK_PLL1_DIV2, 2, 1), |
| 95 | DEF_FIXED(".impbsrc", CLK_IMPBSRC, CLK_PLL1, 4, 1), |
| 96 | DEF_FIXED(".viosrc", CLK_VIOSRC, CLK_PLL1, 6, 1), |
| 97 | DEF_FIXED(".vcsrc", CLK_VCSRC, CLK_PLL1, 6, 1), |
| 98 | DEF_BASE(".sdsrc", CLK_SDSRC, CLK_TYPE_GEN4_SDSRC, CLK_PLL5), |
| 99 | DEF_BASE(".rpcsrc", CLK_RPCSRC, CLK_TYPE_GEN4_RPCSRC, CLK_PLL5), |
| 100 | DEF_RATE(".oco", CLK_OCO, 32768), |
| 101 | |
| 102 | /* Core Clock Outputs */ |
| 103 | DEF_GEN4_Z("zc0", R8A779H0_CLK_ZC0, CLK_TYPE_GEN4_Z, CLK_PLL2_DIV2, 2, 0), |
| 104 | DEF_GEN4_Z("zc1", R8A779H0_CLK_ZC1, CLK_TYPE_GEN4_Z, CLK_PLL2_DIV2, 2, 8), |
| 105 | DEF_GEN4_Z("zc2", R8A779H0_CLK_ZC2, CLK_TYPE_GEN4_Z, CLK_PLL2_DIV2, 2, 32), |
| 106 | DEF_GEN4_Z("zc3", R8A779H0_CLK_ZC3, CLK_TYPE_GEN4_Z, CLK_PLL2_DIV2, 2, 40), |
| 107 | DEF_FIXED("s0d2", R8A779H0_CLK_S0D2, CLK_S0, 2, 1), |
| 108 | DEF_FIXED("s0d3", R8A779H0_CLK_S0D3, CLK_S0, 3, 1), |
| 109 | DEF_FIXED("s0d4", R8A779H0_CLK_S0D4, CLK_S0, 4, 1), |
| 110 | DEF_FIXED("cl16m", R8A779H0_CLK_CL16M, CLK_S0, 48, 1), |
| 111 | DEF_FIXED("s0d2_rt", R8A779H0_CLK_S0D2_RT, CLK_S0, 2, 1), |
| 112 | DEF_FIXED("s0d3_rt", R8A779H0_CLK_S0D3_RT, CLK_S0, 3, 1), |
| 113 | DEF_FIXED("s0d4_rt", R8A779H0_CLK_S0D4_RT, CLK_S0, 4, 1), |
| 114 | DEF_FIXED("s0d6_rt", R8A779H0_CLK_S0D6_RT, CLK_S0, 6, 1), |
| 115 | DEF_FIXED("cl16m_rt", R8A779H0_CLK_CL16M_RT, CLK_S0, 48, 1), |
| 116 | DEF_FIXED("s0d2_per", R8A779H0_CLK_S0D2_PER, CLK_S0, 2, 1), |
| 117 | DEF_FIXED("s0d3_per", R8A779H0_CLK_S0D3_PER, CLK_S0, 3, 1), |
| 118 | DEF_FIXED("s0d4_per", R8A779H0_CLK_S0D4_PER, CLK_S0, 4, 1), |
| 119 | DEF_FIXED("s0d6_per", R8A779H0_CLK_S0D6_PER, CLK_S0, 6, 1), |
| 120 | DEF_FIXED("s0d12_per", R8A779H0_CLK_S0D12_PER, CLK_S0, 12, 1), |
| 121 | DEF_FIXED("s0d24_per", R8A779H0_CLK_S0D24_PER, CLK_S0, 24, 1), |
| 122 | DEF_FIXED("cl16m_per", R8A779H0_CLK_CL16M_PER, CLK_S0, 48, 1), |
| 123 | DEF_FIXED("s0d2_mm", R8A779H0_CLK_S0D2_MM, CLK_S0, 2, 1), |
| 124 | DEF_FIXED("s0d4_mm", R8A779H0_CLK_S0D4_MM, CLK_S0, 4, 1), |
| 125 | DEF_FIXED("cl16m_mm", R8A779H0_CLK_CL16M_MM, CLK_S0, 48, 1), |
| 126 | DEF_FIXED("s0d2_u3dg", R8A779H0_CLK_S0D2_U3DG, CLK_S0, 2, 1), |
| 127 | DEF_FIXED("s0d4_u3dg", R8A779H0_CLK_S0D4_U3DG, CLK_S0, 4, 1), |
| 128 | DEF_FIXED("s0d1_vio", R8A779H0_CLK_S0D1_VIO, CLK_S0_VIO, 1, 1), |
| 129 | DEF_FIXED("s0d2_vio", R8A779H0_CLK_S0D2_VIO, CLK_S0_VIO, 2, 1), |
| 130 | DEF_FIXED("s0d4_vio", R8A779H0_CLK_S0D4_VIO, CLK_S0_VIO, 4, 1), |
| 131 | DEF_FIXED("s0d8_vio", R8A779H0_CLK_S0D8_VIO, CLK_S0_VIO, 8, 1), |
| 132 | DEF_FIXED("s0d1_vc", R8A779H0_CLK_S0D1_VC, CLK_S0_VC, 1, 1), |
| 133 | DEF_FIXED("s0d2_vc", R8A779H0_CLK_S0D2_VC, CLK_S0_VC, 2, 1), |
| 134 | DEF_FIXED("s0d4_vc", R8A779H0_CLK_S0D4_VC, CLK_S0_VC, 4, 1), |
| 135 | DEF_FIXED("s0d1_hsc", R8A779H0_CLK_S0D1_HSC, CLK_S0_HSC, 1, 1), |
| 136 | DEF_FIXED("s0d2_hsc", R8A779H0_CLK_S0D2_HSC, CLK_S0_HSC, 2, 1), |
| 137 | DEF_FIXED("s0d4_hsc", R8A779H0_CLK_S0D4_HSC, CLK_S0_HSC, 4, 1), |
| 138 | DEF_FIXED("s0d8_hsc", R8A779H0_CLK_S0D8_HSC, CLK_S0_HSC, 8, 1), |
| 139 | DEF_FIXED("cl16m_hsc", R8A779H0_CLK_CL16M_HSC, CLK_S0_HSC, 48, 1), |
| 140 | DEF_FIXED("sasyncrt", R8A779H0_CLK_SASYNCRT, CLK_PLL5_DIV4, 48, 1), |
| 141 | DEF_FIXED("sasyncperd1", R8A779H0_CLK_SASYNCPERD1, CLK_SASYNCPER, 1, 1), |
| 142 | DEF_FIXED("sasyncperd2", R8A779H0_CLK_SASYNCPERD2, CLK_SASYNCPER, 2, 1), |
| 143 | DEF_FIXED("sasyncperd4", R8A779H0_CLK_SASYNCPERD4, CLK_SASYNCPER, 4, 1), |
| 144 | DEF_FIXED("svd1_vip", R8A779H0_CLK_SVD1_VIP, CLK_SV_VIP, 1, 1), |
| 145 | DEF_FIXED("svd2_vip", R8A779H0_CLK_SVD2_VIP, CLK_SV_VIP, 2, 1), |
| 146 | DEF_FIXED("svd1_ir", R8A779H0_CLK_SVD1_IR, CLK_SV_IR, 1, 1), |
| 147 | DEF_FIXED("svd2_ir", R8A779H0_CLK_SVD2_IR, CLK_SV_IR, 2, 1), |
| 148 | DEF_FIXED("cbfusa", R8A779H0_CLK_CBFUSA, CLK_EXTAL, 2, 1), |
| 149 | DEF_FIXED("cpex", R8A779H0_CLK_CPEX, CLK_EXTAL, 2, 1), |
| 150 | DEF_FIXED("cp", R8A779H0_CLK_CP, CLK_EXTAL, 2, 1), |
| 151 | DEF_FIXED("impad1", R8A779H0_CLK_IMPAD1, CLK_IMPASRC, 1, 1), |
| 152 | DEF_FIXED("impad4", R8A779H0_CLK_IMPAD4, CLK_IMPASRC, 4, 1), |
| 153 | DEF_FIXED("impb", R8A779H0_CLK_IMPB, CLK_IMPBSRC, 1, 1), |
| 154 | DEF_FIXED("viobusd1", R8A779H0_CLK_VIOBUSD1, CLK_VIOSRC, 1, 1), |
| 155 | DEF_FIXED("viobusd2", R8A779H0_CLK_VIOBUSD2, CLK_VIOSRC, 2, 1), |
| 156 | DEF_FIXED("vcbusd1", R8A779H0_CLK_VCBUSD1, CLK_VCSRC, 1, 1), |
| 157 | DEF_FIXED("vcbusd2", R8A779H0_CLK_VCBUSD2, CLK_VCSRC, 2, 1), |
| 158 | DEF_DIV6P1("canfd", R8A779H0_CLK_CANFD, CLK_PLL5_DIV4, 0x878), |
| 159 | DEF_DIV6P1("csi", R8A779H0_CLK_CSI, CLK_PLL5_DIV4, 0x880), |
| 160 | DEF_FIXED("dsiref", R8A779H0_CLK_DSIREF, CLK_PLL5_DIV4, 48, 1), |
| 161 | DEF_DIV6P1("dsiext", R8A779H0_CLK_DSIEXT, CLK_PLL5_DIV4, 0x884), |
| 162 | DEF_DIV6P1("mso", R8A779H0_CLK_MSO, CLK_PLL5_DIV4, 0x87c), |
| 163 | |
| 164 | DEF_GEN4_SDH("sd0h", R8A779H0_CLK_SD0H, CLK_SDSRC, 0x870), |
| 165 | DEF_GEN4_SD("sd0", R8A779H0_CLK_SD0, R8A779H0_CLK_SD0H, 0x870), |
| 166 | |
| 167 | DEF_BASE("rpc", R8A779H0_CLK_RPC, CLK_TYPE_GEN4_RPC, CLK_RPCSRC), |
| 168 | DEF_BASE("rpcd2", R8A779H0_CLK_RPCD2, CLK_TYPE_GEN4_RPCD2, R8A779H0_CLK_RPC), |
| 169 | |
| 170 | DEF_GEN4_OSC("osc", R8A779H0_CLK_OSC, CLK_EXTAL, 8), |
| 171 | DEF_GEN4_MDSEL("r", R8A779H0_CLK_R, 29, CLK_EXTALR, 1, CLK_OCO, 1), |
| 172 | }; |
| 173 | |
| 174 | static const struct mssr_mod_clk r8a779h0_mod_clks[] = { |
| 175 | DEF_MOD("avb0-rgmii0", 211, R8A779H0_CLK_S0D8_HSC), |
| 176 | DEF_MOD("avb1-rgmii1", 212, R8A779H0_CLK_S0D8_HSC), |
| 177 | DEF_MOD("avb2-rgmii2", 213, R8A779H0_CLK_S0D8_HSC), |
| 178 | DEF_MOD("hscif0", 514, R8A779H0_CLK_SASYNCPERD1), |
| 179 | DEF_MOD("hscif1", 515, R8A779H0_CLK_SASYNCPERD1), |
| 180 | DEF_MOD("hscif2", 516, R8A779H0_CLK_SASYNCPERD1), |
| 181 | DEF_MOD("hscif3", 517, R8A779H0_CLK_SASYNCPERD1), |
| 182 | DEF_MOD("i2c0", 518, R8A779H0_CLK_S0D6_PER), |
| 183 | DEF_MOD("i2c1", 519, R8A779H0_CLK_S0D6_PER), |
| 184 | DEF_MOD("i2c2", 520, R8A779H0_CLK_S0D6_PER), |
| 185 | DEF_MOD("i2c3", 521, R8A779H0_CLK_S0D6_PER), |
| 186 | DEF_MOD("rpc-if", 629, R8A779H0_CLK_RPCD2), |
| 187 | DEF_MOD("sdhi0", 706, R8A779H0_CLK_SD0), |
| 188 | DEF_MOD("pfc0", 915, R8A779H0_CLK_CL16M), |
| 189 | DEF_MOD("pfc1", 916, R8A779H0_CLK_CL16M), |
| 190 | DEF_MOD("pfc2", 917, R8A779H0_CLK_CL16M), |
| 191 | }; |
| 192 | |
| 193 | /* |
| 194 | * CPG Clock Data |
| 195 | */ |
| 196 | /* |
| 197 | * MD EXTAL PLL1 PLL2 PLL3 PLL4 PLL5 PLL6 OSC |
| 198 | * 14 13 (MHz) |
| 199 | * ------------------------------------------------------------------------ |
| 200 | * 0 0 16.66 / 1 x192 x204 x192 x144 x192 x168 /16 |
| 201 | * 0 1 20 / 1 x160 x170 x160 x120 x160 x140 /19 |
| 202 | * 1 0 Prohibited setting |
| 203 | * 1 1 33.33 / 2 x192 x204 x192 x144 x192 x168 /32 |
| 204 | */ |
| 205 | #define CPG_PLL_CONFIG_INDEX(md) ((((md) & BIT(14)) >> 13) | \ |
| 206 | (((md) & BIT(13)) >> 13)) |
| 207 | |
| 208 | static const struct rcar_gen4_cpg_pll_config cpg_pll_configs[4] = { |
Marek Vasut | 55f0826 | 2024-01-28 16:52:02 +0100 | [diff] [blame] | 209 | /* EXTAL div PLL1 mult/div PLL2 mult/div PLL3 mult/div PLL4 mult/div PLL5 mult/div PLL6 mult/div OSC prediv PLL7 mult/div */ |
| 210 | { 1, 192, 1, 240, 1, 192, 1, 240, 1, 192, 1, 168, 1, 16, 120, 1, }, |
| 211 | { 1, 160, 1, 200, 1, 160, 1, 200, 1, 160, 1, 140, 1, 19, 100, 1, }, |
| 212 | { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, |
| 213 | { 2, 192, 1, 240, 1, 192, 1, 240, 1, 192, 1, 168, 1, 32, 120, 1, }, |
Hai Pham | 2802869 | 2024-01-28 16:52:01 +0100 | [diff] [blame] | 214 | }; |
| 215 | |
| 216 | /* |
| 217 | * Note that the only clock left running before booting Linux are now |
| 218 | * MFIS, INTC-AP, INTC-EX, SCIF0, HSCIF0 on V4M |
| 219 | */ |
| 220 | #define MSTPCR5_INTCAP BIT(11) |
| 221 | #define MSTPCR5_HSCIF0 BIT(14) |
| 222 | #define MSTPCR6_INTCEX BIT(11) |
| 223 | #define MSTPCR7_SCIF0 BIT(2) |
| 224 | |
| 225 | static const struct mstp_stop_table r8a779h0_mstp_table[] = { |
| 226 | { 0x0FC102A1, 0x0, 0x0, 0x0 }, |
| 227 | { 0x00D50020, 0x0, 0x0, 0x0 }, |
| 228 | { 0x00003800, 0x0, 0x0, 0x0 }, |
| 229 | { 0xF0000000, 0x0, 0x0, 0x0 }, |
| 230 | { 0x0000CA01, 0x0, 0x0, 0x0 }, |
| 231 | { 0xE63FE100, MSTPCR5_HSCIF0 | MSTPCR5_INTCAP, 0x0, 0x0 }, |
| 232 | { 0xF1FF3900, MSTPCR6_INTCEX, 0x0, 0x0 }, |
| 233 | { 0xDFF7E6FC, MSTPCR7_SCIF0, 0x0, 0x0 }, |
| 234 | { 0x40003FFF, 0x0, 0x0, 0x0 }, |
| 235 | { 0x001BBCF8, 0x0, 0x0, 0x0 }, |
| 236 | { 0x10000000, 0x0, 0x0, 0x0 }, |
| 237 | { 0x00000001, 0x0, 0x0, 0x0 }, |
| 238 | { 0xDE000000, 0x0, 0x0, 0x0 }, |
| 239 | { 0x00000017, 0x0, 0x0, 0x0 }, |
| 240 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 241 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 242 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 243 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 244 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 245 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 246 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 247 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 248 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 249 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 250 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 251 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 252 | { 0x00000000, 0x0, 0x0, 0x0 }, |
| 253 | { 0x308003C0, 0x0, 0x0, 0x0 }, |
| 254 | { 0x402200E6, 0x0, 0x0, 0x0 }, |
| 255 | { 0x0C000000, 0x0, 0x0, 0x0 }, |
| 256 | }; |
| 257 | |
| 258 | static const void *r8a779h0_get_pll_config(const u32 cpg_mode) |
| 259 | { |
| 260 | return &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; |
| 261 | } |
| 262 | |
| 263 | static const struct cpg_mssr_info r8a779h0_cpg_mssr_info = { |
| 264 | .core_clk = r8a779h0_core_clks, |
| 265 | .core_clk_size = ARRAY_SIZE(r8a779h0_core_clks), |
| 266 | .mod_clk = r8a779h0_mod_clks, |
| 267 | .mod_clk_size = ARRAY_SIZE(r8a779h0_mod_clks), |
| 268 | .mstp_table = r8a779h0_mstp_table, |
| 269 | .mstp_table_size = ARRAY_SIZE(r8a779h0_mstp_table), |
| 270 | .reset_node = "renesas,r8a779h0-rst", |
| 271 | .reset_modemr_offset = CPG_RST_MODEMR0, |
| 272 | .extalr_node = "extalr", |
| 273 | .mod_clk_base = MOD_CLK_BASE, |
| 274 | .clk_extal_id = CLK_EXTAL, |
| 275 | .clk_extalr_id = CLK_EXTALR, |
| 276 | .get_pll_config = r8a779h0_get_pll_config, |
| 277 | .reg_layout = CLK_REG_LAYOUT_RCAR_GEN4, |
| 278 | }; |
| 279 | |
| 280 | static const struct udevice_id r8a779h0_cpg_ids[] = { |
| 281 | { |
| 282 | .compatible = "renesas,r8a779h0-cpg-mssr", |
| 283 | .data = (ulong)&r8a779h0_cpg_mssr_info |
| 284 | }, |
| 285 | { } |
| 286 | }; |
| 287 | |
| 288 | U_BOOT_DRIVER(clk_r8a779h0) = { |
| 289 | .name = "cpg_r8a779h0", |
| 290 | .id = UCLASS_NOP, |
| 291 | .of_match = r8a779h0_cpg_ids, |
| 292 | .bind = gen3_cpg_bind, |
| 293 | }; |