From d19b69a60ace72309ea79bb72e8a3dd091bafcee Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Thu, 7 Oct 2010 16:59:58 +0200 Subject: qi: add patch for better glamo timings Signed-off-by: Martin Jansa --- recipes/qi/files/0001-Glamo-242-timings.patch | 52 +++++++++++++++++++++++++++ recipes/qi/qi_git.bb | 3 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 recipes/qi/files/0001-Glamo-242-timings.patch (limited to 'recipes/qi') diff --git a/recipes/qi/files/0001-Glamo-242-timings.patch b/recipes/qi/files/0001-Glamo-242-timings.patch new file mode 100644 index 0000000000..7fdfcf4474 --- /dev/null +++ b/recipes/qi/files/0001-Glamo-242-timings.patch @@ -0,0 +1,52 @@ +From 9040a0a08f976e535760c23dcba74770c5368b7c Mon Sep 17 00:00:00 2001 +From: Gennady Kupava +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 + diff --git a/recipes/qi/qi_git.bb b/recipes/qi/qi_git.bb index d6986b8ac2..c1683e6c22 100644 --- a/recipes/qi/qi_git.bb +++ b/recipes/qi/qi_git.bb @@ -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" -- cgit 1.2.3-korg