summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBiwen Li <biwen.li@nxp.com>2019-12-31 10:33:39 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2020-02-04 13:50:25 +0300
commitc69103218ee4733b4dc855ed4706a5a3eadb22a0 (patch)
tree998fc9a1dc553b1af306fa2e944e865c12e17766 /drivers
parentbeadf4f28c567723eac337a5dfc7821e7c613d13 (diff)
downloadu-boot-c69103218ee4733b4dc855ed4706a5a3eadb22a0.tar.xz
i2c: mxc_i2c: add DM_FLAG_PRE_RELOC flag
This adds DM_FLAG_PRE_RELOC flag to probe i2c driver before relocation Signed-off-by: Biwen Li <biwen.li@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/mxc_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index 786b5a2226..6b7ce985b3 100644
--- a/drivers/i2c/mxc_i2c.c
+++ b/drivers/i2c/mxc_i2c.c
@@ -1049,5 +1049,6 @@ U_BOOT_DRIVER(i2c_mxc) = {
.probe = mxc_i2c_probe,
.priv_auto_alloc_size = sizeof(struct mxc_i2c_bus),
.ops = &mxc_i2c_ops,
+ .flags = DM_FLAG_PRE_RELOC,
};
#endif