aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/Kconfig1
-rw-r--r--arch/arm/mach-exynos/pm.c4
-rw-r--r--arch/arm/mach-exynos/pmu.c14
-rw-r--r--arch/arm/mach-s3c24xx/dma.c2
-rw-r--r--arch/arm/mach-s3c24xx/simtec-usb.c3
-rw-r--r--arch/arm/mach-s3c64xx/mach-smartq.c2
-rw-r--r--arch/arm/plat-samsung/Kconfig8
-rw-r--r--arch/arm/plat-samsung/include/plat/pm.h4
-rw-r--r--arch/arm/plat-samsung/pm.c4
9 files changed, 16 insertions, 26 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index c1f1a7eee953..5e227a371401 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -740,7 +740,6 @@ config ARCH_S3C64XX
740 select S3C_DEV_NAND 740 select S3C_DEV_NAND
741 select S3C_GPIO_TRACK 741 select S3C_GPIO_TRACK
742 select SAMSUNG_ATAGS 742 select SAMSUNG_ATAGS
743 select SAMSUNG_GPIOLIB_4BIT
744 select SAMSUNG_WAKEMASK 743 select SAMSUNG_WAKEMASK
745 select SAMSUNG_WDT_RESET 744 select SAMSUNG_WDT_RESET
746 select USB_ARCH_HAS_OHCI 745 select USB_ARCH_HAS_OHCI
diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c
index c679db577269..7fb0f13d600d 100644
--- a/arch/arm/mach-exynos/pm.c
+++ b/arch/arm/mach-exynos/pm.c
@@ -36,7 +36,7 @@
36 36
37#include "common.h" 37#include "common.h"
38 38
39static struct sleep_save exynos4_set_clksrc[] = { 39static const struct sleep_save exynos4_set_clksrc[] = {
40 { .reg = EXYNOS4_CLKSRC_MASK_TOP , .val = 0x00000001, }, 40 { .reg = EXYNOS4_CLKSRC_MASK_TOP , .val = 0x00000001, },
41 { .reg = EXYNOS4_CLKSRC_MASK_CAM , .val = 0x11111111, }, 41 { .reg = EXYNOS4_CLKSRC_MASK_CAM , .val = 0x11111111, },
42 { .reg = EXYNOS4_CLKSRC_MASK_TV , .val = 0x00000111, }, 42 { .reg = EXYNOS4_CLKSRC_MASK_TV , .val = 0x00000111, },
@@ -48,7 +48,7 @@ static struct sleep_save exynos4_set_clksrc[] = {
48 { .reg = EXYNOS4_CLKSRC_MASK_DMC , .val = 0x00010000, }, 48 { .reg = EXYNOS4_CLKSRC_MASK_DMC , .val = 0x00010000, },
49}; 49};
50 50
51static struct sleep_save exynos4210_set_clksrc[] = { 51static const struct sleep_save exynos4210_set_clksrc[] = {
52 { .reg = EXYNOS4210_CLKSRC_MASK_LCD1 , .val = 0x00001111, }, 52 { .reg = EXYNOS4210_CLKSRC_MASK_LCD1 , .val = 0x00001111, },
53}; 53};
54 54
diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c
index 97d688526258..6609145312ac 100644
--- a/arch/arm/mach-exynos/pmu.c
+++ b/arch/arm/mach-exynos/pmu.c
@@ -17,9 +17,9 @@
17 17
18#include "common.h" 18#include "common.h"
19 19
20static struct exynos_pmu_conf *exynos_pmu_config; 20static const struct exynos_pmu_conf *exynos_pmu_config;
21 21
22static struct exynos_pmu_conf exynos4210_pmu_config[] = { 22static const struct exynos_pmu_conf exynos4210_pmu_config[] = {
23 /* { .reg = address, .val = { AFTR, LPA, SLEEP } */ 23 /* { .reg = address, .val = { AFTR, LPA, SLEEP } */
24 { S5P_ARM_CORE0_LOWPWR, { 0x0, 0x0, 0x2 } }, 24 { S5P_ARM_CORE0_LOWPWR, { 0x0, 0x0, 0x2 } },
25 { S5P_DIS_IRQ_CORE0, { 0x0, 0x0, 0x0 } }, 25 { S5P_DIS_IRQ_CORE0, { 0x0, 0x0, 0x0 } },
@@ -95,7 +95,7 @@ static struct exynos_pmu_conf exynos4210_pmu_config[] = {
95 { PMU_TABLE_END,}, 95 { PMU_TABLE_END,},
96}; 96};
97 97
98static struct exynos_pmu_conf exynos4x12_pmu_config[] = { 98static const struct exynos_pmu_conf exynos4x12_pmu_config[] = {
99 { S5P_ARM_CORE0_LOWPWR, { 0x0, 0x0, 0x2 } }, 99 { S5P_ARM_CORE0_LOWPWR, { 0x0, 0x0, 0x2 } },
100 { S5P_DIS_IRQ_CORE0, { 0x0, 0x0, 0x0 } }, 100 { S5P_DIS_IRQ_CORE0, { 0x0, 0x0, 0x0 } },
101 { S5P_DIS_IRQ_CENTRAL0, { 0x0, 0x0, 0x0 } }, 101 { S5P_DIS_IRQ_CENTRAL0, { 0x0, 0x0, 0x0 } },
@@ -203,7 +203,7 @@ static struct exynos_pmu_conf exynos4x12_pmu_config[] = {
203 { PMU_TABLE_END,}, 203 { PMU_TABLE_END,},
204}; 204};
205 205
206static struct exynos_pmu_conf exynos4412_pmu_config[] = { 206static const struct exynos_pmu_conf exynos4412_pmu_config[] = {
207 { S5P_ARM_CORE2_LOWPWR, { 0x0, 0x0, 0x2 } }, 207 { S5P_ARM_CORE2_LOWPWR, { 0x0, 0x0, 0x2 } },
208 { S5P_DIS_IRQ_CORE2, { 0x0, 0x0, 0x0 } }, 208 { S5P_DIS_IRQ_CORE2, { 0x0, 0x0, 0x0 } },
209 { S5P_DIS_IRQ_CENTRAL2, { 0x0, 0x0, 0x0 } }, 209 { S5P_DIS_IRQ_CENTRAL2, { 0x0, 0x0, 0x0 } },
@@ -213,7 +213,7 @@ static struct exynos_pmu_conf exynos4412_pmu_config[] = {
213 { PMU_TABLE_END,}, 213 { PMU_TABLE_END,},
214}; 214};
215 215
216static struct exynos_pmu_conf exynos5250_pmu_config[] = { 216static const struct exynos_pmu_conf exynos5250_pmu_config[] = {
217 /* { .reg = address, .val = { AFTR, LPA, SLEEP } */ 217 /* { .reg = address, .val = { AFTR, LPA, SLEEP } */
218 { EXYNOS5_ARM_CORE0_SYS_PWR_REG, { 0x0, 0x0, 0x2} }, 218 { EXYNOS5_ARM_CORE0_SYS_PWR_REG, { 0x0, 0x0, 0x2} },
219 { EXYNOS5_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG, { 0x0, 0x0, 0x0} }, 219 { EXYNOS5_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG, { 0x0, 0x0, 0x0} },
@@ -317,7 +317,7 @@ static struct exynos_pmu_conf exynos5250_pmu_config[] = {
317 { PMU_TABLE_END,}, 317 { PMU_TABLE_END,},
318}; 318};
319 319
320static void __iomem *exynos5_list_both_cnt_feed[] = { 320static void __iomem * const exynos5_list_both_cnt_feed[] = {
321 EXYNOS5_ARM_CORE0_OPTION, 321 EXYNOS5_ARM_CORE0_OPTION,
322 EXYNOS5_ARM_CORE1_OPTION, 322 EXYNOS5_ARM_CORE1_OPTION,
323 EXYNOS5_ARM_COMMON_OPTION, 323 EXYNOS5_ARM_COMMON_OPTION,
@@ -331,7 +331,7 @@ static void __iomem *exynos5_list_both_cnt_feed[] = {
331 EXYNOS5_TOP_PWR_SYSMEM_OPTION, 331 EXYNOS5_TOP_PWR_SYSMEM_OPTION,
332}; 332};
333 333
334static void __iomem *exynos5_list_diable_wfi_wfe[] = { 334static void __iomem * const exynos5_list_diable_wfi_wfe[] = {
335 EXYNOS5_ARM_CORE1_OPTION, 335 EXYNOS5_ARM_CORE1_OPTION,
336 EXYNOS5_FSYS_ARM_OPTION, 336 EXYNOS5_FSYS_ARM_OPTION,
337 EXYNOS5_ISP_ARM_OPTION, 337 EXYNOS5_ISP_ARM_OPTION,
diff --git a/arch/arm/mach-s3c24xx/dma.c b/arch/arm/mach-s3c24xx/dma.c
index 4a65cba3295d..a8dafc174fe3 100644
--- a/arch/arm/mach-s3c24xx/dma.c
+++ b/arch/arm/mach-s3c24xx/dma.c
@@ -742,7 +742,7 @@ int s3c2410_dma_request(enum dma_ch channel,
742 chan->irq_claimed = 1; 742 chan->irq_claimed = 1;
743 local_irq_restore(flags); 743 local_irq_restore(flags);
744 744
745 err = request_irq(chan->irq, s3c2410_dma_irq, IRQF_DISABLED, 745 err = request_irq(chan->irq, s3c2410_dma_irq, 0,
746 client->name, (void *)chan); 746 client->name, (void *)chan);
747 747
748 local_irq_save(flags); 748 local_irq_save(flags);
diff --git a/arch/arm/mach-s3c24xx/simtec-usb.c b/arch/arm/mach-s3c24xx/simtec-usb.c
index 2ed2e32430dc..bb3eac6a7697 100644
--- a/arch/arm/mach-s3c24xx/simtec-usb.c
+++ b/arch/arm/mach-s3c24xx/simtec-usb.c
@@ -78,8 +78,7 @@ static void usb_simtec_enableoc(struct s3c2410_hcd_info *info, int on)
78 78
79 if (on) { 79 if (on) {
80 ret = request_irq(BAST_IRQ_USBOC, usb_simtec_ocirq, 80 ret = request_irq(BAST_IRQ_USBOC, usb_simtec_ocirq,
81 IRQF_DISABLED | IRQF_TRIGGER_RISING | 81 IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
82 IRQF_TRIGGER_FALLING,
83 "USB Over-current", info); 82 "USB Over-current", info);
84 if (ret != 0) { 83 if (ret != 0) {
85 printk(KERN_ERR "failed to request usb oc irq\n"); 84 printk(KERN_ERR "failed to request usb oc irq\n");
diff --git a/arch/arm/mach-s3c64xx/mach-smartq.c b/arch/arm/mach-s3c64xx/mach-smartq.c
index a6b338fd0470..08a889c141da 100644
--- a/arch/arm/mach-s3c64xx/mach-smartq.c
+++ b/arch/arm/mach-s3c64xx/mach-smartq.c
@@ -106,7 +106,7 @@ static void smartq_usb_host_enableoc(struct s3c2410_hcd_info *info, int on)
106 106
107 if (on) { 107 if (on) {
108 ret = request_irq(gpio_to_irq(S3C64XX_GPL(10)), 108 ret = request_irq(gpio_to_irq(S3C64XX_GPL(10)),
109 smartq_usb_host_ocirq, IRQF_DISABLED | 109 smartq_usb_host_ocirq,
110 IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, 110 IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
111 "USB host overcurrent", info); 111 "USB host overcurrent", info);
112 if (ret != 0) 112 if (ret != 0)
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig
index 6d95d60276d6..58645a58d0d8 100644
--- a/arch/arm/plat-samsung/Kconfig
+++ b/arch/arm/plat-samsung/Kconfig
@@ -24,7 +24,6 @@ config PLAT_S5P
24 select S3C_GPIO_TRACK 24 select S3C_GPIO_TRACK
25 select S5P_GPIO_DRVSTR 25 select S5P_GPIO_DRVSTR
26 select SAMSUNG_CLKSRC if !COMMON_CLK 26 select SAMSUNG_CLKSRC if !COMMON_CLK
27 select SAMSUNG_GPIOLIB_4BIT
28 help 27 help
29 Base platform code for Samsung's S5P series SoC. 28 Base platform code for Samsung's S5P series SoC.
30 29
@@ -115,13 +114,6 @@ config S5P_GPIO_INT
115 114
116# options for gpio configuration support 115# options for gpio configuration support
117 116
118config SAMSUNG_GPIOLIB_4BIT
119 bool
120 help
121 GPIOlib file contains the 4 bit modification functions for gpio
122 configuration. GPIOlib shall be compiled only for S3C64XX and S5P
123 series of processors.
124
125config S5P_GPIO_DRVSTR 117config S5P_GPIO_DRVSTR
126 bool 118 bool
127 help 119 help
diff --git a/arch/arm/plat-samsung/include/plat/pm.h b/arch/arm/plat-samsung/include/plat/pm.h
index 6bc1a8f471e3..ff6063f0d5ea 100644
--- a/arch/arm/plat-samsung/include/plat/pm.h
+++ b/arch/arm/plat-samsung/include/plat/pm.h
@@ -101,8 +101,8 @@ struct pm_uart_save {
101/* helper functions to save/restore lists of registers. */ 101/* helper functions to save/restore lists of registers. */
102 102
103extern void s3c_pm_do_save(struct sleep_save *ptr, int count); 103extern void s3c_pm_do_save(struct sleep_save *ptr, int count);
104extern void s3c_pm_do_restore(struct sleep_save *ptr, int count); 104extern void s3c_pm_do_restore(const struct sleep_save *ptr, int count);
105extern void s3c_pm_do_restore_core(struct sleep_save *ptr, int count); 105extern void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count);
106 106
107#ifdef CONFIG_SAMSUNG_PM 107#ifdef CONFIG_SAMSUNG_PM
108extern int s3c_irq_wake(struct irq_data *data, unsigned int state); 108extern int s3c_irq_wake(struct irq_data *data, unsigned int state);
diff --git a/arch/arm/plat-samsung/pm.c b/arch/arm/plat-samsung/pm.c
index d0c23010b693..416e5bea54f9 100644
--- a/arch/arm/plat-samsung/pm.c
+++ b/arch/arm/plat-samsung/pm.c
@@ -182,7 +182,7 @@ void s3c_pm_do_save(struct sleep_save *ptr, int count)
182 * restore the UARTs state yet 182 * restore the UARTs state yet
183*/ 183*/
184 184
185void s3c_pm_do_restore(struct sleep_save *ptr, int count) 185void s3c_pm_do_restore(const struct sleep_save *ptr, int count)
186{ 186{
187 for (; count > 0; count--, ptr++) { 187 for (; count > 0; count--, ptr++) {
188 printk(KERN_DEBUG "restore %p (restore %08lx, was %08x)\n", 188 printk(KERN_DEBUG "restore %p (restore %08lx, was %08x)\n",
@@ -203,7 +203,7 @@ void s3c_pm_do_restore(struct sleep_save *ptr, int count)
203 * peripherals, as things may be changing! 203 * peripherals, as things may be changing!
204*/ 204*/
205 205
206void s3c_pm_do_restore_core(struct sleep_save *ptr, int count) 206void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count)
207{ 207{
208 for (; count > 0; count--, ptr++) 208 for (; count > 0; count--, ptr++)
209 __raw_writel(ptr->val, ptr->reg); 209 __raw_writel(ptr->val, ptr->reg);