blob: 497aff71c29ccb9dddc1ca9bcbcb3b020e6688a8 [file] [log] [blame]
Krzysztof Kozlowski28a196f2017-12-25 20:54:33 +01001// SPDX-License-Identifier: GPL-2.0
2//
3// Copyright (C) 2011 Samsung Electronics Ltd.
4// http://www.samsung.com/
Padmavathi Venna4566c7f2011-12-23 10:14:36 +09005
6#include <linux/gpio.h>
Krzysztof Kozlowski0e771122020-08-04 21:26:44 +02007#include <linux/platform_data/spi-s3c64xx.h>
Arnd Bergmannc6ff1322019-09-02 18:37:30 +02008#include "gpio-cfg.h"
9#include "gpio-samsung.h"
Padmavathi Venna4566c7f2011-12-23 10:14:36 +090010
11#ifdef CONFIG_S3C64XX_DEV_SPI0
Thomas Abraham868dee92012-07-13 07:15:14 +090012int s3c64xx_spi0_cfg_gpio(void)
Padmavathi Venna4566c7f2011-12-23 10:14:36 +090013{
14 s3c_gpio_cfgall_range(S3C64XX_GPC(0), 3,
15 S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP);
16 return 0;
17}
18#endif