]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: consider cd-gpios in Synopsys DesignWare driver
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 21 Jul 2024 06:59:07 +0000 (08:59 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 6 Sep 2024 01:08:14 +0000 (19:08 -0600)
commitcbaf53fdf12534be50075fdd84105c682955424f
tree08fc9ab1714a1bfe606926d5d3ff93d9c2e74a95
parente24c8cc65841b8885cca7910a43096a976b7244b
mmc: consider cd-gpios in Synopsys DesignWare driver

The JH7110 SoC uses a GPIO for card detect.

* In the of_to_plat function check if a cd-gpios definition exists and
  request the GPIO.
* In the getcd function return the GPIO value in this case.

Reported-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
drivers/mmc/snps_dw_mmc.c