From: Armando Visconti Date: Thu, 6 Dec 2012 00:04:19 +0000 (+0000) Subject: designware_i2c.h: Define IC_CLK only if not already defined in config file X-Git-Tag: v2013.01-rc2~50 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d40d914c06e73c2a7823c2a6dd164d1c10529f84;p=u-boot designware_i2c.h: Define IC_CLK only if not already defined in config file Signed-off-by: Armando Visconti --- diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h index 0dc8884eda..2faf4a8717 100644 --- a/drivers/i2c/designware_i2c.h +++ b/drivers/i2c/designware_i2c.h @@ -60,7 +60,9 @@ struct i2c_regs { u32 ic_tx_abrt_source; }; +#if !defined(IC_CLK) #define IC_CLK 166 +#endif #define NANO_TO_MICRO 1000 /* High and low times in different speed modes (in ns) */