1 comment:
File src/mainboard/sifive/hifive-unleashed/romstage.c:
nsleep(2000000);
__sync_fetch_and_or(&GPIO_REG(GPIO_OUTPUT_VAL), PHY_NRESET);
__sync_fetch_and_or(&GPIO_REG(GPIO_OUTPUT_EN), PHY_NRESET);
nsleep(100);
__sync_fetch_and_and(&GPIO_REG(GPIO_OUTPUT_VAL), ~PHY_NRESET);
nsleep(100);
__sync_fetch_and_or(&GPIO_REG(GPIO_OUTPUT_VAL), PHY_NRESET);
nsleep(15000000);
}
This is necessary, if you remove the code sifive provides linux can not identify the network card
It "should" not be necessary anymore. It has been fixed in the linux kernel recently.
To view, visit change 31059. To unsubscribe, or for help writing mail filters, visit settings.