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:
Michal Sieron 2022-05-23 15:23:35 +02:00 committed by Marti Bolivar
commit 17a2c6d647
2 changed files with 16 additions and 7 deletions

View file

@ -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);