summaryrefslogtreecommitdiffstats
path: root/i9305.h
blob: f11f7c204cddc5ac406ff8709be2239390d9321a (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * Copyright (C) 2017 Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * 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, see <http://www.gnu.org/licenses/>.
 */

#ifndef __DEVICE_I9305__
#define __DEVICE_I9305__

#define MDM_DEVICE "/dev/mdm"
#define TTY_DEVICE "/dev/ttyUSB0"

#define CHARM_CODE		0xCC
#define WAKE_CHARM		_IO(CHARM_CODE, 1)
#define NORMAL_BOOT_DONE	_IOW(CHARM_CODE, 5, int)
#define WAIT_FOR_ERROR		_IOW(CHARM_CODE, 12, int)
#define WAIT_FOR_RESTART	_IOR(CHARM_CODE, 7, int)

#define MAX_DATA_SEND_SIZE 1*1024*1024
#define MAX_MEMORY_CHUNK_SIZE 16383

// files to upload
#define FILE_APPS "/firmware/image/apps.mbn"
#define FILE_ACDB "/tombstones/qcks/acdb.bin"
#define FILE_DSP1 "/firmware/image/dsp1.mbn"
#define FILE_DSP2 "/firmware/image/dsp2.mbn"
#define FILE_DSP3 "/firmware/image/dsp3.mbn"
#define FILE_EFS1 "/tombstones/qcks/efs1.bin"
#define FILE_EFS2 "/tombstones/qcks/efs2.bin"
#define FILE_EFS3 "/tombstones/qcks/efs3.bin"
#define FILE_SBL1 "/firmware/image/sbl1.mbn"
#define FILE_SBL2 "/firmware/image/sbl2.mbn"
#define FILE_RPM  "/firmware/image/rpm.mbn"

// EFS sync
#define SYNC_PATH "/dev/block/modem/dump_path/"
#define SYNC_EFS1 "m9kefs1"
#define SYNC_EFS2 "m9kefs2"

#endif