From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sat, 21 Dec 2019 09:15:15 -0700 Subject: [PATCH 02/12] i2c: designware_i2c: Don't allow changing IC_CLK In-Reply-To: <20191221161525.27976-1-sjg@chromium.org> References: <20191221161525.27976-1-sjg@chromium.org> Message-ID: <20191221161525.27976-3-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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) */ -- 2.24.1.735.g03f4e72817-goog