Tested on OLPC XO-4/MMP3, where the card detection pin for one of the controllers is a sideband GPIO. The third cell in the cd-gpios property controls whether the GPIO is active high/active low. (Also, pass host_caps2 through from platdata to the mmc host.)
Showing the changes to include/linux/platform_data (1 of 2 files). Show all
Unified · Split
| @@ -49,6 +49,7 @@ struct sdhci_pxa_platdata { · 48 unmodified lines | |||
| 49 | bool ext_cd_gpio_invert; | 49 | bool ext_cd_gpio_invert; |
| 50 | unsigned int max_speed; | 50 | unsigned int max_speed; |
| 51 | unsigned int host_caps; | 51 | unsigned int host_caps; |
| 52 | unsigned int host_caps2; | ||
| 52 | unsigned int quirks; | 53 | unsigned int quirks; |
| 53 | unsigned int pm_caps; | 54 | unsigned int pm_caps; |
| 54 | }; | 55 | }; |