diff options
author | Simon Glass <sjg@chromium.org> | 2020-01-23 11:48:24 -0700 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2020-01-27 07:24:29 +0100 |
commit | a8d2b515f98298dc1e30d7e3ae148eeca49a97b2 (patch) | |
tree | bc84d2ec4e9230afa357f3d7746cf91b8f935681 /drivers/i2c/designware_i2c.c | |
parent | d96440d1e36e080ca1229dab65bc417640b58df5 (diff) | |
download | u-boot-a8d2b515f98298dc1e30d7e3ae148eeca49a97b2.zip u-boot-a8d2b515f98298dc1e30d7e3ae148eeca49a97b2.tar.gz u-boot-a8d2b515f98298dc1e30d7e3ae148eeca49a97b2.tar.bz2 |
i2c: designware_i2c: Move dw_i2c_speed_config to header
This is used to store the speed information for a bus. We want to provide
this to ACPI so that it can tell the kernel. Move this struct to the
header file so it can be accessed by the ACPI i2c implementation being
added later.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/i2c/designware_i2c.c')
-rw-r--r-- | drivers/i2c/designware_i2c.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index d9e0d81..6be98ee 100644 --- a/drivers/i2c/designware_i2c.c +++ b/drivers/i2c/designware_i2c.c @@ -13,23 +13,6 @@ #include <asm/io.h> #include "designware_i2c.h" -/** - * struct dw_i2c_speed_config - timings to use for a particular speed - * - * This holds calculated values to be written to the I2C controller. Each value - * is represented as a number of IC clock cycles. - * - * @scl_lcnt: Low count value for SCL - * @scl_hcnt: High count value for SCL - * @sda_hold: Data hold count - */ -struct dw_i2c_speed_config { - /* SCL high and low period count */ - uint scl_lcnt; - uint scl_hcnt; - uint sda_hold; -}; - #ifdef CONFIG_SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED static int dw_i2c_enable(struct i2c_regs *i2c_base, bool enable) { |