blob: c6c03e45de4bec060e1871d46a3c963a877addb9 [file] [log] [blame]
Taniya Das2b7646b2013-01-15 11:28:14 +05301/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
Joel Kingb6f0f612011-11-01 16:59:14 -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#ifndef _ARCH_ARM_MACH_MSM_MDM2_H
14#define _ARCH_ARM_MACH_MSM_MDM2_H
Ameya Thakur552e58a2013-01-30 11:33:22 -080015#include "sysmon.h"
Joel Kingb6f0f612011-11-01 16:59:14 -070016
Joel Kingef390842012-05-23 16:42:48 -070017struct mdm_vddmin_resource {
18 int rpm_id;
19 int ap2mdm_vddmin_gpio;
20 unsigned int modes;
21 unsigned int drive_strength;
22 int mdm2ap_vddmin_gpio;
23};
24
Joel Kingb6f0f612011-11-01 16:59:14 -070025struct mdm_platform_data {
26 char *mdm_version;
Joel King415af512012-02-03 10:22:43 -080027 int ramdump_delay_ms;
Taniya Das2b7646b2013-01-15 11:28:14 +053028 int ps_hold_delay_ms;
Joel Kinge92eb872012-05-06 09:30:24 -070029 int soft_reset_inverted;
30 int early_power_on;
31 int sfr_query;
Joel King733377c2012-06-20 13:07:38 -070032 int no_powerdown_after_ramdumps;
Joel Kingef390842012-05-23 16:42:48 -070033 struct mdm_vddmin_resource *vddmin_resource;
Joel Kingd8052c02012-02-03 12:33:31 -080034 struct platform_device *peripheral_platform_device;
Ameya Thakurc9a7a842012-06-24 22:47:52 -070035 const unsigned int ramdump_timeout_ms;
Ameya Thakur43248fd2012-07-10 18:50:52 -070036 int image_upgrade_supported;
Joel King269aa602012-07-23 08:07:35 -070037 struct gpiomux_setting *mdm2ap_status_gpio_run_cfg;
Joel Kingbf3e4b52012-09-26 09:10:34 -070038 int send_shdn;
Ameya Thakur552e58a2013-01-30 11:33:22 -080039 int cascading_ssr;
40 int sysmon_subsys_id_valid;
41 enum subsys_id sysmon_subsys_id;
Joel Kingb6f0f612011-11-01 16:59:14 -070042};
43
44#endif
45