Skip to content

Commit

Permalink
MN10300: AM34: The current cacheflush routines operate by controlling…
Browse files Browse the repository at this point in the history
… tag regs

The current cache flush and invalidate routines operate by controlling the
cache tag registers.  Rename the files and add config items to select them.

This makes it easier to support the use of other cache flush methods instead,
such as the use of AM34's area purge registers, if available.

Signed-off-by: David Howells <dhowells@redhat.com>
  • Loading branch information
David Howells committed Oct 27, 2010
1 parent 93c10d3 commit 518d4bb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
20 changes: 20 additions & 0 deletions arch/mn10300/mm/Kconfig.cache
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,23 @@ endchoice

config MN10300_CACHE_ENABLED
def_bool y if !MN10300_CACHE_DISABLED


choice
prompt "CPU cache flush/invalidate method"
default MN10300_CACHE_MANAGE_BY_TAG
depends on MN10300_CACHE_ENABLED
help
This determines the method by which CPU cache flushing and
invalidation is performed.

config MN10300_CACHE_MANAGE_BY_TAG
bool "Use the cache tag registers directly"

endchoice

config MN10300_CACHE_INV_BY_TAG
def_bool y if MN10300_CACHE_MANAGE_BY_TAG && MN10300_CACHE_ENABLED

config MN10300_CACHE_FLUSH_BY_TAG
def_bool y if MN10300_CACHE_MANAGE_BY_TAG && MN10300_CACHE_WBACK
5 changes: 3 additions & 2 deletions arch/mn10300/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
# Makefile for the MN10300-specific memory management code
#

cacheflush-y := cache.o cache-mn10300.o
cacheflush-$(CONFIG_MN10300_CACHE_WBACK) += cache-flush-mn10300.o
cacheflush-y := cache.o
cacheflush-$(CONFIG_MN10300_CACHE_INV_BY_TAG) += cache-inv-by-tag.o
cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_BY_TAG) += cache-flush-by-tag.o

cacheflush-$(CONFIG_MN10300_CACHE_DISABLED) := cache-disabled.o

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 518d4bb

Please sign in to comment.