This source file includes following definitions.
- s3c64xx_spi0_cfg_gpio
- s3c64xx_spi1_cfg_gpio
1
2
3
4
5
6 #include <linux/gpio.h>
7 #include <plat/gpio-cfg.h>
8 #include <mach/gpio-samsung.h>
9
10 #ifdef CONFIG_S3C64XX_DEV_SPI0
11 int s3c64xx_spi0_cfg_gpio(void)
12 {
13 s3c_gpio_cfgall_range(S3C64XX_GPC(0), 3,
14 S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP);
15 return 0;
16 }
17 #endif
18
19 #ifdef CONFIG_S3C64XX_DEV_SPI1
20 int s3c64xx_spi1_cfg_gpio(void)
21 {
22 s3c_gpio_cfgall_range(S3C64XX_GPC(4), 3,
23 S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP);
24 return 0;
25 }
26 #endif