summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-07-08 11:46:40 +0800
committerHeiko Schocher <hs@denx.de>2018-07-12 11:08:41 +0200
commit9b2ebcc06048cf49c2f8a8d152177ed1a8363878 (patch)
tree65583aaf43dc5dea62550431819b1ed32798b483
parent1612ff0dfba57b1002d8c7a54778eb553ace98f4 (diff)
downloadu-boot-9b2ebcc06048cf49c2f8a8d152177ed1a8363878.tar.gz
u-boot-9b2ebcc06048cf49c2f8a8d152177ed1a8363878.tar.bz2
u-boot-9b2ebcc06048cf49c2f8a8d152177ed1a8363878.zip
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 <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Heiko Schocher <hs@denx.de>
-rw-r--r--drivers/i2c/imx_lpi2c.c3
-rw-r--r--include/imx_lpi2c.h (renamed from arch/arm/include/asm/arch-mx7ulp/imx_lpi2c.h)0
2 files changed, 2 insertions, 1 deletions
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 <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", },
{}
};
diff --git a/arch/arm/include/asm/arch-mx7ulp/imx_lpi2c.h b/include/imx_lpi2c.h
index 3fbb40bdd1..3fbb40bdd1 100644
--- a/arch/arm/include/asm/arch-mx7ulp/imx_lpi2c.h
+++ b/include/imx_lpi2c.h