drivers: ethernet: eth_liteeth: Update driver
Correct width when accessing LITEETH_RX_LENGTH register. Also update register data in device tree to the 32-bit CSR variant. Signed-off-by: Michal Sieron <msieron@internships.antmicro.com>
This commit is contained in:
parent
e088d05159
commit
17a2c6d647
2 changed files with 16 additions and 7 deletions
|
@ -129,7 +129,7 @@ static void eth_rx(const struct device *port)
|
|||
key = irq_lock();
|
||||
|
||||
/* get frame's length */
|
||||
len = litex_read32(LITEETH_RX_LENGTH_ADDR);
|
||||
len = litex_read16(LITEETH_RX_LENGTH_ADDR);
|
||||
|
||||
/* which slot is the frame in */
|
||||
context->rxslot = litex_read8(LITEETH_RX_SLOT_ADDR);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue