Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
spi-s3c64xx.h
Go to the documentation of this file.
1 /* linux/arch/arm/plat-samsung/include/plat/s3c64xx-spi.h
2  *
3  * Copyright (C) 2009 Samsung Electronics Ltd.
4  * Jaswinder Singh <[email protected]>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10 
11 #ifndef __S3C64XX_PLAT_SPI_H
12 #define __S3C64XX_PLAT_SPI_H
13 
14 struct platform_device;
15 
28  unsigned line;
29 };
30 
39  int num_cs;
41 };
42 
53 extern void s3c64xx_spi0_set_platdata(int (*cfg_gpio)(void), int src_clk_nr,
54  int num_cs);
55 extern void s3c64xx_spi1_set_platdata(int (*cfg_gpio)(void), int src_clk_nr,
56  int num_cs);
57 extern void s3c64xx_spi2_set_platdata(int (*cfg_gpio)(void), int src_clk_nr,
58  int num_cs);
59 
60 /* defined by architecture to configure gpio */
61 extern int s3c64xx_spi0_cfg_gpio(void);
62 extern int s3c64xx_spi1_cfg_gpio(void);
63 extern int s3c64xx_spi2_cfg_gpio(void);
64 
68 #endif /* __S3C64XX_PLAT_SPI_H */