Heiko Stuebner | f35ef7c | 2012-01-31 20:06:07 +0900 | [diff] [blame] | 1 | /* |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 2 | * Copyright (c) 2006 Simtec Electronics |
| 3 | * Ben Dooks <ben@simtec.co.uk> |
| 4 | * |
| 5 | * S3C2410 - SPI Controller platform_device info |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
Heiko Stuebner | f35ef7c | 2012-01-31 20:06:07 +0900 | [diff] [blame] | 12 | #ifndef __LINUX_SPI_S3C24XX_H |
| 13 | #define __LINUX_SPI_S3C24XX_H __FILE__ |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 14 | |
| 15 | struct s3c2410_spi_info { |
Ben Dooks | ee9c1fb | 2009-01-06 14:41:44 -0800 | [diff] [blame] | 16 | int pin_cs; /* simple gpio cs */ |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 17 | unsigned int num_cs; /* total chipselects */ |
| 18 | int bus_num; /* bus number to use. */ |
| 19 | |
Ben Dooks | bec0806 | 2009-12-14 22:20:24 -0800 | [diff] [blame] | 20 | unsigned int use_fiq:1; /* use fiq */ |
| 21 | |
Ben Dooks | cf46b97 | 2008-10-15 22:02:41 -0700 | [diff] [blame] | 22 | void (*gpio_setup)(struct s3c2410_spi_info *spi, int enable); |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 23 | void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol); |
| 24 | }; |
| 25 | |
Heiko Stuebner | f35ef7c | 2012-01-31 20:06:07 +0900 | [diff] [blame] | 26 | #endif /* __LINUX_SPI_S3C24XX_H */ |