diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-18 19:58:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-18 19:58:42 -0400 |
commit | a41842f70d6d6b0cfde3d21e163add81c4318ebd (patch) | |
tree | 238fc75a5d10adc70ef7a4c812ac5cbd366fb9b5 /arch/arm | |
parent | 722874465e3cd3268387b96e02220f84b35a8d98 (diff) | |
parent | 0e17226f7cd289504724466f4298abc9bdfca3fe (diff) |
Merge branch 'for-linus/samsung-fixes' of git://git.fluff.org/bjdooks/linux
* 'for-linus/samsung-fixes' of git://git.fluff.org/bjdooks/linux:
ARM: SAMSUNG: Fixup commit 4e6d488af37980d224cbf298224db6173673f362
ARM: SAMSUNG: Fix build error from stale define in <plat/uncompress.h>
ARM: SAMSUNG: Add suspend/resume support for S3C PWM driver
ARM: S3C2440: Fix s3c2440 cpufreq compilation post move.
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s3c2440/s3c2440-cpufreq.c (renamed from arch/arm/plat-s3c24xx/s3c2440-cpufreq.c) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/debug-macro.S | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5p6440/include/mach/debug-macro.S | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5p6442/include/mach/debug-macro.S | 2 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/uncompress.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-samsung/pwm.c | 35 |
6 files changed, 38 insertions, 5 deletions
diff --git a/arch/arm/plat-s3c24xx/s3c2440-cpufreq.c b/arch/arm/mach-s3c2440/s3c2440-cpufreq.c index 976002fb1b8f..976002fb1b8f 100644 --- a/arch/arm/plat-s3c24xx/s3c2440-cpufreq.c +++ b/arch/arm/mach-s3c2440/s3c2440-cpufreq.c | |||
diff --git a/arch/arm/mach-s3c64xx/include/mach/debug-macro.S b/arch/arm/mach-s3c64xx/include/mach/debug-macro.S index b18ac5266dfc..f9ab5d26052a 100644 --- a/arch/arm/mach-s3c64xx/include/mach/debug-macro.S +++ b/arch/arm/mach-s3c64xx/include/mach/debug-macro.S | |||
@@ -21,7 +21,7 @@ | |||
21 | * aligned and add in the offset when we load the value here. | 21 | * aligned and add in the offset when we load the value here. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | .macro addruart, rx | 24 | .macro addruart, rx, rtmp |
25 | mrc p15, 0, \rx, c1, c0 | 25 | mrc p15, 0, \rx, c1, c0 |
26 | tst \rx, #1 | 26 | tst \rx, #1 |
27 | ldreq \rx, = S3C_PA_UART | 27 | ldreq \rx, = S3C_PA_UART |
diff --git a/arch/arm/mach-s5p6440/include/mach/debug-macro.S b/arch/arm/mach-s5p6440/include/mach/debug-macro.S index 48cdb0da026c..1347d7f99079 100644 --- a/arch/arm/mach-s5p6440/include/mach/debug-macro.S +++ b/arch/arm/mach-s5p6440/include/mach/debug-macro.S | |||
@@ -19,7 +19,7 @@ | |||
19 | * aligned and add in the offset when we load the value here. | 19 | * aligned and add in the offset when we load the value here. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | .macro addruart, rx | 22 | .macro addruart, rx, rtmp |
23 | mrc p15, 0, \rx, c1, c0 | 23 | mrc p15, 0, \rx, c1, c0 |
24 | tst \rx, #1 | 24 | tst \rx, #1 |
25 | ldreq \rx, = S3C_PA_UART | 25 | ldreq \rx, = S3C_PA_UART |
diff --git a/arch/arm/mach-s5p6442/include/mach/debug-macro.S b/arch/arm/mach-s5p6442/include/mach/debug-macro.S index 1aae691e58ef..bb6536147ffb 100644 --- a/arch/arm/mach-s5p6442/include/mach/debug-macro.S +++ b/arch/arm/mach-s5p6442/include/mach/debug-macro.S | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <mach/map.h> | 15 | #include <mach/map.h> |
16 | #include <plat/regs-serial.h> | 16 | #include <plat/regs-serial.h> |
17 | 17 | ||
18 | .macro addruart, rx | 18 | .macro addruart, rx, rtmp |
19 | mrc p15, 0, \rx, c1, c0 | 19 | mrc p15, 0, \rx, c1, c0 |
20 | tst \rx, #1 | 20 | tst \rx, #1 |
21 | ldreq \rx, = S3C_PA_UART | 21 | ldreq \rx, = S3C_PA_UART |
diff --git a/arch/arm/plat-samsung/include/plat/uncompress.h b/arch/arm/plat-samsung/include/plat/uncompress.h index e87ce8ffbbcd..7d6ed7263d57 100644 --- a/arch/arm/plat-samsung/include/plat/uncompress.h +++ b/arch/arm/plat-samsung/include/plat/uncompress.h | |||
@@ -140,8 +140,6 @@ static void arch_decomp_error(const char *x) | |||
140 | #define arch_error arch_decomp_error | 140 | #define arch_error arch_decomp_error |
141 | #endif | 141 | #endif |
142 | 142 | ||
143 | static void error(char *err); | ||
144 | |||
145 | #ifdef CONFIG_S3C_BOOT_UART_FORCE_FIFO | 143 | #ifdef CONFIG_S3C_BOOT_UART_FORCE_FIFO |
146 | static inline void arch_enable_uart_fifo(void) | 144 | static inline void arch_enable_uart_fifo(void) |
147 | { | 145 | { |
diff --git a/arch/arm/plat-samsung/pwm.c b/arch/arm/plat-samsung/pwm.c index ef019f27b67d..f2d11390d01c 100644 --- a/arch/arm/plat-samsung/pwm.c +++ b/arch/arm/plat-samsung/pwm.c | |||
@@ -379,6 +379,39 @@ static int __devexit s3c_pwm_remove(struct platform_device *pdev) | |||
379 | return 0; | 379 | return 0; |
380 | } | 380 | } |
381 | 381 | ||
382 | #ifdef CONFIG_PM | ||
383 | static int s3c_pwm_suspend(struct platform_device *pdev, pm_message_t state) | ||
384 | { | ||
385 | struct pwm_device *pwm = platform_get_drvdata(pdev); | ||
386 | |||
387 | /* No one preserve these values during suspend so reset them | ||
388 | * Otherwise driver leaves PWM unconfigured if same values | ||
389 | * passed to pwm_config | ||
390 | */ | ||
391 | pwm->period_ns = 0; | ||
392 | pwm->duty_ns = 0; | ||
393 | |||
394 | return 0; | ||
395 | } | ||
396 | |||
397 | static int s3c_pwm_resume(struct platform_device *pdev) | ||
398 | { | ||
399 | struct pwm_device *pwm = platform_get_drvdata(pdev); | ||
400 | unsigned long tcon; | ||
401 | |||
402 | /* Restore invertion */ | ||
403 | tcon = __raw_readl(S3C2410_TCON); | ||
404 | tcon |= pwm_tcon_invert(pwm); | ||
405 | __raw_writel(tcon, S3C2410_TCON); | ||
406 | |||
407 | return 0; | ||
408 | } | ||
409 | |||
410 | #else | ||
411 | #define s3c_pwm_suspend NULL | ||
412 | #define s3c_pwm_resume NULL | ||
413 | #endif | ||
414 | |||
382 | static struct platform_driver s3c_pwm_driver = { | 415 | static struct platform_driver s3c_pwm_driver = { |
383 | .driver = { | 416 | .driver = { |
384 | .name = "s3c24xx-pwm", | 417 | .name = "s3c24xx-pwm", |
@@ -386,6 +419,8 @@ static struct platform_driver s3c_pwm_driver = { | |||
386 | }, | 419 | }, |
387 | .probe = s3c_pwm_probe, | 420 | .probe = s3c_pwm_probe, |
388 | .remove = __devexit_p(s3c_pwm_remove), | 421 | .remove = __devexit_p(s3c_pwm_remove), |
422 | .suspend = s3c_pwm_suspend, | ||
423 | .resume = s3c_pwm_resume, | ||
389 | }; | 424 | }; |
390 | 425 | ||
391 | static int __init pwm_init(void) | 426 | static int __init pwm_init(void) |