aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r--arch/arm/plat-samsung/Kconfig6
-rw-r--r--arch/arm/plat-samsung/init.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig
index 58645a58d0d8..b57e922f1614 100644
--- a/arch/arm/plat-samsung/Kconfig
+++ b/arch/arm/plat-samsung/Kconfig
@@ -427,8 +427,7 @@ comment "Power management"
427 427
428config SAMSUNG_PM_DEBUG 428config SAMSUNG_PM_DEBUG
429 bool "S3C2410 PM Suspend debug" 429 bool "S3C2410 PM Suspend debug"
430 depends on PM 430 depends on PM && DEBUG_KERNEL && DEBUG_S3C_UART
431 select DEBUG_LL
432 help 431 help
433 Say Y here if you want verbose debugging from the PM Suspend and 432 Say Y here if you want verbose debugging from the PM Suspend and
434 Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> 433 Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
@@ -445,7 +444,8 @@ config S3C_PM_DEBUG_LED_SMDK
445 444
446config SAMSUNG_PM_CHECK 445config SAMSUNG_PM_CHECK
447 bool "S3C2410 PM Suspend Memory CRC" 446 bool "S3C2410 PM Suspend Memory CRC"
448 depends on PM && CRC32 447 depends on PM
448 select CRC32
449 help 449 help
450 Enable the PM code's memory area checksum over sleep. This option 450 Enable the PM code's memory area checksum over sleep. This option
451 will generate CRCs of all blocks of memory, and store them before 451 will generate CRCs of all blocks of memory, and store them before
diff --git a/arch/arm/plat-samsung/init.c b/arch/arm/plat-samsung/init.c
index 8706c6c4f894..a1f925f3121f 100644
--- a/arch/arm/plat-samsung/init.c
+++ b/arch/arm/plat-samsung/init.c
@@ -94,7 +94,9 @@ void __init s3c24xx_init_clocks(int xtal)
94#if IS_ENABLED(CONFIG_SAMSUNG_ATAGS) 94#if IS_ENABLED(CONFIG_SAMSUNG_ATAGS)
95static int nr_uarts __initdata = 0; 95static int nr_uarts __initdata = 0;
96 96
97#ifdef CONFIG_SERIAL_SAMSUNG_UARTS
97static struct s3c2410_uartcfg uart_cfgs[CONFIG_SERIAL_SAMSUNG_UARTS]; 98static struct s3c2410_uartcfg uart_cfgs[CONFIG_SERIAL_SAMSUNG_UARTS];
99#endif
98 100
99/* s3c24xx_init_uartdevs 101/* s3c24xx_init_uartdevs
100 * 102 *
@@ -109,6 +111,7 @@ void __init s3c24xx_init_uartdevs(char *name,
109 struct s3c24xx_uart_resources *res, 111 struct s3c24xx_uart_resources *res,
110 struct s3c2410_uartcfg *cfg, int no) 112 struct s3c2410_uartcfg *cfg, int no)
111{ 113{
114#ifdef CONFIG_SERIAL_SAMSUNG_UARTS
112 struct platform_device *platdev; 115 struct platform_device *platdev;
113 struct s3c2410_uartcfg *cfgptr = uart_cfgs; 116 struct s3c2410_uartcfg *cfgptr = uart_cfgs;
114 struct s3c24xx_uart_resources *resp; 117 struct s3c24xx_uart_resources *resp;
@@ -131,6 +134,7 @@ void __init s3c24xx_init_uartdevs(char *name,
131 } 134 }
132 135
133 nr_uarts = no; 136 nr_uarts = no;
137#endif
134} 138}
135 139
136void __init s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no) 140void __init s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no)