* [U-Boot] D-Cache support for ARM?
@ 2009-08-16 18:53 Dirk Behme
0 siblings, 0 replies; only message in thread
From: Dirk Behme @ 2009-08-16 18:53 UTC (permalink / raw)
To: u-boot
Hi,
does anybody have some D-Cache enable code for ARM he likes to share?
I'm thinking about some generic code which takes MMU configuration
from board config and sets up a 16k first level page table (1MB only
pages). With this, D-Cache can be enabled for the specified memory
regions and is flushed/disabled again before U-Boot exit.
MMU config entries in board config could look like
CONFIG_ARM_MMU_FIRST_LEVEL_ENTRY( \
<physical/virtual base address>, // 1:1 mapping \
<size in MB>, \
<cacheable/noncachable>, \
<bufferable/nonbufferable> )
E.g.
CONFIG_ARM_MMU_FIRST_LEVEL_ENTRY(0x000, 16, NONCACHEABLE,
NONBUFFERABLE) // 16MB NOR
CONFIG_ARM_MMU_FIRST_LEVEL_ENTRY(0x100, 128, CACHEABLE, BUFFERABLE)
// 128 MB RAM
CONFIG_ARM_MMU_FIRST_LEVEL_ENTRY(0xF00, 1, NONCACHEABLE,
NONBUFFERABLE) // 1MB register window
Having only a 1:1 mapping (physical/virtual) would be sufficient in a
first step, as we are only interested in D-Cache support here (using
the same memory map as currently done without MMU).
Opinions?
Best regards
Dirk
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-16 18:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-16 18:53 [U-Boot] D-Cache support for ARM? Dirk Behme
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.