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)
commit8f76c9d73ab2ae58a84094990de3d0733ce23b13
tree41cbee7a190f8a13f99f03bdfce90d3cc4ee78ad
parentbd83431ea331a3360521e1a393e8fcc1c72965fe
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