]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: renesas: Tear clock controller down last before booting OS
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 25 Apr 2020 12:57:55 +0000 (14:57 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 12 Aug 2023 22:03:36 +0000 (00:03 +0200)
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>
drivers/clk/renesas/clk-rcar-gen3.c

index c8a5512b65ea4799455d7dbe0ac29d24655b31e7..0d274bb986e1eb65a2680ca01f07b59360a56c1a 100644 (file)
@@ -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)