arm: Turn of d-cache before i-cache
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sun, 30 Aug 2015 22:55:49 +0000 (16:55 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 3 Sep 2015 03:28:25 +0000 (21:28 -0600)
commit81b0618ddf449aab669b42068ad8c90f63714c14
tree1350181c3ca0be07b3951a2a881d951449da67f6
parent6460fc42a1fe4de24a68a64cba7ce84b1fe5bcb1
arm: Turn of d-cache before i-cache

Booting the kernel fails on RK3288 (and probably other rockchip SoCs)
when the i-cache is disabled/flushed before d-cache.

I have not investigated whether this is due to U-Boot hanging or whether
it's very early in the linux boot, but following the approach of the
various rockchip U-Boot forks (first disable d-cache then i-cache) makes
things work.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/cpu/armv7/cpu.c