blob: c23b923e493b1e71542f97613304ee403a4d8188 [file] [log] [blame]
Heiko Stuebnerf35ef7c2012-01-31 20:06:07 +09001/*
Russell Kinga09e64f2008-08-05 16:14:15 +01002 * 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 Stuebnerf35ef7c2012-01-31 20:06:07 +090012#ifndef __LINUX_SPI_S3C24XX_H
13#define __LINUX_SPI_S3C24XX_H __FILE__
Russell Kinga09e64f2008-08-05 16:14:15 +010014
15struct s3c2410_spi_info {
Ben Dooksee9c1fb2009-01-06 14:41:44 -080016 int pin_cs; /* simple gpio cs */
Russell Kinga09e64f2008-08-05 16:14:15 +010017 unsigned int num_cs; /* total chipselects */
18 int bus_num; /* bus number to use. */
19
Ben Dooksbec08062009-12-14 22:20:24 -080020 unsigned int use_fiq:1; /* use fiq */
21
Ben Dookscf46b972008-10-15 22:02:41 -070022 void (*gpio_setup)(struct s3c2410_spi_info *spi, int enable);
Russell Kinga09e64f2008-08-05 16:14:15 +010023 void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol);
24};
25
Heiko Stuebnerf35ef7c2012-01-31 20:06:07 +090026#endif /* __LINUX_SPI_S3C24XX_H */