From: Biwen Li Date: Mon, 9 Dec 2019 14:32:25 +0800 Subject: [v4 3/8] i2c: mxc_i2c: add DM_FLAG_PRE_RELOC flag In-Reply-To: <20191209063230.33638-1-biwen.li@nxp.com> References: <20191209063230.33638-1-biwen.li@nxp.com> Message-ID: <20191209063230.33638-3-biwen.li@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This adds DM_FLAG_PRE_RELOC flag to probe i2c driver before relocation Reviewed-by: Priyanka Jain Signed-off-by: Biwen Li --- Changes in v4: - update copyright Changes in v3: - none Changes in v2: - none drivers/i2c/mxc_i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 786b5a2226..1c2a18bed2 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -10,6 +10,7 @@ * Copyright (C) 2005 Matthias Blaschke * Copyright (C) 2007 RightHand Technologies, Inc. * Copyright (C) 2008 Darius Augulis + * Copyright (C) 2019 NXP * */ @@ -1049,5 +1050,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 -- 2.17.1