Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143162027
D27087.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
748 B
Referenced Files
None
Subscribers
None
D27087.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D27087: Get initial VCCQ voltage from FDT if available
Attached
Detach File
Event Timeline
Log In to Comment