diff options
author | Terry Lv <r65388@freescale.com> | 2012-02-16 01:38:47 +0800 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2012-02-16 02:24:04 +0800 |
commit | c1ce2e692f4c9ac475504b4976b82de241e36b45 (patch) | |
tree | bf0f0969bac3c6f840128ed4cd557f47c823e843 /include/configs/mx6q_arm2_lpddr2pop.h | |
parent | 69665152823a798b3560d42e6456ce3cc041ffec (diff) | |
download | u-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/mx6q_arm2_lpddr2pop.h')
-rwxr-xr-x | include/configs/mx6q_arm2_lpddr2pop.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |