1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2014 Freescale Semiconductor, Inc.
4 * Copyright 2020-21 NXP
5 * Copyright 2021 Microsoft Corporation
10 #include "i2c_common.h"
14 /* If DM is in use, retrieve the chip for the specified bus number */
15 int fsl_i2c_get_device(int address, int bus, DEVICE_HANDLE_T *dev)
17 int ret = i2c_get_chip_for_busnum(bus, address, 1, dev);
20 printf("I2C: Bus %d has no device with address 0x%02X\n",
27 /* Handle is passed directly */
28 int fsl_i2c_get_device(int address, int bus, DEVICE_HANDLE_T *dev)