Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6820
b: refs/heads/master
c: 029fc13
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Sep 2, 2005
1 parent 0df49c6 commit 12aee4a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6070a1712e69779f322239056fb5f1e1db802ce
refs/heads/master: 029fc1375fcf687a83faf7521358a9f5c589da13
15 changes: 12 additions & 3 deletions trunk/arch/m68knommu/platform/5307/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@
* Memory size exceptions for special cases. Some boards may be set
* for auto memory sizing, but we can't do it that way for some reason.
* For example the 5206eLITE board has static RAM, and auto-detecting
* the SDRAM will do you no good at all.
* the SDRAM will do you no good at all. Same goes for the MOD5272.
*/
#ifdef CONFIG_RAMAUTO
#if defined(CONFIG_M5206eLITE)
#define MEM_SIZE 0x00100000 /* 1MiB default memory */
#define MEM_SIZE 0x00100000 /* 1MiB default memory */
#endif
#if defined(CONFIG_MOD5272)
#define MEM_SIZE 0x00800000 /* 8MiB default memory */
#endif
#endif /* CONFIG_RAMAUTO */


/*
* If we don't have a fixed memory size now, then lets build in code
* to auto detect the DRAM size. Obviously this is the prefered
Expand Down Expand Up @@ -100,11 +104,15 @@

/*
* Most ColdFire boards have their DRAM starting at address 0.
* Notable exception is the 5206eLITE board.
* Notable exception is the 5206eLITE board, another is the MOD5272.
*/
#if defined(CONFIG_M5206eLITE)
#define MEM_BASE 0x30000000
#endif
#if defined(CONFIG_MOD5272)
#define MEM_BASE 0x02000000
#define VBR_BASE 0x20000000 /* vectors in SRAM */
#endif

#ifndef MEM_BASE
#define MEM_BASE 0x00000000 /* memory base at address 0 */
Expand Down Expand Up @@ -188,6 +196,7 @@ _start:
movel %a7,_rambase

GET_MEM_SIZE /* macro code determines size */
addl %a7,%d0
movel %d0,_ramend /* set end ram addr */

/*
Expand Down

0 comments on commit 12aee4a

Please sign in to comment.