mmc: dwmmc: Call mmc_fdt_set_power

This allow us to powerup/down the card and enabling/disabling the
regulators if any.

Sponsored by:	Diablotin Systems
Differential Revision:	https://reviews.freebsd.org/D30292

(cherry picked from commit ce41765c21)
This commit is contained in:
Emmanuel Vadot 2021-05-16 16:20:42 +02:00
parent 19ccda09de
commit ea9bd18bac

View file

@ -891,6 +891,8 @@ dwmmc_update_ios(device_t brdev, device_t reqdev)
dprintf("Setting up clk %u bus_width %d, timming: %d\n",
ios->clock, ios->bus_width, ios->timing);
mmc_fdt_set_power(&sc->mmc_helper, ios->power_mode);
if (ios->bus_width == bus_width_8)
WRITE4(sc, SDMMC_CTYPE, SDMMC_CTYPE_8BIT);
else if (ios->bus_width == bus_width_4)