diff --git a/board/nm/nrhw20/board.c b/board/nm/nrhw20/board.c index 0d252add1a..2d8ae75100 100644 --- a/board/nm/nrhw20/board.c +++ b/board/nm/nrhw20/board.c @@ -489,6 +489,15 @@ static void init_gsm(void) puts("ready\n"); } +static void init_gnss(void) +{ + /* + * Release GNSS reset line, so that modem starts up early + */ + REQUEST_AND_SET_GPIO(NETBIRD_GPIO_RST_GNSS); +} + + #endif /* !defined(CONFIG_SPL_BUILD) */ @@ -806,13 +815,13 @@ int board_late_init(void) /* Initialize pins */ REQUEST_AND_CLEAR_GPIO(NETBIRD_GPIO_WLAN_EN); REQUEST_AND_CLEAR_GPIO(NETBIRD_GPIO_BT_EN); - REQUEST_AND_CLEAR_GPIO(NETBIRD_GPIO_RST_GNSS); REQUEST_AND_CLEAR_GPIO(NETBIRD_GPIO_DIG_OUT); init_ethernet_switch(); init_usb_hub(); init_pcie_slot(); init_gsm(); + init_gnss(); /* Enable charging of RTC backup capacitor (1mA, 3.1V) */ (void)da9063_set_reg(PMIC_REG_BBAT_CONT, 0xCF);