Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
6392ecf6
Commit
6392ecf6
authored
Oct 16, 2016
by
Bernhard Nortmann
Committed by
NiteHawk
Oct 22, 2016
Browse files
fel: bugfix: aw_fel_writel_n() transfers need to do endian conversion
parent
fc30490f
Changes
1
Hide whitespace changes
Inline
Side-by-side
fel.c
View file @
6392ecf6
...
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment