aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c64xx')
-rw-r--r--arch/arm/mach-s3c64xx/Kconfig3
-rw-r--r--arch/arm/mach-s3c64xx/irq-pm.c12
-rw-r--r--arch/arm/mach-s3c64xx/mach-crag6410-module.c2
3 files changed, 11 insertions, 6 deletions
diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig
index 64f04e6f9c31..3136d86b0d6e 100644
--- a/arch/arm/mach-s3c64xx/Kconfig
+++ b/arch/arm/mach-s3c64xx/Kconfig
@@ -86,8 +86,7 @@ config MACH_SMDK6400
86 bool "SMDK6400" 86 bool "SMDK6400"
87 select CPU_S3C6400 87 select CPU_S3C6400
88 select S3C64XX_SETUP_SDHCI 88 select S3C64XX_SETUP_SDHCI
89 select S3C_DEV_HSMMC 89 select S3C_DEV_HSMMC1
90 select S3C_DEV_NAND
91 help 90 help
92 Machine support for the Samsung SMDK6400 91 Machine support for the Samsung SMDK6400
93 92
diff --git a/arch/arm/mach-s3c64xx/irq-pm.c b/arch/arm/mach-s3c64xx/irq-pm.c
index 1649c0d1c1b8..ddf65583a5d8 100644
--- a/arch/arm/mach-s3c64xx/irq-pm.c
+++ b/arch/arm/mach-s3c64xx/irq-pm.c
@@ -55,7 +55,13 @@ static struct irq_grp_save {
55 u32 mask; 55 u32 mask;
56} eint_grp_save[5]; 56} eint_grp_save[5];
57 57
58static u32 irq_uart_mask[CONFIG_SERIAL_SAMSUNG_UARTS]; 58#ifndef CONFIG_SERIAL_SAMSUNG_UARTS
59#define SERIAL_SAMSUNG_UARTS 0
60#else
61#define SERIAL_SAMSUNG_UARTS CONFIG_SERIAL_SAMSUNG_UARTS
62#endif
63
64static u32 irq_uart_mask[SERIAL_SAMSUNG_UARTS];
59 65
60static int s3c64xx_irq_pm_suspend(void) 66static int s3c64xx_irq_pm_suspend(void)
61{ 67{
@@ -66,7 +72,7 @@ static int s3c64xx_irq_pm_suspend(void)
66 72
67 s3c_pm_do_save(irq_save, ARRAY_SIZE(irq_save)); 73 s3c_pm_do_save(irq_save, ARRAY_SIZE(irq_save));
68 74
69 for (i = 0; i < CONFIG_SERIAL_SAMSUNG_UARTS; i++) 75 for (i = 0; i < SERIAL_SAMSUNG_UARTS; i++)
70 irq_uart_mask[i] = __raw_readl(S3C_VA_UARTx(i) + S3C64XX_UINTM); 76 irq_uart_mask[i] = __raw_readl(S3C_VA_UARTx(i) + S3C64XX_UINTM);
71 77
72 for (i = 0; i < ARRAY_SIZE(eint_grp_save); i++, grp++) { 78 for (i = 0; i < ARRAY_SIZE(eint_grp_save); i++, grp++) {
@@ -87,7 +93,7 @@ static void s3c64xx_irq_pm_resume(void)
87 93
88 s3c_pm_do_restore(irq_save, ARRAY_SIZE(irq_save)); 94 s3c_pm_do_restore(irq_save, ARRAY_SIZE(irq_save));
89 95
90 for (i = 0; i < CONFIG_SERIAL_SAMSUNG_UARTS; i++) 96 for (i = 0; i < SERIAL_SAMSUNG_UARTS; i++)
91 __raw_writel(irq_uart_mask[i], S3C_VA_UARTx(i) + S3C64XX_UINTM); 97 __raw_writel(irq_uart_mask[i], S3C_VA_UARTx(i) + S3C64XX_UINTM);
92 98
93 for (i = 0; i < ARRAY_SIZE(eint_grp_save); i++, grp++) { 99 for (i = 0; i < ARRAY_SIZE(eint_grp_save); i++, grp++) {
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410-module.c b/arch/arm/mach-s3c64xx/mach-crag6410-module.c
index 7ccfef227c77..9c00d83f7151 100644
--- a/arch/arm/mach-s3c64xx/mach-crag6410-module.c
+++ b/arch/arm/mach-s3c64xx/mach-crag6410-module.c
@@ -401,4 +401,4 @@ static int __init wlf_gf_module_register(void)
401{ 401{
402 return i2c_add_driver(&wlf_gf_module_driver); 402 return i2c_add_driver(&wlf_gf_module_driver);
403} 403}
404module_init(wlf_gf_module_register); 404device_initcall(wlf_gf_module_register);