From patchwork Thu Dec 6 10:04:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot, V2, 5/5] designware_i2c.h: Define IC_CLK only if not already defined in config file Date: Thu, 06 Dec 2012 00:04:19 -0000 From: Armando Visconti X-Patchwork-Id: 204204 Message-Id: <1354788259-32688-6-git-send-email-armando.visconti@st.com> To: , Cc: u-boot@lists.denx.de, spear-devel@list.st.com Signed-off-by: Armando Visconti --- drivers/i2c/designware_i2c.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h index 0dc8884..2faf4a8 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) */