Add the I2C bus clock speed to the platform data structure. If not set, default to 100KHz as before.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -12,6 +12,7 @@ struct ocores_i2c_platform_data { · 11 unmodified lines | |||
| 12 | u32 reg_shift; /* register offset shift value */ | 12 | u32 reg_shift; /* register offset shift value */ |
| 13 | u32 reg_io_width; /* register io read/write width */ | 13 | u32 reg_io_width; /* register io read/write width */ |
| 14 | u32 clock_khz; /* input clock in kHz */ | 14 | u32 clock_khz; /* input clock in kHz */ |
| 15 | u32 bus_khz; /* bus clock in kHz */ | ||
| 15 | bool big_endian; /* registers are big endian */ | 16 | bool big_endian; /* registers are big endian */ |
| 16 | u8 num_devices; /* number of devices in the devices list */ | 17 | u8 num_devices; /* number of devices in the devices list */ |
| 17 | struct i2c_board_info const *devices; /* devices connected to the bus */ | 18 | struct i2c_board_info const *devices; /* devices connected to the bus */ |