]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(rockchip): align fdt buffer on 8 bytes
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Mon, 14 Nov 2022 16:40:33 +0000 (17:40 +0100)
committerQuentin Schulz <quentin.schulz@theobroma-systems.com>
Tue, 15 Nov 2022 10:22:42 +0000 (11:22 +0100)
commit621acbd055d712ab8bf79054911155598fdb74d0
tree92eec7729f1df789168dc7b31300cb377ca6e19d
parente1d24114a6ca11d4896986202c2467fca5a4e62a
fix(rockchip): align fdt buffer on 8 bytes

Since commit 94b2f94bd632 ("feat(libfdt): upgrade libfdt source files"),
8-byte alignment of the FDT address is enforced to follow the DT
standard.

Rockchip implementation of params_early_setup loads the FDT address as
passed by the bootloader into a buffer. This buffer is currently made of
uint8_t which means it is not 8-byte aligned and might result in
fdt_open_into failing.

Instead, let's make this buffer uint64_t to make it 8-byte aligned.

Cc: Quentin Schulz <foss+tf-a@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Change-Id: Ifcf0e0cf4000e3661d76d3c3a2fe3921f7fe44b9
plat/rockchip/common/params_setup.c