Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221121
b: refs/heads/master
c: a7aac9d
h: refs/heads/master
i:
  221119: 5a22a08
v: v3
  • Loading branch information
Kukjin Kim committed Oct 23, 2010
1 parent 62e10b7 commit 51e1467
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 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: 20dbc43dd33a35ee24b6892d980c5e6107a27d32
refs/heads/master: a7aac9d5b037be16d4ef5b1701b83774706daf53
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s5pv210/setup-fb-24bpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

static void s5pv210_fb_cfg_gpios(unsigned int base, unsigned int nr)
{
s3c_gpio_cfgall_range(base, nr, S3C_GPIO_SFN(2), S3C_GPIO_PULL_NONE);
s3c_gpio_cfgrange_nopull(base, nr, S3C_GPIO_SFN(2));

for (; nr > 0; nr--, base++)
s5p_gpio_set_drvstr(base, S5P_GPIO_DRVSTR_LV4);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s5pv210/setup-ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

static void s5pv210_ide_cfg_gpios(unsigned int base, unsigned int nr)
{
s3c_gpio_cfgall_range(base, nr, S3C_GPIO_SFN(4), S3C_GPIO_PULL_NONE);
s3c_gpio_cfgrange_nopull(base, nr, S3C_GPIO_SFN(4));

for (; nr > 0; nr--, base++)
s5p_gpio_set_drvstr(base, S5P_GPIO_DRVSTR_LV4);
Expand Down
6 changes: 2 additions & 4 deletions trunk/arch/arm/mach-s5pv210/setup-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols)
{
/* Set all the necessary GPH3 pins to special-function 3: KP_ROW[x] */
s3c_gpio_cfgall_range(S5PV210_GPH3(0), rows,
S3C_GPIO_SFN(3), S3C_GPIO_PULL_NONE);
s3c_gpio_cfgrange_nopull(S5PV210_GPH3(0), rows, S3C_GPIO_SFN(3));

/* Set all the necessary GPH2 pins to special-function 3: KP_COL[x] */
s3c_gpio_cfgall_range(S5PV210_GPH2(0), cols,
S3C_GPIO_SFN(3), S3C_GPIO_PULL_NONE);
s3c_gpio_cfgrange_nopull(S5PV210_GPH2(0), cols, S3C_GPIO_SFN(3));
}
9 changes: 3 additions & 6 deletions trunk/arch/arm/mach-s5pv210/setup-sdhci-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ void s5pv210_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width)
struct s3c_sdhci_platdata *pdata = dev->dev.platform_data;

/* Set all the necessary GPG0/GPG1 pins to special-function 2 */
s3c_gpio_cfgall_range(S5PV210_GPG0(0), 2,
S3C_GPIO_SFN(2), S3C_GPIO_PULL_NONE);
s3c_gpio_cfgrange_nopull(S5PV210_GPG0(0), 2, S3C_GPIO_SFN(2));

switch (width) {
case 8:
Expand Down Expand Up @@ -93,12 +92,10 @@ void s5pv210_setup_sdhci3_cfg_gpio(struct platform_device *dev, int width)
struct s3c_sdhci_platdata *pdata = dev->dev.platform_data;

/* Set all the necessary GPG3[0:1] pins to special-function 2 */
s3c_gpio_cfgall_range(S5PV210_GPG3(0), 2,
S3C_GPIO_SFN(2), S3C_GPIO_PULL_NONE);
s3c_gpio_cfgrange_nopull(S5PV210_GPG3(0), 2, S3C_GPIO_SFN(2));

/* Data pin GPG3[3:6] to special-function 2 */
s3c_gpio_cfgall_range(S5PV210_GPG3(3), 4,
S3C_GPIO_SFN(2), S3C_GPIO_PULL_NONE);
s3c_gpio_cfgrange_nopull(S5PV210_GPG3(3), 4, S3C_GPIO_SFN(2));

if (pdata->cd_type == S3C_SDHCI_CD_INTERNAL) {
s3c_gpio_setpull(S5PV210_GPG3(2), S3C_GPIO_PULL_UP);
Expand Down

0 comments on commit 51e1467

Please sign in to comment.