diff options
author | woglinde <heinold@inf.fu-berlin.de> | 2008-12-07 20:49:09 +0100 |
---|---|---|
committer | woglinde <heinold@inf.fu-berlin.de> | 2008-12-07 20:49:09 +0100 |
commit | c13279029ba08daa578b06936b583cd6be64f1cf (patch) | |
tree | 2d1afa995c2a222feaf94eb04170c2b11579c34a /packages/linux/linux-2.6.24 | |
parent | 5f3dc7bb630beb75091b520dd29631032158cdf8 (diff) |
linux-2.6.27: porting simpad patches to linux-2.6.27
* trying my best to port the patches from class_device to device
* update to the new include structure
* at least it is booting, but not all drivers are working correct
Diffstat (limited to 'packages/linux/linux-2.6.24')
-rw-r--r-- | packages/linux/linux-2.6.24/simpad/linux-2.6.24-SIMpad-rtc-sa1100.patch | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/packages/linux/linux-2.6.24/simpad/linux-2.6.24-SIMpad-rtc-sa1100.patch b/packages/linux/linux-2.6.24/simpad/linux-2.6.24-SIMpad-rtc-sa1100.patch deleted file mode 100644 index 407fd89a26..0000000000 --- a/packages/linux/linux-2.6.24/simpad/linux-2.6.24-SIMpad-rtc-sa1100.patch +++ /dev/null @@ -1,68 +0,0 @@ -diff -Nur linux-2.6.24.vanilla/drivers/rtc/rtc-sa1100.c linux-2.6.24_rtc/drivers/rtc/rtc-sa1100.c ---- linux-2.6.24.vanilla/drivers/rtc/rtc-sa1100.c 2008-01-24 23:58:37.000000000 +0100 -+++ linux-2.6.24_rtc/drivers/rtc/rtc-sa1100.c 2008-03-24 13:49:40.000000000 +0100 -@@ -79,7 +79,10 @@ - - rtsr = RTSR; - /* clear interrupt sources */ -- RTSR = 0; -+ RTSR &= ~RTSR_HZE; //RTSR = 0; is not possible and does not work -+ RTSR &= ~RTSR_HZ; -+ RTSR &= ~RTSR_ALE; -+ RTSR &= ~RTSR_AL; - RTSR = (RTSR_AL | RTSR_HZ) & (rtsr >> 2); - - /* clear alarm interrupt if it has occurred */ -@@ -155,6 +158,20 @@ - { - int ret; - -+ /* -+ * On some devices RTSR is set to some value but it must be set to 0. -+ * We have to set RTSR to 0 and OIER/OSSR to default. This should not be -+ * necessary here but it is. -+ */ -+ spin_lock_irq(&sa1100_rtc_lock); -+ RTSR &= ~RTSR_HZE; -+ RTSR &= ~RTSR_HZ; -+ RTSR &= ~RTSR_ALE; -+ RTSR &= ~RTSR_AL; -+ OIER &= ~OIER_E1; -+ OSSR = OSSR_M1; -+ spin_unlock_irq(&sa1100_rtc_lock); -+ - ret = request_irq(IRQ_RTC1Hz, sa1100_rtc_interrupt, IRQF_DISABLED, - "rtc 1Hz", dev); - if (ret) { -@@ -186,7 +203,10 @@ - static void sa1100_rtc_release(struct device *dev) - { - spin_lock_irq(&sa1100_rtc_lock); -- RTSR = 0; -+ RTSR &= ~RTSR_HZE; //RTSR = 0; is not possible and does not work -+ RTSR &= ~RTSR_HZ; -+ RTSR &= ~RTSR_ALE; -+ RTSR &= ~RTSR_AL; - OIER &= ~OIER_E1; - OSSR = OSSR_M1; - spin_unlock_irq(&sa1100_rtc_lock); -@@ -339,6 +359,19 @@ - - platform_set_drvdata(pdev, rtc); - -+ /* -+ * On some devices RTSR is set to some value but it must be set to 0. -+ * We have to set RTSR to 0 and OIER/OSSR to default. -+ */ -+ spin_lock_irq(&sa1100_rtc_lock); -+ RTSR &= ~RTSR_HZE; -+ RTSR &= ~RTSR_HZ; -+ RTSR &= ~RTSR_ALE; -+ RTSR &= ~RTSR_AL; -+ OIER &= ~OIER_E1; -+ OSSR = OSSR_M1; -+ spin_unlock_irq(&sa1100_rtc_lock); -+ - return 0; - } - |