mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
committed by
Heiko Schocher
parent
d96440d1e3
commit
a8d2b515f9
@@ -156,6 +156,23 @@ struct dw_scl_sda_cfg {
|
||||
u32 sda_hold;
|
||||
};
|
||||
|
||||
/**
|
||||
* 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 */
|
||||
u16 scl_lcnt;
|
||||
u16 scl_hcnt;
|
||||
u32 sda_hold;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct dw_i2c - private information for the bus
|
||||
*
|
||||
|
Reference in New Issue
Block a user