mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 04:26:19 -04:00
altera_tse: Fix SGDMA reset triggering
The SW_RESET needs to be set instead of being masked out! Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
This commit is contained in:
parent
337aff53f6
commit
29095f1a5c
@ -357,8 +357,8 @@ static void tse_eth_reset(struct eth_device *dev)
|
|||||||
|
|
||||||
if (counter >= ALT_TSE_SGDMA_BUSY_WATCHDOG_CNTR) {
|
if (counter >= ALT_TSE_SGDMA_BUSY_WATCHDOG_CNTR) {
|
||||||
debug("Timeout waiting for rx sgdma!\n");
|
debug("Timeout waiting for rx sgdma!\n");
|
||||||
rx_sgdma->control &= ALT_SGDMA_CONTROL_SOFTWARERESET_MSK;
|
rx_sgdma->control = ALT_SGDMA_CONTROL_SOFTWARERESET_MSK;
|
||||||
rx_sgdma->control &= ALT_SGDMA_CONTROL_SOFTWARERESET_MSK;
|
rx_sgdma->control = ALT_SGDMA_CONTROL_SOFTWARERESET_MSK;
|
||||||
}
|
}
|
||||||
|
|
||||||
counter = 0;
|
counter = 0;
|
||||||
@ -370,8 +370,8 @@ static void tse_eth_reset(struct eth_device *dev)
|
|||||||
|
|
||||||
if (counter >= ALT_TSE_SGDMA_BUSY_WATCHDOG_CNTR) {
|
if (counter >= ALT_TSE_SGDMA_BUSY_WATCHDOG_CNTR) {
|
||||||
debug("Timeout waiting for tx sgdma!\n");
|
debug("Timeout waiting for tx sgdma!\n");
|
||||||
tx_sgdma->control &= ALT_SGDMA_CONTROL_SOFTWARERESET_MSK;
|
tx_sgdma->control = ALT_SGDMA_CONTROL_SOFTWARERESET_MSK;
|
||||||
tx_sgdma->control &= ALT_SGDMA_CONTROL_SOFTWARERESET_MSK;
|
tx_sgdma->control = ALT_SGDMA_CONTROL_SOFTWARERESET_MSK;
|
||||||
}
|
}
|
||||||
/* reset the mac */
|
/* reset the mac */
|
||||||
mac_dev->command_config.bits.transmit_enable = 1;
|
mac_dev->command_config.bits.transmit_enable = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user