Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264013
b: refs/heads/master
c: d03c359
h: refs/heads/master
i:
  264011: b15d657
v: v3
  • Loading branch information
Thomas Abraham authored and Kukjin Kim committed Sep 15, 2011
1 parent d2f7866 commit 6ddda9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a0ec25954a2667738f39f34096df3f4cb102983
refs/heads/master: d03c35939d2a447093e60133156217d6512aa9e3
11 changes: 6 additions & 5 deletions trunk/arch/arm/mach-exynos4/setup-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols)

if (rows > 8) {
/* Set all the necessary GPX2 pins: KP_ROW[0~7] */
s3c_gpio_cfgrange_nopull(EXYNOS4_GPX2(0), 8, S3C_GPIO_SFN(3));
s3c_gpio_cfgall_range(EXYNOS4_GPX2(0), 8, S3C_GPIO_SFN(3),
S3C_GPIO_PULL_UP);

/* Set all the necessary GPX3 pins: KP_ROW[8~] */
s3c_gpio_cfgrange_nopull(EXYNOS4_GPX3(0), (rows - 8),
S3C_GPIO_SFN(3));
s3c_gpio_cfgall_range(EXYNOS4_GPX3(0), (rows - 8),
S3C_GPIO_SFN(3), S3C_GPIO_PULL_UP);
} else {
/* Set all the necessary GPX2 pins: KP_ROW[x] */
s3c_gpio_cfgrange_nopull(EXYNOS4_GPX2(0), rows,
S3C_GPIO_SFN(3));
s3c_gpio_cfgall_range(EXYNOS4_GPX2(0), rows, S3C_GPIO_SFN(3),
S3C_GPIO_PULL_UP);
}

/* Set all the necessary GPX1 pins to special-function 3: KP_COL[x] */
Expand Down

0 comments on commit 6ddda9b

Please sign in to comment.