Commit 6be71b09 authored by Marek Vasut's avatar Marek Vasut
Browse files

rcar_gen3: Add missing #{address,size}-cells into generated DT



Add missing #address-cells and #size-cells into generated DT, otherwise
the DT is invalid. While the parsers thus far handled this correctly via
various fallbacks, this is not applicable in the long run, so fix this.
Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
Change-Id: Ic808a3b27b93e5258ec1a19acc3d593e53625c15
parent e9ed7fa7
...@@ -415,6 +415,9 @@ static void bl2_populate_compatible_string(void *dt) ...@@ -415,6 +415,9 @@ static void bl2_populate_compatible_string(void *dt)
uint32_t reg; uint32_t reg;
int ret; int ret;
fdt_setprop_u32(dt, 0, "#address-cells", 2);
fdt_setprop_u32(dt, 0, "#size-cells", 2);
/* Populate compatible string */ /* Populate compatible string */
rcar_get_board_type(&board_type, &board_rev); rcar_get_board_type(&board_type, &board_rev);
switch (board_type) { switch (board_type) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment