summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjin Kim <tobetter@gmail.com>2019-09-10 18:49:36 +0300
committerDongjin Kim <tobetter@gmail.com>2019-09-10 20:30:51 +0300
commita374ff35130f09ba99717c5da3bd46fc3137518f (patch)
treee66c9373c26b915010b6dfb2eb2b48b97dbbc459
parent03d3ec34b7047b2bf78d0cefc2a5aacfa16b3ae7 (diff)
downloadu-boot-a374ff35130f09ba99717c5da3bd46fc3137518f.tar.xz
ODROID-COMMON: Revert "fdt: do not padding 'reg' property if already defined in DTS [1/2]"travis/odroidn2-61
This reverts commit 97e50f66a7ad18a4bd825966be54cf4142b9b72b. Change-Id: Id8fb40b90f16c5479131770e4575af183f5234ed
-rw-r--r--common/fdt_support.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 8c283f8b02..5f28d9738a 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -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) {
@@ -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);