From 2392bb41996963c6683253114bdfb3174146e7dc Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Thu, 31 Dec 2009 19:15:20 +0000 Subject: FS#10047 : Clipv2 Reuse some code from Clip (LCD) and a lot of code from AS3525 Add a new CPU type : AS3525v2, identical to AS3525 except it's an ARMv5 (arm926-ejs) SD code still not working For an unknown reason LCD doesn't work anymore (to be investigated) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24131 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/boot.lds | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'firmware/target/arm/as3525/boot.lds') diff --git a/firmware/target/arm/as3525/boot.lds b/firmware/target/arm/as3525/boot.lds index 9c6d6faf11..dcc291b54f 100644 --- a/firmware/target/arm/as3525/boot.lds +++ b/firmware/target/arm/as3525/boot.lds @@ -6,24 +6,29 @@ OUTPUT_FORMAT(elf32-littlearm) OUTPUT_ARCH(arm) STARTUP(target/arm/crt0.o) -#define IRAMORIG 0x81000000 -#define IRAMSIZE 0x50000 +#ifdef SANSA_CLIPV2 +#define RAMORIG 0x0 /* DRAM */ +#define RAMSIZE (MEM*0x100000) +#else +#define RAMORIG 0x81000000 /* IRAM */ +#define RAMSIZE 0x50000 +#endif MEMORY { - IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE + RAM : ORIGIN = RAMORIG, LENGTH = RAMSIZE } SECTIONS { - . = IRAMORIG; + . = RAMORIG; .text : { *(.init.text) *(.glue_7) *(.glue_7t) *(.text*) - } > IRAM + } > RAM .data : { *(.icode) @@ -33,7 +38,7 @@ SECTIONS *(.ncdata*) *(.rodata*) _dataend = . ; - } > IRAM + } > RAM .stack : { @@ -43,7 +48,7 @@ SECTIONS . += 0x2000; _stackend = .; stackend = .; - } > IRAM + } > RAM .bss : { _edata = .; @@ -52,5 +57,5 @@ SECTIONS *(COMMON) *(.ncbss*); _end = .; - } > IRAM + } > RAM } -- cgit v1.2.3