Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- arch/arm/boards/phytec-som-imx6/board.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boards/phytec-som-imx6/board.c b/arch/arm/boards/phytec-som-imx6/board.c index 36c4d9a78b..a108726468 100644 --- a/arch/arm/boards/phytec-som-imx6/board.c +++ b/arch/arm/boards/phytec-som-imx6/board.c @@ -14,6 +14,7 @@ #include <gpio.h> #include <init.h> #include <of.h> +#include <deep-probe.h> #include <i2c/i2c.h> #include <mach/bbu.h> #include <platform_data/eth-fec.h> @@ -110,6 +111,10 @@ static int phycore_da9062_setup_buck_mode(void) if (!pmic_np) return -ENODEV; + ret = of_device_ensure_probed(pmic_np); + if (ret) + return ret; + adapter = of_find_i2c_adapter_by_node(pmic_np->parent); if (!adapter) return -ENODEV; @@ -161,6 +166,10 @@ static int physom_imx6_probe(struct device_d *dev) unsigned flags = brd->flags; if (flags & IS_PHYFLEX) { + ret = of_devices_ensure_probed_by_property("gpio-controller"); + if (ret) + return ret; + phyflex_err006282_workaround(); pfla02_module_revision = get_module_rev(); @@ -358,3 +367,15 @@ static struct driver_d physom_imx6_driver = { }; postcore_platform_driver(physom_imx6_driver); + +BAREBOX_DEEP_PROBE_ENABLE("phytec,imx6q-pfla02"); +BAREBOX_DEEP_PROBE_ENABLE("phytec,imx6dl-pfla02"); +BAREBOX_DEEP_PROBE_ENABLE("phytec,imx6s-pfla02"); +BAREBOX_DEEP_PROBE_ENABLE("phytec,imx6q-pcaaxl3"); +BAREBOX_DEEP_PROBE_ENABLE("phytec,imx6q-pcm058-nand"); +BAREBOX_DEEP_PROBE_ENABLE("phytec,imx6q-pcm058-emmc"); +BAREBOX_DEEP_PROBE_ENABLE("phytec,imx6dl-pcm058-nand"); +BAREBOX_DEEP_PROBE_ENABLE("phytec,imx6qp-pcm058-nand"); +BAREBOX_DEEP_PROBE_ENABLE("phytec,imx6dl-pcm058-emmc"); +BAREBOX_DEEP_PROBE_ENABLE("phytec,imx6ul-pcl063-nand"); +BAREBOX_DEEP_PROBE_ENABLE("phytec,imx6ul-pcl063-emmc"); -- 2.29.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox