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:02 +0300
commitce26e793bf41a188bca65efcdbda12e47b091a5f (patch)
treee66c9373c26b915010b6dfb2eb2b48b97dbbc459
parent09b58eb836d453e44bf12c2ddc01c39c9a9a5b8d (diff)
downloadu-boot-ce26e793bf41a188bca65efcdbda12e47b091a5f.tar.xz
ODROID-COMMON: Revert "fdt: do not padding 'reg' property if already defined in DTS [1/2]"s922_9.0.0_64_20191118
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);