Page MenuHomeFreeBSD

D27087.diff
No OneTemporary

D27087.diff

Index: sys/dev/mmc/mmc_fdt_helpers.c
===================================================================
--- sys/dev/mmc/mmc_fdt_helpers.c
+++ sys/dev/mmc/mmc_fdt_helpers.c
@@ -159,6 +159,23 @@
}
if (helper->vqmmc_supply != NULL) {
+ int uvolt;
+ if (regulator_get_voltage(helper->vqmmc_supply, &uvolt) == 0) {
+ switch (uvolt) {
+ case 1200000:
+ host->ios.vccq = vccq_120;
+ break;
+ case 1800000:
+ host->ios.vccq = vccq_180;
+ break;
+ case 3300000:
+ host->ios.vccq = vccq_330;
+ break;
+ }
+ if (bootverbose)
+ device_printf(dev,
+ "vqmmc current voltage: %d uV\n", uvolt);
+ }
if (regulator_check_voltage(helper->vqmmc_supply, 1200000) == 0)
host->caps |= MMC_CAP_SIGNALING_120;
else

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 27, 7:00 PM (4 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28059222
Default Alt Text
D27087.diff (748 B)

Event Timeline