mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
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:
parent
19ccda09de
commit
ea9bd18bac
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue