projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8363c37
)
mmc: core: debugfs: Add signal_voltage to ios dump
author
Johan Rudholm
<
[email protected]
>
Fri, 26 Oct 2012 09:31:55 +0000
(11:31 +0200)
committer
Chris Ball
<
[email protected]
>
Thu, 6 Dec 2012 18:54:36 +0000
(13:54 -0500)
Signed-off-by: Johan Rudholm <
[email protected]
>
Reviewed-by: Philip Rakity <
[email protected]
>
Signed-off-by: Chris Ball <
[email protected]
>
drivers/mmc/core/debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/debugfs.c
b/drivers/mmc/core/debugfs.c
index d96c643dde1c1b38eeeeaa0504d92f2d960b4088..35c2f85b1956ead16a75673d6e29e0aa137aaaed 100644
(file)
--- a/
drivers/mmc/core/debugfs.c
+++ b/
drivers/mmc/core/debugfs.c
@@
-144,6
+144,22
@@
static int mmc_ios_show(struct seq_file *s, void *data)
}
seq_printf(s, "timing spec:\t%u (%s)\n", ios->timing, str);
+ switch (ios->signal_voltage) {
+ case MMC_SIGNAL_VOLTAGE_330:
+ str = "3.30 V";
+ break;
+ case MMC_SIGNAL_VOLTAGE_180:
+ str = "1.80 V";
+ break;
+ case MMC_SIGNAL_VOLTAGE_120:
+ str = "1.20 V";
+ break;
+ default:
+ str = "invalid";
+ break;
+ }
+ seq_printf(s, "signal voltage:\t%u (%s)\n", ios->chip_select, str);
+
return 0;
}