]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPlatformPkg/ArmPlatformPkg.dec
ArmPlatformPkg: Reserving framebuffer at build
authorGirish Pathak <girish.pathak at arm.com>
Tue, 26 Sep 2017 20:15:28 +0000 (21:15 +0100)
committerLeif Lindholm <leif.lindholm@linaro.org>
Mon, 23 Apr 2018 11:01:24 +0000 (12:01 +0100)
commit36bbbf4f73522739721a965f7b2824e09d5076a3
tree79379dda6fbaa321c6a2d1a5f4005321ca4e0cc6
parent90347ab3251b9f5a46c1f85243b91c340e6de63f
ArmPlatformPkg: Reserving framebuffer at build

Currently framebuffer memory is either reserved in special VRAM or
dynamically allocated using boot services memory allocation functions.
When allocated using boot services calls the memory has to be allocated
as EfiBootServicesData. Unfortunately failures have been seen with this
case.  There is also an unfortunate lack of control on the placement of
the framebuffer.

This change introduces two PCDs, PcdArmLcdFrameBufferBase and
PcdArmLcdFrameBufferSize which enable build time reservation of the
framebuffer, avoiding the need to allocate dynamically. This allows
the framebuffer to appear as "I/O memory" outside of the normal RAM
map, which is similar to the "VRAM" case.

This change has no impact on current code, only enables the option
of build time reservation of framebuffers.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Girish Pathak <girish.pathak@arm.com>
Signed-off-by: Evan Lloyd <evan.lloyd@arm.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPlatformPkg/ArmPlatformPkg.dec