summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/i2c-ocores.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2019-02-14 04:24:50 +0100
committerWolfram Sang <wsa@the-dreams.de>2019-02-14 17:58:23 +0100
commit237b5f66e1ed8a58662f29bcd04442953cdb8b55 (patch)
tree679525cdc0db3850ad72cb3098dba563e9dd73fb /include/linux/platform_data/i2c-ocores.h
parent809445d4b7fa7101d9434182bebbd8c84d7e4b65 (diff)
i2c: ocores: Add support for bus clock via platform data
Add the I2C bus clock speed to the platform data structure. If not set, default to 100KHz as before. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux/platform_data/i2c-ocores.h')
-rw-r--r--include/linux/platform_data/i2c-ocores.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/i2c-ocores.h b/include/linux/platform_data/i2c-ocores.h
index 8c416ff8affd..e6326cbafe59 100644
--- a/include/linux/platform_data/i2c-ocores.h
+++ b/include/linux/platform_data/i2c-ocores.h
@@ -12,6 +12,7 @@ struct ocores_i2c_platform_data {
u32 reg_shift; /* register offset shift value */
u32 reg_io_width; /* register io read/write width */
u32 clock_khz; /* input clock in kHz */
+ u32 bus_khz; /* bus clock in kHz */
bool big_endian; /* registers are big endian */
u8 num_devices; /* number of devices in the devices list */
struct i2c_board_info const *devices; /* devices connected to the bus */