blob: c91d10b82f087e9aede72a3dce7ef1c2cb301035 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright (c) 2006 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
5 *
6 * S3C2410 - SPI Controller platform_device info
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00007*/
8
9#ifndef __LINUX_SPI_S3C24XX_H
10#define __LINUX_SPI_S3C24XX_H __FILE__
11
12struct s3c2410_spi_info {
13 int pin_cs; /* simple gpio cs */
14 unsigned int num_cs; /* total chipselects */
15 int bus_num; /* bus number to use. */
16
17 unsigned int use_fiq:1; /* use fiq */
18
19 void (*gpio_setup)(struct s3c2410_spi_info *spi, int enable);
20 void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol);
21};
22
23extern int s3c24xx_set_fiq(unsigned int irq, bool on);
24
25#endif /* __LINUX_SPI_S3C24XX_H */