soc: renesas: r8a774c0-sysc: Fix initialization order of 3DG-{A,B}
authorBiju Das <biju.das@bp.renesas.com>
Wed, 12 Dec 2018 12:17:11 +0000 (12:17 +0000)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 7 Jan 2019 13:51:51 +0000 (14:51 +0100)
commita64597227d0de5610407fcc95dc835745a53f5d0
tree13dd3e1d7b87100582677d18367ee0055c83f256
parent8070ba6348608aa1da15eb83dbaa9ece596aaa67
soc: renesas: r8a774c0-sysc: Fix initialization order of 3DG-{A,B}

The workaround for the wrong hierarchy of the 3DG-{A,B} power domains on
RZ/G2E ES1.0 corrected the parent domains. However, the 3DG-{A,B} power
domains were still initialized and powered in the wrong order, causing
3DG operation to fail.

Fix this by changing the order in the table at runtime, when running on
an affected SoC.

This work is based on the work done by Geert for R-Car E3.

Fixes: f37d211c687588328 ("soc: renesas: rcar-sysc: Add r8a774c0 support")

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/soc/renesas/r8a774c0-sysc.c