]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:52:20 +0000 (13:52 +0200)
commit2f3a4d290537aeb0108eb4de7efdde0578c800bd
tree5642b517d3cd63680d84c481f498d6db57c62626
parentafd695d7d0666bca04a27781a0eb20bfb3ba34db
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