path: root/plat/rockchip
diff options
authorHugh Cole-Baker <sigmaris@gmail.com>2020-06-08 22:24:36 +0100
committerHugh Cole-Baker <sigmaris@gmail.com>2020-06-08 23:03:42 +0100
commit8109f738ffa79a63735cba29da26e7c2859977b5 (patch)
tree1e6c43393bfbaec4398afe1d73e4c910224a16f3 /plat/rockchip
parent967a6d162d9dc1c5ae154f289bcdecc03cb9eb7c (diff)
rockchip: increase FDT buffer size
The size of buffer currently used to store the FDT passed from U-Boot as a platform parameter is not large enough to store some RK3399 device trees. The largest RK3399 device tree currently in U-Boot (for the Pinebook Pro) is about 70KB in size when passed to TF-A, so increase the buffer size to 128K which gives some headroom for possibly larger FDTs in future. Signed-off-by: Hugh Cole-Baker <sigmaris@gmail.com> Change-Id: I414caf20683cd47c02ee470dfa988544f3809919
Diffstat (limited to 'plat/rockchip')
1 files changed, 3 insertions, 2 deletions
diff --git a/plat/rockchip/common/params_setup.c b/plat/rockchip/common/params_setup.c
index b2fd2011e4..2ff81eda79 100644
--- a/plat/rockchip/common/params_setup.c
+++ b/plat/rockchip/common/params_setup.c
@@ -37,7 +37,8 @@ static int dt_process_fdt(u_register_t param_from_bl2)
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;
-static uint8_t fdt_buffer[0x10000];
+#define FDT_BUFFER_SIZE 0x20000
+static uint8_t fdt_buffer[FDT_BUFFER_SIZE];
void *plat_get_fdt(void)
@@ -136,7 +137,7 @@ static int dt_process_fdt(u_register_t param_from_bl2)
void *fdt = plat_get_fdt();
int ret;
- ret = fdt_open_into((void *)param_from_bl2, fdt, 0x10000);
+ ret = fdt_open_into((void *)param_from_bl2, fdt, FDT_BUFFER_SIZE);
if (ret < 0)
return ret;