diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 21:32:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 21:32:45 -0400 |
commit | ac9e7ab32fe42489808c8d9fc89ad413d2805766 (patch) | |
tree | d5628b62e23fae6a0acd000a7bb16030c89f2073 /arch/arm/mach-tegra | |
parent | 2a2bf85f05e42b12ea6bfe821e2d19221cf93555 (diff) | |
parent | b98138e00d96abc85b100c9b6886f105d9868ab5 (diff) |
Merge tag 'cleanup2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM soc cleanups, part 2 from Olof Johansson:
"A shorter cleanup branch submitted separately due to dependencies with
some of the previous topics.
Major thing here is that the Broadcom bcmring platform is removed.
It's an SoC that's used on some stationary VoIP platforms, and is in
desperate need of some cleanup. Broadcom came back and suggested that
we just deprecate the platform for now, since they aren't going to
spend the resources needed on cleaning it up, and there are no users
of the platform directly from mainline."
Fix some conflicts due to BCM2835 getting added next to the removed
BCMRING, and removal of tegra files that had been converted to
devicetree.
* tag 'cleanup2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
ARM: Orion5x: ts78xx: Add IOMEM for virtual addresses.
ARM: ux500: use __iomem pointers for MMIO
ARM: Remove mach-bcmring
ARM: clps711x: Remove board support for CEIVA
ARM: clps711x: Fix register definitions
ARM: clps711x: Fix lowlevel debug-macro
ARM: clps711x: Added simple clock framework
pinctrl: tegra: move pinconf-tegra.h content into drivers/pinctrl
ARM: tegra: delete unused headers
ARM: tegra: remove useless includes of <mach/*.h>
ARM: tegra: remove dead code
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r-- | arch/arm/mach-tegra/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-dt-tegra20.c | 27 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-pinmux.c | 87 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-pinmux.h | 54 | ||||
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 701 | ||||
-rw-r--r-- | arch/arm/mach-tegra/devices.h | 60 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/gpio-tegra.h | 28 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/pinconf-tegra.h | 63 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/suspend.h | 38 | ||||
-rw-r--r-- | arch/arm/mach-tegra/tegra20_clocks.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/tegra20_clocks_data.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/timer.c | 1 |
12 files changed, 26 insertions, 1037 deletions
diff --git a/arch/arm/mach-tegra/Makefile b/arch/arm/mach-tegra/Makefile index 77b19707be2a..9aa653b3eb32 100644 --- a/arch/arm/mach-tegra/Makefile +++ b/arch/arm/mach-tegra/Makefile | |||
@@ -1,6 +1,4 @@ | |||
1 | obj-y += board-pinmux.o | ||
2 | obj-y += common.o | 1 | obj-y += common.o |
3 | obj-y += devices.o | ||
4 | obj-y += io.o | 2 | obj-y += io.o |
5 | obj-y += irq.o | 3 | obj-y += irq.o |
6 | obj-y += clock.o | 4 | obj-y += clock.o |
diff --git a/arch/arm/mach-tegra/board-dt-tegra20.c b/arch/arm/mach-tegra/board-dt-tegra20.c index 5957ffbd4af6..c3394443675e 100644 --- a/arch/arm/mach-tegra/board-dt-tegra20.c +++ b/arch/arm/mach-tegra/board-dt-tegra20.c | |||
@@ -28,9 +28,11 @@ | |||
28 | #include <linux/of_irq.h> | 28 | #include <linux/of_irq.h> |
29 | #include <linux/of_platform.h> | 29 | #include <linux/of_platform.h> |
30 | #include <linux/pda_power.h> | 30 | #include <linux/pda_power.h> |
31 | #include <linux/platform_data/tegra_usb.h> | ||
31 | #include <linux/io.h> | 32 | #include <linux/io.h> |
32 | #include <linux/i2c.h> | 33 | #include <linux/i2c.h> |
33 | #include <linux/i2c-tegra.h> | 34 | #include <linux/i2c-tegra.h> |
35 | #include <linux/usb/tegra_usb_phy.h> | ||
34 | 36 | ||
35 | #include <asm/hardware/gic.h> | 37 | #include <asm/hardware/gic.h> |
36 | #include <asm/mach-types.h> | 38 | #include <asm/mach-types.h> |
@@ -43,7 +45,30 @@ | |||
43 | 45 | ||
44 | #include "board.h" | 46 | #include "board.h" |
45 | #include "clock.h" | 47 | #include "clock.h" |
46 | #include "devices.h" | 48 | |
49 | struct tegra_ehci_platform_data tegra_ehci1_pdata = { | ||
50 | .operating_mode = TEGRA_USB_OTG, | ||
51 | .power_down_on_bus_suspend = 1, | ||
52 | .vbus_gpio = -1, | ||
53 | }; | ||
54 | |||
55 | struct tegra_ulpi_config tegra_ehci2_ulpi_phy_config = { | ||
56 | .reset_gpio = -1, | ||
57 | .clk = "cdev2", | ||
58 | }; | ||
59 | |||
60 | struct tegra_ehci_platform_data tegra_ehci2_pdata = { | ||
61 | .phy_config = &tegra_ehci2_ulpi_phy_config, | ||
62 | .operating_mode = TEGRA_USB_HOST, | ||
63 | .power_down_on_bus_suspend = 1, | ||
64 | .vbus_gpio = -1, | ||
65 | }; | ||
66 | |||
67 | struct tegra_ehci_platform_data tegra_ehci3_pdata = { | ||
68 | .operating_mode = TEGRA_USB_HOST, | ||
69 | .power_down_on_bus_suspend = 1, | ||
70 | .vbus_gpio = -1, | ||
71 | }; | ||
47 | 72 | ||
48 | struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = { | 73 | struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = { |
49 | OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC1_BASE, "sdhci-tegra.0", NULL), | 74 | OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC1_BASE, "sdhci-tegra.0", NULL), |
diff --git a/arch/arm/mach-tegra/board-pinmux.c b/arch/arm/mach-tegra/board-pinmux.c deleted file mode 100644 index a5574c71b931..000000000000 --- a/arch/arm/mach-tegra/board-pinmux.c +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2011,2012, NVIDIA CORPORATION. All rights reserved. | ||
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 | #include <linux/device.h> | ||
16 | #include <linux/kernel.h> | ||
17 | #include <linux/notifier.h> | ||
18 | #include <linux/string.h> | ||
19 | |||
20 | #include "board-pinmux.h" | ||
21 | #include "devices.h" | ||
22 | |||
23 | unsigned long tegra_pincfg_pullnone_driven[2] = { | ||
24 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_PULL, TEGRA_PINCONFIG_PULL_NONE), | ||
25 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_TRISTATE, TEGRA_PINCONFIG_DRIVEN), | ||
26 | }; | ||
27 | |||
28 | unsigned long tegra_pincfg_pullnone_tristate[2] = { | ||
29 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_PULL, TEGRA_PINCONFIG_PULL_NONE), | ||
30 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_TRISTATE, TEGRA_PINCONFIG_TRISTATE), | ||
31 | }; | ||
32 | |||
33 | unsigned long tegra_pincfg_pullnone_na[1] = { | ||
34 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_PULL, TEGRA_PINCONFIG_PULL_NONE), | ||
35 | }; | ||
36 | |||
37 | unsigned long tegra_pincfg_pullup_driven[2] = { | ||
38 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_PULL, TEGRA_PINCONFIG_PULL_UP), | ||
39 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_TRISTATE, TEGRA_PINCONFIG_DRIVEN), | ||
40 | }; | ||
41 | |||
42 | unsigned long tegra_pincfg_pullup_tristate[2] = { | ||
43 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_PULL, TEGRA_PINCONFIG_PULL_UP), | ||
44 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_TRISTATE, TEGRA_PINCONFIG_TRISTATE), | ||
45 | }; | ||
46 | |||
47 | unsigned long tegra_pincfg_pullup_na[1] = { | ||
48 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_PULL, TEGRA_PINCONFIG_PULL_UP), | ||
49 | }; | ||
50 | |||
51 | unsigned long tegra_pincfg_pulldown_driven[2] = { | ||
52 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_PULL, TEGRA_PINCONFIG_PULL_DOWN), | ||
53 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_TRISTATE, TEGRA_PINCONFIG_DRIVEN), | ||
54 | }; | ||
55 | |||
56 | unsigned long tegra_pincfg_pulldown_tristate[2] = { | ||
57 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_PULL, TEGRA_PINCONFIG_PULL_DOWN), | ||
58 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_TRISTATE, TEGRA_PINCONFIG_TRISTATE), | ||
59 | }; | ||
60 | |||
61 | unsigned long tegra_pincfg_pulldown_na[1] = { | ||
62 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_PULL, TEGRA_PINCONFIG_PULL_DOWN), | ||
63 | }; | ||
64 | |||
65 | unsigned long tegra_pincfg_pullna_driven[1] = { | ||
66 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_TRISTATE, TEGRA_PINCONFIG_DRIVEN), | ||
67 | }; | ||
68 | |||
69 | unsigned long tegra_pincfg_pullna_tristate[1] = { | ||
70 | TEGRA_PINCONF_PACK(TEGRA_PINCONF_PARAM_TRISTATE, TEGRA_PINCONFIG_TRISTATE), | ||
71 | }; | ||
72 | |||
73 | static struct platform_device *devices[] = { | ||
74 | &tegra_gpio_device, | ||
75 | &tegra_pinmux_device, | ||
76 | }; | ||
77 | |||
78 | void tegra_board_pinmux_init(struct tegra_board_pinmux_conf *conf_a, | ||
79 | struct tegra_board_pinmux_conf *conf_b) | ||
80 | { | ||
81 | if (conf_a) | ||
82 | pinctrl_register_mappings(conf_a->maps, conf_a->map_count); | ||
83 | if (conf_b) | ||
84 | pinctrl_register_mappings(conf_b->maps, conf_b->map_count); | ||
85 | |||
86 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
87 | } | ||
diff --git a/arch/arm/mach-tegra/board-pinmux.h b/arch/arm/mach-tegra/board-pinmux.h deleted file mode 100644 index c5f3f3381e86..000000000000 --- a/arch/arm/mach-tegra/board-pinmux.h +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2011,2012, NVIDIA CORPORATION. All rights reserved. | ||
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 __MACH_TEGRA_BOARD_PINMUX_H | ||
16 | #define __MACH_TEGRA_BOARD_PINMUX_H | ||
17 | |||
18 | #include <linux/pinctrl/machine.h> | ||
19 | |||
20 | #include <mach/pinconf-tegra.h> | ||
21 | |||
22 | #define PINMUX_DEV "tegra20-pinctrl" | ||
23 | |||
24 | #define TEGRA_MAP_MUX(_group_, _function_) \ | ||
25 | PIN_MAP_MUX_GROUP_HOG_DEFAULT(PINMUX_DEV, _group_, _function_) | ||
26 | |||
27 | #define TEGRA_MAP_CONF(_group_, _pull_, _drive_) \ | ||
28 | PIN_MAP_CONFIGS_GROUP_HOG_DEFAULT(PINMUX_DEV, _group_, tegra_pincfg_pull##_pull_##_##_drive_) | ||
29 | |||
30 | #define TEGRA_MAP_MUXCONF(_group_, _function_, _pull_, _drive_) \ | ||
31 | TEGRA_MAP_MUX(_group_, _function_), \ | ||
32 | TEGRA_MAP_CONF(_group_, _pull_, _drive_) | ||
33 | |||
34 | extern unsigned long tegra_pincfg_pullnone_driven[2]; | ||
35 | extern unsigned long tegra_pincfg_pullnone_tristate[2]; | ||
36 | extern unsigned long tegra_pincfg_pullnone_na[1]; | ||
37 | extern unsigned long tegra_pincfg_pullup_driven[2]; | ||
38 | extern unsigned long tegra_pincfg_pullup_tristate[2]; | ||
39 | extern unsigned long tegra_pincfg_pullup_na[1]; | ||
40 | extern unsigned long tegra_pincfg_pulldown_driven[2]; | ||
41 | extern unsigned long tegra_pincfg_pulldown_tristate[2]; | ||
42 | extern unsigned long tegra_pincfg_pulldown_na[1]; | ||
43 | extern unsigned long tegra_pincfg_pullna_driven[1]; | ||
44 | extern unsigned long tegra_pincfg_pullna_tristate[1]; | ||
45 | |||
46 | struct tegra_board_pinmux_conf { | ||
47 | struct pinctrl_map *maps; | ||
48 | int map_count; | ||
49 | }; | ||
50 | |||
51 | void tegra_board_pinmux_init(struct tegra_board_pinmux_conf *conf_a, | ||
52 | struct tegra_board_pinmux_conf *conf_b); | ||
53 | |||
54 | #endif | ||
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c deleted file mode 100644 index 63cc2800dcf8..000000000000 --- a/arch/arm/mach-tegra/devices.c +++ /dev/null | |||
@@ -1,701 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2010,2011 Google, Inc. | ||
3 | * | ||
4 | * Author: | ||
5 | * Colin Cross <ccross@android.com> | ||
6 | * Erik Gilling <ccross@android.com> | ||
7 | * | ||
8 | * This software is licensed under the terms of the GNU General Public | ||
9 | * License version 2, as published by the Free Software Foundation, and | ||
10 | * may be copied, distributed, and modified under those terms. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | */ | ||
18 | |||
19 | |||
20 | #include <linux/resource.h> | ||
21 | #include <linux/platform_device.h> | ||
22 | #include <linux/dma-mapping.h> | ||
23 | #include <linux/fsl_devices.h> | ||
24 | #include <linux/serial_8250.h> | ||
25 | #include <linux/i2c-tegra.h> | ||
26 | #include <mach/irqs.h> | ||
27 | #include <mach/iomap.h> | ||
28 | #include <mach/dma.h> | ||
29 | #include <linux/usb/tegra_usb_phy.h> | ||
30 | |||
31 | #include "gpio-names.h" | ||
32 | #include "devices.h" | ||
33 | |||
34 | static struct resource gpio_resource[] = { | ||
35 | [0] = { | ||
36 | .start = TEGRA_GPIO_BASE, | ||
37 | .end = TEGRA_GPIO_BASE + TEGRA_GPIO_SIZE-1, | ||
38 | .flags = IORESOURCE_MEM, | ||
39 | }, | ||
40 | [1] = { | ||
41 | .start = INT_GPIO1, | ||
42 | .end = INT_GPIO1, | ||
43 | .flags = IORESOURCE_IRQ, | ||
44 | }, | ||
45 | [2] = { | ||
46 | .start = INT_GPIO2, | ||
47 | .end = INT_GPIO2, | ||
48 | .flags = IORESOURCE_IRQ, | ||
49 | }, | ||
50 | [3] = { | ||
51 | .start = INT_GPIO3, | ||
52 | .end = INT_GPIO3, | ||
53 | .flags = IORESOURCE_IRQ, | ||
54 | }, | ||
55 | [4] = { | ||
56 | .start = INT_GPIO4, | ||
57 | .end = INT_GPIO4, | ||
58 | .flags = IORESOURCE_IRQ, | ||
59 | }, | ||
60 | [5] = { | ||
61 | .start = INT_GPIO5, | ||
62 | .end = INT_GPIO5, | ||
63 | .flags = IORESOURCE_IRQ, | ||
64 | }, | ||
65 | [6] = { | ||
66 | .start = INT_GPIO6, | ||
67 | .end = INT_GPIO6, | ||
68 | .flags = IORESOURCE_IRQ, | ||
69 | }, | ||
70 | [7] = { | ||
71 | .start = INT_GPIO7, | ||
72 | .end = INT_GPIO7, | ||
73 | .flags = IORESOURCE_IRQ, | ||
74 | }, | ||
75 | }; | ||
76 | |||
77 | struct platform_device tegra_gpio_device = { | ||
78 | .name = "tegra-gpio", | ||
79 | .id = -1, | ||
80 | .resource = gpio_resource, | ||
81 | .num_resources = ARRAY_SIZE(gpio_resource), | ||
82 | }; | ||
83 | |||
84 | static struct resource pinmux_resource[] = { | ||
85 | [0] = { | ||
86 | /* Tri-state registers */ | ||
87 | .start = TEGRA_APB_MISC_BASE + 0x14, | ||
88 | .end = TEGRA_APB_MISC_BASE + 0x20 + 3, | ||
89 | .flags = IORESOURCE_MEM, | ||
90 | }, | ||
91 | [1] = { | ||
92 | /* Mux registers */ | ||
93 | .start = TEGRA_APB_MISC_BASE + 0x80, | ||
94 | .end = TEGRA_APB_MISC_BASE + 0x9c + 3, | ||
95 | .flags = IORESOURCE_MEM, | ||
96 | }, | ||
97 | [2] = { | ||
98 | /* Pull-up/down registers */ | ||
99 | .start = TEGRA_APB_MISC_BASE + 0xa0, | ||
100 | .end = TEGRA_APB_MISC_BASE + 0xb0 + 3, | ||
101 | .flags = IORESOURCE_MEM, | ||
102 | }, | ||
103 | [3] = { | ||
104 | /* Pad control registers */ | ||
105 | .start = TEGRA_APB_MISC_BASE + 0x868, | ||
106 | .end = TEGRA_APB_MISC_BASE + 0x90c + 3, | ||
107 | .flags = IORESOURCE_MEM, | ||
108 | }, | ||
109 | }; | ||
110 | |||
111 | struct platform_device tegra_pinmux_device = { | ||
112 | .name = "tegra20-pinctrl", | ||
113 | .id = -1, | ||
114 | .resource = pinmux_resource, | ||
115 | .num_resources = ARRAY_SIZE(pinmux_resource), | ||
116 | }; | ||
117 | |||
118 | static struct resource i2c_resource1[] = { | ||
119 | [0] = { | ||
120 | .start = INT_I2C, | ||
121 | .end = INT_I2C, | ||
122 | .flags = IORESOURCE_IRQ, | ||
123 | }, | ||
124 | [1] = { | ||
125 | .start = TEGRA_I2C_BASE, | ||
126 | .end = TEGRA_I2C_BASE + TEGRA_I2C_SIZE-1, | ||
127 | .flags = IORESOURCE_MEM, | ||
128 | }, | ||
129 | }; | ||
130 | |||
131 | static struct resource i2c_resource2[] = { | ||
132 | [0] = { | ||
133 | .start = INT_I2C2, | ||
134 | .end = INT_I2C2, | ||
135 | .flags = IORESOURCE_IRQ, | ||
136 | }, | ||
137 | [1] = { | ||
138 | .start = TEGRA_I2C2_BASE, | ||
139 | .end = TEGRA_I2C2_BASE + TEGRA_I2C2_SIZE-1, | ||
140 | .flags = IORESOURCE_MEM, | ||
141 | }, | ||
142 | }; | ||
143 | |||
144 | static struct resource i2c_resource3[] = { | ||
145 | [0] = { | ||
146 | .start = INT_I2C3, | ||
147 | .end = INT_I2C3, | ||
148 | .flags = IORESOURCE_IRQ, | ||
149 | }, | ||
150 | [1] = { | ||
151 | .start = TEGRA_I2C3_BASE, | ||
152 | .end = TEGRA_I2C3_BASE + TEGRA_I2C3_SIZE-1, | ||
153 | .flags = IORESOURCE_MEM, | ||
154 | }, | ||
155 | }; | ||
156 | |||
157 | static struct resource i2c_resource4[] = { | ||
158 | [0] = { | ||
159 | .start = INT_DVC, | ||
160 | .end = INT_DVC, | ||
161 | .flags = IORESOURCE_IRQ, | ||
162 | }, | ||
163 | [1] = { | ||
164 | .start = TEGRA_DVC_BASE, | ||
165 | .end = TEGRA_DVC_BASE + TEGRA_DVC_SIZE-1, | ||
166 | .flags = IORESOURCE_MEM, | ||
167 | }, | ||
168 | }; | ||
169 | |||
170 | static struct tegra_i2c_platform_data tegra_i2c1_platform_data = { | ||
171 | .bus_clk_rate = 400000, | ||
172 | }; | ||
173 | |||
174 | static struct tegra_i2c_platform_data tegra_i2c2_platform_data = { | ||
175 | .bus_clk_rate = 400000, | ||
176 | }; | ||
177 | |||
178 | static struct tegra_i2c_platform_data tegra_i2c3_platform_data = { | ||
179 | .bus_clk_rate = 400000, | ||
180 | }; | ||
181 | |||
182 | static struct tegra_i2c_platform_data tegra_dvc_platform_data = { | ||
183 | .bus_clk_rate = 400000, | ||
184 | }; | ||
185 | |||
186 | struct platform_device tegra_i2c_device1 = { | ||
187 | .name = "tegra-i2c", | ||
188 | .id = 0, | ||
189 | .resource = i2c_resource1, | ||
190 | .num_resources = ARRAY_SIZE(i2c_resource1), | ||
191 | .dev = { | ||
192 | .platform_data = &tegra_i2c1_platform_data, | ||
193 | }, | ||
194 | }; | ||
195 | |||
196 | struct platform_device tegra_i2c_device2 = { | ||
197 | .name = "tegra-i2c", | ||
198 | .id = 1, | ||
199 | .resource = i2c_resource2, | ||
200 | .num_resources = ARRAY_SIZE(i2c_resource2), | ||
201 | .dev = { | ||
202 | .platform_data = &tegra_i2c2_platform_data, | ||
203 | }, | ||
204 | }; | ||
205 | |||
206 | struct platform_device tegra_i2c_device3 = { | ||
207 | .name = "tegra-i2c", | ||
208 | .id = 2, | ||
209 | .resource = i2c_resource3, | ||
210 | .num_resources = ARRAY_SIZE(i2c_resource3), | ||
211 | .dev = { | ||
212 | .platform_data = &tegra_i2c3_platform_data, | ||
213 | }, | ||
214 | }; | ||
215 | |||
216 | struct platform_device tegra_i2c_device4 = { | ||
217 | .name = "tegra-i2c", | ||
218 | .id = 3, | ||
219 | .resource = i2c_resource4, | ||
220 | .num_resources = ARRAY_SIZE(i2c_resource4), | ||
221 | .dev = { | ||
222 | .platform_data = &tegra_dvc_platform_data, | ||
223 | }, | ||
224 | }; | ||
225 | |||
226 | static struct resource spi_resource1[] = { | ||
227 | [0] = { | ||
228 | .start = INT_S_LINK1, | ||
229 | .end = INT_S_LINK1, | ||
230 | .flags = IORESOURCE_IRQ, | ||
231 | }, | ||
232 | [1] = { | ||
233 | .start = TEGRA_SPI1_BASE, | ||
234 | .end = TEGRA_SPI1_BASE + TEGRA_SPI1_SIZE-1, | ||
235 | .flags = IORESOURCE_MEM, | ||
236 | }, | ||
237 | }; | ||
238 | |||
239 | static struct resource spi_resource2[] = { | ||
240 | [0] = { | ||
241 | .start = INT_SPI_2, | ||
242 | .end = INT_SPI_2, | ||
243 | .flags = IORESOURCE_IRQ, | ||
244 | }, | ||
245 | [1] = { | ||
246 | .start = TEGRA_SPI2_BASE, | ||
247 | .end = TEGRA_SPI2_BASE + TEGRA_SPI2_SIZE-1, | ||
248 | .flags = IORESOURCE_MEM, | ||
249 | }, | ||
250 | }; | ||
251 | |||
252 | static struct resource spi_resource3[] = { | ||
253 | [0] = { | ||
254 | .start = INT_SPI_3, | ||
255 | .end = INT_SPI_3, | ||
256 | .flags = IORESOURCE_IRQ, | ||
257 | }, | ||
258 | [1] = { | ||
259 | .start = TEGRA_SPI3_BASE, | ||
260 | .end = TEGRA_SPI3_BASE + TEGRA_SPI3_SIZE-1, | ||
261 | .flags = IORESOURCE_MEM, | ||
262 | }, | ||
263 | }; | ||
264 | |||
265 | static struct resource spi_resource4[] = { | ||
266 | [0] = { | ||
267 | .start = INT_SPI_4, | ||
268 | .end = INT_SPI_4, | ||
269 | .flags = IORESOURCE_IRQ, | ||
270 | }, | ||
271 | [1] = { | ||
272 | .start = TEGRA_SPI4_BASE, | ||
273 | .end = TEGRA_SPI4_BASE + TEGRA_SPI4_SIZE-1, | ||
274 | .flags = IORESOURCE_MEM, | ||
275 | }, | ||
276 | }; | ||
277 | |||
278 | struct platform_device tegra_spi_device1 = { | ||
279 | .name = "spi_tegra", | ||
280 | .id = 0, | ||
281 | .resource = spi_resource1, | ||
282 | .num_resources = ARRAY_SIZE(spi_resource1), | ||
283 | .dev = { | ||
284 | .coherent_dma_mask = 0xffffffff, | ||
285 | }, | ||
286 | }; | ||
287 | |||
288 | struct platform_device tegra_spi_device2 = { | ||
289 | .name = "spi_tegra", | ||
290 | .id = 1, | ||
291 | .resource = spi_resource2, | ||
292 | .num_resources = ARRAY_SIZE(spi_resource2), | ||
293 | .dev = { | ||
294 | .coherent_dma_mask = 0xffffffff, | ||
295 | }, | ||
296 | }; | ||
297 | |||
298 | struct platform_device tegra_spi_device3 = { | ||
299 | .name = "spi_tegra", | ||
300 | .id = 2, | ||
301 | .resource = spi_resource3, | ||
302 | .num_resources = ARRAY_SIZE(spi_resource3), | ||
303 | .dev = { | ||
304 | .coherent_dma_mask = 0xffffffff, | ||
305 | }, | ||
306 | }; | ||
307 | |||
308 | struct platform_device tegra_spi_device4 = { | ||
309 | .name = "spi_tegra", | ||
310 | .id = 3, | ||
311 | .resource = spi_resource4, | ||
312 | .num_resources = ARRAY_SIZE(spi_resource4), | ||
313 | .dev = { | ||
314 | .coherent_dma_mask = 0xffffffff, | ||
315 | }, | ||
316 | }; | ||
317 | |||
318 | |||
319 | static struct resource sdhci_resource1[] = { | ||
320 | [0] = { | ||
321 | .start = INT_SDMMC1, | ||
322 | .end = INT_SDMMC1, | ||
323 | .flags = IORESOURCE_IRQ, | ||
324 | }, | ||
325 | [1] = { | ||
326 | .start = TEGRA_SDMMC1_BASE, | ||
327 | .end = TEGRA_SDMMC1_BASE + TEGRA_SDMMC1_SIZE-1, | ||
328 | .flags = IORESOURCE_MEM, | ||
329 | }, | ||
330 | }; | ||
331 | |||
332 | static struct resource sdhci_resource2[] = { | ||
333 | [0] = { | ||
334 | .start = INT_SDMMC2, | ||
335 | .end = INT_SDMMC2, | ||
336 | .flags = IORESOURCE_IRQ, | ||
337 | }, | ||
338 | [1] = { | ||
339 | .start = TEGRA_SDMMC2_BASE, | ||
340 | .end = TEGRA_SDMMC2_BASE + TEGRA_SDMMC2_SIZE-1, | ||
341 | .flags = IORESOURCE_MEM, | ||
342 | }, | ||
343 | }; | ||
344 | |||
345 | static struct resource sdhci_resource3[] = { | ||
346 | [0] = { | ||
347 | .start = INT_SDMMC3, | ||
348 | .end = INT_SDMMC3, | ||
349 | .flags = IORESOURCE_IRQ, | ||
350 | }, | ||
351 | [1] = { | ||
352 | .start = TEGRA_SDMMC3_BASE, | ||
353 | .end = TEGRA_SDMMC3_BASE + TEGRA_SDMMC3_SIZE-1, | ||
354 | .flags = IORESOURCE_MEM, | ||
355 | }, | ||
356 | }; | ||
357 | |||
358 | static struct resource sdhci_resource4[] = { | ||
359 | [0] = { | ||
360 | .start = INT_SDMMC4, | ||
361 | .end = INT_SDMMC4, | ||
362 | .flags = IORESOURCE_IRQ, | ||
363 | }, | ||
364 | [1] = { | ||
365 | .start = TEGRA_SDMMC4_BASE, | ||
366 | .end = TEGRA_SDMMC4_BASE + TEGRA_SDMMC4_SIZE-1, | ||
367 | .flags = IORESOURCE_MEM, | ||
368 | }, | ||
369 | }; | ||
370 | |||
371 | /* board files should fill in platform_data register the devices themselvs. | ||
372 | * See board-harmony.c for an example | ||
373 | */ | ||
374 | struct platform_device tegra_sdhci_device1 = { | ||
375 | .name = "sdhci-tegra", | ||
376 | .id = 0, | ||
377 | .resource = sdhci_resource1, | ||
378 | .num_resources = ARRAY_SIZE(sdhci_resource1), | ||
379 | }; | ||
380 | |||
381 | struct platform_device tegra_sdhci_device2 = { | ||
382 | .name = "sdhci-tegra", | ||
383 | .id = 1, | ||
384 | .resource = sdhci_resource2, | ||
385 | .num_resources = ARRAY_SIZE(sdhci_resource2), | ||
386 | }; | ||
387 | |||
388 | struct platform_device tegra_sdhci_device3 = { | ||
389 | .name = "sdhci-tegra", | ||
390 | .id = 2, | ||
391 | .resource = sdhci_resource3, | ||
392 | .num_resources = ARRAY_SIZE(sdhci_resource3), | ||
393 | }; | ||
394 | |||
395 | struct platform_device tegra_sdhci_device4 = { | ||
396 | .name = "sdhci-tegra", | ||
397 | .id = 3, | ||
398 | .resource = sdhci_resource4, | ||
399 | .num_resources = ARRAY_SIZE(sdhci_resource4), | ||
400 | }; | ||
401 | |||
402 | static struct resource tegra_usb1_resources[] = { | ||
403 | [0] = { | ||
404 | .start = TEGRA_USB_BASE, | ||
405 | .end = TEGRA_USB_BASE + TEGRA_USB_SIZE - 1, | ||
406 | .flags = IORESOURCE_MEM, | ||
407 | }, | ||
408 | [1] = { | ||
409 | .start = INT_USB, | ||
410 | .end = INT_USB, | ||
411 | .flags = IORESOURCE_IRQ, | ||
412 | }, | ||
413 | }; | ||
414 | |||
415 | static struct resource tegra_usb2_resources[] = { | ||
416 | [0] = { | ||
417 | .start = TEGRA_USB2_BASE, | ||
418 | .end = TEGRA_USB2_BASE + TEGRA_USB2_SIZE - 1, | ||
419 | .flags = IORESOURCE_MEM, | ||
420 | }, | ||
421 | [1] = { | ||
422 | .start = INT_USB2, | ||
423 | .end = INT_USB2, | ||
424 | .flags = IORESOURCE_IRQ, | ||
425 | }, | ||
426 | }; | ||
427 | |||
428 | static struct resource tegra_usb3_resources[] = { | ||
429 | [0] = { | ||
430 | .start = TEGRA_USB3_BASE, | ||
431 | .end = TEGRA_USB3_BASE + TEGRA_USB3_SIZE - 1, | ||
432 | .flags = IORESOURCE_MEM, | ||
433 | }, | ||
434 | [1] = { | ||
435 | .start = INT_USB3, | ||
436 | .end = INT_USB3, | ||
437 | .flags = IORESOURCE_IRQ, | ||
438 | }, | ||
439 | }; | ||
440 | |||
441 | struct tegra_ulpi_config tegra_ehci2_ulpi_phy_config = { | ||
442 | .reset_gpio = -1, | ||
443 | .clk = "cdev2", | ||
444 | }; | ||
445 | |||
446 | struct tegra_ehci_platform_data tegra_ehci1_pdata = { | ||
447 | .operating_mode = TEGRA_USB_OTG, | ||
448 | .power_down_on_bus_suspend = 1, | ||
449 | .vbus_gpio = -1, | ||
450 | }; | ||
451 | |||
452 | struct tegra_ehci_platform_data tegra_ehci2_pdata = { | ||
453 | .phy_config = &tegra_ehci2_ulpi_phy_config, | ||
454 | .operating_mode = TEGRA_USB_HOST, | ||
455 | .power_down_on_bus_suspend = 1, | ||
456 | .vbus_gpio = -1, | ||
457 | }; | ||
458 | |||
459 | struct tegra_ehci_platform_data tegra_ehci3_pdata = { | ||
460 | .operating_mode = TEGRA_USB_HOST, | ||
461 | .power_down_on_bus_suspend = 1, | ||
462 | .vbus_gpio = -1, | ||
463 | }; | ||
464 | |||
465 | static u64 tegra_ehci_dmamask = DMA_BIT_MASK(32); | ||
466 | |||
467 | struct platform_device tegra_ehci1_device = { | ||
468 | .name = "tegra-ehci", | ||
469 | .id = 0, | ||
470 | .dev = { | ||
471 | .dma_mask = &tegra_ehci_dmamask, | ||
472 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
473 | .platform_data = &tegra_ehci1_pdata, | ||
474 | }, | ||
475 | .resource = tegra_usb1_resources, | ||
476 | .num_resources = ARRAY_SIZE(tegra_usb1_resources), | ||
477 | }; | ||
478 | |||
479 | struct platform_device tegra_ehci2_device = { | ||
480 | .name = "tegra-ehci", | ||
481 | .id = 1, | ||
482 | .dev = { | ||
483 | .dma_mask = &tegra_ehci_dmamask, | ||
484 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
485 | .platform_data = &tegra_ehci2_pdata, | ||
486 | }, | ||
487 | .resource = tegra_usb2_resources, | ||
488 | .num_resources = ARRAY_SIZE(tegra_usb2_resources), | ||
489 | }; | ||
490 | |||
491 | struct platform_device tegra_ehci3_device = { | ||
492 | .name = "tegra-ehci", | ||
493 | .id = 2, | ||
494 | .dev = { | ||
495 | .dma_mask = &tegra_ehci_dmamask, | ||
496 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
497 | .platform_data = &tegra_ehci3_pdata, | ||
498 | }, | ||
499 | .resource = tegra_usb3_resources, | ||
500 | .num_resources = ARRAY_SIZE(tegra_usb3_resources), | ||
501 | }; | ||
502 | |||
503 | static struct resource tegra_pmu_resources[] = { | ||
504 | [0] = { | ||
505 | .start = INT_CPU0_PMU_INTR, | ||
506 | .end = INT_CPU0_PMU_INTR, | ||
507 | .flags = IORESOURCE_IRQ, | ||
508 | }, | ||
509 | [1] = { | ||
510 | .start = INT_CPU1_PMU_INTR, | ||
511 | .end = INT_CPU1_PMU_INTR, | ||
512 | .flags = IORESOURCE_IRQ, | ||
513 | }, | ||
514 | }; | ||
515 | |||
516 | struct platform_device tegra_pmu_device = { | ||
517 | .name = "arm-pmu", | ||
518 | .id = -1, | ||
519 | .num_resources = ARRAY_SIZE(tegra_pmu_resources), | ||
520 | .resource = tegra_pmu_resources, | ||
521 | }; | ||
522 | |||
523 | static struct resource tegra_uarta_resources[] = { | ||
524 | [0] = { | ||
525 | .start = TEGRA_UARTA_BASE, | ||
526 | .end = TEGRA_UARTA_BASE + TEGRA_UARTA_SIZE - 1, | ||
527 | .flags = IORESOURCE_MEM, | ||
528 | }, | ||
529 | [1] = { | ||
530 | .start = INT_UARTA, | ||
531 | .end = INT_UARTA, | ||
532 | .flags = IORESOURCE_IRQ, | ||
533 | }, | ||
534 | }; | ||
535 | |||
536 | static struct resource tegra_uartb_resources[] = { | ||
537 | [0] = { | ||
538 | .start = TEGRA_UARTB_BASE, | ||
539 | .end = TEGRA_UARTB_BASE + TEGRA_UARTB_SIZE - 1, | ||
540 | .flags = IORESOURCE_MEM, | ||
541 | }, | ||
542 | [1] = { | ||
543 | .start = INT_UARTB, | ||
544 | .end = INT_UARTB, | ||
545 | .flags = IORESOURCE_IRQ, | ||
546 | }, | ||
547 | }; | ||
548 | |||
549 | static struct resource tegra_uartc_resources[] = { | ||
550 | [0] = { | ||
551 | .start = TEGRA_UARTC_BASE, | ||
552 | .end = TEGRA_UARTC_BASE + TEGRA_UARTC_SIZE - 1, | ||
553 | .flags = IORESOURCE_MEM, | ||
554 | }, | ||
555 | [1] = { | ||
556 | .start = INT_UARTC, | ||
557 | .end = INT_UARTC, | ||
558 | .flags = IORESOURCE_IRQ, | ||
559 | }, | ||
560 | }; | ||
561 | |||
562 | static struct resource tegra_uartd_resources[] = { | ||
563 | [0] = { | ||
564 | .start = TEGRA_UARTD_BASE, | ||
565 | .end = TEGRA_UARTD_BASE + TEGRA_UARTD_SIZE - 1, | ||
566 | .flags = IORESOURCE_MEM, | ||
567 | }, | ||
568 | [1] = { | ||
569 | .start = INT_UARTD, | ||
570 | .end = INT_UARTD, | ||
571 | .flags = IORESOURCE_IRQ, | ||
572 | }, | ||
573 | }; | ||
574 | |||
575 | static struct resource tegra_uarte_resources[] = { | ||
576 | [0] = { | ||
577 | .start = TEGRA_UARTE_BASE, | ||
578 | .end = TEGRA_UARTE_BASE + TEGRA_UARTE_SIZE - 1, | ||
579 | .flags = IORESOURCE_MEM, | ||
580 | }, | ||
581 | [1] = { | ||
582 | .start = INT_UARTE, | ||
583 | .end = INT_UARTE, | ||
584 | .flags = IORESOURCE_IRQ, | ||
585 | }, | ||
586 | }; | ||
587 | |||
588 | struct platform_device tegra_uarta_device = { | ||
589 | .name = "tegra_uart", | ||
590 | .id = 0, | ||
591 | .num_resources = ARRAY_SIZE(tegra_uarta_resources), | ||
592 | .resource = tegra_uarta_resources, | ||
593 | .dev = { | ||
594 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
595 | }, | ||
596 | }; | ||
597 | |||
598 | struct platform_device tegra_uartb_device = { | ||
599 | .name = "tegra_uart", | ||
600 | .id = 1, | ||
601 | .num_resources = ARRAY_SIZE(tegra_uartb_resources), | ||
602 | .resource = tegra_uartb_resources, | ||
603 | .dev = { | ||
604 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
605 | }, | ||
606 | }; | ||
607 | |||
608 | struct platform_device tegra_uartc_device = { | ||
609 | .name = "tegra_uart", | ||
610 | .id = 2, | ||
611 | .num_resources = ARRAY_SIZE(tegra_uartc_resources), | ||
612 | .resource = tegra_uartc_resources, | ||
613 | .dev = { | ||
614 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
615 | }, | ||
616 | }; | ||
617 | |||
618 | struct platform_device tegra_uartd_device = { | ||
619 | .name = "tegra_uart", | ||
620 | .id = 3, | ||
621 | .num_resources = ARRAY_SIZE(tegra_uartd_resources), | ||
622 | .resource = tegra_uartd_resources, | ||
623 | .dev = { | ||
624 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
625 | }, | ||
626 | }; | ||
627 | |||
628 | struct platform_device tegra_uarte_device = { | ||
629 | .name = "tegra_uart", | ||
630 | .id = 4, | ||
631 | .num_resources = ARRAY_SIZE(tegra_uarte_resources), | ||
632 | .resource = tegra_uarte_resources, | ||
633 | .dev = { | ||
634 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
635 | }, | ||
636 | }; | ||
637 | |||
638 | static struct resource i2s_resource1[] = { | ||
639 | [0] = { | ||
640 | .start = INT_I2S1, | ||
641 | .end = INT_I2S1, | ||
642 | .flags = IORESOURCE_IRQ | ||
643 | }, | ||
644 | [1] = { | ||
645 | .start = TEGRA_DMA_REQ_SEL_I2S_1, | ||
646 | .end = TEGRA_DMA_REQ_SEL_I2S_1, | ||
647 | .flags = IORESOURCE_DMA | ||
648 | }, | ||
649 | [2] = { | ||
650 | .start = TEGRA_I2S1_BASE, | ||
651 | .end = TEGRA_I2S1_BASE + TEGRA_I2S1_SIZE - 1, | ||
652 | .flags = IORESOURCE_MEM | ||
653 | } | ||
654 | }; | ||
655 | |||
656 | static struct resource i2s_resource2[] = { | ||
657 | [0] = { | ||
658 | .start = INT_I2S2, | ||
659 | .end = INT_I2S2, | ||
660 | .flags = IORESOURCE_IRQ | ||
661 | }, | ||
662 | [1] = { | ||
663 | .start = TEGRA_DMA_REQ_SEL_I2S2_1, | ||
664 | .end = TEGRA_DMA_REQ_SEL_I2S2_1, | ||
665 | .flags = IORESOURCE_DMA | ||
666 | }, | ||
667 | [2] = { | ||
668 | .start = TEGRA_I2S2_BASE, | ||
669 | .end = TEGRA_I2S2_BASE + TEGRA_I2S2_SIZE - 1, | ||
670 | .flags = IORESOURCE_MEM | ||
671 | } | ||
672 | }; | ||
673 | |||
674 | struct platform_device tegra_i2s_device1 = { | ||
675 | .name = "tegra20-i2s", | ||
676 | .id = 0, | ||
677 | .resource = i2s_resource1, | ||
678 | .num_resources = ARRAY_SIZE(i2s_resource1), | ||
679 | }; | ||
680 | |||
681 | struct platform_device tegra_i2s_device2 = { | ||
682 | .name = "tegra20-i2s", | ||
683 | .id = 1, | ||
684 | .resource = i2s_resource2, | ||
685 | .num_resources = ARRAY_SIZE(i2s_resource2), | ||
686 | }; | ||
687 | |||
688 | static struct resource tegra_das_resources[] = { | ||
689 | [0] = { | ||
690 | .start = TEGRA_APB_MISC_DAS_BASE, | ||
691 | .end = TEGRA_APB_MISC_DAS_BASE + TEGRA_APB_MISC_DAS_SIZE - 1, | ||
692 | .flags = IORESOURCE_MEM, | ||
693 | }, | ||
694 | }; | ||
695 | |||
696 | struct platform_device tegra_das_device = { | ||
697 | .name = "tegra20-das", | ||
698 | .id = -1, | ||
699 | .num_resources = ARRAY_SIZE(tegra_das_resources), | ||
700 | .resource = tegra_das_resources, | ||
701 | }; | ||
diff --git a/arch/arm/mach-tegra/devices.h b/arch/arm/mach-tegra/devices.h deleted file mode 100644 index 906a61f340c8..000000000000 --- a/arch/arm/mach-tegra/devices.h +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2010,2011 Google, Inc. | ||
3 | * | ||
4 | * Author: | ||
5 | * Colin Cross <ccross@android.com> | ||
6 | * Erik Gilling <ccross@android.com> | ||
7 | * | ||
8 | * This software is licensed under the terms of the GNU General Public | ||
9 | * License version 2, as published by the Free Software Foundation, and | ||
10 | * may be copied, distributed, and modified under those terms. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | */ | ||
18 | |||
19 | #ifndef __MACH_TEGRA_DEVICES_H | ||
20 | #define __MACH_TEGRA_DEVICES_H | ||
21 | |||
22 | #include <linux/platform_device.h> | ||
23 | #include <linux/platform_data/tegra_usb.h> | ||
24 | |||
25 | #include <linux/usb/tegra_usb_phy.h> | ||
26 | |||
27 | extern struct tegra_ulpi_config tegra_ehci2_ulpi_phy_config; | ||
28 | |||
29 | extern struct tegra_ehci_platform_data tegra_ehci1_pdata; | ||
30 | extern struct tegra_ehci_platform_data tegra_ehci2_pdata; | ||
31 | extern struct tegra_ehci_platform_data tegra_ehci3_pdata; | ||
32 | |||
33 | extern struct platform_device tegra_gpio_device; | ||
34 | extern struct platform_device tegra_pinmux_device; | ||
35 | extern struct platform_device tegra_sdhci_device1; | ||
36 | extern struct platform_device tegra_sdhci_device2; | ||
37 | extern struct platform_device tegra_sdhci_device3; | ||
38 | extern struct platform_device tegra_sdhci_device4; | ||
39 | extern struct platform_device tegra_i2c_device1; | ||
40 | extern struct platform_device tegra_i2c_device2; | ||
41 | extern struct platform_device tegra_i2c_device3; | ||
42 | extern struct platform_device tegra_i2c_device4; | ||
43 | extern struct platform_device tegra_spi_device1; | ||
44 | extern struct platform_device tegra_spi_device2; | ||
45 | extern struct platform_device tegra_spi_device3; | ||
46 | extern struct platform_device tegra_spi_device4; | ||
47 | extern struct platform_device tegra_ehci1_device; | ||
48 | extern struct platform_device tegra_ehci2_device; | ||
49 | extern struct platform_device tegra_ehci3_device; | ||
50 | extern struct platform_device tegra_uarta_device; | ||
51 | extern struct platform_device tegra_uartb_device; | ||
52 | extern struct platform_device tegra_uartc_device; | ||
53 | extern struct platform_device tegra_uartd_device; | ||
54 | extern struct platform_device tegra_uarte_device; | ||
55 | extern struct platform_device tegra_pmu_device; | ||
56 | extern struct platform_device tegra_i2s_device1; | ||
57 | extern struct platform_device tegra_i2s_device2; | ||
58 | extern struct platform_device tegra_das_device; | ||
59 | |||
60 | #endif | ||
diff --git a/arch/arm/mach-tegra/include/mach/gpio-tegra.h b/arch/arm/mach-tegra/include/mach/gpio-tegra.h deleted file mode 100644 index a978b3cc3a8d..000000000000 --- a/arch/arm/mach-tegra/include/mach/gpio-tegra.h +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-tegra/include/mach/gpio.h | ||
3 | * | ||
4 | * Copyright (C) 2010 Google, Inc. | ||
5 | * | ||
6 | * Author: | ||
7 | * Erik Gilling <konkers@google.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_GPIO_TEGRA_H | ||
21 | #define __MACH_TEGRA_GPIO_TEGRA_H | ||
22 | |||
23 | #include <linux/types.h> | ||
24 | #include <mach/irqs.h> | ||
25 | |||
26 | #define TEGRA_NR_GPIOS INT_GPIO_NR | ||
27 | |||
28 | #endif | ||
diff --git a/arch/arm/mach-tegra/include/mach/pinconf-tegra.h b/arch/arm/mach-tegra/include/mach/pinconf-tegra.h deleted file mode 100644 index 1f24d304921e..000000000000 --- a/arch/arm/mach-tegra/include/mach/pinconf-tegra.h +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | /* | ||
2 | * pinctrl configuration definitions for the NVIDIA Tegra pinmux | ||
3 | * | ||
4 | * Copyright (c) 2011, NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms and conditions of the GNU General Public License, | ||
8 | * version 2, as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope 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 | |||
16 | #ifndef __PINCONF_TEGRA_H__ | ||
17 | #define __PINCONF_TEGRA_H__ | ||
18 | |||
19 | enum tegra_pinconf_param { | ||
20 | /* argument: tegra_pinconf_pull */ | ||
21 | TEGRA_PINCONF_PARAM_PULL, | ||
22 | /* argument: tegra_pinconf_tristate */ | ||
23 | TEGRA_PINCONF_PARAM_TRISTATE, | ||
24 | /* argument: Boolean */ | ||
25 | TEGRA_PINCONF_PARAM_ENABLE_INPUT, | ||
26 | /* argument: Boolean */ | ||
27 | TEGRA_PINCONF_PARAM_OPEN_DRAIN, | ||
28 | /* argument: Boolean */ | ||
29 | TEGRA_PINCONF_PARAM_LOCK, | ||
30 | /* argument: Boolean */ | ||
31 | TEGRA_PINCONF_PARAM_IORESET, | ||
32 | /* argument: Boolean */ | ||
33 | TEGRA_PINCONF_PARAM_HIGH_SPEED_MODE, | ||
34 | /* argument: Boolean */ | ||
35 | TEGRA_PINCONF_PARAM_SCHMITT, | ||
36 | /* argument: Boolean */ | ||
37 | TEGRA_PINCONF_PARAM_LOW_POWER_MODE, | ||
38 | /* argument: Integer, range is HW-dependant */ | ||
39 | TEGRA_PINCONF_PARAM_DRIVE_DOWN_STRENGTH, | ||
40 | /* argument: Integer, range is HW-dependant */ | ||
41 | TEGRA_PINCONF_PARAM_DRIVE_UP_STRENGTH, | ||
42 | /* argument: Integer, range is HW-dependant */ | ||
43 | TEGRA_PINCONF_PARAM_SLEW_RATE_FALLING, | ||
44 | /* argument: Integer, range is HW-dependant */ | ||
45 | TEGRA_PINCONF_PARAM_SLEW_RATE_RISING, | ||
46 | }; | ||
47 | |||
48 | enum tegra_pinconf_pull { | ||
49 | TEGRA_PINCONFIG_PULL_NONE, | ||
50 | TEGRA_PINCONFIG_PULL_DOWN, | ||
51 | TEGRA_PINCONFIG_PULL_UP, | ||
52 | }; | ||
53 | |||
54 | enum tegra_pinconf_tristate { | ||
55 | TEGRA_PINCONFIG_DRIVEN, | ||
56 | TEGRA_PINCONFIG_TRISTATE, | ||
57 | }; | ||
58 | |||
59 | #define TEGRA_PINCONF_PACK(_param_, _arg_) ((_param_) << 16 | (_arg_)) | ||
60 | #define TEGRA_PINCONF_UNPACK_PARAM(_conf_) ((_conf_) >> 16) | ||
61 | #define TEGRA_PINCONF_UNPACK_ARG(_conf_) ((_conf_) & 0xffff) | ||
62 | |||
63 | #endif | ||
diff --git a/arch/arm/mach-tegra/include/mach/suspend.h b/arch/arm/mach-tegra/include/mach/suspend.h deleted file mode 100644 index 5af8715d2e1e..000000000000 --- a/arch/arm/mach-tegra/include/mach/suspend.h +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-tegra/include/mach/suspend.h | ||
3 | * | ||
4 | * Copyright (C) 2010 Google, Inc. | ||
5 | * | ||
6 | * Author: | ||
7 | * Colin Cross <ccross@google.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 | |||
21 | #ifndef _MACH_TEGRA_SUSPEND_H_ | ||
22 | #define _MACH_TEGRA_SUSPEND_H_ | ||
23 | |||
24 | void tegra_pinmux_suspend(void); | ||
25 | void tegra_irq_suspend(void); | ||
26 | void tegra_gpio_suspend(void); | ||
27 | void tegra_clk_suspend(void); | ||
28 | void tegra_dma_suspend(void); | ||
29 | void tegra_timer_suspend(void); | ||
30 | |||
31 | void tegra_pinmux_resume(void); | ||
32 | void tegra_irq_resume(void); | ||
33 | void tegra_gpio_resume(void); | ||
34 | void tegra_clk_resume(void); | ||
35 | void tegra_dma_resume(void); | ||
36 | void tegra_timer_resume(void); | ||
37 | |||
38 | #endif /* _MACH_TEGRA_SUSPEND_H_ */ | ||
diff --git a/arch/arm/mach-tegra/tegra20_clocks.c b/arch/arm/mach-tegra/tegra20_clocks.c index 9273b0dffc66..deb873fb12b6 100644 --- a/arch/arm/mach-tegra/tegra20_clocks.c +++ b/arch/arm/mach-tegra/tegra20_clocks.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/clk.h> | 28 | #include <linux/clk.h> |
29 | 29 | ||
30 | #include <mach/iomap.h> | 30 | #include <mach/iomap.h> |
31 | #include <mach/suspend.h> | ||
32 | 31 | ||
33 | #include "clock.h" | 32 | #include "clock.h" |
34 | #include "fuse.h" | 33 | #include "fuse.h" |
diff --git a/arch/arm/mach-tegra/tegra20_clocks_data.c b/arch/arm/mach-tegra/tegra20_clocks_data.c index e81dcd239c95..c8a7b951f759 100644 --- a/arch/arm/mach-tegra/tegra20_clocks_data.c +++ b/arch/arm/mach-tegra/tegra20_clocks_data.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/clk.h> | 28 | #include <linux/clk.h> |
29 | 29 | ||
30 | #include <mach/iomap.h> | 30 | #include <mach/iomap.h> |
31 | #include <mach/suspend.h> | ||
32 | 31 | ||
33 | #include "clock.h" | 32 | #include "clock.h" |
34 | #include "fuse.h" | 33 | #include "fuse.h" |
diff --git a/arch/arm/mach-tegra/timer.c b/arch/arm/mach-tegra/timer.c index 57b5bdc13b9b..eccdce983043 100644 --- a/arch/arm/mach-tegra/timer.c +++ b/arch/arm/mach-tegra/timer.c | |||
@@ -33,7 +33,6 @@ | |||
33 | 33 | ||
34 | #include <mach/iomap.h> | 34 | #include <mach/iomap.h> |
35 | #include <mach/irqs.h> | 35 | #include <mach/irqs.h> |
36 | #include <mach/suspend.h> | ||
37 | 36 | ||
38 | #include "board.h" | 37 | #include "board.h" |
39 | #include "clock.h" | 38 | #include "clock.h" |