@@ -693,6 +693,8 @@ struct clk * __init rcar_gen3_cpg_clk_register(struct device *dev,
return clk_register_divider_table(NULL, core->name,
__clk_get_name(parent), 0,
base + CPG_RPCCKCR, 3, 2, 0,
+ info->cpg_rpcsrc_div_table ?
+ info->cpg_rpcsrc_div_table :
cpg_rpcsrc_div_table,
&cpg_lock);
@@ -8,6 +8,8 @@
#ifndef __CLK_RENESAS_CPG_MSSR_H__
#define __CLK_RENESAS_CPG_MSSR_H__
+#include <linux/clk-provider.h>
+
/*
* Definitions of CPG Core Clocks
*
@@ -116,6 +118,8 @@ enum clk_reg_layout {
* Management, in addition to Module Clocks
* @num_core_pm_clks: Number of entries in core_pm_clks[]
*
+ * @cpg_rpcsrc_div_table: DIV table for RPCSRC
+ *
* @init: Optional callback to perform SoC-specific initialization
* @cpg_clk_register: Optional callback to handle special Core Clock types
*/
@@ -147,6 +151,8 @@ struct cpg_mssr_info {
const unsigned int *core_pm_clks;
unsigned int num_core_pm_clks;
+ const struct clk_div_table *cpg_rpcsrc_div_table;
+
/* Callbacks */
int (*init)(struct device *dev);
struct clk *(*cpg_clk_register)(struct device *dev,