From: Ye Li Date: Sun, 8 Jul 2018 03:46:40 +0000 (+0800) Subject: imx_lpi2c: Update lpi2c driver to support imx8 X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=9b2ebcc06048cf49c2f8a8d152177ed1a8363878;p=u-boot.git imx_lpi2c: Update lpi2c driver to support imx8 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 Signed-off-by: Peng Fan Reviewed-by: Heiko Schocher --- diff --git a/drivers/i2c/imx_lpi2c.c b/drivers/i2c/imx_lpi2c.c index 8d3e0555a1..a6e41c5c91 100644 --- a/drivers/i2c/imx_lpi2c.c +++ b/drivers/i2c/imx_lpi2c.c @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include #include @@ -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", }, {} }; diff --git a/arch/arm/include/asm/arch-mx7ulp/imx_lpi2c.h b/include/imx_lpi2c.h similarity index 100% rename from arch/arm/include/asm/arch-mx7ulp/imx_lpi2c.h rename to include/imx_lpi2c.h