mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
fix(rockchip): align fdt buffer on 8 bytes
Since commit 94b2f94bd6
("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
This commit is contained in:
parent
e1d24114a6
commit
621acbd055
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ static uint32_t rk_uart_base = PLAT_RK_UART_BASE;
|
|||
static uint32_t rk_uart_baudrate = PLAT_RK_UART_BAUDRATE;
|
||||
static uint32_t rk_uart_clock = PLAT_RK_UART_CLOCK;
|
||||
#define FDT_BUFFER_SIZE 0x20000
|
||||
static uint8_t fdt_buffer[FDT_BUFFER_SIZE];
|
||||
static uint64_t fdt_buffer[FDT_BUFFER_SIZE / 8];
|
||||
|
||||
void *plat_get_fdt(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue