linux-uconsole/include/linux/mdm6600_ctrl.h
James Wylder 37b3acd876 misc: Add mdm6000 modem shutdown logic
Add driver to communicate shutdown request to mdm6600
modem, through gpio triplets.

Change-Id: I00ab47e64e8f398caebac83f7c734f2f2c1a2aa3
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-10-06 16:33:16 -07:00

55 lines
1.5 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,
MDM_GPIO_DIRECTION_OUT_NO_DEFAULT,
};
struct mdm_ctrl_gpio {
unsigned int number;
unsigned int direction;
unsigned int default_value;
unsigned int allocated;
char name[MAX_GPIO_NAME];
};
struct mdm_ctrl_platform_data {
struct mdm_ctrl_gpio gpios[MDM_CTRL_NUM_GPIOS];
};
#endif /* __LINUX_MDM_CTRL_H__ */