/* * All varients of the ColdFire using version 2 cores have a similar * cache setup. Although not absolutely identical the cache register * definitions are compatible for all of them. Mostly they support a * configurable cache memory that can be instruction only, data only, * or split instruction and data. The exception is the very old version 2 * core based parts, like the 5206(e), 5249 and 5272, which are instruction * cache only. Cache size varies from 2k up to 16k.
*/
/* * Define the Access Control register flags.
*/ #define ACR_BASE_POS 24 /* Address Base (upper 8 bits) */ #define ACR_MASK_POS 16 /* Address Mask (next 8 bits) */ #define ACR_ENABLE 0x00008000 /* Enable this ACR */ #define ACR_USER 0x00000000 /* Allow only user accesses */ #define ACR_SUPER 0x00002000 /* Allow supervisor access only */ #define ACR_ANY 0x00004000 /* Allow any access type */ #define ACR_CENB 0x00000000 /* Caching of region enabled */ #define ACR_CDIS 0x00000040 /* Caching of region disabled */ #define ACR_BWE 0x00000020 /* Write buffer enabled */ #define ACR_WPROTECT 0x00000004 /* Write protect region */
/* * Set the cache controller settings we will use. On the cores that support * a split cache configuration we allow all the combinations at Kconfig * time. For those cores that only have an instruction cache we just set * that as on.
*/ #ifdefined(CONFIG_CACHE_I) #define CACHE_TYPE (CACR_DISD + CACR_EUSP) #define CACHE_INVTYPEI 0 #elifdefined(CONFIG_CACHE_D) #define CACHE_TYPE (CACR_DISI + CACR_EUSP) #define CACHE_INVTYPED 0 #elifdefined(CONFIG_CACHE_BOTH) #define CACHE_TYPE CACR_EUSP #define CACHE_INVTYPEI CACR_INVI #define CACHE_INVTYPED CACR_INVD #else /* This is the instruction cache only devices (no split cache, no eusp) */ #define CACHE_TYPE 0 #define CACHE_INVTYPEI 0 #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.