coreboot/src/arch/power8
Julius Werner cd6b22f9a0 arch: Unify basic cache clearing API
Caching is a very architecture-specific thing, but most architectures
have a cache in general. Therefore it can be useful to have a generic
architecture-independent API to perform simple cache management tasks
from common code.

We have already standardized on the dcache_clean/invalidate naming
scheme that originally comes from ARM in libpayload, so let's just do
the same for coreboot. Unlike libpayload, there are other things than
just DMA coherency we may want to achieve with those functions, so
actually implement them for real even on architectures with
cache-snooping DMA like x86. (In the future, we may find applications
like this in libpayload as well and should probably rethink the API
there... maybe move the current functionality to a separate
dma_map/unmap API instead. But that's beyond scope of this patch.)

Change-Id: I2c1723a287f76cd4118ef38a445339840601aeea
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/19788
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
2017-05-30 22:19:50 +02:00
..
include arch: Unify basic cache clearing API 2017-05-30 22:19:50 +02:00
boot.c die() when attempting to use bounce buffer on non-i386. 2016-02-22 18:38:48 +01:00
bootblock.S arch/power8: Position bootblock start at reset vector 2016-04-04 20:45:19 +02:00
id.ld emulation/qemu-power8: initial mainboard and arch commit 2016-02-20 04:55:13 +01:00
Kconfig emulation/qemu-power8: initial mainboard and arch commit 2016-02-20 04:55:13 +01:00
Makefile.inc build system: remove CBFSTOOL_PRE1_OPTS 2016-05-03 11:40:49 +02:00
misc.c emulation/qemu-power8: initial mainboard and arch commit 2016-02-20 04:55:13 +01:00
prologue.inc emulation/qemu-power8: initial mainboard and arch commit 2016-02-20 04:55:13 +01:00
rom_media.c region: Add writeat and eraseat support 2016-06-24 20:48:12 +02:00
stages.c emulation/qemu-power8: initial mainboard and arch commit 2016-02-20 04:55:13 +01:00
tables.c lib: add common write_tables() implementation 2016-04-21 20:49:05 +02:00