]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: renesas: Scrub duplicate memory nodes from DT on Gen3
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 3 Apr 2021 14:58:49 +0000 (16:58 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 12 May 2021 19:36:27 +0000 (21:36 +0200)
commit346fb5870b80f7247b52ee0dfb1f5e3230943432
tree41cbee7a190f8a13f99f03bdfce90d3cc4ee78ad
parentc74839ae02f9c6a166397ce68d0a2d6c2a7537c8
ARM: renesas: Scrub duplicate memory nodes from DT on Gen3

Scrub duplicate /memory@* node entries here. Some R-Car DTs might
contain multiple /memory@* nodes, however fdt_fixup_memory_banks()
either generates single /memory node or updates the first /memory
node. Any remaining memory nodes are thus potential duplicates.

However, it is not possible to delete all the memory nodes right
away, since some of those might not be DRAM memory nodes, but some
sort of other memory. Thus, delete only the memory nodes which are
in the R-Car3 DBSC ranges.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
arch/arm/mach-rmobile/Kconfig
board/renesas/rcar-common/common.c