Changeset 3213
- Timestamp:
- 10/18/07 07:10:20 (6 years ago)
- File:
-
- 1 edited
-
trunk/src/target/kernel/patches/gta02-core.patch (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/kernel/patches/gta02-core.patch
r3181 r3213 3 3 --- /dev/null 4 4 +++ linux-2.6.22.5-moko/arch/arm/mach-s3c2440/mach-gta02.c 5 @@ -0,0 +1,6 36@@5 @@ -0,0 +1,657 @@ 6 6 +/* 7 7 + * linux/arch/arm/mach-s3c2440/mach-gta02.c … … 34 34 +#include <linux/interrupt.h> 35 35 +#include <linux/list.h> 36 +#include <linux/delay.h> 36 37 +#include <linux/timer.h> 37 38 +#include <linux/init.h> … … 392 393 +static void __gta02_udc_vbus_draw(struct work_struct *work) 393 394 +{ 395 + if (!pcf50633_global) { 396 + printk(KERN_ERR "pcf50633 not initialized yet, can't change " 397 + "vbus_draw\n"); 398 + return; 399 + } 394 400 + pcf50633_usb_curlim_set(pcf50633_global, gta02_udc_vbus_drawer.ma); 395 401 +} … … 606 612 + set_s3c2410ts_info(>a02_ts_cfg); 607 613 + 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 + 608 627 + platform_device_register(>a01_button_dev); 609 628 + platform_device_register(>a01_pm_gsm_dev); … … 625 644 + s3c2410_gpio_setpin(GTA01_GPIO_LCD_RESET, 1); 626 645 + 646 + /* Make sure the modem can wake us up */ 627 647 + set_irq_type(GTA02_IRQ_MODEM, IRQT_RISING); 628 648 + request_irq(GTA02_IRQ_MODEM, gta02_modem_irq, 629 649 + SA_INTERRUPT, "modem", NULL); 630 650 + enable_irq_wake(GTA02_IRQ_MODEM); 651 + 631 652 +} 632 653 + … … 1006 1027 --- linux-2.6.22.5-moko.orig/drivers/leds/leds-gta01.c 1007 1028 +++ linux-2.6.22.5-moko/drivers/leds/leds-gta01.c 1008 @@ -11 1,7 +110,7 @@1029 @@ -110,7 +110,7 @@ 1009 1030 struct gta01_vib_priv *vp; 1010 1031 struct resource *r;
Note: See TracChangeset
for help on using the changeset viewer.
