aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/of_reserved_mem.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2014-02-28 08:42:47 -0500
committerGrant Likely <grant.likely@linaro.org>2014-03-11 13:26:47 -0400
commite8d9d1f5485b52ec3c4d7af839e6914438f6c285 (patch)
tree40ee498612d54b3983a96406b1897dd875376cf5 /drivers/of/of_reserved_mem.c
parentf08ad1deaaf83b7e7369716949b34dadc530be01 (diff)
drivers: of: add initialization code for static reserved memory
This patch adds support for static (defined by 'reg' property) reserved memory regions declared in device tree. Memory blocks can be reliably reserved only during early boot. This must happen before the whole memory management subsystem is initialized, because we need to ensure that the given contiguous blocks are not yet allocated by kernel. Also it must happen before kernel mappings for the whole low memory are created, to ensure that there will be no mappings (for reserved blocks). Typically, all this happens before device tree structures are unflattened, so we need to get reserved memory layout directly from fdt. Based on previous code provided by Josh Cartwright <joshc@codeaurora.org> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of/of_reserved_mem.c')
0 files changed, 0 insertions, 0 deletions