projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0719b16
)
power: pmic: Add Voltage configuration macro
author
Breno Lima
<breno.lima@nxp.com>
Tue, 6 Dec 2016 17:38:24 +0000
(15:38 -0200)
committer
Stefano Babic
<sbabic@denx.de>
Fri, 16 Dec 2016 09:21:29 +0000
(10:21 +0100)
Add pfuze3000 voltage configuration macro for SW1AB, SW3 and VLDO1/2 according
to tables 53, 57 and 62 on PF3000 datasheet.
Signed-off-by: Breno Lima <breno.lima@nxp.com>
include/power/pfuze3000_pmic.h
patch
|
blob
|
history
diff --git
a/include/power/pfuze3000_pmic.h
b/include/power/pfuze3000_pmic.h
index e8b892ba889af0b5eb4ef0ef6a0dbf19326593bb..7d66ba48d4d1a45878e120770a7fef2a49f6fa8d 100644
(file)
--- a/
include/power/pfuze3000_pmic.h
+++ b/
include/power/pfuze3000_pmic.h
@@
-75,4
+75,9
@@
enum {
int power_pfuze3000_init(unsigned char bus);
+/* Voltage Configuration */
+#define PFUZE3000_SW1AB_SETP(x) ((x - 7000) / 250)
+#define PFUZE3000_SW3_SETP(x) ((x - 9000) / 500)
+#define PFUZE3000_VLDO_SETP(x) ((x - 8000) / 500)
+
#endif