]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/hal/arm/mx51/karo/v1_0/include/pkgconf/mlt_arm_tx51_romram.h
RedBoot STK5 Release 2010-03-04
[karo-tx-redboot.git] / packages / hal / arm / mx51 / karo / v1_0 / include / pkgconf / mlt_arm_tx51_romram.h
1 // eCos memory layout - Fri Oct 20 05:56:55 2000
2
3 // This is a generated file - do not edit
4 #include <pkgconf/system.h>
5 #include CYGBLD_HAL_VARIANT_H
6 #include CYGBLD_HAL_PLATFORM_H
7 #include <cyg/hal/hal_soc.h>            // Hardware definitions
8 #include <pkgconf/redboot.h>
9
10 #define SDRAM_BASE_ADDR                 CSD0_BASE_ADDR
11 #define SDRAM_SIZE                              CYGNUM_HAL_ARM_TX51_SDRAM_SIZE
12
13 #define UNCACHED_RAM_BASE_VIRT  0xF0000000
14
15 #define SZ_128M                                 0x08000000
16 #define SZ_256M                                 0x10000000
17 #define RAM_BANK0_BASE                  CSD0_BASE_ADDR
18 #define RAM_BANK1_BASE                  CSD1_BASE_ADDR
19 #define RAM_BANK0_SIZE                  SZ_256M
20 #if SDRAM_SIZE > RAM_BANK0_SIZE
21 #define RAM_BANK1_SIZE                  (SDRAM_SIZE - RAM_BANK0_SIZE)
22 #endif
23
24 #define REDBOOT_IMAGE_SIZE              CYGBLD_REDBOOT_MIN_IMAGE_SIZE
25
26 #ifndef REDBOOT_BOTTOM
27 #define REDBOOT_OFFSET                  REDBOOT_IMAGE_SIZE
28 #define CYGMEM_REGION_ram               SDRAM_BASE_ADDR
29 #define CYGMEM_REGION_rom               (CYGMEM_REGION_ram + CYGMEM_REGION_ram_SIZE)
30 #else
31 #define REDBOOT_OFFSET                  0x00100000
32 #define CYGMEM_REGION_ram               (SDRAM_BASE_ADDR + REDBOOT_OFFSET)
33 #define CYGMEM_REGION_rom               SDRAM_BASE_ADDR
34 #endif
35
36 #define CYGMEM_REGION_ram_SIZE  (SDRAM_SIZE - REDBOOT_OFFSET)
37 #define CYGMEM_REGION_ram_ATTR  (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W)
38
39 #define CYGMEM_REGION_rom_SIZE  REDBOOT_OFFSET
40 #define CYGMEM_REGION_rom_ATTR  CYGMEM_REGION_ATTR_R
41 #ifndef __ASSEMBLER__
42 extern char CYG_LABEL_NAME(__heap1)[];
43 #endif
44 #define CYGMEM_SECTION_heap1    (CYG_LABEL_NAME(__heap1))
45 #define CYGMEM_SECTION_heap1_SIZE (CYGMEM_REGION_rom - (size_t)CYG_LABEL_NAME(__heap1))