]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
reset: reset-mtmips: add DM_FLAG_PRE_RELOC flag
authorWeijie Gao <weijie.gao@mediatek.com>
Thu, 12 Nov 2020 08:37:14 +0000 (16:37 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 24 Jan 2021 20:39:27 +0000 (21:39 +0100)
Add DM_FLAG_PRE_RELOC flag for reset-mtmips to make sure this driver can
be probed before relocation even if u-boot,dm-pre-reloc is not present
in the dts.

Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/reset/reset-mtmips.c

index 848425afbcbe19a51b2a2f65a6d2570e01ca66e9..4e71d5255845c1b50d5c2dbb2cca5dc679df13fa 100644 (file)
@@ -82,4 +82,5 @@ U_BOOT_DRIVER(mtmips_reset) = {
        .probe = mtmips_reset_probe,
        .priv_auto      = sizeof(struct mtmips_reset_priv),
        .ops = &mtmips_reset_ops,
+       .flags = DM_FLAG_PRE_RELOC,
 };