Changeset 3213


Ignore:
Timestamp:
10/18/07 07:10:20 (6 years ago)
Author:
laforge
Message:
  • GTA02: work around a race condition between usb detection and pmu driver
  • GTA02: add (untested) wifi power-up code statically at boot time
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/kernel/patches/gta02-core.patch

    r3181 r3213  
    33--- /dev/null 
    44+++ linux-2.6.22.5-moko/arch/arm/mach-s3c2440/mach-gta02.c 
    5 @@ -0,0 +1,636 @@ 
     5@@ -0,0 +1,657 @@ 
    66+/* 
    77+ * linux/arch/arm/mach-s3c2440/mach-gta02.c 
     
    3434+#include <linux/interrupt.h> 
    3535+#include <linux/list.h> 
     36+#include <linux/delay.h> 
    3637+#include <linux/timer.h> 
    3738+#include <linux/init.h> 
     
    392393+static void __gta02_udc_vbus_draw(struct work_struct *work) 
    393394+{ 
     395+       if (!pcf50633_global) { 
     396+               printk(KERN_ERR "pcf50633 not initialized yet, can't change " 
     397+                      "vbus_draw\n"); 
     398+               return; 
     399+       } 
    394400+       pcf50633_usb_curlim_set(pcf50633_global, gta02_udc_vbus_drawer.ma); 
    395401+} 
     
    606612+       set_s3c2410ts_info(&gta02_ts_cfg); 
    607613+ 
     614+       /* FIXME: hardcoded WLAN module power-up */ 
     615+       s3c2410_gpio_setpin(GTA02_CHIP_PWD, 0); 
     616+       switch (system_rev) { 
     617+       case GTA02v1_SYSTEM_REV: 
     618+               break; 
     619+       default: 
     620+               s3c2410_gpio_setpin(GTA02_GPIO_nWLAN_RESET, 0); 
     621+               udelay(2000); 
     622+               udelay(2000); 
     623+               s3c2410_gpio_setpin(GTA02_GPIO_nWLAN_RESET, 1); 
     624+               break; 
     625+       } 
     626+ 
    608627+       platform_device_register(&gta01_button_dev); 
    609628+       platform_device_register(&gta01_pm_gsm_dev); 
     
    625644+       s3c2410_gpio_setpin(GTA01_GPIO_LCD_RESET, 1); 
    626645+ 
     646+       /* Make sure the modem can wake us up */ 
    627647+       set_irq_type(GTA02_IRQ_MODEM, IRQT_RISING); 
    628648+       request_irq(GTA02_IRQ_MODEM, gta02_modem_irq, 
    629649+                   SA_INTERRUPT, "modem", NULL); 
    630650+       enable_irq_wake(GTA02_IRQ_MODEM); 
     651+ 
    631652+} 
    632653+ 
     
    10061027--- linux-2.6.22.5-moko.orig/drivers/leds/leds-gta01.c 
    10071028+++ linux-2.6.22.5-moko/drivers/leds/leds-gta01.c 
    1008 @@ -111,7 +110,7 @@ 
     1029@@ -110,7 +110,7 @@ 
    10091030        struct gta01_vib_priv *vp; 
    10101031        struct resource *r; 
Note: See TracChangeset for help on using the changeset viewer.