summaryrefslogtreecommitdiff
path: root/drivers/clk/renesas/clk-rcar-gen3.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2018-01-15 00:58:35 +0100
committerMarek Vasut <marex@denx.de>2018-01-24 23:27:22 +0100
commitff50b323b325b0bf44753682656d28c76e9dfda1 (patch)
tree7572c2d5747a6e390702b23674accb800ef7808b /drivers/clk/renesas/clk-rcar-gen3.c
parent58f1788f47b3c1da24dc825d5994b88be82c11c1 (diff)
clk: renesas: Split SMSTPCR and RMSTPCR tables
The Gen2 requires setting RMSTPCR before booting, while on Gen3 this is thus far always zero. Split the tables so the RMSTPCR can be set too. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'drivers/clk/renesas/clk-rcar-gen3.c')
-rw-r--r--drivers/clk/renesas/clk-rcar-gen3.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c
index 76c6de2ab2..ba3c6da326 100644
--- a/drivers/clk/renesas/clk-rcar-gen3.c
+++ b/drivers/clk/renesas/clk-rcar-gen3.c
@@ -500,10 +500,11 @@ int gen3_clk_remove(struct udevice *dev)
/* Stop module clock */
for (i = 0; i < info->mstp_table_size; i++) {
clrsetbits_le32(priv->base + SMSTPCR(i),
- info->mstp_table[i].dis,
- info->mstp_table[i].en);
+ info->mstp_table[i].sdis,
+ info->mstp_table[i].sen);
clrsetbits_le32(priv->base + RMSTPCR(i),
- info->mstp_table[i].dis, 0x0);
+ info->mstp_table[i].rdis,
+ info->mstp_table[i].ren);
}
return 0;