Commit | Line | Data |
---|---|---|
d2912cb1 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
f35ef7ca | 2 | /* |
7fba5340 BD |
3 | * Copyright (c) 2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | |
5 | * | |
6 | * S3C2410 - SPI Controller platform_device info | |
7fba5340 BD |
7 | */ |
8 | ||
f35ef7ca HS |
9 | #ifndef __LINUX_SPI_S3C24XX_H |
10 | #define __LINUX_SPI_S3C24XX_H __FILE__ | |
7fba5340 | 11 | |
7fba5340 | 12 | struct s3c2410_spi_info { |
ee9c1fbf | 13 | int pin_cs; /* simple gpio cs */ |
d1e77806 | 14 | unsigned int num_cs; /* total chipselects */ |
cb1d0a7a | 15 | int bus_num; /* bus number to use. */ |
7fba5340 | 16 | |
bec0806c BD |
17 | unsigned int use_fiq:1; /* use fiq */ |
18 | ||
cf46b973 | 19 | void (*gpio_setup)(struct s3c2410_spi_info *spi, int enable); |
7fba5340 BD |
20 | void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol); |
21 | }; | |
22 | ||
85a90124 SK |
23 | extern int s3c24xx_set_fiq(unsigned int irq, bool on); |
24 | ||
f35ef7ca | 25 | #endif /* __LINUX_SPI_S3C24XX_H */ |