From c1ce2e692f4c9ac475504b4976b82de241e36b45 Mon Sep 17 00:00:00 2001 From: Terry Lv Date: Thu, 16 Feb 2012 01:38:47 +0800 Subject: 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 - Show regulator's voltage in mV regul set core - Set core voltage in mV regul set periph - Set periph voltage in mV regul set - 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 --- include/configs/mx6q_arm2.h | 8 ++++++++ include/configs/mx6q_arm2_lpddr2.h | 8 ++++++++ include/configs/mx6q_arm2_lpddr2pop.h | 8 ++++++++ include/configs/mx6q_sabreauto.h | 8 ++++++++ include/configs/mx6q_sabrelite.h | 8 ++++++++ include/configs/mx6q_sabresd.h | 8 ++++++++ 6 files changed, 48 insertions(+) (limited to 'include/configs') diff --git a/include/configs/mx6q_arm2.h b/include/configs/mx6q_arm2.h index fb25a8957c6..f7d8759909b 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 59c5a1601a4..9e37e4869a5 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 45aea16ca5c..bb5ce463b1d 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 7b497a7286f..1c0590e278f 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 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 */ diff --git a/include/configs/mx6q_sabresd.h b/include/configs/mx6q_sabresd.h index c5c02e647ab..5ef28840510 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 */ -- cgit v1.2.3