summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2011-10-07 01:05:34 +0000
committerWolfgang Denk <wd@denx.de>2011-10-09 22:20:44 +0200
commit13e95e4230acc05407574b594bb7e48cfe92efb8 (patch)
tree0956cfdc4ab32ce23a7468bc19c2c9236efc50d9 /include
parent6eecc0307927fee1ff70151980b3a8c02ffeb947 (diff)
downloadu-boot-imx-13e95e4230acc05407574b594bb7e48cfe92efb8.zip
u-boot-imx-13e95e4230acc05407574b594bb7e48cfe92efb8.tar.gz
u-boot-imx-13e95e4230acc05407574b594bb7e48cfe92efb8.tar.bz2
ppc: Include <asm/cache.h> in common.h
This is needed for the patch "cache: add default setting for CONFIG_SYS_CACHELINE_SIZE" from Anton Staaf. As cache.h defines CONFIG_SYS_CACHELINE_SIZE for PPC targets. This will remove the following warnings/errors: include/common.h:819:2: warning: #warning CONFIG_SYS_CACHELINE_SIZE not defined, using __BIGGEST_ALIGNMENT__ cache.c:33: error: '__BIGGEST_ALIGNMENT__' undeclared (first use in this function) Signed-off-by: Stefan Roese <sr@denx.de> Cc: Anton Staaf <robotboy@chromium.org> Cc: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index bcc00e8..eb19a44 100644
--- a/include/common.h
+++ b/include/common.h
@@ -782,6 +782,14 @@ int cpu_release(int nr, int argc, char * const argv[]);
#endif /* __ASSEMBLY__ */
+#ifdef CONFIG_PPC
+/*
+ * Has to be included outside of the #ifndef __ASSEMBLY__ section.
+ * Otherwise might lead to compilation errors in assembler files.
+ */
+#include <asm/cache.h>
+#endif
+
/* Put only stuff here that the assembler can digest */
#ifdef CONFIG_POST