[PATCH] OMAP3 SDP: example use of OMAP VRAM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Tomi Valkeinen <tomi.valkeinen@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux