diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/imx233.h | 4 | ||||
-rw-r--r-- | firmware/target/arm/imx233/app.lds | 4 | ||||
-rw-r--r-- | firmware/target/arm/imx233/boot.lds | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/firmware/export/imx233.h b/firmware/export/imx233.h index 682240ac40..d9ea06a420 100644 --- a/firmware/export/imx233.h +++ b/firmware/export/imx233.h | |||
@@ -26,11 +26,11 @@ | |||
26 | #define DRAM_ORIG 0x40000000 | 26 | #define DRAM_ORIG 0x40000000 |
27 | #define DRAM_SIZE (MEMORYSIZE * 0x100000) | 27 | #define DRAM_SIZE (MEMORYSIZE * 0x100000) |
28 | 28 | ||
29 | #define TTB_BASE_ADDR (IRAM_ORIG + IRAM_SIZE - TTB_SIZE) | 29 | #define TTB_BASE_ADDR (DRAM_ORIG + DRAM_SIZE - TTB_SIZE) |
30 | #define TTB_SIZE 0x4000 | 30 | #define TTB_SIZE 0x4000 |
31 | #define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) | 31 | #define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) |
32 | #define FRAME_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_DEPTH / 8) | 32 | #define FRAME_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_DEPTH / 8) |
33 | #define LCD_FRAME_ADDR (DRAM_ORIG + DRAM_SIZE - FRAME_SIZE) | 33 | #define LCD_FRAME_ADDR (DRAM_ORIG + DRAM_SIZE - TTB_SIZE - FRAME_SIZE) |
34 | #define FRAME ((unsigned short *)LCD_FRAME_ADDR) | 34 | #define FRAME ((unsigned short *)LCD_FRAME_ADDR) |
35 | 35 | ||
36 | /* USBOTG */ | 36 | /* USBOTG */ |
diff --git a/firmware/target/arm/imx233/app.lds b/firmware/target/arm/imx233/app.lds index 66d0b04391..5b83fe1c14 100644 --- a/firmware/target/arm/imx233/app.lds +++ b/firmware/target/arm/imx233/app.lds | |||
@@ -12,9 +12,9 @@ STARTUP(target/arm/imx233/crt0.o) | |||
12 | #define DRAMORIG DRAM_ORIG | 12 | #define DRAMORIG DRAM_ORIG |
13 | #define IRAMORIG IRAM_ORIG | 13 | #define IRAMORIG IRAM_ORIG |
14 | 14 | ||
15 | #define IRAMSIZE (IRAM_SIZE - TTB_SIZE) | 15 | #define IRAMSIZE IRAM_SIZE |
16 | 16 | ||
17 | #define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - CODECSIZE - FRAME_SIZE) | 17 | #define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - CODECSIZE - FRAME_SIZE - TTB_SIZE) |
18 | 18 | ||
19 | /* End of the audio buffer, where the codec buffer starts */ | 19 | /* End of the audio buffer, where the codec buffer starts */ |
20 | #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE) | 20 | #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE) |
diff --git a/firmware/target/arm/imx233/boot.lds b/firmware/target/arm/imx233/boot.lds index 0a8f0ed8f8..8e4f2016df 100644 --- a/firmware/target/arm/imx233/boot.lds +++ b/firmware/target/arm/imx233/boot.lds | |||
@@ -8,8 +8,8 @@ STARTUP(target/arm/imx233/crt0.o) | |||
8 | 8 | ||
9 | MEMORY | 9 | MEMORY |
10 | { | 10 | { |
11 | IRAM : ORIGIN = IRAM_ORIG, LENGTH = IRAM_SIZE - TTB_SIZE | 11 | IRAM : ORIGIN = IRAM_ORIG, LENGTH = IRAM_SIZE |
12 | DRAM : ORIGIN = DRAM_ORIG, LENGTH = DRAM_SIZE - FRAME_SIZE | 12 | DRAM : ORIGIN = DRAM_ORIG, LENGTH = DRAM_SIZE - TTB_SIZE - FRAME_SIZE |
13 | } | 13 | } |
14 | 14 | ||
15 | SECTIONS | 15 | SECTIONS |