Krzysztof Kozlowski | 28a196f | 2017-12-25 20:54:33 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | // |
| 3 | // Copyright (C) 2011 Samsung Electronics Ltd. |
| 4 | // http://www.samsung.com/ |
Padmavathi Venna | 4566c7f | 2011-12-23 10:14:36 +0900 | [diff] [blame] | 5 | |
| 6 | #include <linux/gpio.h> |
Padmavathi Venna | 4566c7f | 2011-12-23 10:14:36 +0900 | [diff] [blame] | 7 | #include <plat/gpio-cfg.h> |
Linus Walleij | b0161ca | 2014-01-14 14:24:24 +0100 | [diff] [blame] | 8 | #include <mach/gpio-samsung.h> |
Padmavathi Venna | 4566c7f | 2011-12-23 10:14:36 +0900 | [diff] [blame] | 9 | |
| 10 | #ifdef CONFIG_S3C64XX_DEV_SPI0 |
Thomas Abraham | 868dee9 | 2012-07-13 07:15:14 +0900 | [diff] [blame] | 11 | int s3c64xx_spi0_cfg_gpio(void) |
Padmavathi Venna | 4566c7f | 2011-12-23 10:14:36 +0900 | [diff] [blame] | 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 |
Thomas Abraham | 868dee9 | 2012-07-13 07:15:14 +0900 | [diff] [blame] | 20 | int s3c64xx_spi1_cfg_gpio(void) |
Padmavathi Venna | 4566c7f | 2011-12-23 10:14:36 +0900 | [diff] [blame] | 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 |