[PATCH 5/5] ARM pcm043: Add overlay support
Teresa Gámez
t.gamez at phytec.de
Thu Jan 19 03:23:16 EST 2012
Adding overlay support for phyCORE-i.MX35.
Also move the TEXT_BASE to leave enough space for the overlay image
at the end of the RAM.
Signed-off-by: Teresa Gámez <t.gamez at phytec.de>
---
arch/arm/boards/pcm043/pcm043.c | 10 ++++++----
arch/arm/configs/pcm043_defconfig | 2 +-
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/arch/arm/boards/pcm043/pcm043.c b/arch/arm/boards/pcm043/pcm043.c
index cd1721c..b7a7b2f 100644
--- a/arch/arm/boards/pcm043/pcm043.c
+++ b/arch/arm/boards/pcm043/pcm043.c
@@ -29,6 +29,7 @@
#include <driver.h>
#include <environment.h>
#include <fs.h>
+#include <sizes.h>
#include <mach/imx-regs.h>
#include <asm/armlinux.h>
#include <mach/gpio.h>
@@ -94,14 +95,15 @@ static struct fb_videomode pcm043_fb_mode[] = {
};
static struct imx_ipu_fb_platform_data ipu_fb_data = {
- .mode = pcm043_fb_mode,
- .num_modes = ARRAY_SIZE(pcm043_fb_mode),
- .bpp = 16,
+ .mode = pcm043_fb_mode,
+ .num_modes = ARRAY_SIZE(pcm043_fb_mode),
+ .framebuffer_ovl = (void *) (IMX_SDRAM_CS0 + SZ_128M - SZ_1M),
+ .bpp = 16,
};
static int pcm043_mem_init(void)
{
- arm_add_mem_device("ram0", IMX_SDRAM_CS0, 128 * 1024 * 1024);
+ arm_add_mem_device("ram0", IMX_SDRAM_CS0, SZ_128M);
return 0;
}
diff --git a/arch/arm/configs/pcm043_defconfig b/arch/arm/configs/pcm043_defconfig
index 179d403..7f7a2d6 100644
--- a/arch/arm/configs/pcm043_defconfig
+++ b/arch/arm/configs/pcm043_defconfig
@@ -10,7 +10,7 @@ CONFIG_AEABI=y
CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
CONFIG_ARM_UNWIND=y
CONFIG_MMU=y
-CONFIG_TEXT_BASE=0x87F00000
+CONFIG_TEXT_BASE=0x87E00000
CONFIG_MALLOC_SIZE=0x1000000
CONFIG_MALLOC_TLSF=y
CONFIG_KALLSYMS=y
--
1.7.0.4
More information about the barebox
mailing list