Commit 0f0bb7e6 authored by Luis Ubieda's avatar Luis Ubieda Committed by Benjamin Cabé
Browse files

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: default avatarMahesh Mahadevan <mahesh.mahadevan@nxp.com>
Signed-off-by: default avatarLuis Ubieda <luisf@croxel.com>
parent c46f7f54
Loading
Loading
Loading
Loading
+4 −0
Changes for drivers/i2c/i2c_mcux_lpi2c_rtio.c: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -280,7 +280,11 @@ static void mcux_lpi2c_isr(const struct device *dev)
	struct mcux_lpi2c_data *data = dev->data;
	LPI2C_Type *base = (LPI2C_Type *)DEVICE_MMIO_NAMED_GET(dev, reg_base);

#if CONFIG_HAS_MCUX_FLEXCOMM
	LPI2C_MasterTransferHandleIRQ(LPI2C_GetInstance(base), &data->handle);
#else
	LPI2C_MasterTransferHandleIRQ(base, &data->handle);
#endif
}

static int mcux_lpi2c_init(const struct device *dev)