summaryrefslogtreecommitdiff
path: root/apps/plugins/plugin.lds
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/plugin.lds')
-rw-r--r--apps/plugins/plugin.lds20
1 files changed, 9 insertions, 11 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index 9c65f31779..d6f62341ce 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -35,18 +35,20 @@ OUTPUT_FORMAT(elf32-littlemips)
35#define NOCACHE_BASE 0x00000000 35#define NOCACHE_BASE 0x00000000
36#endif 36#endif
37 37
38#if CONFIG_CPU==DM320 || CONFIG_CPU==S3C2440 38#if CONFIG_CPU==DM320 || CONFIG_CPU==IMX31L
39#define LCD_BUFFER_SIZE (LCD_WIDTH*LCD_HEIGHT*2) 39/* Give this 1 meg to allow it to align to the MMU boundary */
40#define LCD_TTB_AREA 0x100000
41#define DRAMSIZE (MEMORYSIZE * 0x100000) - STUBOFFSET - PLUGIN_BUFFER_SIZE - CODEC_SIZE - LCD_TTB_AREA
40 42
43#elif CONFIG_CPU==S3C2440
44#define LCD_BUFFER_SIZE (LCD_WIDTH*LCD_HEIGHT*2)
41/* must be 16Kb (0x4000) aligned */ 45/* must be 16Kb (0x4000) aligned */
42#define TTB_SIZE (0x4000) 46#define TTB_SIZE (0x4000)
43#define DRAMSIZE (MEMORYSIZE * 0x100000) - STUBOFFSET - PLUGIN_BUFFER_SIZE - CODEC_SIZE - LCD_BUFFER_SIZE - TTB_SIZE 47#define DRAMSIZE (MEMORYSIZE * 0x100000) - STUBOFFSET - PLUGIN_BUFFER_SIZE - CODEC_SIZE - LCD_BUFFER_SIZE - TTB_SIZE
44#elif CONFIG_CPU==IMX31L 48
45#include "imx31l.h"
46/* Reserve 1mb for LCD buffer/TTB as in app.lds */
47#define DRAMSIZE (MEMORYSIZE * 0x100000 - 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE
48#elif CONFIG_CPU==AS3525 && MEMORYSIZE <= 2 49#elif CONFIG_CPU==AS3525 && MEMORYSIZE <= 2
49#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET 50#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET
51
50#else 52#else
51#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE 53#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE
52#endif 54#endif
@@ -77,11 +79,7 @@ OUTPUT_FORMAT(elf32-littlemips)
77#define DRAMORIG 0xc00000 + STUBOFFSET 79#define DRAMORIG 0xc00000 + STUBOFFSET
78#define IRAMORIG 0x407000 80#define IRAMORIG 0x407000
79#define IRAMSIZE 0x9000 81#define IRAMSIZE 0x9000
80#elif CONFIG_CPU == S3C2440 82#elif CONFIG_CPU == IMX31L || CONFIG_CPU == S3C2440
81#define DRAMORIG 0x0 + STUBOFFSET
82#define IRAM DRAM
83#define IRAMSIZE 0
84#elif CONFIG_CPU == IMX31L
85#define DRAMORIG 0x0 + STUBOFFSET 83#define DRAMORIG 0x0 + STUBOFFSET
86#define IRAM DRAM 84#define IRAM DRAM
87#define IRAMSIZE 0 85#define IRAMSIZE 0