]> git.sur5r.net Git - u-boot/commitdiff
bcm2835_pinctrl: Probe pre-reloc
authorAlexander Graf <agraf@suse.de>
Thu, 25 Jan 2018 11:05:56 +0000 (12:05 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 28 Jan 2018 17:27:36 +0000 (12:27 -0500)
The serial drivers now depend on the pinctrl driver to determine whether
they are enabled. That means if a serial device wants to be used pre-reloc,
we also need the pinctrl device pre-reloc.

Adapt the pinctrl driver as well as dts overlay accordingly.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/arm/dts/bcm283x-uboot.dtsi
drivers/pinctrl/broadcom/pinctrl-bcm283x.c

index 8e4231ae6c973edddf7caeb5140ec2df8ad1a86e..21d038aebb231b91bf17068309309e134f4cde5b 100644 (file)
@@ -20,3 +20,7 @@
        skip-init;
        u-boot,dm-pre-reloc;
 };
+
+&gpio {
+       u-boot,dm-pre-reloc;
+};
index 83dde2302eb44c3b1c6939a05f5027e35414ada2..6fbd6efbd2f93b3657c892dfc4c38d3e0be8b0c1 100644 (file)
@@ -148,5 +148,6 @@ U_BOOT_DRIVER(pinctrl_bcm283x) = {
        .of_match       = of_match_ptr(bcm2835_pinctrl_id),
        .priv_auto_alloc_size = sizeof(struct bcm283x_pinctrl_priv),
        .ops            = &bcm283x_pinctrl_ops,
-       .probe          = bcm283x_pinctl_probe
+       .probe          = bcm283x_pinctl_probe,
+       .flags          = DM_FLAG_PRE_RELOC,
 };