qi: add patch for better glamo timings
authorMartin Jansa <Martin.Jansa@gmail.com>
Thu, 7 Oct 2010 14:59:58 +0000 (16:59 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Thu, 7 Oct 2010 15:07:18 +0000 (17:07 +0200)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/qi/files/0001-Glamo-242-timings.patch [new file with mode: 0644]
recipes/qi/qi_git.bb

diff --git a/recipes/qi/files/0001-Glamo-242-timings.patch b/recipes/qi/files/0001-Glamo-242-timings.patch
new file mode 100644 (file)
index 0000000..7fdfcf4
--- /dev/null
@@ -0,0 +1,52 @@
+From 9040a0a08f976e535760c23dcba74770c5368b7c Mon Sep 17 00:00:00 2001
+From: Gennady Kupava <gb@bsdmn.com>
+Date: Mon, 27 Sep 2010 15:16:38 +0200
+Subject: [PATCH] Glamo 242 timings
+
+This patch initializes glamo with better timings which will make
+graphics work faster (e.g. decoding theora video for me goes from
+17->20fps with theoram).
+
+Patch done by Ghislain
+---
+ src/cpu/s3c2410/lowlevel_init.S |    4 ++--
+ src/cpu/s3c2442/lowlevel_init.S |    6 +++---
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/src/cpu/s3c2410/lowlevel_init.S b/src/cpu/s3c2410/lowlevel_init.S
+index 2b14373..d52e8c1 100644
+--- a/src/cpu/s3c2410/lowlevel_init.S
++++ b/src/cpu/s3c2410/lowlevel_init.S
+@@ -65,9 +65,9 @@
+ /* BANK1CON: Smedia Glamo 3362 (on GTA02) */
+ #define B1_Tacs                       0x0     /*  0clk */
+-#define B1_Tcos                       0x3     /*  4clk */
++#define B1_Tcos                       0x2     /*  2clk */
+ #define B1_Tacc                       0x3     /*  4clk */
+-#define B1_Tcoh                       0x3     /*  4clk */
++#define B1_Tcoh                       0x2     /*  2clk */
+ #define B1_Tah                        0x0     /*  0clk */
+ #define B1_Tacp                       0x0
+ #define B1_PMC                        0x0
+diff --git a/src/cpu/s3c2442/lowlevel_init.S b/src/cpu/s3c2442/lowlevel_init.S
+index 2a1654c..307d8ae 100644
+--- a/src/cpu/s3c2442/lowlevel_init.S
++++ b/src/cpu/s3c2442/lowlevel_init.S
+@@ -65,10 +65,10 @@
+ /* BANK1CON: Smedia Glamo 3362 (on GTA02) */
+ #define B1_Tacs                       0x0     /*  0clk */
+-#define B1_Tcos                       0x3     /*  4clk */
++#define B1_Tcos                       0x2     /*  2clk */
+ #define B1_Tacc                       0x3     /*  4clk */
+-#define B1_Tcoh                       0x3     /*  4clk */
+-#define B1_Tah                                0x0     /*  0clk */
++#define B1_Tcoh                       0x2     /*  2clk */
++#define B1_Tah                        0x0     /*  0clk */
+ #define B1_Tacp                       0x0
+ #define B1_PMC                        0x0
+-- 
+1.7.3.1
+
index d6986b8..c1683e6 100644 (file)
@@ -1,5 +1,5 @@
 require qi.inc
-PR = "r3"
+PR = "r4"
 PR_append = "+gitr${SRCPV}"
 
 SRCREV = "c38b062a609f1442e6a9e13005cfbdfd59a5ac0d"
@@ -7,6 +7,7 @@ SRC_URI = "\
   git://git.openmoko.org/git/qi.git;protocol=git;branch=master \
   file://sanitize-makefile.patch \
   file://0001-use-rootwait-instead-of-rootdelay.patch \
+  file://0001-Glamo-242-timings.patch \
 "
 S = "${WORKDIR}/git"