Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252381
b: refs/heads/master
c: 3185847
h: refs/heads/master
i:
  252379: 58e986f
v: v3
  • Loading branch information
Joonyoung Shim authored and Kukjin Kim committed May 6, 2011
1 parent 89a99c3 commit d431ba2
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 797 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: 14587b8d4be652fccc8e0e82ae9baa4365b06d9b
refs/heads/master: 3185847957d4834d1b30b253b1c71bb05bad7265
20 changes: 7 additions & 13 deletions trunk/arch/arm/mach-s3c64xx/dev-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#include <mach/dma.h>
#include <mach/map.h>
#include <mach/gpio-bank-c.h>
#include <mach/spi-clocks.h>
#include <mach/irqs.h>

Expand All @@ -40,30 +39,25 @@ static char *spi_src_clks[] = {
*/
static int s3c64xx_spi_cfg_gpio(struct platform_device *pdev)
{
unsigned int base;

switch (pdev->id) {
case 0:
s3c_gpio_cfgpin(S3C64XX_GPC(0), S3C64XX_GPC0_SPI_MISO0);
s3c_gpio_cfgpin(S3C64XX_GPC(1), S3C64XX_GPC1_SPI_CLKO);
s3c_gpio_cfgpin(S3C64XX_GPC(2), S3C64XX_GPC2_SPI_MOSIO);
s3c_gpio_setpull(S3C64XX_GPC(0), S3C_GPIO_PULL_UP);
s3c_gpio_setpull(S3C64XX_GPC(1), S3C_GPIO_PULL_UP);
s3c_gpio_setpull(S3C64XX_GPC(2), S3C_GPIO_PULL_UP);
base = S3C64XX_GPC(0);
break;

case 1:
s3c_gpio_cfgpin(S3C64XX_GPC(4), S3C64XX_GPC4_SPI_MISO1);
s3c_gpio_cfgpin(S3C64XX_GPC(5), S3C64XX_GPC5_SPI_CLK1);
s3c_gpio_cfgpin(S3C64XX_GPC(6), S3C64XX_GPC6_SPI_MOSI1);
s3c_gpio_setpull(S3C64XX_GPC(4), S3C_GPIO_PULL_UP);
s3c_gpio_setpull(S3C64XX_GPC(5), S3C_GPIO_PULL_UP);
s3c_gpio_setpull(S3C64XX_GPC(6), S3C_GPIO_PULL_UP);
base = S3C64XX_GPC(4);
break;

default:
dev_err(&pdev->dev, "Invalid SPI Controller number!");
return -EINVAL;
}

s3c_gpio_cfgall_range(base, 3,
S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP);

return 0;
}

Expand Down
48 changes: 0 additions & 48 deletions trunk/arch/arm/mach-s3c64xx/include/mach/gpio-bank-a.h

This file was deleted.

60 changes: 0 additions & 60 deletions trunk/arch/arm/mach-s3c64xx/include/mach/gpio-bank-b.h

This file was deleted.

53 changes: 0 additions & 53 deletions trunk/arch/arm/mach-s3c64xx/include/mach/gpio-bank-c.h

This file was deleted.

49 changes: 0 additions & 49 deletions trunk/arch/arm/mach-s3c64xx/include/mach/gpio-bank-d.h

This file was deleted.

44 changes: 0 additions & 44 deletions trunk/arch/arm/mach-s3c64xx/include/mach/gpio-bank-e.h

This file was deleted.

71 changes: 0 additions & 71 deletions trunk/arch/arm/mach-s3c64xx/include/mach/gpio-bank-f.h

This file was deleted.

Loading

0 comments on commit d431ba2

Please sign in to comment.