Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / arm / mach-s3c / setup-spi-s3c64xx.c
blobefcf78d41585389d82ed1d83a1966e21b5b047e5
1 // SPDX-License-Identifier: GPL-2.0
2 //
3 // Copyright (C) 2011 Samsung Electronics Ltd.
4 // http://www.samsung.com/
6 #include <linux/gpio.h>
7 #include <linux/platform_data/spi-s3c64xx.h>
8 #include "gpio-cfg.h"
9 #include "gpio-samsung.h"
11 #ifdef CONFIG_S3C64XX_DEV_SPI0
12 int s3c64xx_spi0_cfg_gpio(void)
14 s3c_gpio_cfgall_range(S3C64XX_GPC(0), 3,
15 S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP);
16 return 0;
18 #endif
20 #ifdef CONFIG_S3C64XX_DEV_SPI1
21 int s3c64xx_spi1_cfg_gpio(void)
23 s3c_gpio_cfgall_range(S3C64XX_GPC(4), 3,
24 S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP);
25 return 0;
27 #endif