HomeFreeBSD

dwmmc: Properly implement power_off/power_up

Description

dwmmc: Properly implement power_off/power_up

Write to the PWREN register should be done in update_ios based
on the power_mode value in the ios struct.
Also none of the manual (RockChip and Altera) and Linux talks about
the needed for an inverted PWREN value so just remove this.
This fixes eMMC (and possibly SD) when u-boot didn't setup the controller.

Reported by: avg
Tested-on: Rock64, RockPro64

(cherry picked from commit af32e2cc32b2516826e301d5f857ff7343b1210e)

Details

Provenance
manuAuthored on Sep 21 2021, 2:10 PM
Parents
rG1be298a0bf1d: dwmmc: Remove dwmmc_setup_bus call from start_cmd
Branches
Unknown
Tags
Unknown