[PATCH] uboot-hxd8-lcm.patch
Harald Welte
laforge at openmoko.org
Fri May 25 01:35:01 CEST 2007
Hi Johnny!
Please Cc openmoko-uboot if it's a uboot patch (rather than
openmoko-kernel, which is for kernel patches). Thanks!
What about the following [untested], much shorter patch?
It
* enables the framebuffer support code in u-boot
* moves GPGCON change to GPIO initialization where it belongs
* removes erroneous GPCCON change (cannot be AAAAAAAA, please check with
schematics!)
* initialize video as part of the board_video_init callback
I've committed this as svn rev. 2084
Please test and report back with bug reports / fixes
Index: uboot-hxd8.patch
===================================================================
--- uboot-hxd8.patch (revision 2083)
+++ uboot-hxd8.patch (working copy)
@@ -88,7 +88,7 @@
===================================================================
--- /dev/null
+++ u-boot/board/hxd8/hxd8.c
-@@ -0,0 +1,204 @@
+@@ -0,0 +1,219 @@
+/*
+ * (C) Copyright 2007 by OpenMoko, Inc.
+ * Author: Harald Welte <laforge at openmoko.org>
@@ -120,6 +120,7 @@
+ */
+
+#include <common.h>
++#include <video_fb.h>
+#include <nand.h>
+#include <pcf50606.h>
+#include <s3c2440.h>
@@ -200,7 +201,7 @@
+ gpio->GPEUP = 0x0000FFFF;
+ gpio->GPFCON = 0x0000AAA9;
+ gpio->GPFUP = 0x000000FF;
-+ gpio->GPGCON = 0x027D0016;
++ gpio->GPGCON = 0x027D0316;
+ gpio->GPGUP = 0x0000FFFF;
+ gpio->GPHCON = 0x0014AAAA;
+ gpio->GPHUP = 0x000007FF;
@@ -232,6 +233,21 @@
+ return 0;
+}
+
++void board_video_init(GraphicDevice *pGD)
++{
++ S3C24X0_LCD * const lcd = S3C24X0_GetBase_LCD();
++
++ lcd->LCDCON1 = 0x0000057b;
++ lcd->LCDCON2 = 0x0143c049;
++ lcd->LCDCON3 = 0x0009df01;
++ lcd->LCDCON4 = 0x00000028;
++ lcd->LCDCON5 = 0x00000b08;
++
++ lcd->TPAL = 0x01202020;
++
++ //lcd->LCDCON5 |= (0x01 << 3);
++}
++
+int board_late_init(void)
+{
+ /* Initialize the Power Management Unit with a safe register set */
@@ -292,7 +308,6 @@
+ if (chip == -1)
+ this->hwcontrol(NULL, NAND_CTL_CLRNCE);
+}
-+
Index: u-boot/board/hxd8/lowlevel_init.S
===================================================================
--- /dev/null
@@ -723,7 +738,7 @@
+/* we have a board_late_init() function */
+#define BOARD_LATE_INIT 1
+
-+#if 0
++#if 1
+#define CONFIG_VIDEO
+#define CONFIG_VIDEO_S3C2410
+#define CONFIG_CFB_CONSOLE
--
- Harald Welte <laforge at openmoko.org> http://openmoko.org/
============================================================================
Software for the world's first truly open Free Software mobile phone
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uboot-hxd8-lcm.patch
Type: application/octet-stream
Size: 1232 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-uboot/attachments/20070525/b338f23d/uboot-hxd8-lcm.obj
More information about the openmoko-uboot
mailing list