diff options
Diffstat (limited to 'samsung-ipc/devices/xmm626')
-rw-r--r-- | samsung-ipc/devices/xmm626/xmm626.h | 52 | ||||
-rw-r--r-- | samsung-ipc/devices/xmm626/xmm626_hsic.h | 32 | ||||
-rw-r--r-- | samsung-ipc/devices/xmm626/xmm626_mipi.h | 22 | ||||
-rw-r--r-- | samsung-ipc/devices/xmm626/xmm626_sec_modem.h | 22 |
4 files changed, 63 insertions, 65 deletions
diff --git a/samsung-ipc/devices/xmm626/xmm626.h b/samsung-ipc/devices/xmm626/xmm626.h index 2648cc1..866b36c 100644 --- a/samsung-ipc/devices/xmm626/xmm626.h +++ b/samsung-ipc/devices/xmm626/xmm626.h @@ -20,32 +20,32 @@ #ifndef __XMM626_H__ #define __XMM626_H__ -#define XMM626_AT "ATAT" -#define XMM626_PSI_PADDING 0xFF -#define XMM626_PSI_MAGIC 0x30 -#define XMM626_SEC_END_MAGIC 0x0000 -#define XMM626_HW_RESET_MAGIC 0x111001 -#define XMM626_DATA_SIZE 0x1000 -#define XMM626_DATA_SIZE_LIMIT 0x80000 - -#define XMM626_COMMAND_SET_PORT_CONFIG 0x86 -#define XMM626_COMMAND_SEC_START 0x204 -#define XMM626_COMMAND_SEC_END 0x205 -#define XMM626_COMMAND_HW_RESET 0x208 -#define XMM626_COMMAND_FLASH_SET_ADDRESS 0x802 -#define XMM626_COMMAND_FLASH_WRITE_BLOCK 0x804 - -#define XMM626_FIRMWARE_ADDRESS 0x60300000 -#define XMM626_NV_DATA_ADDRESS 0x60E80000 -#define XMM626_MPS_DATA_ADDRESS 0x61080000 - -#define XMM626_NV_DATA_PATH "/efs/nv_data.bin" -#define XMM626_NV_DATA_MD5_PATH "/efs/nv_data.bin.md5" -#define XMM626_NV_DATA_BACKUP_PATH "/efs/.nv_data.bak" -#define XMM626_NV_DATA_BACKUP_MD5_PATH "/efs/.nv_data.bak.md5" -#define XMM626_NV_DATA_SECRET "Samsung_Android_RIL" -#define XMM626_NV_DATA_SIZE 0x200000 -#define XMM626_NV_DATA_CHUNK_SIZE 0x1000 +#define XMM626_AT "ATAT" +#define XMM626_PSI_PADDING 0xFF +#define XMM626_PSI_MAGIC 0x30 +#define XMM626_SEC_END_MAGIC 0x0000 +#define XMM626_HW_RESET_MAGIC 0x111001 +#define XMM626_DATA_SIZE 0x1000 +#define XMM626_DATA_SIZE_LIMIT 0x80000 + +#define XMM626_COMMAND_SET_PORT_CONFIG 0x86 +#define XMM626_COMMAND_SEC_START 0x204 +#define XMM626_COMMAND_SEC_END 0x205 +#define XMM626_COMMAND_HW_RESET 0x208 +#define XMM626_COMMAND_FLASH_SET_ADDRESS 0x802 +#define XMM626_COMMAND_FLASH_WRITE_BLOCK 0x804 + +#define XMM626_FIRMWARE_ADDRESS 0x60300000 +#define XMM626_NV_DATA_ADDRESS 0x60E80000 +#define XMM626_MPS_DATA_ADDRESS 0x61080000 + +#define XMM626_NV_DATA_PATH "/efs/nv_data.bin" +#define XMM626_NV_DATA_MD5_PATH "/efs/nv_data.bin.md5" +#define XMM626_NV_DATA_BACKUP_PATH "/efs/.nv_data.bak" +#define XMM626_NV_DATA_BACKUP_MD5_PATH "/efs/.nv_data.bak.md5" +#define XMM626_NV_DATA_SECRET "Samsung_Android_RIL" +#define XMM626_NV_DATA_SIZE 0x200000 +#define XMM626_NV_DATA_CHUNK_SIZE 0x1000 unsigned char xmm626_crc_calculate(const void *data, size_t size); diff --git a/samsung-ipc/devices/xmm626/xmm626_hsic.h b/samsung-ipc/devices/xmm626/xmm626_hsic.h index 6fd374c..b35e1ba 100644 --- a/samsung-ipc/devices/xmm626/xmm626_hsic.h +++ b/samsung-ipc/devices/xmm626/xmm626_hsic.h @@ -21,22 +21,22 @@ #ifndef __XMM626_HSIC_H__ #define __XMM626_HSIC_H__ -#define XMM626_HSIC_BOOT0_ACK 0xF0 -#define XMM626_HSIC_PSI_UNKNOWN_COUNT 22 -#define XMM626_HSIC_PSI_CRC_ACK 0x01 -#define XMM626_HSIC_PSI_CRC_ACK_COUNT 2 -#define XMM626_HSIC_PSI_ACK 0xAA00 -#define XMM626_HSIC_EBL_SIZE_ACK 0xCCCC -#define XMM626_HSIC_EBL_ACK 0xA551 -#define XMM626_HSIC_EBL_CHUNK 0x4000 -#define XMM626_HSIC_PORT_CONFIG_SIZE 0x4C -#define XMM626_HSIC_SET_PORT_CONFIG_SIZE 0x800 -#define XMM626_HSIC_SEC_START_SIZE 0x4000 -#define XMM626_HSIC_SEC_END_SIZE 0x4000 -#define XMM626_HSIC_HW_RESET_SIZE 0x4000 -#define XMM626_HSIC_FLASH_SET_ADDRESS_SIZE 0x4000 -#define XMM626_HSIC_FLASH_WRITE_BLOCK_SIZE 0x4000 -#define XMM626_HSIC_MODEM_DATA_CHUNK 0x4000 +#define XMM626_HSIC_BOOT0_ACK 0xF0 +#define XMM626_HSIC_PSI_UNKNOWN_COUNT 22 +#define XMM626_HSIC_PSI_CRC_ACK 0x01 +#define XMM626_HSIC_PSI_CRC_ACK_COUNT 2 +#define XMM626_HSIC_PSI_ACK 0xAA00 +#define XMM626_HSIC_EBL_SIZE_ACK 0xCCCC +#define XMM626_HSIC_EBL_ACK 0xA551 +#define XMM626_HSIC_EBL_CHUNK 0x4000 +#define XMM626_HSIC_PORT_CONFIG_SIZE 0x4C +#define XMM626_HSIC_SET_PORT_CONFIG_SIZE 0x800 +#define XMM626_HSIC_SEC_START_SIZE 0x4000 +#define XMM626_HSIC_SEC_END_SIZE 0x4000 +#define XMM626_HSIC_HW_RESET_SIZE 0x4000 +#define XMM626_HSIC_FLASH_SET_ADDRESS_SIZE 0x4000 +#define XMM626_HSIC_FLASH_WRITE_BLOCK_SIZE 0x4000 +#define XMM626_HSIC_MODEM_DATA_CHUNK 0x4000 struct xmm626_hsic_psi_header { unsigned char magic; diff --git a/samsung-ipc/devices/xmm626/xmm626_mipi.h b/samsung-ipc/devices/xmm626/xmm626_mipi.h index 961744a..4d389df 100644 --- a/samsung-ipc/devices/xmm626/xmm626_mipi.h +++ b/samsung-ipc/devices/xmm626/xmm626_mipi.h @@ -21,17 +21,17 @@ #ifndef __XMM626_MIPI_H__ #define __XMM626_MIPI_H__ -#define XMM626_MIPI_BOOT0_ACK 0xFFFF -#define XMM626_MIPI_BOOT1_MAGIC 0x02 -#define XMM626_MIPI_BOOT1_ACK 0xAA00 -#define XMM626_MIPI_PSI_ACK 0xDD01 -#define XMM626_MIPI_EBL_SIZE_ACK 0xCCCC -#define XMM626_MIPI_EBL_ACK 0xA551 -#define XMM626_MIPI_EBL_CHUNK 0xDFC -#define XMM626_MIPI_MODEM_DATA_CHUNK 0xDF2 -#define XMM626_MIPI_COMMAND_HEADER_MAGIC 0x02 -#define XMM626_MIPI_COMMAND_FOOTER_MAGIC 0x03 -#define XMM626_MIPI_COMMAND_FOOTER_UNKNOWN 0xEAEA +#define XMM626_MIPI_BOOT0_ACK 0xFFFF +#define XMM626_MIPI_BOOT1_MAGIC 0x02 +#define XMM626_MIPI_BOOT1_ACK 0xAA00 +#define XMM626_MIPI_PSI_ACK 0xDD01 +#define XMM626_MIPI_EBL_SIZE_ACK 0xCCCC +#define XMM626_MIPI_EBL_ACK 0xA551 +#define XMM626_MIPI_EBL_CHUNK 0xDFC +#define XMM626_MIPI_MODEM_DATA_CHUNK 0xDF2 +#define XMM626_MIPI_COMMAND_HEADER_MAGIC 0x02 +#define XMM626_MIPI_COMMAND_FOOTER_MAGIC 0x03 +#define XMM626_MIPI_COMMAND_FOOTER_UNKNOWN 0xEAEA struct xmm626_mipi_psi_header { unsigned char padding; diff --git a/samsung-ipc/devices/xmm626/xmm626_sec_modem.h b/samsung-ipc/devices/xmm626/xmm626_sec_modem.h index ed2af82..728320e 100644 --- a/samsung-ipc/devices/xmm626/xmm626_sec_modem.h +++ b/samsung-ipc/devices/xmm626/xmm626_sec_modem.h @@ -20,18 +20,16 @@ #ifndef __XMM626_SEC_MODEM_H__ #define __XMM626_SEC_MODEM_H__ -#define XMM626_SEC_MODEM_BUFFER_SIZE_MAX 0x80000 - -#define XMM626_SEC_MODEM_BOOT0_DEVICE "/dev/umts_boot0" -#define XMM626_SEC_MODEM_BOOT1_DEVICE "/dev/umts_boot1" -#define XMM626_SEC_MODEM_IPC0_DEVICE "/dev/umts_ipc0" -#define XMM626_SEC_MODEM_RFS0_DEVICE "/dev/umts_rfs0" -#define XMM626_SEC_MODEM_LINK_PM_DEVICE "/dev/link_pm" -#define XMM626_SEC_MODEM_EHCI_POWER_SYSFS "/sys/devices/platform/s5p-ehci/ehci_power" -#define XMM626_SEC_MODEM_OHCI_POWER_SYSFS "/sys/devices/platform/s5p-ohci/ohci_power" - -#define XMM626_SEC_MODEM_GPRS_IFACE_PREFIX "rmnet" -#define XMM626_SEC_MODEM_GPRS_IFACE_COUNT 3 +#define XMM626_SEC_MODEM_BOOT0_DEVICE "/dev/umts_boot0" +#define XMM626_SEC_MODEM_BOOT1_DEVICE "/dev/umts_boot1" +#define XMM626_SEC_MODEM_IPC0_DEVICE "/dev/umts_ipc0" +#define XMM626_SEC_MODEM_RFS0_DEVICE "/dev/umts_rfs0" +#define XMM626_SEC_MODEM_LINK_PM_DEVICE "/dev/link_pm" +#define XMM626_SEC_MODEM_EHCI_POWER_SYSFS "/sys/devices/platform/s5p-ehci/ehci_power" +#define XMM626_SEC_MODEM_OHCI_POWER_SYSFS "/sys/devices/platform/s5p-ohci/ohci_power" + +#define XMM626_SEC_MODEM_GPRS_IFACE_PREFIX "rmnet" +#define XMM626_SEC_MODEM_GPRS_IFACE_COUNT 3 int xmm626_sec_modem_power(int device_fd, int power); int xmm626_sec_modem_boot_power(int device_fd, int power); |