Skip to content
Snippets Groups Projects
Commit ffccb84c authored by Hans de Goede's avatar Hans de Goede Committed by Simon Glass
Browse files

fdt: Fix regression in fdt_pack_reg()


After commit 933cdbb4: "fdt: Try to use fdt_address_cells()/fdt_size_cells()"
I noticed that allwinner boards would no longer boot.

Switching to fdt_address_cells / fdt_size_cells changes the result from
bytes to 32 bit words, so when we increment pointers into the blob, we must
do so by 32 bit words now.

This commit makes allwinner boards boot again.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Tested-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarStefan Roese <sr@denx.de>
Tested-by: default avatarVince Hsu <vinceh@nvidia.com>
parent 0bd4e39d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment