From patchwork Fri Jan 3 22:26:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 239078 List-Id: U-Boot discussion From: sjg at chromium.org (Simon Glass) Date: Fri, 3 Jan 2020 15:26:33 -0700 Subject: [PATCH v2 02/19] i2c: designware_i2c: Don't allow changing IC_CLK In-Reply-To: <20200103222650.32592-1-sjg@chromium.org> References: <20200103222650.32592-1-sjg@chromium.org> Message-ID: <20200103222650.32592-2-sjg@chromium.org> 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 --- Changes in v2: None drivers/i2c/designware_i2c.h | 2 -- 1 file changed, 2 deletions(-) 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) */