Skip to content

Commit 87e2a58

Browse files
lokeshvutlabebarino
authored andcommitted
clk: keystone: syscon-clk: Add support for AM64 specific epwm-tbclk
AM64 has 9 instances of EPWM modules. And each instance has a clk to Timer-Base sub-module that can be controlled by Control module. Update the driver with all the 9 instance of clocks associated to ti,am64-epwm-tbclk. Signed-off-by: Lokesh Vutla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Tero Kristo <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 958ae02 commit 87e2a58

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

drivers/clk/keystone/syscon-clk.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,28 @@ static const struct ti_syscon_gate_clk_data am654_clk_data[] = {
149149
{ /* Sentinel */ },
150150
};
151151

152+
static const struct ti_syscon_gate_clk_data am64_clk_data[] = {
153+
TI_SYSCON_CLK_GATE("epwm_tbclk0", 0x0, 0),
154+
TI_SYSCON_CLK_GATE("epwm_tbclk1", 0x0, 1),
155+
TI_SYSCON_CLK_GATE("epwm_tbclk2", 0x0, 2),
156+
TI_SYSCON_CLK_GATE("epwm_tbclk3", 0x0, 3),
157+
TI_SYSCON_CLK_GATE("epwm_tbclk4", 0x0, 4),
158+
TI_SYSCON_CLK_GATE("epwm_tbclk5", 0x0, 5),
159+
TI_SYSCON_CLK_GATE("epwm_tbclk6", 0x0, 6),
160+
TI_SYSCON_CLK_GATE("epwm_tbclk7", 0x0, 7),
161+
TI_SYSCON_CLK_GATE("epwm_tbclk8", 0x0, 8),
162+
{ /* Sentinel */ },
163+
};
164+
152165
static const struct of_device_id ti_syscon_gate_clk_ids[] = {
153166
{
154167
.compatible = "ti,am654-ehrpwm-tbclk",
155168
.data = &am654_clk_data,
156169
},
170+
{
171+
.compatible = "ti,am64-epwm-tbclk",
172+
.data = &am64_clk_data,
173+
},
157174
{ }
158175
};
159176
MODULE_DEVICE_TABLE(of, ti_syscon_gate_clk_ids);

0 commit comments

Comments
 (0)