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>
This commit is contained in:
parent
c46f7f54e8
commit
0f0bb7e6e9
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue