Commit 42aa322c authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Kukjin Kim

ARM: S3C24XX: Convert users of s3c2410_gpio_setpin to gpiolib API

This is a prerequisite for removal of deprecated s3c2410_gpio* API
from the Samsung gpiolib driver.

Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Guillaume Gourat <guillaume.gourat@nexvision.tv>
Cc: Michel Pollet <buserror@gmail.com>
Signed-off-by: default avatarSylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 29869ad4
...@@ -424,7 +424,8 @@ static void __init anubis_map_io(void) ...@@ -424,7 +424,8 @@ static void __init anubis_map_io(void)
anubis_nand_sets[0].nr_partitions = ARRAY_SIZE(anubis_default_nand_part_large); anubis_nand_sets[0].nr_partitions = ARRAY_SIZE(anubis_default_nand_part_large);
} else { } else {
/* ensure that the GPIO is setup */ /* ensure that the GPIO is setup */
s3c2410_gpio_setpin(S3C2410_GPA(0), 1); gpio_request_one(S3C2410_GPA(0), GPIOF_OUT_INIT_HIGH, NULL);
gpio_free(S3C2410_GPA(0));
} }
} }
......
...@@ -512,8 +512,8 @@ static void jive_power_off(void) ...@@ -512,8 +512,8 @@ static void jive_power_off(void)
{ {
printk(KERN_INFO "powering system down...\n"); printk(KERN_INFO "powering system down...\n");
s3c2410_gpio_setpin(S3C2410_GPC(5), 1); gpio_request_one(S3C2410_GPC(5), GPIOF_OUT_INIT_HIGH, NULL);
s3c_gpio_cfgpin(S3C2410_GPC(5), S3C2410_GPIO_OUTPUT); gpio_free(S3C2410_GPC(5));
} }
static void __init jive_machine_init(void) static void __init jive_machine_init(void)
...@@ -623,11 +623,11 @@ static void __init jive_machine_init(void) ...@@ -623,11 +623,11 @@ static void __init jive_machine_init(void)
gpio_request(S3C2410_GPB(7), "jive spi"); gpio_request(S3C2410_GPB(7), "jive spi");
gpio_direction_output(S3C2410_GPB(7), 1); gpio_direction_output(S3C2410_GPB(7), 1);
s3c2410_gpio_setpin(S3C2410_GPB(6), 0); gpio_request_one(S3C2410_GPB(6), GPIOF_OUT_INIT_LOW, NULL);
s3c_gpio_cfgpin(S3C2410_GPB(6), S3C2410_GPIO_OUTPUT); gpio_free(S3C2410_GPB(6));
s3c2410_gpio_setpin(S3C2410_GPG(8), 1); gpio_request_one(S3C2410_GPG(8), GPIOF_OUT_INIT_HIGH, NULL);
s3c_gpio_cfgpin(S3C2410_GPG(8), S3C2410_GPIO_OUTPUT); gpio_free(S3C2410_GPG(8));
/* initialise the WM8750 spi */ /* initialise the WM8750 spi */
......
...@@ -638,9 +638,9 @@ static void __init mini2440_init(void) ...@@ -638,9 +638,9 @@ static void __init mini2440_init(void)
gpio_free(S3C2410_GPG(4)); gpio_free(S3C2410_GPG(4));
/* remove pullup on optional PWM backlight -- unused on 3.5 and 7"s */ /* remove pullup on optional PWM backlight -- unused on 3.5 and 7"s */
gpio_request_one(S3C2410_GPB(1), GPIOF_IN, NULL);
s3c_gpio_setpull(S3C2410_GPB(1), S3C_GPIO_PULL_UP); s3c_gpio_setpull(S3C2410_GPB(1), S3C_GPIO_PULL_UP);
s3c2410_gpio_setpin(S3C2410_GPB(1), 0); gpio_free(S3C2410_GPB(1));
s3c_gpio_cfgpin(S3C2410_GPB(1), S3C2410_GPIO_INPUT);
/* mark the key as input, without pullups (there is one on the board) */ /* mark the key as input, without pullups (there is one on the board) */
for (i = 0; i < ARRAY_SIZE(mini2440_buttons); i++) { for (i = 0; i < ARRAY_SIZE(mini2440_buttons); i++) {
......
...@@ -119,17 +119,17 @@ static struct platform_device *nexcoder_devices[] __initdata = { ...@@ -119,17 +119,17 @@ static struct platform_device *nexcoder_devices[] __initdata = {
static void __init nexcoder_sensorboard_init(void) static void __init nexcoder_sensorboard_init(void)
{ {
// Initialize SCCB bus /* Initialize SCCB bus */
s3c2410_gpio_setpin(S3C2410_GPE(14), 1); // IICSCL gpio_request_one(S3C2410_GPE(14), GPIOF_OUT_INIT_HIGH, NULL);
s3c_gpio_cfgpin(S3C2410_GPE(14), S3C2410_GPIO_OUTPUT); gpio_free(S3C2410_GPE(14)); /* IICSCL */
s3c2410_gpio_setpin(S3C2410_GPE(15), 1); // IICSDA gpio_request_one(S3C2410_GPE(15), GPIOF_OUT_INIT_HIGH, NULL);
s3c_gpio_cfgpin(S3C2410_GPE(15), S3C2410_GPIO_OUTPUT); gpio_free(S3C2410_GPE(15)); /* IICSDA */
// Power up the sensor board /* Power up the sensor board */
s3c2410_gpio_setpin(S3C2410_GPF(1), 1); gpio_request_one(S3C2410_GPF(1), GPIOF_OUT_INIT_HIGH, NULL);
s3c_gpio_cfgpin(S3C2410_GPF(1), S3C2410_GPIO_OUTPUT); // CAM_GPIO7 => nLDO_PWRDN gpio_free(S3C2410_GPF(1)); /* CAM_GPIO7 => nLDO_PWRDN */
s3c2410_gpio_setpin(S3C2410_GPF(2), 0); gpio_request_one(S3C2410_GPF(2), GPIOF_OUT_INIT_LOW, NULL);
s3c_gpio_cfgpin(S3C2410_GPF(2), S3C2410_GPIO_OUTPUT); // CAM_GPIO6 => CAM_PWRDN gpio_free(S3C2410_GPF(2)); /* CAM_GPIO6 => CAM_PWRDN */
} }
static void __init nexcoder_map_io(void) static void __init nexcoder_map_io(void)
......
...@@ -274,8 +274,8 @@ static int osiris_pm_suspend(void) ...@@ -274,8 +274,8 @@ static int osiris_pm_suspend(void)
__raw_writeb(tmp, OSIRIS_VA_CTRL0); __raw_writeb(tmp, OSIRIS_VA_CTRL0);
/* ensure that an nRESET is not generated on resume. */ /* ensure that an nRESET is not generated on resume. */
s3c2410_gpio_setpin(S3C2410_GPA(21), 1); gpio_request_one(S3C2410_GPA(21), GPIOF_OUT_INIT_HIGH, NULL);
s3c_gpio_cfgpin(S3C2410_GPA(21), S3C2410_GPIO_OUTPUT); gpio_free(S3C2410_GPA(21));
return 0; return 0;
} }
...@@ -396,7 +396,8 @@ static void __init osiris_map_io(void) ...@@ -396,7 +396,8 @@ static void __init osiris_map_io(void)
osiris_nand_sets[0].nr_partitions = ARRAY_SIZE(osiris_default_nand_part_large); osiris_nand_sets[0].nr_partitions = ARRAY_SIZE(osiris_default_nand_part_large);
} else { } else {
/* write-protect line to the NAND */ /* write-protect line to the NAND */
s3c2410_gpio_setpin(S3C2410_GPA(0), 1); gpio_request_one(S3C2410_GPA(0), GPIOF_OUT_INIT_HIGH, NULL);
gpio_free(S3C2410_GPA(0));
} }
/* fix bus configuration (nBE settings wrong on ABLE pre v2.20) */ /* fix bus configuration (nBE settings wrong on ABLE pre v2.20) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment