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> |
Krzysztof Kozlowski | 0e77112 | 2020-08-04 21:26:44 +0200 | [diff] [blame] | 7 | #include <linux/platform_data/spi-s3c64xx.h> |
Arnd Bergmann | c6ff132 | 2019-09-02 18:37:30 +0200 | [diff] [blame] | 8 | #include "gpio-cfg.h" |
| 9 | #include "gpio-samsung.h" |
Padmavathi Venna | 4566c7f | 2011-12-23 10:14:36 +0900 | [diff] [blame] | 10 | |
| 11 | #ifdef CONFIG_S3C64XX_DEV_SPI0 |
Thomas Abraham | 868dee9 | 2012-07-13 07:15:14 +0900 | [diff] [blame] | 12 | int s3c64xx_spi0_cfg_gpio(void) |
Padmavathi Venna | 4566c7f | 2011-12-23 10:14:36 +0900 | [diff] [blame] | 13 | { |
| 14 | s3c_gpio_cfgall_range(S3C64XX_GPC(0), 3, |
| 15 | S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP); |
| 16 | return 0; |
| 17 | } |
| 18 | #endif |
| 19 | |
| 20 | #ifdef CONFIG_S3C64XX_DEV_SPI1 |
Thomas Abraham | 868dee9 | 2012-07-13 07:15:14 +0900 | [diff] [blame] | 21 | int s3c64xx_spi1_cfg_gpio(void) |
Padmavathi Venna | 4566c7f | 2011-12-23 10:14:36 +0900 | [diff] [blame] | 22 | { |
| 23 | s3c_gpio_cfgall_range(S3C64XX_GPC(4), 3, |
| 24 | S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP); |
| 25 | return 0; |
| 26 | } |
| 27 | #endif |