]> git.ipfire.org Git - thirdparty/u-boot.git/commit
dm: pinctrl: Prevent (re-)configuring pins when already done before relocation
authorLukasz Majewski <lukma@denx.de>
Tue, 18 Dec 2018 11:30:50 +0000 (12:30 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 27 Dec 2018 02:21:07 +0000 (21:21 -0500)
commita7f4b4b344396590845e6552c82829ef68ef9f89
tree4fdf691e0f332c17ff2bd22e7e6f2bf9a43e8046
parenta1702746dfd985f69c1c32ae9618f066443e43a9
dm: pinctrl: Prevent (re-)configuring pins when already done before relocation

This commit prevents from re-configuring pins if those were configured
before relocation.

Some pins - like UART or DDR must be setup before relocation
(as they have 'u-boot,dm-pre-reloc' property set in DTS). Without this
change, those pins are re-configured after relocation (pre_reloc_only = 0,
so we do not "continue").
Such behavior may be a problem for DDR PAD configuration, as they might
be already leveled/tuned with original setup).

Signed-off-by: Lukasz Majewski <lukma@denx.de>
drivers/pinctrl/pinctrl-uclass.c