Commit 6392ecf6 authored by Bernhard Nortmann's avatar Bernhard Nortmann Committed by NiteHawk
Browse files

fel: bugfix: aw_fel_writel_n() transfers need to do endian conversion

parent fc30490f
......@@ -776,7 +776,8 @@ void aw_fel_writel_n(libusb_device_handle *usb, uint32_t addr,
* Subsequent transfers only need to set up the next value
* to store (since the scratch code auto-increments addr).
*/
aw_fel_write(usb, src++, sram_info->scratch_addr + 28, sizeof(uint32_t));
uint32_t val = htole32(*src++);
aw_fel_write(usb, &val, sram_info->scratch_addr + 28, sizeof(val));
aw_fel_execute(usb, sram_info->scratch_addr);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment