summaryrefslogtreecommitdiffstats
path: root/i9305.h
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-07-16 21:52:43 +0200
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-07-16 21:57:57 +0200
commitbcf9438e27b3e678c815b544509706e7b7332451 (patch)
treed1f7f2814d01c46c3e84ac479416aeaaaf86175d /i9305.h
downloadqmi-ril-bcf9438e27b3e678c815b544509706e7b7332451.tar.gz
qmi-ril-bcf9438e27b3e678c815b544509706e7b7332451.tar.bz2
qmi-ril-bcf9438e27b3e678c815b544509706e7b7332451.zip
Init with a tool to boot the modem on the Galaxy S3 4G (I9305)
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Diffstat (limited to 'i9305.h')
-rw-r--r--i9305.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/i9305.h b/i9305.h
new file mode 100644
index 0000000..e9e6385
--- /dev/null
+++ b/i9305.h
@@ -0,0 +1,44 @@
+/*
+ * 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 MAX_DATA_SEND_SIZE 1*1024*1024
+
+// 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"
+
+#endif