diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2018-01-15 00:58:35 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-01-24 23:27:22 +0100 |
commit | ff50b323b325b0bf44753682656d28c76e9dfda1 (patch) | |
tree | 7572c2d5747a6e390702b23674accb800ef7808b /drivers/clk/renesas/r8a77970-cpg-mssr.c | |
parent | 58f1788f47b3c1da24dc825d5994b88be82c11c1 (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/r8a77970-cpg-mssr.c')
-rw-r--r-- | drivers/clk/renesas/r8a77970-cpg-mssr.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/clk/renesas/r8a77970-cpg-mssr.c b/drivers/clk/renesas/r8a77970-cpg-mssr.c index 5a031cb6eb..ee90f957c8 100644 --- a/drivers/clk/renesas/r8a77970-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77970-cpg-mssr.c @@ -180,12 +180,18 @@ static const struct rcar_gen3_cpg_pll_config cpg_pll_configs[8] = { }; static const struct mstp_stop_table r8a77970_mstp_table[] = { - { 0x00230000, 0x0 }, { 0xFFFFFFFF, 0x0 }, - { 0x14062FD8, 0x2040 }, { 0xFFFFFFDF, 0x400 }, - { 0x80000184, 0x180 }, { 0x83FFFFFF, 0x0 }, - { 0xFFFFFFFF, 0x0 }, { 0xFFFFFFFF, 0x0 }, - { 0x7FF3FFF4, 0x0 }, { 0xFBF7FF97, 0x0 }, - { 0xFFFEFFE0, 0x0 }, { 0x000000B7, 0x0 }, + { 0x00230000, 0x0, 0x00230000, 0 }, + { 0xFFFFFFFF, 0x0, 0xFFFFFFFF, 0 }, + { 0x14062FD8, 0x2040, 0x14062FD8, 0 }, + { 0xFFFFFFDF, 0x400, 0xFFFFFFDF, 0 }, + { 0x80000184, 0x180, 0x80000184, 0 }, + { 0x83FFFFFF, 0x0, 0x83FFFFFF, 0 }, + { 0xFFFFFFFF, 0x0, 0xFFFFFFFF, 0 }, + { 0xFFFFFFFF, 0x0, 0xFFFFFFFF, 0 }, + { 0x7FF3FFF4, 0x0, 0x7FF3FFF4, 0 }, + { 0xFBF7FF97, 0x0, 0xFBF7FF97, 0 }, + { 0xFFFEFFE0, 0x0, 0xFFFEFFE0, 0 }, + { 0x000000B7, 0x0, 0x000000B7, 0 }, }; static const void *r8a77970_get_pll_config(const u32 cpg_mode) |