Message ID | 20200103222650.32592-2-sjg@chromium.org |
---|---|
State | Superseded |
Headers | show |
Series | i2c: designware_ic2: Improvements to timing and general cleanup | expand |
Hello Simon, Am 03.01.2020 um 23:26 schrieb Simon Glass: > 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> > --- > > Changes in v2: None > > drivers/i2c/designware_i2c.h | 2 -- > 1 file changed, 2 deletions(-) Reviewed-by: Heiko Schocher <hs at denx.de> bye, Heiko
diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h index d359c8c3f8..0eb28191d2 100644 --- a/drivers/i2c/designware_i2c.h +++ b/drivers/i2c/designware_i2c.h @@ -58,9 +58,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) */
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> --- Changes in v2: None drivers/i2c/designware_i2c.h | 2 -- 1 file changed, 2 deletions(-)