aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-01-28 10:40:58 -0800
committerDavid 'Digit' Turner <digit@android.com>2010-02-02 14:59:15 -0800
commit00970746ab50a67173cc11d38bca5f0ad478a84c (patch)
treec7d6451c37602c9e28191f8a6a667d83a49e3dee
parentdcdb184ce9b3f1e232ac48e5faf10e1dc8d12d76 (diff)
downloadqemu-00970746ab50a67173cc11d38bca5f0ad478a84c.tar.gz
[ARM] goldfish: increase framebuffer aperture size
This is needed to support higher resolutions (e.g. 1024x768) in the Android emulator. Signed-off-by: David 'Digit' Turner <digit@android.com>
-rw-r--r--arch/arm/mach-goldfish/include/mach/memory.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-goldfish/include/mach/memory.h b/arch/arm/mach-goldfish/include/mach/memory.h
index 4b17310753c..c82ff748a07 100644
--- a/arch/arm/mach-goldfish/include/mach/memory.h
+++ b/arch/arm/mach-goldfish/include/mach/memory.h
@@ -23,6 +23,21 @@
#define BUS_OFFSET UL(0x00000000)
/*
+ * Needed to allow framebuffer sizes > 1MB.
+ * This must be a multiple of SZ_2M.
+ *
+ * Note that using 4MB allows us to use
+ * framebuffers of up to 2 MB each (two are
+ * used for normal operations).
+ *
+ * For some reason, using more than 4MB here
+ * doesn't allow our emulated system to use
+ * larger framebuffers.
+ *
+ */
+#define CONSISTENT_DMA_SIZE (2*SZ_2M)
+
+/*
* Virtual view <-> DMA view memory address translations
* virt_to_bus: Used to translate the virtual address to an
* address suitable to be passed to set_dma_addr