Skip to content

Commit

Permalink
ARM: S3C64XX: Remove gpio-bank-X header files
Browse files Browse the repository at this point in the history
The gpio-bank-X header files of S3C64XX have definitions
which can be substituted by other common GPIO API.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Joonyoung Shim authored and Kukjin Kim committed May 6, 2011
1 parent 14587b8 commit 3185847
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 796 deletions.
20 changes: 7 additions & 13 deletions 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 arch/arm/mach-s3c64xx/include/mach/gpio-bank-a.h

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Loading

0 comments on commit 3185847

Please sign in to comment.