Compare commits

..

2 Commits

Author SHA1 Message Date
Rene Straub 3a82e018ea hw21/26: optimize extension module powerup
Enable extension module power in first state loader.
Reasoning: Unpowered module can block I2C bus.
2024-02-20 15:29:56 +01:00
Rene Straub 250b26288e hw21/26: remove pulldown from timepulse input
TIMEPULSE is internally connected with SAFEBOOT_N
in the GNSS modem. The pulldown pulls the signal so
low, that in some cases the modem starts in bootloader
mode.
Also remove pull ups from UART to avoid cross currents
at powerup.
2024-02-20 14:06:34 +01:00
1 changed files with 7 additions and 1 deletions

View File

@ -794,7 +794,7 @@ static void init_bd_spl(void)
}
}
static void power_um(void)
static void power_um(void)
{
int bus;
@ -1071,6 +1071,10 @@ static void init_usb_hub(void)
static void init_user_module(void)
{
int bus;
bus = da9063_claim_i2c_bus();
puts("UM: ");
REQUEST_AND_CLEAR_GPIO(GPIO_RST_UM_N); /* Assert reset (active low) */
@ -1079,6 +1083,8 @@ static void init_user_module(void)
gpio_direction_input(GPIO_RST_UM_N); /* Release reset (open drain) */
mdelay(10);
da9063_release_i2c_bus(bus);
mdelay(200); /* Give module some time to boot */
um_init(CONFIG_UM_I2C_BUS); /* Try to detect user module */