]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clk: renesas: Do not enable MSTP4 extra modules on R8A77995 D3
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Sun, 28 Dec 2025 22:07:16 +0000 (23:07 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Mon, 29 Dec 2025 19:47:53 +0000 (20:47 +0100)
Since commit a2bd99549c61 ("clk: renesas: Tear clock controller down
last before booting OS") enabling the module gated by bit 8 in MSTP4
prevents Linux from booting. The bits 8 and 7 of MSTP4 where only
documented in early versions of the datasheet and have since been
removed.

To allow Linux to boot update the MSTP4 enable value to reflect the
hardware default, 0x80.

Suggested-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
drivers/clk/renesas/r8a77995-cpg-mssr.c

index f49faa47cb3718efc295df6c8250aa06bd62ecd6..309b0aec8e2abe56f36fbbdc5ca4a343a803c5e6 100644 (file)
@@ -220,7 +220,7 @@ static const struct mstp_stop_table r8a77995_mstp_table[] = {
        { 0x03e01000, 0x0, 0x03e01000, 0 },
        { 0x000e2fdc, 0x2000, 0x000e2fd8, 0 },
        { 0xc00014df, 0x400, 0xc00014df, 0 },
-       { 0x80000004, 0x180, 0x80000004, 0 },
+       { 0x80000004, 0x80, 0x80000004, 0 },
        { 0x40d20004, 0x0, 0x40d20004, 0 },
        { 0x08c0008c, 0x0, 0x08c0008c, 0 },
        { 0x09941c18, 0x0, 0x09941c18, 0 },