To help pass platform-specific values, add a new field that can either be set by the Master driver or read from firmware (BIOS/DT).
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -379,6 +379,7 @@ struct sdw_slave_prop { · 378 unmodified lines | ||
| 379 | 379 | * @dynamic_frame: Dynamic frame shape supported |
| 380 | 380 | * @err_threshold: Number of times that software may retry sending a single |
| 381 | 381 | * command |
| 382 | + * @mclk_freq: clock reference passed to SoundWire Master, in Hz. | |
| 382 | 383 | */ |
| 383 | 384 | struct sdw_master_prop { |
| 384 | 385 | u32 revision; |
| @@ -393,6 +394,7 @@ struct sdw_master_prop { · 8 unmodified lines | ||
| 393 | 394 | u32 default_col; |
| 394 | 395 | bool dynamic_frame; |
| 395 | 396 | u32 err_threshold; |
| 397 | + u32 mclk_freq; | |
| 396 | 398 | }; |
| 397 | 399 | |
| 398 | 400 | int sdw_master_read_prop(struct sdw_bus *bus); |