sunxi: video: Do not use CONFIG_SYS_MEM_TOP_HIDE for the framebuffer
authorHans de Goede <hdegoede@redhat.com>
Mon, 2 Feb 2015 16:13:29 +0000 (17:13 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 16 Feb 2015 18:40:59 +0000 (19:40 +0100)
commit5633a296ebb970d0a6be839fb37eaf8a11aa35f8
tree454f1f463fbca981853c5865bd85c292da84ea85
parent8910a7d37a0c0c7b73c8b1e6175966d58979ba5c
sunxi: video: Do not use CONFIG_SYS_MEM_TOP_HIDE for the framebuffer

Do not use CONFIG_SYS_MEM_TOP_HIDE for the framebuffer, instead override
board_get_usable_ram_top to make sure that u-boot is not relocated into the
area where we want to use the framebuffer, and patch the devicetree from
sunxi_simplefb_setup() to tell the kernel to not touch the framebuffer.

This makes u-boot properly see the framebuffer as dram, and initalize the
level 2 cache for it, fixing the very slow cfb scrolling problem.

As an added bonus this stops us from reserving the framebuffer when simplefb
is not used because an older kernel is booted, or hdp is used and no hdmi
cable was plugged in, freeing up the memory for kernel use in these cases.

Reported-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/video/sunxi_display.c
include/configs/sunxi-common.h