![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 // 0003 // HS-SPI device setup for S3C2443/S3C2416 0004 // 0005 // Copyright (C) 2011 Samsung Electronics Ltd. 0006 // http://www.samsung.com/ 0007 0008 #include <linux/gpio.h> 0009 #include <linux/platform_device.h> 0010 0011 #include "gpio-cfg.h" 0012 0013 #include "hardware-s3c24xx.h" 0014 #include "regs-gpio.h" 0015 0016 #ifdef CONFIG_S3C64XX_DEV_SPI0 0017 int s3c64xx_spi0_cfg_gpio(void) 0018 { 0019 /* enable hsspi bit in misccr */ 0020 s3c2410_modify_misccr(S3C2416_MISCCR_HSSPI_EN2, 1); 0021 0022 s3c_gpio_cfgall_range(S3C2410_GPE(11), 3, 0023 S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP); 0024 0025 return 0; 0026 } 0027 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |