From: Simon Glass Date: Thu, 23 Jan 2020 18:48:05 +0000 (-0700) Subject: i2c: designware_i2c: Don't allow changing IC_CLK X-Git-Tag: v2020.10~390^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25eb0fb667dc64cb819905deccccbb36908e5bd6;p=platform%2Fkernel%2Fu-boot.git i2c: designware_i2c: Don't allow changing IC_CLK 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 Reviewed-by: Heiko Schocher --- diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h index 3b407d2..10fb7d7 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) */