summaryrefslogtreecommitdiff
path: root/include/configs
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
parent69665152823a798b3560d42e6456ce3cc041ffec (diff)
downloadu-boot-imx-c1ce2e692f4c9ac475504b4976b82de241e36b45.zip
u-boot-imx-c1ce2e692f4c9ac475504b4976b82de241e36b45.tar.gz
u-boot-imx-c1ce2e692f4c9ac475504b4976b82de241e36b45.tar.bz2
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')
-rw-r--r--include/configs/mx6q_arm2.h8
-rw-r--r--include/configs/mx6q_arm2_lpddr2.h8
-rwxr-xr-xinclude/configs/mx6q_arm2_lpddr2pop.h8
-rw-r--r--include/configs/mx6q_sabreauto.h8
-rw-r--r--include/configs/mx6q_sabrelite.h8
-rw-r--r--include/configs/mx6q_sabresd.h8
6 files changed, 48 insertions, 0 deletions
diff --git a/include/configs/mx6q_arm2.h b/include/configs/mx6q_arm2.h
index fb25a89..f7d8759 100644
--- a/include/configs/mx6q_arm2.h
+++ b/include/configs/mx6q_arm2.h
@@ -96,6 +96,7 @@
#define CONFIG_CMD_SF
#define CONFIG_CMD_MMC
#define CONFIG_CMD_ENV
+#define CONFIG_CMD_REGUL
#define CONFIG_CMD_CLOCK
#define CONFIG_REF_CLK_FREQ CONFIG_MX6_HCLK_FREQ
@@ -204,6 +205,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
*/
diff --git a/include/configs/mx6q_arm2_lpddr2.h b/include/configs/mx6q_arm2_lpddr2.h
index 59c5a16..9e37e48 100644
--- a/include/configs/mx6q_arm2_lpddr2.h
+++ b/include/configs/mx6q_arm2_lpddr2.h
@@ -95,6 +95,7 @@
#define CONFIG_CMD_MMC
#define CONFIG_CMD_ENV
+#define CONFIG_CMD_REGUL
#define CONFIG_CMD_CLOCK
#define CONFIG_REF_CLK_FREQ CONFIG_MX6_HCLK_FREQ
@@ -179,6 +180,13 @@
#define CONFIG_SYS_I2C_SLAVE 0x1f
#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
*/
diff --git a/include/configs/mx6q_arm2_lpddr2pop.h b/include/configs/mx6q_arm2_lpddr2pop.h
index 45aea16..bb5ce46 100755
--- a/include/configs/mx6q_arm2_lpddr2pop.h
+++ b/include/configs/mx6q_arm2_lpddr2pop.h
@@ -98,6 +98,7 @@
#define CONFIG_CMD_SF
#define CONFIG_CMD_MMC
#define CONFIG_CMD_ENV
+#define CONFIG_CMD_REGUL
#define CONFIG_CMD_CLOCK
#define CONFIG_REF_CLK_FREQ CONFIG_MX6_HCLK_FREQ
@@ -206,6 +207,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
*/
diff --git a/include/configs/mx6q_sabreauto.h b/include/configs/mx6q_sabreauto.h
index 7b497a7..1c0590e 100644
--- a/include/configs/mx6q_sabreauto.h
+++ b/include/configs/mx6q_sabreauto.h
@@ -96,6 +96,7 @@
#define CONFIG_CMD_SF
#define CONFIG_CMD_MMC
#define CONFIG_CMD_ENV
+#define CONFIG_CMD_REGUL
#define CONFIG_CMD_CLOCK
#define CONFIG_REF_CLK_FREQ CONFIG_MX6_HCLK_FREQ
@@ -205,6 +206,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
*/
diff --git a/include/configs/mx6q_sabrelite.h b/include/configs/mx6q_sabrelite.h
index 1e8587d..362d1fe 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
*/
diff --git a/include/configs/mx6q_sabresd.h b/include/configs/mx6q_sabresd.h
index c5c02e6..5ef2884 100644
--- a/include/configs/mx6q_sabresd.h
+++ b/include/configs/mx6q_sabresd.h
@@ -96,6 +96,7 @@
#define CONFIG_CMD_SF
#define CONFIG_CMD_MMC
#define CONFIG_CMD_ENV
+#define CONFIG_CMD_REGUL
#define CONFIG_CMD_CLOCK
#define CONFIG_REF_CLK_FREQ CONFIG_MX6_HCLK_FREQ
@@ -204,6 +205,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
*/