Back to home page

LXR

 
 

    


Warning, /bsps/m68k/genmcf548x/start/linkcmds.m5484FireEngine is written in an unsupported language. File is not indexed.

0001 /* SPDX-License-Identifier: BSD-2-Clause */
0002 
0003 /*
0004  * RTEMS generic mcf548x BSP
0005  *
0006  * The file contains the linker directives for the generic MCF548x
0007  * BSP to be used with an m5484FireEngine EVB to load and execute
0008  * code in the RAM.
0009  *
0010  * Parts of the code has been derived from the "dBUG source code"
0011  * package Freescale is providing for M548X EVBs. The usage of
0012  * the modified or unmodified code and it's integration into the
0013  * generic mcf548x BSP has been done according to the Freescale
0014  * license terms.
0015  *
0016  * The Freescale license terms can be reviewed in the file
0017  *
0018  *    LICENSE.Freescale
0019  *
0020  * The generic mcf548x BSP has been developed on the basic
0021  * structures and modules of the av5282 BSP.
0022  */
0023 
0024 /*
0025  * Copyright (c) 2007 embedded brains GmbH & Co. KG
0026  *
0027  * Redistribution and use in source and binary forms, with or without
0028  * modification, are permitted provided that the following conditions
0029  * are met:
0030  * 1. Redistributions of source code must retain the above copyright
0031  *    notice, this list of conditions and the following disclaimer.
0032  * 2. Redistributions in binary form must reproduce the above copyright
0033  *    notice, this list of conditions and the following disclaimer in the
0034  *    documentation and/or other materials provided with the distribution.
0035  *
0036  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0037  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0038  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0039  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0040  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0041  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0042  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0043  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0044  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0045  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0046  * POSSIBILITY OF SUCH DAMAGE.
0047  */
0048 
0049 /* 
0050  * Location and size of on-chip devices
0051  */
0052 _SdramBase      = DEFINED(_SdramBase)      ? _SdramBase   : 0x00000000;
0053 _SdramSize      = DEFINED(_SdramSize)      ? _SdramSize   : (64 * 1024*1024);
0054 _SysSramBase    = DEFINED(_SysSramBase)    ? _SysSramBase : __MBAR + 0x00010000;
0055 _SysSramSize    = DEFINED(_SysSramSize)    ? _SysSramSize : (32 * 1024);
0056 _McdapiBase     = DEFINED(_McdapiBase)     ? _McdapiBase  : _SysSramBase;                 
0057 _McdapiSize     = DEFINED(_McdapiSize)     ? _McdapiSize  : (12 * 1024);                  
0058 _CoreSramBase0  = DEFINED(_CoreSramBase0)  ? _CoreSramBase0 : 0x20000000;
0059 _CoreSramBase1  = DEFINED(_CoreSramBase1)  ? _CoreSramBase1 : 0x20001000;
0060 _CoreSramSize0  = DEFINED(_CoreSramSize0)  ? _CoreSramSize0 : (4 * 1024);
0061 _CoreSramSize1  = DEFINED(_CoreSramSize1)  ? _CoreSramSize1 : (4 * 1024);
0062 _BootFlashBase  = DEFINED(_BootFlashBase)  ? _BootFlashBase : 0xFF800000;
0063 _BootFlashSize  = DEFINED(_BootFlashSize)  ? _BootFlashSize : (2 * 1024*1024);
0064 _CodeFlashBase  = DEFINED(_CodeFlashBase)  ? _CodeFlashBase : 0xE0000000;
0065 _CodeFlashSize  = DEFINED(_CodeFlashSize)  ? _CodeFlashSize : (16 * 1024*1024);
0066 
0067 _VBR            = DEFINED(_VBR)            ? _VBR       : _SdramBase;
0068 
0069 __MBAR          = DEFINED(__MBAR)          ? __MBAR     : 0x10000000;
0070 
0071 MEMORY
0072 {
0073     sdram      : ORIGIN = 0x00000000, LENGTH = 64M
0074     code_flash : ORIGIN = 0xE0000000, LENGTH = 16M
0075     boot_flash : ORIGIN = 0xFF800000, LENGTH = 2M
0076 }
0077 
0078 REGION_ALIAS ("REGION_TEXT", sdram);
0079 REGION_ALIAS ("REGION_TEXT_LOAD", sdram);
0080 REGION_ALIAS ("REGION_DATA", sdram);
0081 REGION_ALIAS ("REGION_DATA_LOAD", sdram);
0082 
0083 INCLUDE linkcmds.base