]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pinctrl: mediatek: mt7981: init device before relocation
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 24 Jun 2024 21:03:37 +0000 (23:03 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 8 Jul 2024 17:45:50 +0000 (11:45 -0600)
Upstream kernel linux define pinctrl for uart0, hence this pin group
and pinctrl driver is needed before relocation. Add DM_FLAG_PRE_RELOC
flag to init and mute mtk_serial error on early serial init.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
drivers/pinctrl/mediatek/pinctrl-mt7981.c

index 3fa198ed79c0127318fd2f25c58b868d8452cd84..4bc4abe6518713f94cf153bbdd44555e0c47919a 100644 (file)
@@ -1050,4 +1050,5 @@ U_BOOT_DRIVER(mt7981_pinctrl) = {
        .ops = &mtk_pinctrl_ops,
        .probe = mtk_pinctrl_mt7981_probe,
        .priv_auto = sizeof(struct mtk_pinctrl_priv),
+       .flags = DM_FLAG_PRE_RELOC,
 };