plat: imx8mq: gpc: Enable all power domain by default
authorLeonard Crestez <[email protected]>
Mon, 6 May 2019 19:22:14 +0000 (22:22 +0300)
committerLeonard Crestez <[email protected]>
Wed, 8 May 2019 11:23:02 +0000 (14:23 +0300)
This is similar to imx8mm and allows uboot to run fastboot over USB otg.

There is a different set of power domains on 8mq but same bits covers
all off them.

Signed-off-by: Leonard Crestez <[email protected]>
Change-Id: I1151c2bc2d32b1e02b4db16285b3d30cabc0d64d

plat/imx/imx8m/imx8mq/gpc.c

index 02c640b535fbfb703d1e19dae714f873ea3771eb..107b53913669dc6ff410fd4b4798dd80ac3dafd4 100644 (file)
@@ -162,4 +162,7 @@ void imx_gpc_init(void)
         */
        mmio_clrbits_32(IMX_SRC_BASE + SRC_OTG1PHY_SCR, 0x1);
        mmio_clrbits_32(IMX_SRC_BASE + SRC_OTG2PHY_SCR, 0x1);
+
+       /* enable all the power domain by default */
+       mmio_write_32(IMX_GPC_BASE + PU_PGC_UP_TRG, 0x3fcf);
 }