diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:11:11 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:11:11 +0000 |
commit | 6e0df963162d04cb4243155a0137faa12516d9a2 (patch) | |
tree | 56f5e07f5f82ae22b4fe71ce37a2c7e52ddd5578 /arch/arm/mach-s3c2440 | |
parent | 9d6e27160ddcd316d5b5fc9a2caf74d340e2ba93 (diff) |
debug-resume-hang.patch
Weeks of frantic effort to control Glamo, traced the issue to two outcomes:
nWAIT is forced down and the device is hard locked, or we survive immediate
Glamo resume and die again with nWAIT forced down when the framebuffer driver
tries to flash the soft cursor.
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm/mach-s3c2440')
-rw-r--r-- | arch/arm/mach-s3c2440/mach-gta02.c | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index a55fd43ef6b..5fa837751e3 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c @@ -1582,28 +1582,29 @@ __setup("hardware_ecc=", hardware_ecc_setup); /* these are the guys that don't need to be children of PMU */ static struct platform_device *gta02_devices[] __initdata = { - >a02_pmu_dev, + >a02_version_device, &s3c_device_usb, &s3c_device_wdt, - &s3c_device_i2c, - &s3c_device_iis, + >a02_memconfig_device, // &s3c_device_sdi, /* FIXME: temporary disable to avoid s3cmci bind */ &s3c_device_usbgadget, &s3c_device_nand, &s3c_device_ts, >a02_nor_flash, + &sc32440_fiq_device, - >a02_version_device, - >a02_memconfig_device, &s3c24xx_pwm_device, >a02_pm_wlan_dev, + + &s3c_device_iis, + >a02_pmu_dev, + &s3c_device_i2c, }; /* these guys DO need to be children of PMU */ static struct platform_device *gta02_devices_pmu_children[] = { - >a02_glamo_dev, /* glamo-mci power handling depends on PMU */ >a01_pm_gps_dev, >a01_pm_bt_dev, >a02_pm_gsm_dev, @@ -1612,6 +1613,7 @@ static struct platform_device *gta02_devices_pmu_children[] = { &s3c_device_spi_acc, >a02_button_dev, >a02_resume_reason_device, + >a02_glamo_dev, /* glamo-mci power handling depends on PMU */ }; /* this is called when pc50633 is probed, unfortunately quite late in the @@ -1733,10 +1735,20 @@ static void __init gta02_machine_init(void) enable_irq_wake(GTA02_IRQ_WLAN_GPIO1); } -void DEBUG_LED(void) +void DEBUG_LED(int n) { // int *p = NULL; - neo1973_gpb_setpin(GTA02_GPIO_AUX_LED, 1); + switch (n) { + case 0: + neo1973_gpb_setpin(GTA02_GPIO_PWR_LED1, 1); + break; + case 1: + neo1973_gpb_setpin(GTA02_GPIO_PWR_LED2, 1); + break; + default: + neo1973_gpb_setpin(GTA02_GPIO_AUX_LED, 1); + break; + } // printk(KERN_ERR"die %d\n", *p); } EXPORT_SYMBOL_GPL(DEBUG_LED); |