aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2013-06-02 09:53:01 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-06-03 15:54:54 -0400
commitc992219825823cad5e11fab3854eb93df2e9ffa1 (patch)
treeb836415cad83096dd66aa8f2b969a9dc4c0f0726 /include/linux/platform_data
parent911373cca1b45571b62938f8f19cec24cb102471 (diff)
cw1200: move platform_data header to correct location.
(As suggested by Arnd Bergmann) Signed-off-by: Solomon Peachy <pizza@shaftnet.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/cw1200_platform.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/include/linux/platform_data/cw1200_platform.h b/include/linux/platform_data/cw1200_platform.h
new file mode 100644
index 000000000000..c168fa512347
--- /dev/null
+++ b/include/linux/platform_data/cw1200_platform.h
@@ -0,0 +1,46 @@
1/*
2 * Copyright (C) ST-Ericsson SA 2011
3 *
4 * Author: Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>
5 * License terms: GNU General Public License (GPL) version 2
6 */
7
8#ifndef CW1200_PLAT_H_INCLUDED
9#define CW1200_PLAT_H_INCLUDED
10
11struct cw1200_platform_data_spi {
12 u8 spi_bits_per_word; /* REQUIRED */
13 u16 ref_clk; /* REQUIRED (in KHz) */
14
15 /* All others are optional */
16 bool have_5ghz;
17 const struct resource *reset; /* GPIO to RSTn signal */
18 const struct resource *powerup; /* GPIO to POWERUP signal */
19 int (*power_ctrl)(const struct cw1200_platform_data_spi *pdata,
20 bool enable); /* Control 3v3 / 1v8 supply */
21 int (*clk_ctrl)(const struct cw1200_platform_data_spi *pdata,
22 bool enable); /* Control CLK32K */
23 const u8 *macaddr; /* if NULL, use cw1200_mac_template module parameter */
24 const char *sdd_file; /* if NULL, will use default for detected hw type */
25};
26
27struct cw1200_platform_data_sdio {
28 u16 ref_clk; /* REQUIRED (in KHz) */
29
30 /* All others are optional */
31 const struct resource *irq; /* if using GPIO for IRQ */
32 bool have_5ghz;
33 bool no_nptb; /* SDIO hardware does not support non-power-of-2-blocksizes */
34 const struct resource *reset; /* GPIO to RSTn signal */
35 const struct resource *powerup; /* GPIO to POWERUP signal */
36 int (*power_ctrl)(const struct cw1200_platform_data_sdio *pdata,
37 bool enable); /* Control 3v3 / 1v8 supply */
38 int (*clk_ctrl)(const struct cw1200_platform_data_sdio *pdata,
39 bool enable); /* Control CLK32K */
40 const u8 *macaddr; /* if NULL, use cw1200_mac_template module parameter */
41 const char *sdd_file; /* if NULL, will use default for detected hw type */
42};
43
44const void *cw1200_get_platform_data(void);
45
46#endif /* CW1200_PLAT_H_INCLUDED */