Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Heiko Stuebner | f35ef7c | 2012-01-31 20:06:07 +0900 | [diff] [blame] | 2 | /* |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 3 | * Copyright (c) 2006 Simtec Electronics |
| 4 | * Ben Dooks <ben@simtec.co.uk> |
| 5 | * |
| 6 | * S3C2410 - SPI Controller platform_device info |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 7 | */ |
| 8 | |
Heiko Stuebner | f35ef7c | 2012-01-31 20:06:07 +0900 | [diff] [blame] | 9 | #ifndef __LINUX_SPI_S3C24XX_H |
| 10 | #define __LINUX_SPI_S3C24XX_H __FILE__ |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 11 | |
| 12 | struct s3c2410_spi_info { |
Ben Dooks | ee9c1fb | 2009-01-06 14:41:44 -0800 | [diff] [blame] | 13 | int pin_cs; /* simple gpio cs */ |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 14 | unsigned int num_cs; /* total chipselects */ |
| 15 | int bus_num; /* bus number to use. */ |
| 16 | |
Ben Dooks | bec0806 | 2009-12-14 22:20:24 -0800 | [diff] [blame] | 17 | unsigned int use_fiq:1; /* use fiq */ |
| 18 | |
Ben Dooks | cf46b97 | 2008-10-15 22:02:41 -0700 | [diff] [blame] | 19 | void (*gpio_setup)(struct s3c2410_spi_info *spi, int enable); |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 20 | void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol); |
| 21 | }; |
| 22 | |
Sachin Kamat | 85a9012 | 2013-12-31 14:00:39 +0530 | [diff] [blame] | 23 | extern int s3c24xx_set_fiq(unsigned int irq, bool on); |
| 24 | |
Heiko Stuebner | f35ef7c | 2012-01-31 20:06:07 +0900 | [diff] [blame] | 25 | #endif /* __LINUX_SPI_S3C24XX_H */ |