diff options
author | Christian Marangi | 2024-06-24 23:03:37 +0200 |
---|---|---|
committer | Tom Rini | 2024-07-08 11:45:50 -0600 |
commit | 63d0f683efb70399a93ea7f95eeb78062cc613f0 (patch) | |
tree | 44e61022baf52d1bdfbf9b6b519bd1cff9ede0d9 | |
parent | e499d5d430edc69acfee8023d104c389d752ed56 (diff) |
pinctrl: mediatek: mt7981: init device before relocation
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>
-rw-r--r-- | drivers/pinctrl/mediatek/pinctrl-mt7981.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7981.c b/drivers/pinctrl/mediatek/pinctrl-mt7981.c index 3fa198ed79c..4bc4abe6518 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt7981.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt7981.c @@ -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, }; |