[U-Boot] [PATCH 0/5] Enable caches for the RPi2
Alexander Graf
agraf at suse.de
Tue Mar 15 18:21:43 CET 2016
This patch set converts the Raspberry Pi 2 system to properly make use of
the caches available in it.
Because we're running in HYP mode, we first need to teach U-Boot how to
make use of HYP registers and the LPAE page layout which is mandated by
hardware when running in HYP mode.
Then while we're at it, also mark the frame buffer cached to speed up
screen updates.
With this patch set, my Raspberry Pi 3 running in AArch32 mode is a *lot*
faster than without.
Please verify that the code works on a RPi2 as well. In theory it should,
but I only have a 3 to test on available here.
Alexander Graf (5):
arm64: Add 32bit arm compatible dcache definitions
arm: Add support for HYP mode and LPAE page tables
lcd: Fix compile warning in 64bit mode
RPi: Enable caches for rpi2
bcm2835 video: Map fb as cached
arch/arm/include/asm/system.h | 105 +++++++++++++++++++++++++++++++++++++++---
arch/arm/lib/cache-cp15.c | 66 +++++++++++++++++++++++---
arch/arm/mach-bcm283x/init.c | 7 +++
common/lcd.c | 4 +-
drivers/video/bcm2835.c | 6 +++
include/configs/rpi_2.h | 2 +-
6 files changed, 174 insertions(+), 16 deletions(-)
--
1.8.5.6
More information about the U-Boot
mailing list