Lines Matching +full:gpio +full:- +full:width
1 // SPDX-License-Identifier: GPL-2.0
7 // S3C64XX - Helper functions for setting up SDHCI device(s) GPIO (HSMMC)
14 #include <linux/gpio.h>
16 #include "gpio-cfg.h"
18 #include "gpio-samsung.h"
20 void s3c64xx_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width) in s3c64xx_setup_sdhci0_cfg_gpio() argument
22 struct s3c_sdhci_platdata *pdata = dev->dev.platform_data; in s3c64xx_setup_sdhci0_cfg_gpio()
24 /* Set all the necessary GPG pins to special-function 2 */ in s3c64xx_setup_sdhci0_cfg_gpio()
25 s3c_gpio_cfgrange_nopull(S3C64XX_GPG(0), 2 + width, S3C_GPIO_SFN(2)); in s3c64xx_setup_sdhci0_cfg_gpio()
27 if (pdata->cd_type == S3C_SDHCI_CD_INTERNAL) { in s3c64xx_setup_sdhci0_cfg_gpio()
33 void s3c64xx_setup_sdhci1_cfg_gpio(struct platform_device *dev, int width) in s3c64xx_setup_sdhci1_cfg_gpio() argument
35 struct s3c_sdhci_platdata *pdata = dev->dev.platform_data; in s3c64xx_setup_sdhci1_cfg_gpio()
37 /* Set all the necessary GPH pins to special-function 2 */ in s3c64xx_setup_sdhci1_cfg_gpio()
38 s3c_gpio_cfgrange_nopull(S3C64XX_GPH(0), 2 + width, S3C_GPIO_SFN(2)); in s3c64xx_setup_sdhci1_cfg_gpio()
40 if (pdata->cd_type == S3C_SDHCI_CD_INTERNAL) { in s3c64xx_setup_sdhci1_cfg_gpio()
46 void s3c64xx_setup_sdhci2_cfg_gpio(struct platform_device *dev, int width) in s3c64xx_setup_sdhci2_cfg_gpio() argument
48 /* Set all the necessary GPH pins to special-function 3 */ in s3c64xx_setup_sdhci2_cfg_gpio()
49 s3c_gpio_cfgrange_nopull(S3C64XX_GPH(6), width, S3C_GPIO_SFN(3)); in s3c64xx_setup_sdhci2_cfg_gpio()
51 /* Set all the necessary GPC pins to special-function 3 */ in s3c64xx_setup_sdhci2_cfg_gpio()