summaryrefslogtreecommitdiff
path: root/include/power
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-01-09 16:59:41 +0800
committerStefano Babic <sbabic@denx.de>2015-02-10 12:48:48 +0100
commitee52f1a5fedcb261f75054352a2ef52f7a6e6dbc (patch)
tree6cd35f0d68ecd53325951fc7bf74569cf7018e32 /include/power
parent1730af1bbde28e5fcf327eea1cdc29bc590e7478 (diff)
downloadu-boot-imx-ee52f1a5fedcb261f75054352a2ef52f7a6e6dbc.zip
u-boot-imx-ee52f1a5fedcb261f75054352a2ef52f7a6e6dbc.tar.gz
u-boot-imx-ee52f1a5fedcb261f75054352a2ef52f7a6e6dbc.tar.bz2
pmic:pfuze add macro for setting voltage
"#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>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/pfuze100_pmic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/power/pfuze100_pmic.h b/include/power/pfuze100_pmic.h
index 1118489..a00fde0 100644
--- 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