source: rtems/bsps/m68k/genmcf548x/start/linkcmds.m5484FireEngine.flash @ 9964895

5
Last change on this file since 9964895 was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 4.7 KB
Line 
1/*===============================================================*\
2| Project: RTEMS generic mcf548x BSP                              |
3+-----------------------------------------------------------------+
4| File: linkcmd.m5484FireEngine.flash                             |
5+-----------------------------------------------------------------+
6| The file contains the linker directives for the generic MCF548x |
7| BSP to be used with an m5484FireEngine EVB to load and execute  |
8| code in the boot FLASH.                                         |
9+-----------------------------------------------------------------+
10|                    Copyright (c) 2007                           |
11|                    Embedded Brains GmbH                         |
12|                    Obere Lagerstr. 30                           |
13|                    D-82178 Puchheim                             |
14|                    Germany                                      |
15|                    rtems@embedded-brains.de                     |
16+-----------------------------------------------------------------+
17|                                                                 |
18| Parts of the code has been derived from the "dBUG source code"  |
19| package Freescale is providing for M548X EVBs. The usage of     |
20| the modified or unmodified code and it's integration into the   |
21| generic mcf548x BSP has been done according to the Freescale    |
22| license terms.                                                  |
23|                                                                 |
24| The Freescale license terms can be reviewed in the file         |
25|                                                                 |
26|    Freescale_license.txt                                        |
27|                                                                 |
28+-----------------------------------------------------------------+
29|                                                                 |
30| The generic mcf548x BSP has been developed on the basic         |
31| structures and modules of the av5282 BSP.                       |
32|                                                                 |
33+-----------------------------------------------------------------+
34|                                                                 |
35| The license and distribution terms for this file may be         |
36| found in the file LICENSE in this distribution or at            |
37|                                                                 |
38| http://www.rtems.org/license/LICENSE.                           |
39|                                                                 |
40+-----------------------------------------------------------------+
41|                                                                 |
42|   date                      history                        ID   |
43| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
44| 12.11.07                    1.0                            ras  |
45|                                                                 |
46\*===============================================================*/
47
48/*
49 * Location and size of on-chip devices
50 */
51_SdramBase     = DEFINED(_SdramBase)      ? _SdramBase     : 0x00000000;
52_SdramSize     = DEFINED(_SdramSize)      ? _SdramSize     : (64 * 1024 * 1024);
53_SysSramBase   = DEFINED(_SysSramBase)    ? _SysSramBase   : __MBAR + 0x00010000;
54_SysSramSize   = DEFINED(_SysSramSize)    ? _SysSramSize   : (32 * 1024);
55_McdapiBase    = DEFINED(_McdapiBase)     ? _McdapiBase    : _SysSramBase;                 
56_McdapiSize    = DEFINED(_McdapiSize)     ? _McdapiSize    : (12 * 1024);                 
57_CoreSramBase0 = DEFINED(_CoreSramBase0)  ? _CoreSramBase0 : 0x20000000;
58_CoreSramBase1 = DEFINED(_CoreSramBase1)  ? _CoreSramBase1 : 0x20001000;
59_CoreSramSize0 = DEFINED(_CoreSramSize0)  ? _CoreSramSize0 : (4 * 1024);
60_CoreSramSize1 = DEFINED(_CoreSramSize1)  ? _CoreSramSize1 : (4 * 1024);
61_BootFlashBase = DEFINED(_BootFlashBase)  ? _BootFlashBase : 0xFF800000;
62_BootFlashSize = DEFINED(_BootFlashSize)  ? _BootFlashSize : (2 * 1024 * 1024);
63_CodeFlashBase = DEFINED(_CodeFlashBase)  ? _CodeFlashBase : 0xE0000000;
64_CodeFlashSize = DEFINED(_CodeFlashSize)  ? _CodeFlashSize : (16 * 1024 * 1024);
65
66bsp_initstack_size = DEFINED(StackSize)    ? StackSize  : 0x800;  /* 2 kB   */
67
68_VBR            = DEFINED(_VBR)            ? _VBR       : _SdramBase;
69
70__MBAR          = DEFINED(__MBAR)          ? __MBAR     : 0x10000000;
71
72MEMORY
73{
74    sdram      : ORIGIN = 0x00000000, LENGTH = 64M
75    code_flash : ORIGIN = 0xE0000000, LENGTH = 16M
76    boot_flash : ORIGIN = 0xFF800000, LENGTH = 2M
77}
78
79REGION_ALIAS ("REGION_TEXT", boot_flash);
80REGION_ALIAS ("REGION_TEXT_LOAD", boot_flash);
81REGION_ALIAS ("REGION_DATA", sdram);
82REGION_ALIAS ("REGION_DATA_LOAD", boot_flash);
83
84INCLUDE linkcmds.base
Note: See TracBrowser for help on using the repository browser.