exynos: Set up caching in the bootblock.
This improves firmware boot time substantially. Because cbmem isn't available
yet, we need to allocate some space in sram for the ttb. Doing cache
initialization in the bootblock means we can implement this once per CPU
instead of once per mainboard.
Signed-off-by: Gabe Black <firstname.lastname@example.org>
Reviewed-by: David Hendricks <email@example.com>
Commit-Queue: Gabe Black <firstname.lastname@example.org>
Tested-by: Gabe Black <email@example.com>
(cherry picked from commit c32b9b32ad933e627b9ea98434b392239b1fea73)
exynos5420: flush caches and disable MMU in resume path
This patch flushes the caches and disables the MMU before resuming.
c32b9b3 ("Set up caching in the bootblock.") had a bug where the
dcache and MMU remained enabled in the resume path. This caused
the machine to hang on resume. However, other bugs were preventing
us from testing this properly earlier on so it went unnoticed until
Signed-off-by: David Hendricks <firstname.lastname@example.org>
Reviewed-by: ron minnich <email@example.com>
Commit-Queue: David Hendricks <firstname.lastname@example.org>
Tested-by: David Hendricks <email@example.com>
(cherry picked from commit 4fdf9763d25f70fd1e3591f6ff9785f78dd6170d)
Squashed two related commits.
Signed-off-by: Isaac Christensen <firstname.lastname@example.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <email@example.com>
Reviewed-by: Edward O'Callaghan <firstname.lastname@example.org>
7 files changed