[Armadeus-commitlog] SF.net SVN: armadeus:[1150] trunk/buildroot/target/device/armadeus/linux/ ker
Brought to you by:
sszy
|
From: <th...@us...> - 2009-03-12 09:20:40
|
Revision: 1150
http://armadeus.svn.sourceforge.net/armadeus/?rev=1150&view=rev
Author: thom25
Date: 2009-03-12 09:19:38 +0000 (Thu, 12 Mar 2009)
Log Message:
-----------
[LINUX] fix TFT init bug (ticket 38)
Modified Paths:
--------------
trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.27.13/281-apf27-armadeus-add_apf27.c.patch
Modified: trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.27.13/281-apf27-armadeus-add_apf27.c.patch
===================================================================
--- trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.27.13/281-apf27-armadeus-add_apf27.c.patch 2009-03-11 17:39:25 UTC (rev 1149)
+++ trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.27.13/281-apf27-armadeus-add_apf27.c.patch 2009-03-12 09:19:38 UTC (rev 1150)
@@ -3,7 +3,7 @@
(Take a look at armadeus/target/linux/ directory to know how to generate it)
--- linux-2.6.27.13.original/arch/arm/mach-mx2/apf27.c
+++ linux-2.6.27.13.mod/arch/arm/mach-mx2/apf27.c
-@@ -0,0 +1,1334 @@
+@@ -0,0 +1,1329 @@
+ /*
+ * apf27.c
+ *
@@ -1098,28 +1098,26 @@
+static int gpio_pwr_ctl_active(void)
+{
+ int err;
-+
+
+#ifdef CONFIG_FB_MXC
+ int i;
+ /* force LCD data/control lines to 0 before powering the LCD
+ otherwise start up conditions may not be respected */
-+ for( i=5; i <= 23; i++ ){
-+ mxc_gpio_mode( GPIO_PORTA | i | GPIO_OUT| GPIO_GPIO );
-+ gpio_set_value(GPIO_PORTA | i, 0);
++ for( i=5; i <= 31; i++ ){
++ if( i!=30 ){
++ gpio_set_value(GPIO_PORTA | i, 0);
++ mxc_gpio_mode( GPIO_PORTA | i | GPIO_OUT| GPIO_GPIO );
++ }
+ }
+ /* wait a few milli */
-+ mdelay(5);
++ mdelay(100);
+#endif
+
-+
+ err = mxc_gpio_setup_multiple(apf27dev_pwr_ctl_pins,
+ ARRAY_SIZE(apf27dev_pwr_ctl_pins), "pwr-ctl");
+ if (err < 0)
+ pr_err("Failed to register power control pins !\n");
+
-+
-+
+ apf27dev_power_up();
+#ifdef CONFIG_USE_LED_FOR_PM
+ gpio_set_value(GPIO_PORTF | 14, 0);
@@ -1303,9 +1301,6 @@
+ spi_register_board_info(spi_board_info,
+ ARRAY_SIZE(spi_board_info));
+#endif
-+#ifdef CONFIG_MACH_PCM970_BASEBOARD
-+ pcm970_baseboard_init();
-+#endif
+
+#ifdef CONFIG_FB_MXC
+ mxc_register_device(&mxc_fb_device, &apf27_fb_data);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|