]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i2c: designware_i2c: Don't allow changing IC_CLK
authorSimon Glass <sjg@chromium.org>
Thu, 23 Jan 2020 18:48:05 +0000 (11:48 -0700)
committerHeiko Schocher <hs@denx.de>
Mon, 27 Jan 2020 06:18:32 +0000 (07:18 +0100)
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@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/designware_i2c.h

index 3b407d2bede86b5a0c57666a539cff7cfa0ea766..10fb7d7d3eb517ab6f5b36f2f679b7e9e452d690 100644 (file)
@@ -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) */