85xx: Remove cache config from configs.h

Either use the standard defines in asm/cache.h or grab the information
at runtime from the L1CFG SPR.

Also, minor cleanup in cache.h to make the code a bit more readable.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
Kumar Gala
2008-01-08 01:22:21 -06:00
committed by Andrew Fleming-AFLEMING
parent b964e9368f
commit b009f3eca9
19 changed files with 15 additions and 120 deletions

View File

@@ -8,15 +8,13 @@
#include <asm/processor.h>
/* bytes per L1 cache line */
#if !(defined(CONFIG_8xx) || defined(CONFIG_IOP480))
#if defined(CONFIG_PPC64BRIDGE)
#if defined(CONFIG_8xx) || defined(CONFIG_IOP480)
#define L1_CACHE_SHIFT 4
#elif defined(CONFIG_PPC64BRIDGE)
#define L1_CACHE_SHIFT 7
#else
#define L1_CACHE_SHIFT 5
#endif /* PPC64 */
#else
#define L1_CACHE_SHIFT 4
#endif /* !(8xx || IOP480) */
#endif
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)