boards: lx2160a: Add support of I2C driver model
authorChuanhua Han <chuanhua.han@nxp.com>
Wed, 10 Jul 2019 13:00:20 +0000 (21:00 +0800)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Thu, 22 Aug 2019 03:37:35 +0000 (09:07 +0530)
commit0eba65d2013e5517e70cc9b3d467ba8183b54cd9
tree3ef821bfef5ebc08e458eda17b3885e442ea133d
parentbc475d0fde85ed524943d686b326f4dca8c5efcf
boards: lx2160a: Add support of I2C driver model

DM_I2C_COMPAT is a compatibility layer that allows using the non-DM I2C
API when DM_I2C is used. When DM_I2C_COMPAT is not enabled for
compilation, a compilation error will be generated. This patch solves
the problem that the i2c-related api of the lx2160a platform does not
support dm.

Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
board/freescale/common/emc2305.c
board/freescale/common/qixis.c
board/freescale/common/sys_eeprom.c
board/freescale/common/vid.c
board/freescale/lx2160a/lx2160a.c
drivers/ddr/fsl/main.c