diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2018-04-27 08:15:57 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-06-04 10:09:42 -0700 |
commit | edbfb3a43b6c4e1dd28f6d00a59896cae198f68b (patch) | |
tree | e2fe1d6f4e5da6b0fc1b96853ed3a4819959d982 /include/link_defs.h | |
parent | a6c9a3cd2194d555b926d4a0789827b5dd341b9d (diff) | |
download | chrome-ec-edbfb3a43b6c4e1dd28f6d00a59896cae198f68b.tar.gz |
cortex-m: add D-cache support
Add support to enable the architectural D-cache on ARMv7-M CPU
supporting it.
Update the MPU code in order to be able to declare an 'uncached' RAM
region (e.g. to store the DMA buffer).
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=poppy
BUG=b:78535052, b:75068419
TEST=with the following CL, on ZerbleBarn, boot and capture a finger
image.
Change-Id: I275445e7c0b558cedc3e7d6fc6840ff9b4b76285
Reviewed-on: https://chromium-review.googlesource.com/1032776
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'include/link_defs.h')
-rw-r--r-- | include/link_defs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/link_defs.h b/include/link_defs.h index f27651691c..1ff5804bb9 100644 --- a/include/link_defs.h +++ b/include/link_defs.h @@ -110,5 +110,10 @@ extern const void *__data_end; #else #define __SECTION(name) #endif /* CONFIG_MEMORY_REGIONS */ +#ifdef CONFIG_CHIP_UNCACHED_REGION +#define __uncached __SECTION(CONFIG_CHIP_UNCACHED_REGION) +#else +#define __uncached +#endif #endif /* __CROS_EC_LINK_DEFS_H */ |