SD specs version 4.x and 5.x have a dedicated slices in the SCR register. Higher versions will rely on a combination of the existing fields.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -133,6 +133,8 @@ struct mmc_ext_csd { · 132 unmodified lines | |||
| 133 | struct sd_scr { | 133 | struct sd_scr { |
| 134 | unsigned char sda_vsn; | 134 | unsigned char sda_vsn; |
| 135 | unsigned char sda_spec3; | 135 | unsigned char sda_spec3; |
| 136 | unsigned char sda_spec4; | ||
| 137 | unsigned char sda_specx; | ||
| 136 | unsigned char bus_widths; | 138 | unsigned char bus_widths; |
| 137 | #define SD_SCR_BUS_WIDTH_1 (1<<0) | 139 | #define SD_SCR_BUS_WIDTH_1 (1<<0) |
| 138 | #define SD_SCR_BUS_WIDTH_4 (1<<2) | 140 | #define SD_SCR_BUS_WIDTH_4 (1<<2) |