• Laura Abbott's avatar
    arm: Add devicetree fixup machine function · 5a12a597
    Laura Abbott authored
    Commit 1c2f87c2
    (ARM: 8025/1: Get rid of meminfo) dropped the upper bound on
    the number of memory banks that can be added as there was no
    technical need in the kernel. It turns out though, some bootloaders
    (specifically the arndale-octa exynos boards) may pass invalid memory
    information and rely on the kernel to not parse this data. This is a
    bug in the bootloader but we still need to work around this.
    Work around this by introducing a dt_fixup function. This function
    gets called before the flattened devicetree is scanned for memory
    and the like. In this fixup function for exynos, limit the maximum
    number of memory regions in the devicetree.
    Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
    Tested-by: default avatarAndreas Färber <afaerber@suse.de>
    [glikely: Added a comment and fixed up function name]
    Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
    5a12a597
arch.h 2.84 KB