- fix initialization of BP_PWRON (PS6), and BP_RESIN (PZ1) gpios,
- cleanup kernel log messages,
- assert BP_RESIN gpio to reset unresponsive modem.
Change-Id: Iaf6b7d553fec1a6e9254b7183c1beacf7ad4d555
Signed-off-by: James Wylder <james.wylder@motorola.com>
54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
/*
|
|
Copyright (C) 2010 Motorola, Inc.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License version 2 as
|
|
published by the Free Software Foundation.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
02111-1307 USA
|
|
*/
|
|
#ifndef __LINUX_MDM_CTRL_H__
|
|
#define __LINUX_MDM_CTRL_H__
|
|
|
|
#define MDM_CTRL_MODULE_NAME "mdm6600_ctrl"
|
|
#define MAX_GPIO_NAME 20
|
|
|
|
enum {
|
|
MDM_CTRL_GPIO_AP_STATUS_0,
|
|
MDM_CTRL_GPIO_AP_STATUS_1,
|
|
MDM_CTRL_GPIO_AP_STATUS_2,
|
|
MDM_CTRL_GPIO_BP_STATUS_0,
|
|
MDM_CTRL_GPIO_BP_STATUS_1,
|
|
MDM_CTRL_GPIO_BP_STATUS_2,
|
|
MDM_CTRL_GPIO_BP_RESOUT,
|
|
MDM_CTRL_GPIO_BP_RESIN,
|
|
MDM_CTRL_GPIO_BP_PWRON,
|
|
|
|
MDM_CTRL_NUM_GPIOS,
|
|
};
|
|
|
|
enum {
|
|
MDM_GPIO_DIRECTION_IN,
|
|
MDM_GPIO_DIRECTION_OUT,
|
|
};
|
|
|
|
struct mdm_ctrl_gpio {
|
|
unsigned int number;
|
|
unsigned int direction;
|
|
unsigned int default_value;
|
|
unsigned int allocated;
|
|
char *name;
|
|
};
|
|
|
|
struct mdm_ctrl_platform_data {
|
|
struct mdm_ctrl_gpio gpios[MDM_CTRL_NUM_GPIOS];
|
|
};
|
|
#endif /* __LINUX_MDM_CTRL_H__ */
|