summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <van.freenix@gmail.com>2016-03-09 16:44:37 +0800
committerStefano Babic <sbabic@denx.de>2016-03-25 13:56:55 +0100
commit7082d879164fe7af549ca911a7b675ce698186e1 (patch)
treef186960b042f292f36ba1e7cbc9466e0b14523c8
parente4dc3fc0681bd205b1db6336b0ea3849b5c683e9 (diff)
downloadu-boot-imx-7082d879164fe7af549ca911a7b675ce698186e1.zip
u-boot-imx-7082d879164fe7af549ca911a7b675ce698186e1.tar.gz
u-boot-imx-7082d879164fe7af549ca911a7b675ce698186e1.tar.bz2
imx: mx6ul configure the PMIC_STBY_REQ pin as open drain
Configure the PMIC_STBY_REQ pin as open drain 100K according to the design team's requirement for the PMIC_STBY_REQ pin for i.MX 6UltraLite TO1.0. Signed-off-by: Peng Fan <van.freenix@gmail.com> Cc: Stefano Babic <sbabic@denx.de>
-rw-r--r--arch/arm/cpu/armv7/mx6/soc.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index f29901f..d4b22ad 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -341,7 +341,17 @@ int arch_cpu_init(void)
set_ahb_rate(132000000);
}
- /* Set perclk to source from OSC 24MHz */
+ if (IS_ENABLED(CONFIG_MX6UL) && is_soc_rev(CHIP_REV_1_0) == 0) {
+ /*
+ * According to the design team's requirement on i.MX6UL,
+ * the PMIC_STBY_REQ PAD should be configured as open
+ * drain 100K (0x0000b8a0).
+ * Only exists on TO1.0
+ */
+ writel(0x0000b8a0, IOMUXC_BASE_ADDR + 0x29c);
+ }
+
+ /* Set perclk to source from OSC 24MHz */
#if defined(CONFIG_MX6SL)
set_preclk_from_osc();
#endif