diff options
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r-- | arch/arm/mach-exynos/mach-nuri.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-smdkv310.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-universal_c210.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-exynos/pm.c | 24 |
4 files changed, 8 insertions, 39 deletions
diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c index 236bbe187163..205dfed41210 100644 --- a/arch/arm/mach-exynos/mach-nuri.c +++ b/arch/arm/mach-exynos/mach-nuri.c | |||
@@ -247,13 +247,8 @@ static void nuri_lcd_power_on(struct plat_lcd_data *pd, unsigned int power) | |||
247 | 247 | ||
248 | static int nuri_bl_init(struct device *dev) | 248 | static int nuri_bl_init(struct device *dev) |
249 | { | 249 | { |
250 | int ret, gpio = EXYNOS4_GPE2(3); | 250 | return gpio_request_one(EXYNOS4_GPE2(3), GPIOF_OUT_INIT_LOW, |
251 | 251 | "LCD_LD0_EN"); | |
252 | ret = gpio_request(gpio, "LCD_LDO_EN"); | ||
253 | if (!ret) | ||
254 | gpio_direction_output(gpio, 0); | ||
255 | |||
256 | return ret; | ||
257 | } | 252 | } |
258 | 253 | ||
259 | static int nuri_bl_notify(struct device *dev, int brightness) | 254 | static int nuri_bl_notify(struct device *dev, int brightness) |
diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c index cec2afabe7b4..cbf31bd0e2c9 100644 --- a/arch/arm/mach-exynos/mach-smdkv310.c +++ b/arch/arm/mach-exynos/mach-smdkv310.c | |||
@@ -129,9 +129,7 @@ static void lcd_lte480wv_set_power(struct plat_lcd_data *pd, | |||
129 | gpio_free(EXYNOS4_GPD0(1)); | 129 | gpio_free(EXYNOS4_GPD0(1)); |
130 | #endif | 130 | #endif |
131 | /* fire nRESET on power up */ | 131 | /* fire nRESET on power up */ |
132 | gpio_request(EXYNOS4_GPX0(6), "GPX0"); | 132 | gpio_request_one(EXYNOS4_GPX0(6), GPIOF_OUT_INIT_HIGH, "GPX0"); |
133 | |||
134 | gpio_direction_output(EXYNOS4_GPX0(6), 1); | ||
135 | mdelay(100); | 133 | mdelay(100); |
136 | 134 | ||
137 | gpio_set_value(EXYNOS4_GPX0(6), 0); | 135 | gpio_set_value(EXYNOS4_GPX0(6), 0); |
diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c index a2a177ff4b44..0a04cd643b07 100644 --- a/arch/arm/mach-exynos/mach-universal_c210.c +++ b/arch/arm/mach-exynos/mach-universal_c210.c | |||
@@ -608,8 +608,7 @@ static void __init universal_tsp_init(void) | |||
608 | 608 | ||
609 | /* TSP_LDO_ON: XMDMADDR_11 */ | 609 | /* TSP_LDO_ON: XMDMADDR_11 */ |
610 | gpio = EXYNOS4_GPE2(3); | 610 | gpio = EXYNOS4_GPE2(3); |
611 | gpio_request(gpio, "TSP_LDO_ON"); | 611 | gpio_request_one(gpio, GPIOF_OUT_INIT_HIGH, "TSP_LDO_ON"); |
612 | gpio_direction_output(gpio, 1); | ||
613 | gpio_export(gpio, 0); | 612 | gpio_export(gpio, 0); |
614 | 613 | ||
615 | /* TSP_INT: XMDMADDR_7 */ | 614 | /* TSP_INT: XMDMADDR_7 */ |
@@ -669,8 +668,7 @@ static void __init universal_touchkey_init(void) | |||
669 | i2c_gpio12_devs[0].irq = gpio_to_irq(gpio); | 668 | i2c_gpio12_devs[0].irq = gpio_to_irq(gpio); |
670 | 669 | ||
671 | gpio = EXYNOS4_GPE3(3); /* XMDMDATA_3 */ | 670 | gpio = EXYNOS4_GPE3(3); /* XMDMDATA_3 */ |
672 | gpio_request(gpio, "3_TOUCH_EN"); | 671 | gpio_request_one(gpio, GPIOF_OUT_INIT_HIGH, "3_TOUCH_EN"); |
673 | gpio_direction_output(gpio, 1); | ||
674 | } | 672 | } |
675 | 673 | ||
676 | static struct s3c2410_platform_i2c universal_i2c0_platdata __initdata = { | 674 | static struct s3c2410_platform_i2c universal_i2c0_platdata __initdata = { |
@@ -1000,9 +998,7 @@ static void __init universal_map_io(void) | |||
1000 | void s5p_tv_setup(void) | 998 | void s5p_tv_setup(void) |
1001 | { | 999 | { |
1002 | /* direct HPD to HDMI chip */ | 1000 | /* direct HPD to HDMI chip */ |
1003 | gpio_request(EXYNOS4_GPX3(7), "hpd-plug"); | 1001 | gpio_request_one(EXYNOS4_GPX3(7), GPIOF_IN, "hpd-plug"); |
1004 | |||
1005 | gpio_direction_input(EXYNOS4_GPX3(7)); | ||
1006 | s3c_gpio_cfgpin(EXYNOS4_GPX3(7), S3C_GPIO_SFN(0x3)); | 1002 | s3c_gpio_cfgpin(EXYNOS4_GPX3(7), S3C_GPIO_SFN(0x3)); |
1007 | s3c_gpio_setpull(EXYNOS4_GPX3(7), S3C_GPIO_PULL_NONE); | 1003 | s3c_gpio_setpull(EXYNOS4_GPX3(7), S3C_GPIO_PULL_NONE); |
1008 | 1004 | ||
diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index 509a435afd4b..4093fea849c3 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch/arm/mach-exynos/pm.c | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | #include <asm/cacheflush.h> | 24 | #include <asm/cacheflush.h> |
25 | #include <asm/hardware/cache-l2x0.h> | 25 | #include <asm/hardware/cache-l2x0.h> |
26 | #include <asm/smp_scu.h> | ||
26 | 27 | ||
27 | #include <plat/cpu.h> | 28 | #include <plat/cpu.h> |
28 | #include <plat/pm.h> | 29 | #include <plat/pm.h> |
@@ -213,27 +214,6 @@ static int exynos4_pm_add(struct sys_device *sysdev) | |||
213 | return 0; | 214 | return 0; |
214 | } | 215 | } |
215 | 216 | ||
216 | /* This function copy from linux/arch/arm/kernel/smp_scu.c */ | ||
217 | |||
218 | void exynos4_scu_enable(void __iomem *scu_base) | ||
219 | { | ||
220 | u32 scu_ctrl; | ||
221 | |||
222 | scu_ctrl = __raw_readl(scu_base); | ||
223 | /* already enabled? */ | ||
224 | if (scu_ctrl & 1) | ||
225 | return; | ||
226 | |||
227 | scu_ctrl |= 1; | ||
228 | __raw_writel(scu_ctrl, scu_base); | ||
229 | |||
230 | /* | ||
231 | * Ensure that the data accessed by CPU0 before the SCU was | ||
232 | * initialised is visible to the other CPUs. | ||
233 | */ | ||
234 | flush_cache_all(); | ||
235 | } | ||
236 | |||
237 | static unsigned long pll_base_rate; | 217 | static unsigned long pll_base_rate; |
238 | 218 | ||
239 | static void exynos4_restore_pll(void) | 219 | static void exynos4_restore_pll(void) |
@@ -402,7 +382,7 @@ static void exynos4_pm_resume(void) | |||
402 | 382 | ||
403 | exynos4_restore_pll(); | 383 | exynos4_restore_pll(); |
404 | 384 | ||
405 | exynos4_scu_enable(S5P_VA_SCU); | 385 | scu_enable(S5P_VA_SCU); |
406 | 386 | ||
407 | #ifdef CONFIG_CACHE_L2X0 | 387 | #ifdef CONFIG_CACHE_L2X0 |
408 | s3c_pm_do_restore_core(exynos4_l2cc_save, ARRAY_SIZE(exynos4_l2cc_save)); | 388 | s3c_pm_do_restore_core(exynos4_l2cc_save, ARRAY_SIZE(exynos4_l2cc_save)); |