blob: c91d10b82f087e9aede72a3dce7ef1c2cb301035 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Heiko Stuebnerf35ef7c2012-01-31 20:06:07 +09002/*
Russell Kinga09e64f2008-08-05 16:14:15 +01003 * Copyright (c) 2006 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
5 *
6 * S3C2410 - SPI Controller platform_device info
Russell Kinga09e64f2008-08-05 16:14:15 +01007*/
8
Heiko Stuebnerf35ef7c2012-01-31 20:06:07 +09009#ifndef __LINUX_SPI_S3C24XX_H
10#define __LINUX_SPI_S3C24XX_H __FILE__
Russell Kinga09e64f2008-08-05 16:14:15 +010011
12struct s3c2410_spi_info {
Ben Dooksee9c1fb2009-01-06 14:41:44 -080013 int pin_cs; /* simple gpio cs */
Russell Kinga09e64f2008-08-05 16:14:15 +010014 unsigned int num_cs; /* total chipselects */
15 int bus_num; /* bus number to use. */
16
Ben Dooksbec08062009-12-14 22:20:24 -080017 unsigned int use_fiq:1; /* use fiq */
18
Ben Dookscf46b972008-10-15 22:02:41 -070019 void (*gpio_setup)(struct s3c2410_spi_info *spi, int enable);
Russell Kinga09e64f2008-08-05 16:14:15 +010020 void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol);
21};
22
Sachin Kamat85a90122013-12-31 14:00:39 +053023extern int s3c24xx_set_fiq(unsigned int irq, bool on);
24
Heiko Stuebnerf35ef7c2012-01-31 20:06:07 +090025#endif /* __LINUX_SPI_S3C24XX_H */