2008-12-12 11:58:53 +00:00
|
|
|
From 8846830e0f7b5ea2721e3d8b2bd517fa1a11c628 Mon Sep 17 00:00:00 2001
|
2008-12-12 00:02:36 +00:00
|
|
|
From: Andy Green <andy@openmoko.com>
|
2008-12-12 11:58:53 +00:00
|
|
|
Date: Thu, 11 Sep 2008 20:38:46 +0800
|
2008-12-12 00:02:36 +00:00
|
|
|
Subject: [PATCH] fix-glamo-crank-memory-to-90MHz.patch
|
|
|
|
|
2008-12-12 11:58:53 +00:00
|
|
|
This changes Glamo memory and now host bus PLL to 90MHz from
|
|
|
|
80MHz, as recommended by S-Media. Bandwidth should go up
|
|
|
|
by 12.5% by this in raw terms anyway.
|
|
|
|
|
2008-12-12 00:02:36 +00:00
|
|
|
Signed-off-by: Andy Green <andy@openmoko.com>
|
|
|
|
---
|
|
|
|
drivers/mfd/glamo/glamo-core.c | 9 ++++++---
|
|
|
|
1 files changed, 6 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c
|
2008-12-12 11:58:53 +00:00
|
|
|
index b30ec9f..2619c5f 100644
|
2008-12-12 00:02:36 +00:00
|
|
|
--- a/drivers/mfd/glamo/glamo-core.c
|
|
|
|
+++ b/drivers/mfd/glamo/glamo-core.c
|
|
|
|
@@ -729,8 +729,8 @@ static struct glamo_script glamo_init_script[] = {
|
|
|
|
{ GLAMO_REG_CLOCK_MPEG, 0x0000 },
|
|
|
|
#endif
|
|
|
|
{ GLAMO_REG_PLL_GEN1, 0x05db }, /* 48MHz */
|
|
|
|
- { GLAMO_REG_PLL_GEN3, 0x09c3 }, /* 80MHz */
|
|
|
|
- { 0xfffd, 0 },
|
|
|
|
+ { GLAMO_REG_PLL_GEN3, 0x0aba }, /* 90MHz */
|
|
|
|
+ { 0xfffd, 0 },
|
|
|
|
/*
|
|
|
|
* b9 of this register MUST be zero to get any interrupts on INT#
|
|
|
|
* the other set bits enable all the engine interrupt sources
|
2008-12-12 11:58:53 +00:00
|
|
|
@@ -745,7 +745,10 @@ static struct glamo_script glamo_init_script[] = {
|
2008-12-12 00:02:36 +00:00
|
|
|
{ 0x212, 0x0000 },
|
|
|
|
{ 0x214, 0x4000 },
|
|
|
|
{ 0x216, 0xf00e },
|
|
|
|
- { GLAMO_REG_MEM_TYPE, 0x0874 }, /* 8MB, 16 word pg wr+rd */
|
|
|
|
+
|
|
|
|
+ /* S-Media recommended "set tiling mode to 512 mode for memory access
|
|
|
|
+ * more efficiency when 640x480" */
|
|
|
|
+ { GLAMO_REG_MEM_TYPE, 0x0c74 }, /* 8MB, 16 word pg wr+rd */
|
|
|
|
{ GLAMO_REG_MEM_GEN, 0xafaf }, /* 63 grants min + max */
|
2008-12-12 11:58:53 +00:00
|
|
|
/*
|
|
|
|
* the register below originally 0x0108 makes unreliable Glamo MMC
|
2008-12-12 00:02:36 +00:00
|
|
|
--
|
2008-12-12 11:58:53 +00:00
|
|
|
1.5.6.5
|
2008-12-12 00:02:36 +00:00
|
|
|
|