summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-10-14 13:00:51 -0400
committerTom Rini <trini@konsulko.com>2019-10-14 13:00:51 -0400
commit6f1f28b8e19a0d48b930a577fd8c8579cb66079b (patch)
tree44cdc42f3ea248c68a042532daf875799563a758 /drivers
parentcd5ffc5de5a26f5b785e25654977fee25779b3e4 (diff)
parentd02be21d3004b51c6fc9a54b90d31dcc2dac4a9a (diff)
downloadu-boot-6f1f28b8e19a0d48b930a577fd8c8579cb66079b.tar.gz
u-boot-6f1f28b8e19a0d48b930a577fd8c8579cb66079b.tar.xz
u-boot-6f1f28b8e19a0d48b930a577fd8c8579cb66079b.zip
Merge tag 'u-boot-imx-20191014' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
u-boot-imx-20191014 ------------------- Travis: https://travis-ci.org/sbabic/u-boot-imx/builds/597498628 - logicpd pinmux - i.MX7ULP: imx_ddr_size - fixes Toradex i.MX6/i.MX7 - pico-imx7d - tpc70 converted to DM - New Board: meerkat96 - add HAB version command - i.MX8 : imx8: Jump from alias to OCRAM address at SPL init imx8qm/qxp: Set SPL TEXT base to OCRAM base
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/imx_lpi2c.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/i2c/imx_lpi2c.c b/drivers/i2c/imx_lpi2c.c
index 4586d4331f..2de99d019e 100644
--- a/drivers/i2c/imx_lpi2c.c
+++ b/drivers/i2c/imx_lpi2c.c
@@ -471,6 +471,17 @@ static int imx_lpi2c_probe(struct udevice *bus)
dev_err(bus, "Failed to enable per clk\n");
return ret;
}
+
+ ret = clk_get_by_name(bus, "ipg", &i2c_bus->ipg_clk);
+ if (ret) {
+ dev_err(bus, "Failed to get ipg clk\n");
+ return ret;
+ }
+ ret = clk_enable(&i2c_bus->ipg_clk);
+ if (ret) {
+ dev_err(bus, "Failed to enable ipg clk\n");
+ return ret;
+ }
} else {
/* To i.MX7ULP, only i2c4-7 can be handled by A7 core */
ret = enable_i2c_clk(1, bus->seq);