From 7e4af65ed85d0e1cea4551d3f77fb473932a5566 Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Mon, 19 Nov 2018 18:34:43 +0100 Subject: board: imx6ull: Add disable PMIC_STBY_REQ Disable output driver of PAD CCM_PMIC_STBY_REQ. This prevents the SOC to request for a lower voltage during sleep. This is necessary because the voltage is changing too slow for the SOC to wake up properly. Signed-off-by: Philippe Schenker Acked-by: Marcel Ziswiler --- board/toradex/colibri-imx6ull/colibri_imx6ull.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/board/toradex/colibri-imx6ull/colibri_imx6ull.c b/board/toradex/colibri-imx6ull/colibri_imx6ull.c index a544d7166f..fba4f3666c 100644 --- a/board/toradex/colibri-imx6ull/colibri_imx6ull.c +++ b/board/toradex/colibri-imx6ull/colibri_imx6ull.c @@ -56,6 +56,8 @@ DECLARE_GLOBAL_DATA_PTR; #define NAND_PAD_READY0_CTRL (PAD_CTL_DSE_48ohm | PAD_CTL_PUS_22K_UP) +#define MX6_PAD_SNVS_PMIC_STBY_REQ_ADDR 0x2290040 + #define USB_CDET_GPIO IMX_GPIO_NR(7, 14) int dram_init(void) @@ -376,6 +378,14 @@ int board_late_init(void) setenv("variant", "-wifi"); #endif + /* + * Disable output driver of PAD CCM_PMIC_STBY_REQ. This prevents the + * SOC to request for a lower voltage during sleep. This is necessary + * because the voltage is changing too slow for the SOC to wake up + * properly. + */ + __raw_writel(0x8080, MX6_PAD_SNVS_PMIC_STBY_REQ_ADDR); + #ifdef CONFIG_CMD_BMODE add_board_boot_modes(board_boot_modes); #endif -- cgit v1.2.3