blob: 2da621f8a97cb9466d8a0688dad5dd92270bea73 [file] [log] [blame]
Michael Bohan0425f6f2012-01-17 14:36:39 -08001/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
Sathish Ambleyc58afc22011-10-09 21:55:39 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#include <linux/kernel.h>
14#include <linux/platform_device.h>
15#include <linux/io.h>
16#include <linux/irq.h>
17#include <linux/irqdomain.h>
18#include <linux/of.h>
19#include <linux/of_address.h>
20#include <linux/of_platform.h>
Michael Bohanc7224532012-01-06 16:02:52 -080021#include <linux/of_irq.h>
Olav Hauganb800c8c2012-01-30 08:50:45 -080022#ifdef CONFIG_ION_MSM
23#include <linux/ion.h>
24#endif
25#include <linux/memory.h>
26#ifdef CONFIG_ANDROID_PMEM
27#include <linux/android_pmem.h>
28#endif
Michael Bohan037a0f52012-02-29 19:13:09 -080029#include <linux/regulator/stub-regulator.h>
Sathish Ambleyc58afc22011-10-09 21:55:39 -070030#include <asm/mach/map.h>
31#include <asm/hardware/gic.h>
32#include <mach/board.h>
33#include <mach/gpio.h>
34#include <mach/gpiomux.h>
35#include <mach/msm_iomap.h>
Olav Hauganb800c8c2012-01-30 08:50:45 -080036#ifdef CONFIG_ION_MSM
37#include <mach/ion.h>
38#endif
39#include <mach/msm_memtypes.h>
Jeff Hugo70946092012-02-10 11:30:43 -070040#include <mach/msm_smd.h>
Michael Bohan115cf652012-01-05 14:32:59 -080041#include <mach/qpnp-int.h>
Vikram Mulukutlaaeadb5f2012-05-04 14:03:07 -070042#include <mach/socinfo.h>
Sathish Ambleyc58afc22011-10-09 21:55:39 -070043#include "clock.h"
Michael Bohan037a0f52012-02-29 19:13:09 -080044#include "devices.h"
Praveen Chidambaramda9501d2012-04-26 19:48:29 -060045#include "spm.h"
Sathish Ambleyc58afc22011-10-09 21:55:39 -070046
Olav Hauganb800c8c2012-01-30 08:50:45 -080047#define MSM_KERNEL_EBI1_MEM_SIZE 0x280000
48#ifdef CONFIG_FB_MSM_HDMI_AS_PRIMARY
49#define MSM_ION_SF_SIZE 0x4000000 /* 64 Mbytes */
50#else
51#define MSM_ION_SF_SIZE 0x2800000 /* 40 Mbytes */
52#endif
53#define MSM_ION_MM_FW_SIZE 0x200000 /* (2MB) */
54#define MSM_ION_MM_SIZE 0x7800000 /* (120MB) */
55#define MSM_ION_QSECOM_SIZE 0x100000 /* (1MB) */
56#define MSM_ION_MFC_SIZE SZ_8K
57#define MSM_ION_AUDIO_SIZE 0x2B4000
58#define MSM_ION_HEAP_NUM 8
59
60#ifdef CONFIG_KERNEL_PMEM_EBI_REGION
61static unsigned kernel_ebi1_mem_size = MSM_KERNEL_EBI1_MEM_SIZE;
62static int __init kernel_ebi1_mem_size_setup(char *p)
63{
64 kernel_ebi1_mem_size = memparse(p, NULL);
65 return 0;
66}
67early_param("kernel_ebi1_mem_size", kernel_ebi1_mem_size_setup);
68#endif
69
70static struct memtype_reserve msm_copper_reserve_table[] __initdata = {
71 [MEMTYPE_SMI] = {
72 },
73 [MEMTYPE_EBI0] = {
74 .flags = MEMTYPE_FLAGS_1M_ALIGN,
75 },
76 [MEMTYPE_EBI1] = {
77 .flags = MEMTYPE_FLAGS_1M_ALIGN,
78 },
79};
80
81static int msm_copper_paddr_to_memtype(unsigned int paddr)
82{
83 return MEMTYPE_EBI1;
84}
85
86#ifdef CONFIG_ION_MSM
87static struct ion_cp_heap_pdata cp_mm_ion_pdata = {
88 .permission_type = IPT_TYPE_MM_CARVEOUT,
89 .align = PAGE_SIZE,
90};
91
92static struct ion_cp_heap_pdata cp_mfc_ion_pdata = {
93 .permission_type = IPT_TYPE_MFC_SHAREDMEM,
94 .align = PAGE_SIZE,
95};
96
97static struct ion_co_heap_pdata co_ion_pdata = {
98 .adjacent_mem_id = INVALID_HEAP_ID,
99 .align = PAGE_SIZE,
100};
101
102static struct ion_co_heap_pdata fw_co_ion_pdata = {
103 .adjacent_mem_id = ION_CP_MM_HEAP_ID,
104 .align = SZ_128K,
105};
106
Olav Haugan9cdfc2f2012-02-15 09:52:57 -0800107/**
108 * These heaps are listed in the order they will be allocated. Due to
109 * video hardware restrictions and content protection the FW heap has to
110 * be allocated adjacent (below) the MM heap and the MFC heap has to be
111 * allocated after the MM heap to ensure MFC heap is not more than 256MB
112 * away from the base address of the FW heap.
113 * However, the order of FW heap and MM heap doesn't matter since these
114 * two heaps are taken care of by separate code to ensure they are adjacent
115 * to each other.
116 * Don't swap the order unless you know what you are doing!
117 */
Olav Hauganb800c8c2012-01-30 08:50:45 -0800118static struct ion_platform_data ion_pdata = {
119 .nr = MSM_ION_HEAP_NUM,
120 .heaps = {
121 {
122 .id = ION_SYSTEM_HEAP_ID,
123 .type = ION_HEAP_TYPE_SYSTEM,
124 .name = ION_VMALLOC_HEAP_NAME,
125 },
126 {
Olav Hauganb800c8c2012-01-30 08:50:45 -0800127 .id = ION_CP_MM_HEAP_ID,
128 .type = ION_HEAP_TYPE_CP,
129 .name = ION_MM_HEAP_NAME,
130 .size = MSM_ION_MM_SIZE,
131 .memory_type = ION_EBI_TYPE,
132 .extra_data = (void *) &cp_mm_ion_pdata,
133 },
134 {
135 .id = ION_MM_FIRMWARE_HEAP_ID,
136 .type = ION_HEAP_TYPE_CARVEOUT,
137 .name = ION_MM_FIRMWARE_HEAP_NAME,
138 .size = MSM_ION_MM_FW_SIZE,
139 .memory_type = ION_EBI_TYPE,
140 .extra_data = (void *) &fw_co_ion_pdata,
141 },
142 {
143 .id = ION_CP_MFC_HEAP_ID,
144 .type = ION_HEAP_TYPE_CP,
145 .name = ION_MFC_HEAP_NAME,
146 .size = MSM_ION_MFC_SIZE,
147 .memory_type = ION_EBI_TYPE,
148 .extra_data = (void *) &cp_mfc_ion_pdata,
149 },
150 {
Olav Haugan9cdfc2f2012-02-15 09:52:57 -0800151 .id = ION_SF_HEAP_ID,
152 .type = ION_HEAP_TYPE_CARVEOUT,
153 .name = ION_SF_HEAP_NAME,
154 .size = MSM_ION_SF_SIZE,
155 .memory_type = ION_EBI_TYPE,
156 .extra_data = (void *) &co_ion_pdata,
157 },
158 {
Olav Hauganb800c8c2012-01-30 08:50:45 -0800159 .id = ION_IOMMU_HEAP_ID,
160 .type = ION_HEAP_TYPE_IOMMU,
161 .name = ION_IOMMU_HEAP_NAME,
162 },
163 {
164 .id = ION_QSECOM_HEAP_ID,
165 .type = ION_HEAP_TYPE_CARVEOUT,
166 .name = ION_QSECOM_HEAP_NAME,
167 .size = MSM_ION_QSECOM_SIZE,
168 .memory_type = ION_EBI_TYPE,
169 .extra_data = (void *) &co_ion_pdata,
170 },
171 {
172 .id = ION_AUDIO_HEAP_ID,
173 .type = ION_HEAP_TYPE_CARVEOUT,
174 .name = ION_AUDIO_HEAP_NAME,
175 .size = MSM_ION_AUDIO_SIZE,
176 .memory_type = ION_EBI_TYPE,
177 .extra_data = (void *) &co_ion_pdata,
178 },
179 }
180};
181
182static struct platform_device ion_dev = {
183 .name = "ion-msm",
184 .id = 1,
185 .dev = { .platform_data = &ion_pdata },
186};
187
Stephen Boyd668d7652012-04-25 11:31:01 -0700188static void __init reserve_ion_memory(void)
Olav Hauganb800c8c2012-01-30 08:50:45 -0800189{
190 msm_copper_reserve_table[MEMTYPE_EBI1].size += MSM_ION_MM_SIZE;
191 msm_copper_reserve_table[MEMTYPE_EBI1].size += MSM_ION_MM_FW_SIZE;
192 msm_copper_reserve_table[MEMTYPE_EBI1].size += MSM_ION_SF_SIZE;
193 msm_copper_reserve_table[MEMTYPE_EBI1].size += MSM_ION_MFC_SIZE;
194 msm_copper_reserve_table[MEMTYPE_EBI1].size += MSM_ION_QSECOM_SIZE;
195 msm_copper_reserve_table[MEMTYPE_EBI1].size += MSM_ION_AUDIO_SIZE;
196#ifdef CONFIG_KERNEL_PMEM_EBI_REGION
197 msm_copper_reserve_table[MEMTYPE_EBI1].size += kernel_ebi1_mem_size;
198#endif
199}
200#endif
201
Jeff Hugo70946092012-02-10 11:30:43 -0700202static struct resource smd_resource[] = {
203 {
204 .name = "modem_smd_in",
205 .start = 32 + 17, /* mss_sw_to_kpss_ipc_irq0 */
206 .flags = IORESOURCE_IRQ,
207 },
208 {
209 .name = "modem_smsm_in",
210 .start = 32 + 18, /* mss_sw_to_kpss_ipc_irq1 */
211 .flags = IORESOURCE_IRQ,
212 },
213 {
214 .name = "adsp_smd_in",
215 .start = 32 + 156, /* lpass_to_kpss_ipc_irq0 */
216 .flags = IORESOURCE_IRQ,
217 },
218 {
219 .name = "adsp_smsm_in",
220 .start = 32 + 157, /* lpass_to_kpss_ipc_irq1 */
221 .flags = IORESOURCE_IRQ,
222 },
223 {
224 .name = "wcnss_smd_in",
225 .start = 32 + 142, /* WcnssAppsSmdMedIrq */
226 .flags = IORESOURCE_IRQ,
227 },
228 {
229 .name = "wcnss_smsm_in",
Jeff Hugo89046272012-03-29 14:45:37 -0600230 .start = 32 + 144, /* RivaAppsWlanSmsmIrq */
Jeff Hugo70946092012-02-10 11:30:43 -0700231 .flags = IORESOURCE_IRQ,
232 },
Jeff Hugo9a5dc6e2012-03-29 14:39:42 -0600233 {
234 .name = "rpm_smd_in",
235 .start = 32 + 168, /* rpm_to_kpss_ipc_irq4 */
236 .flags = IORESOURCE_IRQ,
237 },
Jeff Hugo70946092012-02-10 11:30:43 -0700238};
239
240static struct smd_subsystem_config smd_config_list[] = {
241 {
242 .irq_config_id = SMD_MODEM,
243 .subsys_name = "modem",
244 .edge = SMD_APPS_MODEM,
245
246 .smd_int.irq_name = "modem_smd_in",
247 .smd_int.flags = IRQF_TRIGGER_RISING,
248 .smd_int.irq_id = -1,
249 .smd_int.device_name = "smd_dev",
250 .smd_int.dev_id = 0,
251 .smd_int.out_bit_pos = 1 << 12,
252 .smd_int.out_base = (void __iomem *)MSM_APCS_GCC_BASE,
253 .smd_int.out_offset = 0x8,
254
255 .smsm_int.irq_name = "modem_smsm_in",
256 .smsm_int.flags = IRQF_TRIGGER_RISING,
257 .smsm_int.irq_id = -1,
258 .smsm_int.device_name = "smsm_dev",
259 .smsm_int.dev_id = 0,
260 .smsm_int.out_bit_pos = 1 << 13,
261 .smsm_int.out_base = (void __iomem *)MSM_APCS_GCC_BASE,
262 .smsm_int.out_offset = 0x8,
263 },
264 {
265 .irq_config_id = SMD_Q6,
266 .subsys_name = "q6",
267 .edge = SMD_APPS_QDSP,
268
269 .smd_int.irq_name = "adsp_smd_in",
270 .smd_int.flags = IRQF_TRIGGER_RISING,
271 .smd_int.irq_id = -1,
272 .smd_int.device_name = "smd_dev",
273 .smd_int.dev_id = 0,
274 .smd_int.out_bit_pos = 1 << 8,
275 .smd_int.out_base = (void __iomem *)MSM_APCS_GCC_BASE,
276 .smd_int.out_offset = 0x8,
277
278 .smsm_int.irq_name = "adsp_smsm_in",
279 .smsm_int.flags = IRQF_TRIGGER_RISING,
280 .smsm_int.irq_id = -1,
281 .smsm_int.device_name = "smsm_dev",
282 .smsm_int.dev_id = 0,
283 .smsm_int.out_bit_pos = 1 << 9,
284 .smsm_int.out_base = (void __iomem *)MSM_APCS_GCC_BASE,
285 .smsm_int.out_offset = 0x8,
286 },
287 {
288 .irq_config_id = SMD_WCNSS,
289 .subsys_name = "wcnss",
290 .edge = SMD_APPS_WCNSS,
291
292 .smd_int.irq_name = "wcnss_smd_in",
293 .smd_int.flags = IRQF_TRIGGER_RISING,
294 .smd_int.irq_id = -1,
295 .smd_int.device_name = "smd_dev",
296 .smd_int.dev_id = 0,
297 .smd_int.out_bit_pos = 1 << 17,
298 .smd_int.out_base = (void __iomem *)MSM_APCS_GCC_BASE,
299 .smd_int.out_offset = 0x8,
300
301 .smsm_int.irq_name = "wcnss_smsm_in",
302 .smsm_int.flags = IRQF_TRIGGER_RISING,
303 .smsm_int.irq_id = -1,
304 .smsm_int.device_name = "smsm_dev",
305 .smsm_int.dev_id = 0,
306 .smsm_int.out_bit_pos = 1 << 19,
307 .smsm_int.out_base = (void __iomem *)MSM_APCS_GCC_BASE,
308 .smsm_int.out_offset = 0x8,
309 },
Jeff Hugo9a5dc6e2012-03-29 14:39:42 -0600310 {
311 .irq_config_id = SMD_RPM,
312 .subsys_name = NULL, /* do not use PIL to load RPM */
313 .edge = SMD_APPS_RPM,
314
315 .smd_int.irq_name = "rpm_smd_in",
316 .smd_int.flags = IRQF_TRIGGER_RISING,
317 .smd_int.irq_id = -1,
318 .smd_int.device_name = "smd_dev",
319 .smd_int.dev_id = 0,
320 .smd_int.out_bit_pos = 1 << 0,
321 .smd_int.out_base = (void __iomem *)MSM_APCS_GCC_BASE,
322 .smd_int.out_offset = 0x8,
323
324 .smsm_int.irq_name = NULL, /* RPM does not support SMSM */
325 .smsm_int.flags = 0,
326 .smsm_int.irq_id = 0,
327 .smsm_int.device_name = NULL,
328 .smsm_int.dev_id = 0,
329 .smsm_int.out_bit_pos = 0,
330 .smsm_int.out_base = NULL,
331 .smsm_int.out_offset = 0,
332 },
333};
334
335static struct smd_smem_regions aux_smem_areas[] = {
336 {
337 .phys_addr = (void *)(0xfc428000),
338 .size = 0x4000,
339 },
Jeff Hugo70946092012-02-10 11:30:43 -0700340};
341
Jeff Hugo3e366292012-03-29 15:19:14 -0600342static struct smd_subsystem_restart_config smd_ssr_cfg = {
343 .disable_smsm_reset_handshake = 1,
344};
345
Jeff Hugo70946092012-02-10 11:30:43 -0700346static struct smd_platform smd_platform_data = {
347 .num_ss_configs = ARRAY_SIZE(smd_config_list),
348 .smd_ss_configs = smd_config_list,
Jeff Hugo3e366292012-03-29 15:19:14 -0600349 .smd_ssr_config = &smd_ssr_cfg,
Jeff Hugo9a5dc6e2012-03-29 14:39:42 -0600350 .num_smem_areas = ARRAY_SIZE(aux_smem_areas),
351 .smd_smem_areas = aux_smem_areas,
Jeff Hugo70946092012-02-10 11:30:43 -0700352};
353
354struct platform_device msm_device_smd_copper = {
355 .name = "msm_smd",
356 .id = -1,
357 .resource = smd_resource,
358 .num_resources = ARRAY_SIZE(smd_resource),
359 .dev = {
360 .platform_data = &smd_platform_data,
361 }
362};
363
Olav Hauganb800c8c2012-01-30 08:50:45 -0800364static void __init msm_copper_calculate_reserve_sizes(void)
365{
366#ifdef CONFIG_ION_MSM
367 reserve_ion_memory();
368#endif
369}
370
371static struct reserve_info msm_copper_reserve_info __initdata = {
372 .memtype_reserve_table = msm_copper_reserve_table,
373 .calculate_reserve_sizes = msm_copper_calculate_reserve_sizes,
374 .paddr_to_memtype = msm_copper_paddr_to_memtype,
375};
376
377static void __init msm_copper_early_memory(void)
378{
379 reserve_info = &msm_copper_reserve_info;
380}
381
382void __init msm_copper_reserve(void)
383{
384 msm_reserve();
385}
386
Pavankumar Kondeti8c447382012-03-29 09:02:09 +0530387static struct platform_device android_usb_device = {
388 .name = "android_usb",
389 .id = -1,
390};
391
Sathish Ambleyc58afc22011-10-09 21:55:39 -0700392void __init msm_copper_add_devices(void)
393{
Olav Hauganb800c8c2012-01-30 08:50:45 -0800394#ifdef CONFIG_ION_MSM
395 platform_device_register(&ion_dev);
396#endif
Jeff Hugo70946092012-02-10 11:30:43 -0700397 platform_device_register(&msm_device_smd_copper);
Pavankumar Kondeti8c447382012-03-29 09:02:09 +0530398 platform_device_register(&android_usb_device);
Michael Bohan037a0f52012-02-29 19:13:09 -0800399 platform_add_devices(msm_copper_stub_regulator_devices,
400 msm_copper_stub_regulator_devices_len);
Sathish Ambleyc58afc22011-10-09 21:55:39 -0700401}
402
Michael Bohane7c2b472012-03-30 14:27:18 -0700403/*
404 * Used to satisfy dependencies for devices that need to be
405 * run early or in a particular order. Most likely your device doesn't fall
406 * into this category, and thus the driver should not be added here. The
407 * EPROBE_DEFER can satisfy most dependency problems.
408 */
409void __init msm_copper_add_drivers(void)
410{
Praveen Chidambaramda9501d2012-04-26 19:48:29 -0600411 msm_spm_device_init();
Michael Bohane7c2b472012-03-30 14:27:18 -0700412 regulator_stub_init();
413}
414
Michael Bohanc7224532012-01-06 16:02:52 -0800415static struct of_device_id irq_match[] __initdata = {
416 { .compatible = "qcom,msm-qgic2", .data = gic_of_init, },
Michael Bohan0425f6f2012-01-17 14:36:39 -0800417 { .compatible = "qcom,msm-gpio", .data = msm_gpio_of_init, },
Michael Bohan115cf652012-01-05 14:32:59 -0800418 { .compatible = "qcom,spmi-pmic-arb", .data = qpnpint_of_init, },
Sathish Ambleyc58afc22011-10-09 21:55:39 -0700419 {}
420};
421
422void __init msm_copper_init_irq(void)
423{
Michael Bohanc7224532012-01-06 16:02:52 -0800424 of_irq_init(irq_match);
Sathish Ambleyc58afc22011-10-09 21:55:39 -0700425}
426
427static struct clk_lookup msm_clocks_dummy[] = {
Matt Wagantallb3fe8992011-12-07 19:26:55 -0800428 CLK_DUMMY("xo", XO_CLK, NULL, OFF),
Tianyi Gouc1e049f82011-11-23 14:20:16 -0800429 CLK_DUMMY("xo", XO_CLK, "pil_pronto", OFF),
Sathish Ambley3d50c762011-10-25 15:26:00 -0700430 CLK_DUMMY("core_clk", BLSP2_UART_CLK, "msm_serial_hsl.0", OFF),
431 CLK_DUMMY("iface_clk", BLSP2_UART_CLK, "msm_serial_hsl.0", OFF),
Sujit Reddy Thumma1a4a79e2011-11-04 09:44:32 +0530432 CLK_DUMMY("core_clk", SDC1_CLK, NULL, OFF),
433 CLK_DUMMY("iface_clk", SDC1_P_CLK, NULL, OFF),
434 CLK_DUMMY("core_clk", SDC3_CLK, NULL, OFF),
435 CLK_DUMMY("iface_clk", SDC3_P_CLK, NULL, OFF),
Pavankumar Kondeti0063b842012-01-16 12:19:58 +0530436 CLK_DUMMY("phy_clk", NULL, "msm_otg", OFF),
437 CLK_DUMMY("core_clk", NULL, "msm_otg", OFF),
Pavankumar Kondeti0063b842012-01-16 12:19:58 +0530438 CLK_DUMMY("iface_clk", NULL, "msm_otg", OFF),
Pavankumar Kondeti066bfbf2012-02-20 14:10:20 +0530439 CLK_DUMMY("xo", NULL, "msm_otg", OFF),
Yan He1466daa2011-11-30 17:25:38 -0800440 CLK_DUMMY("dfab_clk", DFAB_CLK, NULL, 0),
441 CLK_DUMMY("dma_bam_pclk", DMA_BAM_P_CLK, NULL, 0),
442 CLK_DUMMY("mem_clk", NULL, NULL, 0),
Harini Jayaraman5f98dbb2011-12-20 13:38:19 -0700443 CLK_DUMMY("core_clk", SPI_CLK, "spi_qsd.1", OFF),
444 CLK_DUMMY("iface_clk", SPI_P_CLK, "spi_qsd.1", OFF),
Sagar Dharia218edb92012-01-15 18:03:01 -0700445 CLK_DUMMY("core_clk", NULL, "f9966000.i2c", 0),
446 CLK_DUMMY("iface_clk", NULL, "f9966000.i2c", 0),
Sagar Dhariaa316a962012-03-21 16:13:22 -0600447 CLK_DUMMY("core_clk", NULL, "fe12f000.slim", OFF),
Sathish Ambleyc58afc22011-10-09 21:55:39 -0700448};
449
450struct clock_init_data msm_dummy_clock_init_data __initdata = {
451 .table = msm_clocks_dummy,
452 .size = ARRAY_SIZE(msm_clocks_dummy),
453};
454
455static struct of_dev_auxdata msm_copper_auxdata_lookup[] __initdata = {
Sathish Ambleyab783ab2011-11-27 22:21:48 -0800456 OF_DEV_AUXDATA("qcom,msm-lsuart-v14", 0xF991F000, \
Sathish Ambley3d50c762011-10-25 15:26:00 -0700457 "msm_serial_hsl.0", NULL),
Pavankumar Kondeti0063b842012-01-16 12:19:58 +0530458 OF_DEV_AUXDATA("qcom,hsusb-otg", 0xF9A55000, \
459 "msm_otg", NULL),
Harini Jayaraman5f98dbb2011-12-20 13:38:19 -0700460 OF_DEV_AUXDATA("qcom,spi-qup-v2", 0xF9924000, \
461 "spi_qsd.1", NULL),
Kenneth Heitkef3c829c2012-01-13 17:02:43 -0700462 OF_DEV_AUXDATA("qcom,spmi-pmic-arb", 0xFC4C0000, \
463 "spmi-pmic-arb.0", NULL),
David Ng665140f2012-04-12 16:03:45 -0700464 OF_DEV_AUXDATA("qcom,msm-sdcc", 0xF980B000, \
465 "msm_sdcc.1", NULL),
466 OF_DEV_AUXDATA("qcom,msm-sdcc", 0xF984B000, \
467 "msm_sdcc.3", NULL),
Matt Wagantallc2bbdc32012-03-21 19:44:50 -0700468 OF_DEV_AUXDATA("qcom,pil-q6v5-lpass", 0xFE200000, \
469 "pil-q6v5-lpass", NULL),
Tianyi Gouc1e049f82011-11-23 14:20:16 -0800470 OF_DEV_AUXDATA("qcom,pil-pronto", 0xFB21B000, \
471 "pil_pronto", NULL),
Sathish Ambleyc58afc22011-10-09 21:55:39 -0700472 {}
473};
474
475void __init msm_copper_init(struct of_dev_auxdata **adata)
476{
Sathish Ambleyb17ec7e2012-04-03 15:20:03 -0700477 msm_copper_init_gpiomux();
Vikram Mulukutlaaeadb5f2012-05-04 14:03:07 -0700478
479 if (machine_is_copper_rumi())
480 msm_clock_init(&msm_dummy_clock_init_data);
481 else
482 msm_clock_init(&msmcopper_clock_init_data);
Sathish Ambleyc58afc22011-10-09 21:55:39 -0700483
484 *adata = msm_copper_auxdata_lookup;
485}
Olav Hauganb800c8c2012-01-30 08:50:45 -0800486
487void __init msm_copper_very_early(void)
488{
489 msm_copper_early_memory();
490}