Merge tag 'net-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[linux-2.6-microblaze.git] / arch / arm / mach-s3c / setup-sdhci-gpio-s3c24xx.c
1 // SPDX-License-Identifier: GPL-2.0
2 //
3 // Copyright 2010 Promwad Innovation Company
4 //      Yauhen Kharuzhy <yauhen.kharuzhy@promwad.com>
5 //
6 // S3C2416 - Helper functions for setting up SDHCI device(s) GPIO (HSMMC)
7 //
8 // Based on mach-s3c64xx/setup-sdhci-gpio.c
9
10 #include <linux/kernel.h>
11 #include <linux/types.h>
12 #include <linux/interrupt.h>
13 #include <linux/platform_device.h>
14 #include <linux/io.h>
15 #include <linux/gpio.h>
16
17 #include "regs-gpio.h"
18 #include "gpio-samsung.h"
19 #include "gpio-cfg.h"
20 #include "sdhci.h"
21
22 void s3c2416_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width)
23 {
24         s3c_gpio_cfgrange_nopull(S3C2410_GPE(5), 2 + width, S3C_GPIO_SFN(2));
25 }
26
27 void s3c2416_setup_sdhci1_cfg_gpio(struct platform_device *dev, int width)
28 {
29         s3c_gpio_cfgrange_nopull(S3C2410_GPL(0), width, S3C_GPIO_SFN(2));
30         s3c_gpio_cfgrange_nopull(S3C2410_GPL(8), 2, S3C_GPIO_SFN(2));
31 }