summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2020-04-25 14:57:55 +0200
committerMarek Vasut <marek.vasut+renesas@mailbox.org>2023-08-13 00:03:36 +0200
commita2bd99549c61768b67ec55bb104b9f2abaf52960 (patch)
tree8577eff71e69d4e445ba4222a42814208ed1bc55
parenta5899cc69a99379f01e8e2f9f98e0e09b24f1656 (diff)
downloadu-boot-a2bd99549c61768b67ec55bb104b9f2abaf52960.tar.gz
u-boot-a2bd99549c61768b67ec55bb104b9f2abaf52960.tar.bz2
u-boot-a2bd99549c61768b67ec55bb104b9f2abaf52960.zip
clk: renesas: Tear clock controller down last before booting OS
Once all the other drivers got torn down in preparation for the OS to start, tear down the clock controller last. The clock controller must be torn down last as some of the clock which get turned off might have still been needed during the teardown stage of the other drivers. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Signed-off-by: Tam Nguyen <tam.nguyen.xa@renesas.com> Signed-off-by: Hai Pham <hai.pham.ud@renesas.com>
-rw-r--r--drivers/clk/renesas/clk-rcar-gen3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c
index c8a5512b65..0d274bb986 100644
--- a/drivers/clk/renesas/clk-rcar-gen3.c
+++ b/drivers/clk/renesas/clk-rcar-gen3.c
@@ -526,6 +526,7 @@ U_BOOT_DRIVER(clk_gen3) = {
.ops = &gen3_clk_ops,
.probe = gen3_clk_probe,
.remove = gen3_clk_remove,
+ .flags = DM_FLAG_OS_PREPARE | DM_FLAG_VITAL,
};
static int gen3_reset_assert(struct reset_ctl *reset_ctl)
@@ -565,6 +566,7 @@ U_BOOT_DRIVER(rst_gen3) = {
.name = "rst_gen3",
.id = UCLASS_RESET,
.ops = &rst_gen3_ops,
+ .flags = DM_FLAG_OS_PREPARE | DM_FLAG_VITAL,
};
int gen3_cpg_bind(struct udevice *parent)