Skip to content

Commit 0f0bb7e

Browse files
ubiedammahadevan108
authored andcommitted
drivers: i2c_rtio: Use MCUX variations when using instance number
Update the driver to account for variations in the SDK driver when it uses the instance number instead of the base address. Applying 49bdcd2ef2fd5c91ab36f08d29e5183df5437843 on RTIO-version. Co-authored-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com> Signed-off-by: Luis Ubieda <luisf@croxel.com>
1 parent c46f7f5 commit 0f0bb7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/i2c/i2c_mcux_lpi2c_rtio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,11 @@ static void mcux_lpi2c_isr(const struct device *dev)
280280
struct mcux_lpi2c_data *data = dev->data;
281281
LPI2C_Type *base = (LPI2C_Type *)DEVICE_MMIO_NAMED_GET(dev, reg_base);
282282

283+
#if CONFIG_HAS_MCUX_FLEXCOMM
284+
LPI2C_MasterTransferHandleIRQ(LPI2C_GetInstance(base), &data->handle);
285+
#else
283286
LPI2C_MasterTransferHandleIRQ(base, &data->handle);
287+
#endif
284288
}
285289

286290
static int mcux_lpi2c_init(const struct device *dev)

0 commit comments

Comments
 (0)