]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: armada-37xx: Set DM_FLAG_PRE_RELOC
authorMarek Behún <marek.behun@nic.cz>
Tue, 25 May 2021 17:42:39 +0000 (19:42 +0200)
committerStefan Roese <sr@denx.de>
Thu, 8 Jul 2021 14:40:52 +0000 (16:40 +0200)
Setting DM_FLAG_PRE_RELOC for Armada 3720 clock drivers (TBG and
peripheral clocks) makes it possible for serial driver to retrieve clock
rates via clk API.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/clk/mvebu/armada-37xx-periph.c
drivers/clk/mvebu/armada-37xx-tbg.c

index b0f47c33b3f755a919c02f1cec49b1242af06739..3b767d7060093ab660c3946b5897398b745f3037 100644 (file)
@@ -626,4 +626,5 @@ U_BOOT_DRIVER(armada_37xx_periph_clk) = {
        .ops            = &armada_37xx_periph_clk_ops,
        .priv_auto      = sizeof(struct a37xx_periphclk),
        .probe          = armada_37xx_periph_clk_probe,
+       .flags          = DM_FLAG_PRE_RELOC,
 };
index b1c0852e89bf6d8b45f4393af6cfc53584676d7c..054aff5e6aca16a907e4c31762733e3a29b615ab 100644 (file)
@@ -152,4 +152,5 @@ U_BOOT_DRIVER(armada_37xx_tbg_clk) = {
        .ops            = &armada_37xx_tbg_clk_ops,
        .priv_auto      = sizeof(struct a37xx_tbgclk),
        .probe          = armada_37xx_tbg_clk_probe,
+       .flags          = DM_FLAG_PRE_RELOC,
 };