projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1730af1
)
pmic:pfuze add macro for setting voltage
author
Peng Fan
<Peng.Fan@freescale.com>
Fri, 9 Jan 2015 08:59:41 +0000
(16:59 +0800)
committer
Stefano Babic
<sbabic@denx.de>
Tue, 10 Feb 2015 11:48:48 +0000
(12:48 +0100)
"#define PFUZE100_SW1ABC_SETP(x) ((x - 3000) / 250)"
This macro is for configuring SW1A/B/C Output Voltage easily.
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
include/power/pfuze100_pmic.h
patch
|
blob
|
history
diff --git
a/include/power/pfuze100_pmic.h
b/include/power/pfuze100_pmic.h
index 11184893bfb99966e9e6fd089344911175b47ca9..a00fde0168fa6cdc7e7513200844c03f06b94daa 100644
(file)
--- a/
include/power/pfuze100_pmic.h
+++ b/
include/power/pfuze100_pmic.h
@@
-41,6
+41,8
@@
enum {
* Buck Regulators
*/
+#define PFUZE100_SW1ABC_SETP(x) ((x - 3000) / 250)
+
/* SW1A/B/C Output Voltage Configuration */
#define SW1x_0_300V 0
#define SW1x_0_325V 1