Skip to content
Commit 4abe1c4f authored by Jordan Yates's avatar Jordan Yates Committed by Benjamin Cabé
Browse files

drivers: disk: sdmmc_stm32: power up on request



Move power configuration from the device init function into the
`DISK_IOCTL_CTRL_INIT` and `DISK_IOCTL_CTRL_DEINIT` handlers. If
`pwr-gpios` is defined, this ensures that the card is not powered up
until requested, and enables power down the card when not in use.

This behaviour matches the implementation for `sdhc_spi`.

Signed-off-by: default avatarJordan Yates <jordan@embeint.com>
parent 24e91227
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment