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_sabresd.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_sabresd.h')
-rw-r--r-- | include/configs/mx6q_sabresd.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |