diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-07 15:15:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-07 15:15:36 -0500 |
commit | fbce1c234feedb5270468aa4b1770c1cab58a960 (patch) | |
tree | 7391d7bcce50eab43c750c4055b056ab1892d6b2 /drivers/gpio/gpio-samsung.c | |
parent | 7affca3537d74365128e477b40c529d6f2fe86c8 (diff) | |
parent | d0ad5e89256c351ddd40167152c24a88efcb0f6d (diff) |
Merge tag 'gpio-for-linus' of git://git.secretlab.ca/git/linux-2.6
Changes queued in gpio/next for the start of the 3.3 merge window
* tag 'gpio-for-linus-20120104' of git://git.secretlab.ca/git/linux-2.6:
gpio: Add decode of WM8994 GPIO configuration
gpio: Convert GPIO drivers to module_platform_driver
gpio: Fix typo in comment in Samsung driver
gpio: Explicitly index samsung_gpio_cfgs
gpio: Add Linus Walleij as gpio co-maintainer
of: Add device tree selftests
of: create of_phandle_args to simplify return of phandle parsing data
gpio/powerpc: Eliminate duplication of of_get_named_gpio_flags()
gpio/microblaze: Eliminate duplication of of_get_named_gpio_flags()
gpiolib: output basic details and consolidate gpio device drivers
pch_gpio: Change company name OKI SEMICONDUCTOR to LAPIS Semiconductor
pch_gpio: Support new device LAPIS Semiconductor ML7831 IOH
spi/pl022: make the chip deselect handling thread safe
spi/pl022: add support for pm_runtime autosuspend
spi/pl022: disable the PL022 block when unused
spi/pl022: move device disable to workqueue thread
spi/pl022: skip default configuration before suspending
spi/pl022: fix build warnings
spi/pl022: only enable RX interrupts when TX is complete
Diffstat (limited to 'drivers/gpio/gpio-samsung.c')
-rw-r--r-- | drivers/gpio/gpio-samsung.c | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c index dcbe4541fe49..ab098ba9f1dd 100644 --- a/drivers/gpio/gpio-samsung.c +++ b/drivers/gpio/gpio-samsung.c | |||
@@ -230,7 +230,7 @@ static int samsung_gpio_setcfg_2bit(struct samsung_gpio_chip *chip, | |||
230 | * @chip: The gpio chip that is being configured. | 230 | * @chip: The gpio chip that is being configured. |
231 | * @off: The offset for the GPIO being configured. | 231 | * @off: The offset for the GPIO being configured. |
232 | * | 232 | * |
233 | * The reverse of samsung_gpio_setcfg_2bit(). Will return a value whicg | 233 | * The reverse of samsung_gpio_setcfg_2bit(). Will return a value which |
234 | * could be directly passed back to samsung_gpio_setcfg_2bit(), from the | 234 | * could be directly passed back to samsung_gpio_setcfg_2bit(), from the |
235 | * S3C_GPIO_SPECIAL() macro. | 235 | * S3C_GPIO_SPECIAL() macro. |
236 | */ | 236 | */ |
@@ -467,33 +467,42 @@ static struct samsung_gpio_cfg s5p64x0_gpio_cfg_rbank = { | |||
467 | #endif | 467 | #endif |
468 | 468 | ||
469 | static struct samsung_gpio_cfg samsung_gpio_cfgs[] = { | 469 | static struct samsung_gpio_cfg samsung_gpio_cfgs[] = { |
470 | { | 470 | [0] = { |
471 | .cfg_eint = 0x0, | 471 | .cfg_eint = 0x0, |
472 | }, { | 472 | }, |
473 | [1] = { | ||
473 | .cfg_eint = 0x3, | 474 | .cfg_eint = 0x3, |
474 | }, { | 475 | }, |
476 | [2] = { | ||
475 | .cfg_eint = 0x7, | 477 | .cfg_eint = 0x7, |
476 | }, { | 478 | }, |
479 | [3] = { | ||
477 | .cfg_eint = 0xF, | 480 | .cfg_eint = 0xF, |
478 | }, { | 481 | }, |
482 | [4] = { | ||
479 | .cfg_eint = 0x0, | 483 | .cfg_eint = 0x0, |
480 | .set_config = samsung_gpio_setcfg_2bit, | 484 | .set_config = samsung_gpio_setcfg_2bit, |
481 | .get_config = samsung_gpio_getcfg_2bit, | 485 | .get_config = samsung_gpio_getcfg_2bit, |
482 | }, { | 486 | }, |
487 | [5] = { | ||
483 | .cfg_eint = 0x2, | 488 | .cfg_eint = 0x2, |
484 | .set_config = samsung_gpio_setcfg_2bit, | 489 | .set_config = samsung_gpio_setcfg_2bit, |
485 | .get_config = samsung_gpio_getcfg_2bit, | 490 | .get_config = samsung_gpio_getcfg_2bit, |
486 | }, { | 491 | }, |
492 | [6] = { | ||
487 | .cfg_eint = 0x3, | 493 | .cfg_eint = 0x3, |
488 | .set_config = samsung_gpio_setcfg_2bit, | 494 | .set_config = samsung_gpio_setcfg_2bit, |
489 | .get_config = samsung_gpio_getcfg_2bit, | 495 | .get_config = samsung_gpio_getcfg_2bit, |
490 | }, { | 496 | }, |
497 | [7] = { | ||
491 | .set_config = samsung_gpio_setcfg_2bit, | 498 | .set_config = samsung_gpio_setcfg_2bit, |
492 | .get_config = samsung_gpio_getcfg_2bit, | 499 | .get_config = samsung_gpio_getcfg_2bit, |
493 | }, { | 500 | }, |
501 | [8] = { | ||
494 | .set_pull = exynos4_gpio_setpull, | 502 | .set_pull = exynos4_gpio_setpull, |
495 | .get_pull = exynos4_gpio_getpull, | 503 | .get_pull = exynos4_gpio_getpull, |
496 | }, { | 504 | }, |
505 | [9] = { | ||
497 | .cfg_eint = 0x3, | 506 | .cfg_eint = 0x3, |
498 | .set_pull = exynos4_gpio_setpull, | 507 | .set_pull = exynos4_gpio_setpull, |
499 | .get_pull = exynos4_gpio_getpull, | 508 | .get_pull = exynos4_gpio_getpull, |