aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-02-23 10:45:55 -0500
committerTom Rini <trini@konsulko.com>2021-02-23 10:45:55 -0500
commitcbe607b920bc0827d8fe379ed4f5ae4e2058513e (patch)
treeb8cdbb8856766675f37bb92f27ab9c662fa647f9 /drivers/i2c
parent8f7a16aac36c2a38956bd04b53cb7b94b7a70180 (diff)
parentd9aa19efa8a6c20d51b7884de0a7f8dae3f835d2 (diff)
downloadu-boot-cbe607b920bc0827d8fe379ed4f5ae4e2058513e.zip
u-boot-cbe607b920bc0827d8fe379ed4f5ae4e2058513e.tar.gz
u-boot-cbe607b920bc0827d8fe379ed4f5ae4e2058513e.tar.bz2
Merge tag 'xilinx-for-v2021.04-rc3' of https://gitlab.denx.de/u-boot/custodians/u-boot-microblazeWIP/23Feb2021
Xilinx changes for v2021.04-rc3 qspi: - Support for dual/quad mode - Fix speed handling clk: - Add clock enable function for zynq/zynqmp/versal gem: - Enable clock for Versal - Fix error path - Fix mdio deregistration path fpga: - Fix buffer alignment for ZynqMP xilinx: - Fix reset reason clearing in ZynqMP - Show silicon version in SPL for Zynq/ZynqMP - Fix DTB selection for ZynqMP - Rename zc1275 to zcu1275 to match DT name
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/i2c-cdns.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-cdns.c b/drivers/i2c/i2c-cdns.c
index db3c04f..a650dd6 100644
--- a/drivers/i2c/i2c-cdns.c
+++ b/drivers/i2c/i2c-cdns.c
@@ -15,6 +15,7 @@
#include <linux/types.h>
#include <linux/io.h>
#include <linux/errno.h>
+#include <dm/device_compat.h>
#include <dm/root.h>
#include <i2c.h>
#include <fdtdec.h>
@@ -481,6 +482,12 @@ static int cdns_i2c_of_to_plat(struct udevice *dev)
i2c_bus->input_freq = clk_get_rate(&clk);
+ ret = clk_enable(&clk);
+ if (ret) {
+ dev_err(dev, "failed to enable clock\n");
+ return ret;
+ }
+
return 0;
}