imx_lpi2c: Update lpi2c driver to support imx8
authorYe Li <ye.li@nxp.com>
Sun, 8 Jul 2018 03:46:40 +0000 (11:46 +0800)
committerHeiko Schocher <hs@denx.de>
Thu, 12 Jul 2018 09:08:41 +0000 (11:08 +0200)
Add compatible string for i.MX8 and move imx_lpi2c.h from mx7ulp directory
to u-boot include directory as a common header file.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/imx_lpi2c.c
include/imx_lpi2c.h [moved from arch/arm/include/asm/arch-mx7ulp/imx_lpi2c.h with 100% similarity]

index 8d3e055..a6e41c5 100644 (file)
@@ -8,7 +8,7 @@
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
-#include <asm/arch/imx_lpi2c.h>
+#include <imx_lpi2c.h>
 #include <asm/arch/sys_proto.h>
 #include <dm.h>
 #include <fdtdec.h>
@@ -447,6 +447,7 @@ static const struct dm_i2c_ops imx_lpi2c_ops = {
 
 static const struct udevice_id imx_lpi2c_ids[] = {
        { .compatible = "fsl,imx7ulp-lpi2c", },
+       { .compatible = "fsl,imx8qm-lpi2c", },
        {}
 };