1 From 7dc7b3e40f68a10702aaffcc6ca929908fc38656 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Mon, 4 Aug 2008 08:34:51 +0100
4 Subject: [PATCH] fix-glamo-crank-memory-to-90MHz.patch
6 Signed-off-by: Andy Green <andy@openmoko.com>
8 drivers/mfd/glamo/glamo-core.c | 9 ++++++---
9 1 files changed, 6 insertions(+), 3 deletions(-)
11 diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c
12 index 92dbd65..7bc38ff 100644
13 --- a/drivers/mfd/glamo/glamo-core.c
14 +++ b/drivers/mfd/glamo/glamo-core.c
15 @@ -729,8 +729,8 @@ static struct glamo_script glamo_init_script[] = {
16 { GLAMO_REG_CLOCK_MPEG, 0x0000 },
18 { GLAMO_REG_PLL_GEN1, 0x05db }, /* 48MHz */
19 - { GLAMO_REG_PLL_GEN3, 0x09c3 }, /* 80MHz */
21 + { GLAMO_REG_PLL_GEN3, 0x0aba }, /* 90MHz */
24 * b9 of this register MUST be zero to get any interrupts on INT#
25 * the other set bits enable all the engine interrupt sources
26 @@ -749,7 +749,10 @@ static struct glamo_script glamo_init_script[] = {
30 - { GLAMO_REG_MEM_TYPE, 0x0874 }, /* 8MB, 16 word pg wr+rd */
32 + /* S-Media recommended "set tiling mode to 512 mode for memory access
33 + * more efficiency when 640x480" */
34 + { GLAMO_REG_MEM_TYPE, 0x0c74 }, /* 8MB, 16 word pg wr+rd */
35 { GLAMO_REG_MEM_GEN, 0xafaf }, /* 63 grants min + max */
37 { GLAMO_REG_MEM_TIMING1, 0x0108 },