Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
linux
platform_data
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
26
struct
s3c64xx_spi_csinfo
{
27
u8
fb_delay
;
28
unsigned
line
;
29
};
30
37
struct
s3c64xx_spi_info
{
38
int
src_clk_nr
;
39
int
num_cs
;
40
int
(*
cfg_gpio
)(
void
);
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
65
extern
struct
s3c64xx_spi_info
s3c64xx_spi0_pdata
;
66
extern
struct
s3c64xx_spi_info
s3c64xx_spi1_pdata
;
67
extern
struct
s3c64xx_spi_info
s3c64xx_spi2_pdata
;
68
#endif
/* __S3C64XX_PLAT_SPI_H */
Generated on Thu Jan 10 2013 14:52:21 for Linux Kernel by
1.8.2