blob: 39dfae1f46e7f91f6b943c6d43c19654bcbd3fe6 [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>
Padmavathi Venna4566c7f2011-12-23 10:14:36 +09007#include <plat/gpio-cfg.h>
Linus Walleijb0161ca2014-01-14 14:24:24 +01008#include <mach/gpio-samsung.h>
Padmavathi Venna4566c7f2011-12-23 10:14:36 +09009
10#ifdef CONFIG_S3C64XX_DEV_SPI0
Thomas Abraham868dee92012-07-13 07:15:14 +090011int s3c64xx_spi0_cfg_gpio(void)
Padmavathi Venna4566c7f2011-12-23 10:14:36 +090012{
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 Abraham868dee92012-07-13 07:15:14 +090020int s3c64xx_spi1_cfg_gpio(void)
Padmavathi Venna4566c7f2011-12-23 10:14:36 +090021{
22 s3c_gpio_cfgall_range(S3C64XX_GPC(4), 3,
23 S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP);
24 return 0;
25}
26#endif