fix(ch390): deepen reset recovery
This commit is contained in:
@@ -254,9 +254,9 @@ void ch390_hardware_reset(void)
|
||||
{
|
||||
ch390_delay_us(10000); /* Short delay before reset */
|
||||
ch390_rst(0); /* Assert reset (low) */
|
||||
ch390_delay_us(3000); /* Hold reset for 3ms to satisfy datasheet minimum */
|
||||
ch390_delay_us(50000); /* Recover chips stuck after repeated MCU resets */
|
||||
ch390_rst(1); /* Release reset (high) */
|
||||
ch390_delay_us(50000); /* Wait 50ms for CH390 to initialize reliably */
|
||||
ch390_delay_us(500000); /* Allow EEPROM load, PHY, and SPI state to settle */
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user