diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-07-03 16:10:04 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-07-03 16:10:04 +0200 |
commit | 10eb92cac26b29c204f3a66fde2f355a692efce8 (patch) | |
tree | 28340036e83e854476b0cf93bba8dd8ffb09fe4f /samsung-ipc/device/xmm6260/xmm6260_hsic.h | |
parent | eb9cffa5d60cdc037d4a8397e8cc690f00bc4990 (diff) | |
download | external_libsamsung-ipc-10eb92cac26b29c204f3a66fde2f355a692efce8.zip external_libsamsung-ipc-10eb92cac26b29c204f3a66fde2f355a692efce8.tar.gz external_libsamsung-ipc-10eb92cac26b29c204f3a66fde2f355a692efce8.tar.bz2 |
Major rework of xmm6260 common code (MIPI and HSIC) and xmm6260 devices code
Change-Id: I49fba6329824e1f1ab0aceef91a57f75727a41ab
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc/device/xmm6260/xmm6260_hsic.h')
-rw-r--r-- | samsung-ipc/device/xmm6260/xmm6260_hsic.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/samsung-ipc/device/xmm6260/xmm6260_hsic.h b/samsung-ipc/device/xmm6260/xmm6260_hsic.h new file mode 100644 index 0000000..5032e41 --- /dev/null +++ b/samsung-ipc/device/xmm6260/xmm6260_hsic.h @@ -0,0 +1,70 @@ +/* + * This file is part of libsamsung-ipc. + * + * Copyright (C) 2013 Paul Kocialkowski <contact@paulk.fr> + * Copyright (C) 2012 Alexander Tarasikov <alexander.tarasikov@gmail.com> + * + * libsamsung-ipc 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 2 of the License, or + * (at your option) any later version. + * + * libsamsung-ipc 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 libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#ifndef __XMM6260_HSIC_H__ +#define __XMM6260_HSIC_H__ + +#define XMM6260_HSIC_BOOT0_ACK 0xF0 +#define XMM6260_HSIC_PSI_UNKNOWN_COUNT 22 +#define XMM6260_HSIC_PSI_CRC_ACK 0x01 +#define XMM6260_HSIC_PSI_CRC_ACK_COUNT 2 +#define XMM6260_HSIC_PSI_ACK 0xAA00 +#define XMM6260_HSIC_EBL_SIZE_ACK 0xCCCC +#define XMM6260_HSIC_EBL_ACK 0xA551 +#define XMM6260_HSIC_EBL_CHUNK 0x4000 +#define XMM6260_HSIC_PORT_CONFIG_SIZE 0x4C +#define XMM6260_HSIC_SET_PORT_CONFIG_SIZE 0x800 +#define XMM6260_HSIC_SEC_START_SIZE 0x4000 +#define XMM6260_HSIC_SEC_END_SIZE 0x4000 +#define XMM6260_HSIC_HW_RESET_SIZE 0x4000 +#define XMM6260_HSIC_FLASH_SET_ADDRESS_SIZE 0x4000 +#define XMM6260_HSIC_FLASH_WRITE_BLOCK_SIZE 0x4000 +#define XMM6260_HSIC_MODEM_DATA_CHUNK 0x4000 + +struct xmm6260_hsic_psi_header { + unsigned char magic; + unsigned short length; + unsigned char padding; +} __attribute__((packed)); + +struct xmm6260_hsic_command_header { + unsigned short checksum; + unsigned short code; + unsigned int data_size; +} __attribute__((packed)); + +int xmm6260_hsic_psi_send(struct ipc_client *client, int device_fd, + void *psi_data, unsigned short psi_size); +int xmm6260_hsic_ebl_send(struct ipc_client *client, int device_fd, + void *ebl_data, int ebl_size); + +int xmm6260_hsic_port_config_send(struct ipc_client *client, int device_fd); +int xmm6260_hsic_sec_start_send(struct ipc_client *client, int device_fd, + void *sec_data, int sec_size); +int xmm6260_hsic_sec_end_send(struct ipc_client *client, int device_fd); +int xmm6260_hsic_firmware_send(struct ipc_client *client, int device_fd, + void *firmware_data, int firmware_size); +int xmm6260_hsic_nv_data_send(struct ipc_client *client, int device_fd); +int xmm6260_hsic_hw_reset_send(struct ipc_client *client, int device_fd); + +#endif + +// vim:ts=4:sw=4:expandtab |