diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/cache.h | 3 | ||||
-rw-r--r-- | include/asm-powerpc/cputable.h | 6 | ||||
-rw-r--r-- | include/asm-powerpc/synch.h | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/include/asm-powerpc/cache.h b/include/asm-powerpc/cache.h index 53507046a1b1..81de6eb3455d 100644 --- a/include/asm-powerpc/cache.h +++ b/include/asm-powerpc/cache.h | |||
@@ -8,6 +8,9 @@ | |||
8 | #if defined(CONFIG_8xx) || defined(CONFIG_403GCX) | 8 | #if defined(CONFIG_8xx) || defined(CONFIG_403GCX) |
9 | #define L1_CACHE_SHIFT 4 | 9 | #define L1_CACHE_SHIFT 4 |
10 | #define MAX_COPY_PREFETCH 1 | 10 | #define MAX_COPY_PREFETCH 1 |
11 | #elif defined(CONFIG_PPC_E500MC) | ||
12 | #define L1_CACHE_SHIFT 6 | ||
13 | #define MAX_COPY_PREFETCH 4 | ||
11 | #elif defined(CONFIG_PPC32) | 14 | #elif defined(CONFIG_PPC32) |
12 | #define L1_CACHE_SHIFT 5 | 15 | #define L1_CACHE_SHIFT 5 |
13 | #define MAX_COPY_PREFETCH 4 | 16 | #define MAX_COPY_PREFETCH 4 |
diff --git a/include/asm-powerpc/cputable.h b/include/asm-powerpc/cputable.h index 1e79673b7316..a3dce178b728 100644 --- a/include/asm-powerpc/cputable.h +++ b/include/asm-powerpc/cputable.h | |||
@@ -351,6 +351,8 @@ extern void do_feature_fixups(unsigned long value, void *fixup_start, | |||
351 | CPU_FTR_NODSISRALIGN) | 351 | CPU_FTR_NODSISRALIGN) |
352 | #define CPU_FTRS_E500_2 (CPU_FTR_USE_TB | CPU_FTR_SPE_COMP | \ | 352 | #define CPU_FTRS_E500_2 (CPU_FTR_USE_TB | CPU_FTR_SPE_COMP | \ |
353 | CPU_FTR_BIG_PHYS | CPU_FTR_NODSISRALIGN) | 353 | CPU_FTR_BIG_PHYS | CPU_FTR_NODSISRALIGN) |
354 | #define CPU_FTRS_E500MC (CPU_FTR_USE_TB | CPU_FTR_BIG_PHYS | \ | ||
355 | CPU_FTR_NODSISRALIGN) | ||
354 | #define CPU_FTRS_GENERIC_32 (CPU_FTR_COMMON | CPU_FTR_NODSISRALIGN) | 356 | #define CPU_FTRS_GENERIC_32 (CPU_FTR_COMMON | CPU_FTR_NODSISRALIGN) |
355 | 357 | ||
356 | /* 64-bit CPUs */ | 358 | /* 64-bit CPUs */ |
@@ -421,7 +423,7 @@ enum { | |||
421 | CPU_FTRS_E200 | | 423 | CPU_FTRS_E200 | |
422 | #endif | 424 | #endif |
423 | #ifdef CONFIG_E500 | 425 | #ifdef CONFIG_E500 |
424 | CPU_FTRS_E500 | CPU_FTRS_E500_2 | | 426 | CPU_FTRS_E500 | CPU_FTRS_E500_2 | CPU_FTRS_E500MC | |
425 | #endif | 427 | #endif |
426 | 0, | 428 | 0, |
427 | }; | 429 | }; |
@@ -461,7 +463,7 @@ enum { | |||
461 | CPU_FTRS_E200 & | 463 | CPU_FTRS_E200 & |
462 | #endif | 464 | #endif |
463 | #ifdef CONFIG_E500 | 465 | #ifdef CONFIG_E500 |
464 | CPU_FTRS_E500 & CPU_FTRS_E500_2 & | 466 | CPU_FTRS_E500 & CPU_FTRS_E500_2 & CPU_FTRS_E500MC & |
465 | #endif | 467 | #endif |
466 | CPU_FTRS_POSSIBLE, | 468 | CPU_FTRS_POSSIBLE, |
467 | }; | 469 | }; |
diff --git a/include/asm-powerpc/synch.h b/include/asm-powerpc/synch.h index 2cda3c38a9fa..42a1ef590690 100644 --- a/include/asm-powerpc/synch.h +++ b/include/asm-powerpc/synch.h | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | #include <linux/stringify.h> | 5 | #include <linux/stringify.h> |
6 | 6 | ||
7 | #ifdef __powerpc64__ | 7 | #if defined(__powerpc64__) || defined(CONFIG_PPC_E500MC) |
8 | #define __SUBARCH_HAS_LWSYNC | 8 | #define __SUBARCH_HAS_LWSYNC |
9 | #endif | 9 | #endif |
10 | 10 | ||