We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb6a9aa commit 3baf027Copy full SHA for 3baf027
drivers/clk/renesas/r9a09g047-cpg.c
@@ -37,6 +37,14 @@ enum clk_ids {
37
MOD_CLK_BASE,
38
};
39
40
+static const struct clk_div_table dtable_1_8[] = {
41
+ {0, 1},
42
+ {1, 2},
43
+ {2, 4},
44
+ {3, 8},
45
+ {0, 0},
46
+};
47
+
48
static const struct clk_div_table dtable_2_64[] = {
49
{0, 2},
50
{1, 4},
@@ -65,6 +73,14 @@ static const struct cpg_core_clk r9a09g047_core_clks[] __initconst = {
65
73
66
74
/* Core Clocks */
67
75
DEF_FIXED("sys_0_pclk", R9A09G047_SYS_0_PCLK, CLK_QEXTAL, 1, 1),
76
+ DEF_DDIV("ca55_0_coreclk0", R9A09G047_CA55_0_CORECLK0, CLK_PLLCA55,
77
+ CDDIV1_DIVCTL0, dtable_1_8),
78
+ DEF_DDIV("ca55_0_coreclk1", R9A09G047_CA55_0_CORECLK1, CLK_PLLCA55,
79
+ CDDIV1_DIVCTL1, dtable_1_8),
80
+ DEF_DDIV("ca55_0_coreclk2", R9A09G047_CA55_0_CORECLK2, CLK_PLLCA55,
81
+ CDDIV1_DIVCTL2, dtable_1_8),
82
+ DEF_DDIV("ca55_0_coreclk3", R9A09G047_CA55_0_CORECLK3, CLK_PLLCA55,
83
+ CDDIV1_DIVCTL3, dtable_1_8),
68
84
DEF_FIXED("iotop_0_shclk", R9A09G047_IOTOP_0_SHCLK, CLK_PLLCM33_DIV16, 1, 1),
69
85
70
86
0 commit comments