Commit c96bcf95 authored by Paul Mundt's avatar Paul Mundt

sh: Use existing CONFIG_CACHE_xx options in head_64.S.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 0b2328bb
...@@ -63,23 +63,23 @@ ...@@ -63,23 +63,23 @@
#define MMUDR_CACHED_L 0x000000000000015a | ALIGNED_PHYSICAL #define MMUDR_CACHED_L 0x000000000000015a | ALIGNED_PHYSICAL
/* 512 Mb, Cacheable, Write-back, read/write, Not User, Ph. Add. */ /* 512 Mb, Cacheable, Write-back, read/write, Not User, Ph. Add. */
#ifdef CONFIG_ICACHE_DISABLED #ifdef CONFIG_CACHE_OFF
#define ICCR0_INIT_VAL ICCR0_OFF /* ICACHE off */ #define ICCR0_INIT_VAL ICCR0_OFF /* ICACHE off */
#else #else
#define ICCR0_INIT_VAL ICCR0_ON | ICCR0_ICI /* ICE + ICI */ #define ICCR0_INIT_VAL ICCR0_ON | ICCR0_ICI /* ICE + ICI */
#endif #endif
#define ICCR1_INIT_VAL ICCR1_NOLOCK /* No locking */ #define ICCR1_INIT_VAL ICCR1_NOLOCK /* No locking */
#if defined (CONFIG_DCACHE_DISABLED) #if defined (CONFIG_CACHE_OFF)
#define OCCR0_INIT_VAL OCCR0_OFF /* D-cache: off */ #define OCCR0_INIT_VAL OCCR0_OFF /* D-cache: off */
#elif defined (CONFIG_DCACHE_WRITE_THROUGH) #elif defined (CONFIG_CACHE_WRITETHROUGH)
#define OCCR0_INIT_VAL OCCR0_ON | OCCR0_OCI | OCCR0_WT /* D-cache: on, */ #define OCCR0_INIT_VAL OCCR0_ON | OCCR0_OCI | OCCR0_WT /* D-cache: on, */
/* WT, invalidate */ /* WT, invalidate */
#elif defined (CONFIG_DCACHE_WRITE_BACK) #elif defined (CONFIG_CACHE_WRITEBACK)
#define OCCR0_INIT_VAL OCCR0_ON | OCCR0_OCI | OCCR0_WB /* D-cache: on, */ #define OCCR0_INIT_VAL OCCR0_ON | OCCR0_OCI | OCCR0_WB /* D-cache: on, */
/* WB, invalidate */ /* WB, invalidate */
#else #else
#error preprocessor flag CONFIG_DCACHE_... not recognized! #error preprocessor flag CONFIG_CACHE_... not recognized!
#endif #endif
#define OCCR1_INIT_VAL OCCR1_NOLOCK /* No locking */ #define OCCR1_INIT_VAL OCCR1_NOLOCK /* No locking */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment