Skip to content

Commit 1063214

Browse files
Bub Weieasonxiang
authored andcommitted
soc: Increase delay for gnss start
To ensure the stability of gnss start, increase delay. Signed-off-by: Bub Wei <bub.wei@unisoc.com>
1 parent 00894ad commit 1063214

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

soc/gnss.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,12 +701,16 @@ void GNSS_Start(void)
701701
RF_CFG();
702702

703703
M4_CLK_CFG();
704+
DELAY(1);
704705
#if defined(CONFIG_SOC_UWP5661)
705706
sci_reg_or(GNSS_BB_EN, BIT(4) | BIT(6) | BIT(7));
706707
#elif defined(CONFIG_SOC_UWP5662)
707708
sci_reg_or(GNSS_BB_EN, BIT(3) | BIT(5) | BIT(6));
708709
#endif
710+
DELAY(1);
709711
sci_reg_or(BB_DBG_CLK_CTRL, BIT(0));
712+
DELAY(1);
710713
sci_write32(DATA2RAM_CONF0_ADDR, 0x04000002);
714+
DELAY(1);
711715
LOG_DBG("gnss init done");
712716
}

0 commit comments

Comments
 (0)