aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-core.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-03-23 10:06:30 +0000
committerThomas White <taw@bitwiz.org.uk>2009-03-26 21:34:11 +0000
commitdf9b97848707b402f9c953d4c31c74d30f03d783 (patch)
treebf3fae115f3c34b9a2089118132d22eccd6bfb32 /drivers/mfd/glamo/glamo-core.h
parent15a32cd8edcb04ba4f19699c5901ca70d93a30ac (diff)
Tidy up Glamo memory map declarations
This just cosmetically tidies up the declarations in glamo-core.h. We have to be very clear about what lives where in the memory. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
Diffstat (limited to 'drivers/mfd/glamo/glamo-core.h')
-rw-r--r--drivers/mfd/glamo/glamo-core.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/mfd/glamo/glamo-core.h b/drivers/mfd/glamo/glamo-core.h
index f7062cddf70..8ab0491c064 100644
--- a/drivers/mfd/glamo/glamo-core.h
+++ b/drivers/mfd/glamo/glamo-core.h
@@ -7,16 +7,17 @@
* sure we have sufficient memory for other functions of the chip */
/* FIXME: this should be autodetected */
#define GLAMO_INTERNAL_RAM_SIZE 0x800000
-#define GLAMO_MMC_BUFFER_SIZE (64 * 1024) /* 64k MMC buffer */
/* A 640x480, 16bpp, double-buffered framebuffer */
#define GLAMO_FB_SIZE (640 * 480 * 4) /* == 0x12c000 */
-#define GLAMO_CMDQ_SIZE (128 * 1024) /* 128k ring buffer */
/* Arbitrarily determined amount for the hardware cursor */
#define GLAMO_CURSOR_SIZE (4096)
+#define GLAMO_MMC_BUFFER_SIZE (64 * 1024) /* 64k MMC buffer */
+#define GLAMO_CMDQ_SIZE (128 * 1024) /* 128k ring buffer */
/* Remaining memory will be used for 2D and 3D graphics */
-#define GLAMO_WORK_SIZE (GLAMO_INTERNAL_RAM_SIZE - GLAMO_FB_SIZE \
- - GLAMO_CURSOR_SIZE \
- - GLAMO_MMC_BUFFER_SIZE \
+#define GLAMO_WORK_SIZE (GLAMO_INTERNAL_RAM_SIZE \
+ - GLAMO_FB_SIZE \
+ - GLAMO_CURSOR_SIZE \
+ - GLAMO_MMC_BUFFER_SIZE \
- GLAMO_CMDQ_SIZE)
/* for the time being, we put the on-screen framebuffer into the lowest