source: rtems/c/src/lib/libbsp/arm/csb337/startup/memmap.c @ 22fb181b

4.104.115
Last change on this file since 22fb181b was 22fb181b, checked in by Joel Sherrill <joel.sherrill@…>, on 12/04/09 at 18:24:52

2009-12-04 Fernando Nicodemos <fgnicodemos@…>

  • README, README.kit637_v6, console/sed1356_16bit.h, startup/memmap.c: Missing parts of previous commit.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1/*
2 * CSB337 and CSB637 (KIT637_V6) Memory map
3 *
4 * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com>
5 * File from the old CSB337 RTEMS BSP
6 *
7 *  Modified by Joel Sherill
8 *  from OAR Corporation and
9 *  Fernando Nicodemos <fgnicodemos@terra.com.br>
10 *  from NCB - Sistemas Embarcados Ltda. (Brazil)
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#include <rtems.h>
20#include <libcpu/mmu.h>
21
22#include <bspopts.h>
23
24/* Remember, the ARM920 has 64 TLBs. If you have more 1MB sections than
25 * that, you'll have TLB lookups, which could hurt performance.
26 */
27mmu_sect_map_t mem_map[] = {
28/*  <phys addr>  <virt addr> <size> <flags> */
29    {0x00200000, 0x00000000,   1,    MMU_CACHE_NONE},     /* SRAM */
30    {0x00200000, 0x00200000,   1,    MMU_CACHE_NONE},     /* SRAM */
31    {0x10000000, 0x10000000,   8,    MMU_CACHE_NONE},     /* FLASH */
32#if csb637 /* CSB637 or KIT637_V6 */
33    {0x20000000, 0x20000000,  64,    MMU_CACHE_WTHROUGH}, /* SDRAM */
34#elif kit637_v6
35    {0x20000000, 0x20000000,  64,    MMU_CACHE_WTHROUGH}, /* SDRAM */
36#else /* CSB337 */
37    {0x20000000, 0x20000000,  32,    MMU_CACHE_WTHROUGH}, /* SDRAM */
38#endif
39#if ENABLE_LCD /* KIT637_V6 Video buffer */
40    {0x30000000, 0x30000000,   8,    MMU_CACHE_NONE},     /* Video buffer - 8MB */
41#else /* CSB337 Video buffer */
42    {0x30000000, 0x30000000,   1,    MMU_CACHE_NONE},     /* Video buffer - 1MB */
43#endif
44    {0x40000000, 0x40000000,   1,    MMU_CACHE_NONE},     /* Expansion CS0 */
45    {0x50000000, 0x50000000,   1,    MMU_CACHE_NONE},     /* CF CE 1 */
46    {0x60000000, 0x60000000,   1,    MMU_CACHE_NONE},     /* CF CE 1 */
47    {0x70000000, 0x70000000,   1,    MMU_CACHE_NONE},     /* CF CE 2 */
48    {0x80000000, 0x80000000,   1,    MMU_CACHE_NONE},     /* Expansion CS0 */
49    {0xfff00000, 0xfff00000,   1,    MMU_CACHE_NONE},     /* Internal regs */
50    {0x00000000, 0x00000000,   0,    0}                   /* The end */
51};
52
Note: See TracBrowser for help on using the repository browser.