diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/spi-tegra.h | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'include/linux/spi-tegra.h')
-rw-r--r-- | include/linux/spi-tegra.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/include/linux/spi-tegra.h b/include/linux/spi-tegra.h new file mode 100644 index 00000000000..38096500551 --- /dev/null +++ b/include/linux/spi-tegra.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | * include/linux/spi-tegra.c | ||
3 | * | ||
4 | * Copyright (C) 2011 NVIDIA Corporation | ||
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 as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
14 | * more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
19 | */ | ||
20 | |||
21 | #ifndef _LINUX_SPI_TEGRA_H | ||
22 | #define _LINUX_SPI_TEGRA_H | ||
23 | |||
24 | #include <linux/clk.h> | ||
25 | |||
26 | struct spi_clk_parent { | ||
27 | const char *name; | ||
28 | struct clk *parent_clk; | ||
29 | unsigned long fixed_clk_rate; | ||
30 | }; | ||
31 | |||
32 | struct tegra_spi_platform_data { | ||
33 | bool is_dma_based; | ||
34 | int max_dma_buffer; | ||
35 | bool is_clkon_always; | ||
36 | unsigned int max_rate; | ||
37 | struct spi_clk_parent *parent_clk_list; | ||
38 | int parent_clk_count; | ||
39 | }; | ||
40 | |||
41 | /* Controller data from device to pass some info like | ||
42 | * hw based chip select can be used or not and if yes | ||
43 | * then CS hold and setup time. */ | ||
44 | struct tegra_spi_device_controller_data { | ||
45 | bool is_hw_based_cs; | ||
46 | int cs_setup_clk_count; | ||
47 | int cs_hold_clk_count; | ||
48 | }; | ||
49 | |||
50 | #endif /* _LINUX_SPI_TEGRA_H */ | ||