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 | 12 | u32 reg_shift; /* register offset shift value */ |
| 13 | 13 | u32 reg_io_width; /* register io read/write width */ |
| 14 | 14 | u32 clock_khz; /* input clock in kHz */ |
| 15 | + u32 bus_khz; /* bus clock in kHz */ | |
| 15 | 16 | bool big_endian; /* registers are big endian */ |
| 16 | 17 | u8 num_devices; /* number of devices in the devices list */ |
| 17 | 18 | struct i2c_board_info const *devices; /* devices connected to the bus */ |