Thread (4 messages) 4 messages, 1 author, 2008-11-27

[PATCH] OMAP3 SDP: example use of OMAP VRAM

flat view
DORMANTno replies

From: Tomi Valkeinen <hidden>
Date: 2008-11-27 10:36:55
Also in: linux-omap
Subsystem: arm port, omap2+ support, the rest · Maintainers: Russell King, Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros, Tony Lindgren, Linus Torvalds

Signed-off-by: Tomi Valkeinen <redacted>
---
 arch/arm/mach-omap2/board-3430sdp.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c
index e2eed49..f3bb647 100644
--- a/arch/arm/mach-omap2/board-3430sdp.c
+++ b/arch/arm/mach-omap2/board-3430sdp.c
@@ -44,6 +44,7 @@
 #include <asm/io.h>
 #include <asm/delay.h>
 #include <mach/control.h>
+#include <mach/omapfb.h>
 
 #include "sdram-qimonda-hyb18m512160af-6.h"
 #include "mmc-twl4030.h"
@@ -484,9 +485,18 @@ static void __init omap_3430sdp_init(void)
 	hsmmc_init(mmc);
 }
 
+static struct omap_fbmem_config omap_3430sdp_fbmem_config[] = {
+	{
+		.size = 640 * 480 * 2 * 3,
+		.start = OMAPFB_MEMTYPE_SDRAM,
+	},
+};
+
 static void __init omap_3430sdp_map_io(void)
 {
 	omap2_set_globals_343x();
+	omapfb_set_vram_config(omap_3430sdp_fbmem_config,
+			ARRAY_SIZE(omap_3430sdp_fbmem_config));
 	omap2_map_common_io();
 }
 
-- 
1.6.0.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help