aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/lte_modem_bootloader.h
blob: 893a1aa98eb866e2f84b3f02f4160cd7d77cb724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Lte modem bootloader support for Samsung Tuna Board.
 *
 * Copyright (C) 2011 Google, Inc.
 * Copyright (C) 2011 Samsung Electronics.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * 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.
 */

#ifndef __LTE_MODEM_BOOTLOADER_H
#define __LTE_MODEM_BOOTLOADER_H

#define LTE_MODEM_BOOTLOADER_DRIVER_NAME	"lte_modem_bootloader"

#define IOCTL_LTE_MODEM_XMIT_BOOT		_IOW('o', 0x23, unsigned int)
#define IOCTL_LTE_MODEM_LTE2AP_STATUS	_IOR('o', 0x24, unsigned int)

#define IOCTL_LTE_MODEM_FACTORY_MODE_ON		_IOWR('o', 0x25, unsigned int)
#define IOCTL_LTE_MODEM_FACTORY_MODE_OFF	_IOWR('o', 0x26, unsigned int)

struct lte_modem_bootloader_param {
	char __user *buf;
	int len;
};

struct lte_modem_bootloader_platform_data {
	const char *name;
	unsigned int gpio_lte2ap_status;
};
#endif/* LTE_MODEM_BOOTLOADER_H */