diff mbox series

[v3,02/23] i2c: designware_i2c: Don't allow changing IC_CLK

Message ID 20200123114556.v3.2.I93859cc4cff3dc2b1b1a9965bb441ccca68a329a@changeid
State Accepted
Commit 25eb0fb667dc64cb819905deccccbb36908e5bd6
Headers show
Series i2c: designware_ic2: Improvements to timing and general cleanup | expand

Commit Message

Simon Glass Jan. 23, 2020, 6:48 p.m. UTC
If a different input clock is required then the correct way to do this is
with a clock driver. Don't allow boards to override IC_CLK.

Signed-off-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Heiko Schocher <hs at denx.de>
---

Changes in v3: None
Changes in v2: None

 drivers/i2c/designware_i2c.h | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h
index 3b407d2bed..10fb7d7d3e 100644
--- a/drivers/i2c/designware_i2c.h
+++ b/drivers/i2c/designware_i2c.h
@@ -59,9 +59,7 @@  struct i2c_regs {
 	u32 comp_type;
 };
 
-#if !defined(IC_CLK)
 #define IC_CLK			166
-#endif
 #define NANO_TO_MICRO		1000
 
 /* High and low times in different speed modes (in ns) */