]> git.baikalelectronics.ru Git - kernel.git/commit
arm: Add devicetree fixup machine function
authorLaura Abbott <lauraa@codeaurora.org>
Tue, 15 Jul 2014 17:03:36 +0000 (10:03 -0700)
committerGrant Likely <grant.likely@linaro.org>
Wed, 30 Jul 2014 03:26:49 +0000 (21:26 -0600)
commite52f6c389efcc6af67415dc25694b305ebde3d3e
tree3e8b3381fba66b9119bd491d3f3a7fe8401df61f
parent57e29877a35bd7c76b9a7306344fcec870f56ff4
arm: Add devicetree fixup machine function

Commit 250a5956213b89ed675e34b6527d8ca982bdf9f3
(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: Laura Abbott <lauraa@codeaurora.org>
Tested-by: Andreas Färber <afaerber@suse.de>
[glikely: Added a comment and fixed up function name]
Signed-off-by: Grant Likely <grant.likely@linaro.org>
arch/arm/include/asm/mach/arch.h
arch/arm/kernel/devtree.c
arch/arm/mach-exynos/exynos.c