Skip to content

Commit

Permalink
ODROID-COMMON: Revert "fdt: do not padding 'reg' property if already …
Browse files Browse the repository at this point in the history
…defined in DTS [1/2]"

This reverts commit 97e50f6.

Change-Id: Id8fb40b90f16c5479131770e4575af183f5234ed
  • Loading branch information
tobetter committed Sep 10, 2019
1 parent 03d3ec3 commit a374ff3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions common/fdt_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,6 @@ int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks)
{
int err, nodeoffset;
int len;
const void *reg;

u8 tmp[MEMORY_BANKS_MAX * 16]; /* Up to 64-bit address + 64-bit size */

if (banks > MEMORY_BANKS_MAX) {
Expand Down Expand Up @@ -505,13 +503,6 @@ int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks)
return err;
}

reg = fdt_getprop(blob, nodeoffset, "reg", NULL);
printf("%s, reg:%p\n", __func__, reg);
if (reg) {
printf("DTS already have 'reg' property\n");
return 0;
}

len = fdt_pack_reg(blob, tmp, start, size, banks);

err = fdt_setprop(blob, nodeoffset, "reg", tmp, len);
Expand Down

0 comments on commit a374ff3

Please sign in to comment.