[PATCH 2/3] qi-gta03-framebuffer-init-to-c.patch
Andy Green
andy at openmoko.com
Sun Nov 23 21:44:36 CET 2008
Signed-off-by: Andy Green <andy at openmoko.com>
---
src/cpu/s3c6410/gta03.c | 5 +++++
src/cpu/s3c6410/start.S | 10 ----------
2 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/src/cpu/s3c6410/gta03.c b/src/cpu/s3c6410/gta03.c
index 1d9bbb9..10ac90e 100644
--- a/src/cpu/s3c6410/gta03.c
+++ b/src/cpu/s3c6410/gta03.c
@@ -798,6 +798,11 @@ void port_init_gta03(void)
(0 << 30) /* GPQ15 - no pull up or down */
;
+ /* LCD Controller enable */
+
+ __REG(0x7410800c) = 0;
+ __REG(0x7f0081a0) = 0xbfc11501;
+
/*
* We have to talk to the PMU a little bit
*/
diff --git a/src/cpu/s3c6410/start.S b/src/cpu/s3c6410/start.S
index 445e905..f9e5079 100644
--- a/src/cpu/s3c6410/start.S
+++ b/src/cpu/s3c6410/start.S
@@ -192,16 +192,6 @@ start_code:
orr r0, r0, #0x13
mcr p15,0,r0,c15,c2,4 @ 256M(0x70000000-0x7fffffff)
- /* LCD Controller enable */
-
- ldr r0, =0x7410800c @ MIFPCON[3] = 0
- mov r1, #0
- str r1, [r0]
-
- ldr r0, =0x7f0081a0 @ SPCON[1:0] = 01
- ldr r1, =0xbfc11501
- str r1, [r0]
-
/* SDRAM */
ldr r0, =ELFIN_MEM_SYS_CFG @Memory sussystem address 0x7e00f120
More information about the openmoko-kernel
mailing list