qi: add glamo 2-4-2 timing patch
authorMarc Andre Tanner <mat@brain-dump.org>
Thu, 7 Oct 2010 16:52:33 +0000 (7 18:52 +0200)
committerMarc Andre Tanner <mat@brain-dump.org>
Thu, 7 Oct 2010 16:52:33 +0000 (7 18:52 +0200)
http://github.com/radekp/qi/commit/b214400c048857e0f2156028bcd7a16397094a7d

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
sources/patches/qi-bootloader-glamo-242-timings.patch [new file with mode: 0644]

diff --git a/sources/patches/qi-bootloader-glamo-242-timings.patch b/sources/patches/qi-bootloader-glamo-242-timings.patch
new file mode 100644 (file)
index 0000000..4505065
--- /dev/null
@@ -0,0 +1,52 @@
+From b214400c048857e0f2156028bcd7a16397094a7d 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.6.5
+