summaryrefslogtreecommitdiff
path: root/include/configs/mx6q_sabrelite.h
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2012-02-16 01:38:47 +0800
committerTerry Lv <r65388@freescale.com>2012-02-16 02:24:04 +0800
commitc1ce2e692f4c9ac475504b4976b82de241e36b45 (patch)
treebf0f0969bac3c6f840128ed4cd557f47c823e843 /include/configs/mx6q_sabrelite.h
parent69665152823a798b3560d42e6456ce3cc041ffec (diff)
ENGR00139213: Add read and change voltage support for mx6
dd read and change voltage support for mx6. For help, pls type "help regul" Detail command info: regul list - List all regulators' name regul show all - Display all regulators' voltage regul show core - Show core voltage in mV regul show periph - Show peripheral voltage in mV regul show <regulator name> - Show regulator's voltage in mV regul set core <voltage value> - Set core voltage in mV regul set periph <voltage value> - Set periph voltage in mV regul set <regulator name> <voltage value> - Set regulator's voltage in mV Example: MX6Q ARM2 U-Boot > regul list Name Voltage vddpu vddcore vddsoc vdd2p5 vdd1p1 vdd3p0 MX6Q ARM2 U-Boot > regul show all Name Voltage vddpu 1100000 vddcore 1100000 vddsoc 1200000 vdd2p5 2400000 vdd1p1 1100000 vdd3p0 3000000 MX6Q ARM2 U-Boot > regul show periph Name Voltage periph: 1100000 MX6Q ARM2 U-Boot > regul show core Name Voltage core: 1100000 MX6Q ARM2 U-Boot > regul set core 1100000 Set voltage succeed! Name Voltage core: 1100000 Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'include/configs/mx6q_sabrelite.h')
-rw-r--r--include/configs/mx6q_sabrelite.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/mx6q_sabrelite.h b/include/configs/mx6q_sabrelite.h
index 1e8587d2614..362d1fe85a6 100644
--- a/include/configs/mx6q_sabrelite.h
+++ b/include/configs/mx6q_sabrelite.h
@@ -97,6 +97,7 @@
#define CONFIG_CMD_MMC
#define CONFIG_CMD_SF
#define CONFIG_CMD_ENV
+#define CONFIG_CMD_REGUL
#define CONFIG_CMD_CLOCK
#define CONFIG_REF_CLK_FREQ CONFIG_MX6_HCLK_FREQ
@@ -221,6 +222,13 @@
#define MAX_SPI_BYTES (64 * 4)
#endif
+/* Regulator Configs */
+#ifdef CONFIG_CMD_REGUL
+ #define CONFIG_ANATOP_REGULATOR
+ #define CONFIG_CORE_REGULATOR_NAME "vdd1p1"
+ #define CONFIG_PERIPH_REGULATOR_NAME "vdd1p1"
+#endif
+
/*
* MMC Configs
*/