History

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.

Andrew Lunn committed 7 years ago

Commit 237b5f61 parent 809445d2 files · +5 −1Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/i2c-ocores.h+1−0
@@ -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 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t