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