Commit 8a6beaba authored by Greg Ungerer's avatar Greg Ungerer Committed by Jaroslav Kysela

[PATCH] update m68knommu link script with 5282 support

This patch does a couple of things to the m68knommu common linker
script:
 - adds support for the 5282 ColdFire CPU
 - fixes broken setup for the Dragon Engine board
parent bbafee46
...@@ -73,42 +73,8 @@ ...@@ -73,42 +73,8 @@
#endif #endif
#ifdef CONFIG_DRAGEN2 #ifdef CONFIG_DRAGEN2
#ifdef CONFIG_RAMKERNEL #define RAM_START 0x10000
#define ROMVEC_START 0x04030000 #define RAM_LENGTH 0x7f0000
#define ROMVEC_LENGTH 0x400
#define ROM_START 0x04030400
#define ROM_LENGTH 0x1cec00
#define ROM_END 0x04200000
#define RAMVEC_START 0x00000000
#define RAMVEC_LENGTH 0x400
#define RAM_START 0x00010400
#define RAM_LENGTH 0x1ff0000
#define RAM_END 0x02000000
#endif
#ifdef CONFIG_ROMKERNEL
#define ROMVEC_START 0x04030000
#define ROMVEC_LENGTH 0x400
#define ROM_START 0x04030400
#define ROM_LENGTH 0x1cec00
#define ROM_END 0x04200000
#define RAMVEC_START 0x00000000
#define RAMVEC_LENGTH 0x400
#define RAM_START 0x00010000
#define RAM_LENGTH 0x1ff0000
#define RAM_END 0x02000000
#endif
#ifdef CONFIG_HIMEMKERNEL
#define ROMVEC_START 0x01e00000
#define ROMVEC_LENGTH 0x400
#define ROM_START 0x01e00400
#define ROM_LENGTH 0x1ffc00
#define ROM_END 0x02000000
#define RAMVEC_START 0x00000000
#define RAMVEC_LENGTH 0x400
#define RAM_START 0x00010000
#define RAM_LENGTH 0x1df0000
#define RAM_END 0x01e00000
#endif
#endif #endif
#ifdef CONFIG_UCQUICC #ifdef CONFIG_UCQUICC
...@@ -149,12 +115,17 @@ ...@@ -149,12 +115,17 @@
* but this isn't important here, we assume at least 4MiB. * but this isn't important here, we assume at least 4MiB.
*/ */
#if defined(CONFIG_M5206eC3) || defined(CONFIG_M5249C3) || \ #if defined(CONFIG_M5206eC3) || defined(CONFIG_M5249C3) || \
defined(CONFIG_M5272C3) || defined(CONFIG_M5306C3) || \ defined(CONFIG_M5272C3) || defined(CONFIG_M5307C3) || \
defined(CONFIG_ARN5307) || defined(CONFIG_M5407C3) defined(CONFIG_ARN5307) || defined(CONFIG_M5407C3)
#define RAM_START 0x20000 #define RAM_START 0x20000
#define RAM_LENGTH 0x3e0000 #define RAM_LENGTH 0x3e0000
#endif #endif
#if defined(CONFIG_M5282C3)
#define RAM_START 0x10000
#define RAM_LENGTH 0x3f0000
#endif
/* /*
* These flash boot boards use all of ram for operation. Again the * These flash boot boards use all of ram for operation. Again the
* actual memory size is not important here, assume at least 4MiB. * actual memory size is not important here, assume at least 4MiB.
...@@ -167,13 +138,13 @@ ...@@ -167,13 +138,13 @@
#define RAM_LENGTH 0x3ffc00 #define RAM_LENGTH 0x3ffc00
#endif #endif
#ifdef CONFIG_RAMKERNEL #if defined(CONFIG_RAMKERNEL)
#define TEXT ram #define TEXT ram
#define DATA ram #define DATA ram
#define INIT ram #define INIT ram
#define BSS ram #define BSS ram
#endif #endif
#ifdef CONFIG_ROMKERNEL #if defined(CONFIG_ROMKERNEL) || defined(CONFIG_HIMEMKERNEL)
#define TEXT rom #define TEXT rom
#define DATA ram #define DATA ram
#define INIT ram #define INIT ram
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment