diff options
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/ina230.h | 32 | ||||
-rw-r--r-- | include/linux/platform_data/ram_console.h | 22 | ||||
-rw-r--r-- | include/linux/platform_data/tegra_bpc_mgmt.h | 25 | ||||
-rw-r--r-- | include/linux/platform_data/tegra_nor.h | 37 |
4 files changed, 116 insertions, 0 deletions
diff --git a/include/linux/platform_data/ina230.h b/include/linux/platform_data/ina230.h new file mode 100644 index 00000000000..fb1ac28ff62 --- /dev/null +++ b/include/linux/platform_data/ina230.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* | ||
2 | * include/linux/platform_data/ina230.h | ||
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; version 2 of the License. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
13 | * more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License along | ||
16 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | ||
19 | |||
20 | #ifndef _INA230_H | ||
21 | #define _INA230_H | ||
22 | |||
23 | #include <linux/types.h> | ||
24 | |||
25 | struct ina230_platform_data { | ||
26 | const char *rail_name; | ||
27 | s32 current_threshold; | ||
28 | s32 resistor; | ||
29 | s32 min_cores_online; | ||
30 | }; | ||
31 | |||
32 | #endif /* _INA230_H */ | ||
diff --git a/include/linux/platform_data/ram_console.h b/include/linux/platform_data/ram_console.h new file mode 100644 index 00000000000..9f1125c1106 --- /dev/null +++ b/include/linux/platform_data/ram_console.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2010 Google, Inc. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | #ifndef _INCLUDE_LINUX_PLATFORM_DATA_RAM_CONSOLE_H_ | ||
16 | #define _INCLUDE_LINUX_PLATFORM_DATA_RAM_CONSOLE_H_ | ||
17 | |||
18 | struct ram_console_platform_data { | ||
19 | const char *bootinfo; | ||
20 | }; | ||
21 | |||
22 | #endif /* _INCLUDE_LINUX_PLATFORM_DATA_RAM_CONSOLE_H_ */ | ||
diff --git a/include/linux/platform_data/tegra_bpc_mgmt.h b/include/linux/platform_data/tegra_bpc_mgmt.h new file mode 100644 index 00000000000..bdd4862d63a --- /dev/null +++ b/include/linux/platform_data/tegra_bpc_mgmt.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2010-2011 NVIDIA Corporation | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | #ifndef __TEGRA_BPC_MGMT_H | ||
16 | #define __TEGRA_BPC_MGMT_H | ||
17 | #include <linux/cpumask.h> | ||
18 | |||
19 | struct tegra_bpc_mgmt_platform_data { | ||
20 | int gpio_trigger; | ||
21 | struct cpumask affinity_mask; | ||
22 | int bpc_mgmt_timeout; | ||
23 | }; | ||
24 | |||
25 | #endif /*__TEGRA_BPC_MGMT_H*/ | ||
diff --git a/include/linux/platform_data/tegra_nor.h b/include/linux/platform_data/tegra_nor.h new file mode 100644 index 00000000000..cd8faff2f1c --- /dev/null +++ b/include/linux/platform_data/tegra_nor.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * include/linux/platform_data/tegra_nor.h | ||
3 | * | ||
4 | * Copyright (C) 2010 - 2011 NVIDIA Corporation. | ||
5 | * | ||
6 | * Author: | ||
7 | * Raghavendra V K <rvk@nvidia.com> | ||
8 | * | ||
9 | * This software is licensed under the terms of the GNU General Public | ||
10 | * License version 2, as published by the Free Software Foundation, and | ||
11 | * may be copied, distributed, and modified under those terms. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | * GNU General Public License for more details. | ||
17 | * | ||
18 | */ | ||
19 | |||
20 | #ifndef __MACH_TEGRA_NOR_PDATA_H | ||
21 | #define __MACH_TEGRA_NOR_PDATA_H | ||
22 | |||
23 | #include <asm/mach/flash.h> | ||
24 | |||
25 | struct tegra_nor_chip_parms { | ||
26 | struct { | ||
27 | uint32_t timing0; | ||
28 | uint32_t timing1; | ||
29 | } timing_default, timing_read; | ||
30 | }; | ||
31 | |||
32 | struct tegra_nor_platform_data { | ||
33 | struct tegra_nor_chip_parms chip_parms; | ||
34 | struct flash_platform_data flash; | ||
35 | }; | ||
36 | |||
37 | #endif /* __MACH_TEGRA_NOR_PDATA_H */ | ||