Merge tag 'nfs-for-4.16-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[sfrench/cifs-2.6.git] / arch / arm / mach-s3c64xx / setup-spi.c
1 // SPDX-License-Identifier: GPL-2.0
2 //
3 // Copyright (C) 2011 Samsung Electronics Ltd.
4 //              http://www.samsung.com/
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