diff options
| author | Linus Walleij <[email protected]> | 2018-12-02 09:43:18 +0100 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2018-12-17 08:26:24 +0100 |
| commit | 5716fb9bd9c6d3e56da07d6ed219dfcfce7d7006 (patch) | |
| tree | 6e9b2496a59427fb423fab35e87bacce07df0a7d /include/linux/platform_data | |
| parent | b0d06f1cb0e2079a3c64fb6e27c19d9a55c723a1 (diff) | |
mmc: spi: Convert to use GPIO descriptors
Switch the SPI MMC driver to use GPIO descriptors internally
and just look those up using the standard slot GPIO
functions mmc_gpiod_request_cd() and mmc_gpiod_request_ro().
Make sure to request index 0 and 1 in accordance with the
SPI MMC DT binding, and add the same GPIOs in machine
descriptor tables on all boards that use SPI MMC in
board files.
The lines are flagged as GPIO_ACTIVE_[LOW|HIGH] as that is
what they are, and since we can now rely on the descriptors
to have the right polarity, we set the
"override_active_level" to false in mmc_gpiod_request_cd()
and mmc_gpiod_request_ro().
Cc: Hartley Sweeten <[email protected]> # Vision EP9307
Cc: Kuninori Morimoto <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions