]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Merge source.mvista.com:linux-omap
authorJuha Yrjola <juha.yrjola@nokia.com>
Mon, 20 Mar 2006 20:29:24 +0000 (16:29 -0400)
committerJuha Yrjola <juha.yrjola@nokia.com>
Mon, 20 Mar 2006 20:29:24 +0000 (16:29 -0400)
arch/arm/mach-omap1/board-nokia770.c
arch/arm/mach-omap1/pm.c

index 8133b5944abebc92eb9581ada47175835124c8aa..c8ea991a79e235c21f5a4ccdd2115d044b171882 100644 (file)
 
 static void __init omap_nokia770_init_irq(void)
 {
+       /* On Nokia 770, the SleepX signal is masked with an
+        * MPUIO line by default.  It has to be unmasked for it
+        * to become functional */
+
+       /* SleepX mask direction */
+       omap_writew((omap_readw(0xfffb5008) & ~2), 0xfffb5008);
+       /* Unmask SleepX signal */
+       omap_writew((omap_readw(0xfffb5004) & ~2), 0xfffb5004);
+
        omap1_init_common_hw();
        omap_init_irq();
 }
@@ -84,7 +93,7 @@ static struct platform_device *nokia770_devices[] __initdata = {
 static struct ads7846_platform_data nokia770_ads7846_platform_data __initdata = {
        .x_max          = 0x0fff,
        .y_max          = 0x0fff,
-       .x_plate_ohms   = 120,
+       .x_plate_ohms   = 180,
        .pressure_max   = 200,
        .debounce_max   = 10,
        .debounce_tol   = 3,
index be0d6b7b6e992df76f9eb86a29400e772537c950..ddf6b07dc9c78bbeb7480b28167621f903b210be 100644 (file)
@@ -738,15 +738,6 @@ static int __init omap_pm_init(void)
        else if (cpu_is_omap16xx())
                setup_irq(INT_1610_WAKE_UP_REQ, &omap_wakeup_irq);
 
-#if 0
-       /* --- BEGIN BOARD-DEPENDENT CODE --- */
-       /* Sleepx mask direction */
-       omap_writew((omap_readw(0xfffb5008) & ~2), 0xfffb5008);
-       /* Unmask sleepx signal */
-       omap_writew((omap_readw(0xfffb5004) & ~2), 0xfffb5004);
-       /* --- END BOARD-DEPENDENT CODE --- */
-#endif
-
        /* Program new power ramp-up time
         * (0 for most boards since we don't lower voltage when in deep sleep)
         */