diff options
author | Ben Dooks <ben-linux@fluff.org> | 2009-05-21 17:10:21 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-05-21 17:10:21 -0400 |
commit | 99ae99533a059750c4b0f76295625b8ac5ea751a (patch) | |
tree | 281129684e730ccd5b5b1e1fbbd9b83f3fa18986 /arch/arm/mach-s3c2440 | |
parent | bcb8a0d6f5e73c61a5290b4faaaa48dfa629e6b0 (diff) | |
parent | 7a05a2cbd317cbd16e6d1689bb1e5e208eaaba6f (diff) |
[ARM] S3C24XX: Merge devel-gpio
Merge branch 'devel-gpio' into for-rmk-devel
Diffstat (limited to 'arch/arm/mach-s3c2440')
-rw-r--r-- | arch/arm/mach-s3c2440/mach-anubis.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-s3c2440/mach-at2440evb.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c2440/mach-nexcoder.c | 17 | ||||
-rw-r--r-- | arch/arm/mach-s3c2440/mach-osiris.c | 9 |
4 files changed, 17 insertions, 14 deletions
diff --git a/arch/arm/mach-s3c2440/mach-anubis.c b/arch/arm/mach-s3c2440/mach-anubis.c index 9c6abf9fb540..68f3870991bf 100644 --- a/arch/arm/mach-s3c2440/mach-anubis.c +++ b/arch/arm/mach-s3c2440/mach-anubis.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/list.h> | 15 | #include <linux/list.h> |
16 | #include <linux/timer.h> | 16 | #include <linux/timer.h> |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/gpio.h> | ||
18 | #include <linux/serial_core.h> | 19 | #include <linux/serial_core.h> |
19 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
20 | #include <linux/ata_platform.h> | 21 | #include <linux/ata_platform.h> |
@@ -468,7 +469,7 @@ static void __init anubis_map_io(void) | |||
468 | anubis_nand_sets[0].nr_partitions = ARRAY_SIZE(anubis_default_nand_part_large); | 469 | anubis_nand_sets[0].nr_partitions = ARRAY_SIZE(anubis_default_nand_part_large); |
469 | } else { | 470 | } else { |
470 | /* ensure that the GPIO is setup */ | 471 | /* ensure that the GPIO is setup */ |
471 | s3c2410_gpio_setpin(S3C2410_GPA0, 1); | 472 | s3c2410_gpio_setpin(S3C2410_GPA(0), 1); |
472 | } | 473 | } |
473 | } | 474 | } |
474 | 475 | ||
diff --git a/arch/arm/mach-s3c2440/mach-at2440evb.c b/arch/arm/mach-s3c2440/mach-at2440evb.c index 315c42e31278..dfc7010935da 100644 --- a/arch/arm/mach-s3c2440/mach-at2440evb.c +++ b/arch/arm/mach-s3c2440/mach-at2440evb.c | |||
@@ -166,7 +166,7 @@ static struct platform_device at2440evb_device_eth = { | |||
166 | }; | 166 | }; |
167 | 167 | ||
168 | static struct s3c24xx_mci_pdata at2440evb_mci_pdata = { | 168 | static struct s3c24xx_mci_pdata at2440evb_mci_pdata = { |
169 | .gpio_detect = S3C2410_GPG10, | 169 | .gpio_detect = S3C2410_GPG(10), |
170 | }; | 170 | }; |
171 | 171 | ||
172 | /* 7" LCD panel */ | 172 | /* 7" LCD panel */ |
diff --git a/arch/arm/mach-s3c2440/mach-nexcoder.c b/arch/arm/mach-s3c2440/mach-nexcoder.c index 7aeaa972d7f5..d43edede590e 100644 --- a/arch/arm/mach-s3c2440/mach-nexcoder.c +++ b/arch/arm/mach-s3c2440/mach-nexcoder.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/list.h> | 18 | #include <linux/list.h> |
19 | #include <linux/timer.h> | 19 | #include <linux/timer.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/gpio.h> | ||
21 | #include <linux/string.h> | 22 | #include <linux/string.h> |
22 | #include <linux/serial_core.h> | 23 | #include <linux/serial_core.h> |
23 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
@@ -120,16 +121,16 @@ static struct platform_device *nexcoder_devices[] __initdata = { | |||
120 | static void __init nexcoder_sensorboard_init(void) | 121 | static void __init nexcoder_sensorboard_init(void) |
121 | { | 122 | { |
122 | // Initialize SCCB bus | 123 | // Initialize SCCB bus |
123 | s3c2410_gpio_setpin(S3C2410_GPE14, 1); // IICSCL | 124 | s3c2410_gpio_setpin(S3C2410_GPE(14), 1); // IICSCL |
124 | s3c2410_gpio_cfgpin(S3C2410_GPE14, S3C2410_GPE14_OUTP); | 125 | s3c2410_gpio_cfgpin(S3C2410_GPE(14), S3C2410_GPIO_OUTPUT); |
125 | s3c2410_gpio_setpin(S3C2410_GPE15, 1); // IICSDA | 126 | s3c2410_gpio_setpin(S3C2410_GPE(15), 1); // IICSDA |
126 | s3c2410_gpio_cfgpin(S3C2410_GPE15, S3C2410_GPE15_OUTP); | 127 | s3c2410_gpio_cfgpin(S3C2410_GPE(15), S3C2410_GPIO_OUTPUT); |
127 | 128 | ||
128 | // Power up the sensor board | 129 | // Power up the sensor board |
129 | s3c2410_gpio_setpin(S3C2410_GPF1, 1); | 130 | s3c2410_gpio_setpin(S3C2410_GPF(1), 1); |
130 | s3c2410_gpio_cfgpin(S3C2410_GPF1, S3C2410_GPF1_OUTP); // CAM_GPIO7 => nLDO_PWRDN | 131 | s3c2410_gpio_cfgpin(S3C2410_GPF(1), S3C2410_GPIO_OUTPUT); // CAM_GPIO7 => nLDO_PWRDN |
131 | s3c2410_gpio_setpin(S3C2410_GPF2, 0); | 132 | s3c2410_gpio_setpin(S3C2410_GPF(2), 0); |
132 | s3c2410_gpio_cfgpin(S3C2410_GPF2, S3C2410_GPF2_OUTP); // CAM_GPIO6 => CAM_PWRDN | 133 | s3c2410_gpio_cfgpin(S3C2410_GPF(2), S3C2410_GPIO_OUTPUT); // CAM_GPIO6 => CAM_PWRDN |
133 | } | 134 | } |
134 | 135 | ||
135 | static void __init nexcoder_map_io(void) | 136 | static void __init nexcoder_map_io(void) |
diff --git a/arch/arm/mach-s3c2440/mach-osiris.c b/arch/arm/mach-s3c2440/mach-osiris.c index c8a46685ce38..cba064b49a64 100644 --- a/arch/arm/mach-s3c2440/mach-osiris.c +++ b/arch/arm/mach-s3c2440/mach-osiris.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/list.h> | 15 | #include <linux/list.h> |
16 | #include <linux/timer.h> | 16 | #include <linux/timer.h> |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/gpio.h> | ||
18 | #include <linux/device.h> | 19 | #include <linux/device.h> |
19 | #include <linux/sysdev.h> | 20 | #include <linux/sysdev.h> |
20 | #include <linux/serial_core.h> | 21 | #include <linux/serial_core.h> |
@@ -291,8 +292,8 @@ static int osiris_pm_suspend(struct sys_device *sd, pm_message_t state) | |||
291 | __raw_writeb(tmp, OSIRIS_VA_CTRL0); | 292 | __raw_writeb(tmp, OSIRIS_VA_CTRL0); |
292 | 293 | ||
293 | /* ensure that an nRESET is not generated on resume. */ | 294 | /* ensure that an nRESET is not generated on resume. */ |
294 | s3c2410_gpio_setpin(S3C2410_GPA21, 1); | 295 | s3c2410_gpio_setpin(S3C2410_GPA(21), 1); |
295 | s3c2410_gpio_cfgpin(S3C2410_GPA21, S3C2410_GPA21_OUT); | 296 | s3c2410_gpio_cfgpin(S3C2410_GPA(21), S3C2410_GPIO_OUTPUT); |
296 | 297 | ||
297 | return 0; | 298 | return 0; |
298 | } | 299 | } |
@@ -304,7 +305,7 @@ static int osiris_pm_resume(struct sys_device *sd) | |||
304 | 305 | ||
305 | __raw_writeb(pm_osiris_ctrl0, OSIRIS_VA_CTRL0); | 306 | __raw_writeb(pm_osiris_ctrl0, OSIRIS_VA_CTRL0); |
306 | 307 | ||
307 | s3c2410_gpio_cfgpin(S3C2410_GPA21, S3C2410_GPA21_nRSTOUT); | 308 | s3c2410_gpio_cfgpin(S3C2410_GPA(21), S3C2410_GPA21_nRSTOUT); |
308 | 309 | ||
309 | return 0; | 310 | return 0; |
310 | } | 311 | } |
@@ -384,7 +385,7 @@ static void __init osiris_map_io(void) | |||
384 | osiris_nand_sets[0].nr_partitions = ARRAY_SIZE(osiris_default_nand_part_large); | 385 | osiris_nand_sets[0].nr_partitions = ARRAY_SIZE(osiris_default_nand_part_large); |
385 | } else { | 386 | } else { |
386 | /* write-protect line to the NAND */ | 387 | /* write-protect line to the NAND */ |
387 | s3c2410_gpio_setpin(S3C2410_GPA0, 1); | 388 | s3c2410_gpio_setpin(S3C2410_GPA(0), 1); |
388 | } | 389 | } |
389 | 390 | ||
390 | /* fix bus configuration (nBE settings wrong on ABLE pre v2.20) */ | 391 | /* fix bus configuration (nBE settings wrong on ABLE pre v2.20) */ |