Initial commit: Geminux 0.1.0 (helio) for Planet Computers Gemini PDA (MT6797X)
This commit is contained in:
commit
034c1f61b1
816 files changed
+223435
No files matched your search
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Binary file not shown.
@@ -0,0 +1,91 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
||||
/*
|
||||
* UAPI definitions for MediaTek MT6797 staged CCCI/CLDMA driver.
|
||||
*/
|
||||
#ifndef _UAPI_LINUX_MT6797_CCCI_H
|
||||
#define _UAPI_LINUX_MT6797_CCCI_H
|
||||
|
||||
#include <linux/ioctl.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#define MT6797_CCCI_MAGIC 'C'
|
||||
|
||||
/* CCCI 16-byte hardware framing header */
|
||||
struct mt6797_ccci_header {
|
||||
__u32 data0;
|
||||
__u32 data1;
|
||||
__u32 channel;
|
||||
__u32 reserved;
|
||||
} __attribute__((packed));
|
||||
|
||||
/* Verified MT6797 CCCI channel IDs */
|
||||
#define MT6797_CCCI_CH_CONTROL_RX 0
|
||||
#define MT6797_CCCI_CH_CONTROL_TX 1
|
||||
#define MT6797_CCCI_CH_SYSTEM_RX 2
|
||||
#define MT6797_CCCI_CH_SYSTEM_TX 3
|
||||
#define MT6797_CCCI_CH_PCM_RX 4
|
||||
#define MT6797_CCCI_CH_PCM_TX 5
|
||||
#define MT6797_CCCI_CH_UART1_RX 6
|
||||
#define MT6797_CCCI_CH_UART1_TX 8
|
||||
#define MT6797_CCCI_CH_UART2_RX 10
|
||||
#define MT6797_CCCI_CH_UART2_TX 12
|
||||
#define MT6797_CCCI_CH_FS_RX 14
|
||||
#define MT6797_CCCI_CH_FS_TX 15
|
||||
#define MT6797_CCCI_CH_CCMNI1_RX 20
|
||||
#define MT6797_CCCI_CH_CCMNI1_TX 22
|
||||
#define MT6797_CCCI_CH_CCMNI2_RX 24
|
||||
#define MT6797_CCCI_CH_CCMNI2_TX 26
|
||||
#define MT6797_CCCI_CH_CCMNI3_RX 28
|
||||
#define MT6797_CCCI_CH_CCMNI3_TX 30
|
||||
#define MT6797_CCCI_CH_RPC_RX 32
|
||||
#define MT6797_CCCI_CH_RPC_TX 33
|
||||
#define MT6797_CCCI_CH_IPC_UART_RX 38
|
||||
#define MT6797_CCCI_CH_IPC_UART_TX 40
|
||||
#define MT6797_CCCI_CH_MD_LOG_RX 42
|
||||
#define MT6797_CCCI_CH_MD_LOG_TX 43
|
||||
#define MT6797_CCCI_CH_ICUSB_RX 60
|
||||
#define MT6797_CCCI_CH_ICUSB_TX 61
|
||||
#define MT6797_CCCI_CH_STATUS_RX 67
|
||||
#define MT6797_CCCI_CH_STATUS_TX 68
|
||||
|
||||
/* Control message IDs on CCCI_CONTROL_RX/TX */
|
||||
#define MT6797_CCCI_MSG_MD_INIT_START_BOOT 0xB0000001U
|
||||
#define MT6797_CCCI_MSG_NORMAL_BOOT_READY 0xB0000002U
|
||||
#define MT6797_CCCI_MSG_META_BOOT_READY 0xB0000003U
|
||||
#define MT6797_CCCI_MSG_MD_EX 0xB0000004U
|
||||
#define MT6797_CCCI_MSG_MD_EX_REC_OK 0xB0000006U
|
||||
#define MT6797_CCCI_MSG_HS1 0xFFFFFFFFU
|
||||
|
||||
enum mt6797_ccci_md_state {
|
||||
MT6797_MD_STATE_INVALID = 0,
|
||||
MT6797_MD_STATE_GATED = 1,
|
||||
MT6797_MD_STATE_BOOTING = 2,
|
||||
MT6797_MD_STATE_HS1 = 3,
|
||||
MT6797_MD_STATE_READY = 4,
|
||||
MT6797_MD_STATE_EXCEPTION = 5,
|
||||
MT6797_MD_STATE_RESET = 6,
|
||||
};
|
||||
|
||||
struct mt6797_ccci_status {
|
||||
__u32 stage;
|
||||
__u32 md_state;
|
||||
__u32 boot_stats0;
|
||||
__u32 boot_stats1;
|
||||
__u64 md_mem_phys;
|
||||
__u64 md_mem_size;
|
||||
__u64 smem_phys;
|
||||
__u64 smem_size;
|
||||
__u32 tx_packets;
|
||||
__u32 rx_packets;
|
||||
__u32 handoff_valid;
|
||||
__u32 reserved;
|
||||
};
|
||||
|
||||
#define CCCI_IOC_MD_RESET _IO(MT6797_CCCI_MAGIC, 0)
|
||||
#define CCCI_IOC_GET_MD_STATE _IOR(MT6797_CCCI_MAGIC, 1, __u32)
|
||||
#define CCCI_IOC_SET_STAGE _IOW(MT6797_CCCI_MAGIC, 3, __u32)
|
||||
#define CCCI_IOC_GET_STATUS _IOR(MT6797_CCCI_MAGIC, 4, struct mt6797_ccci_status)
|
||||
#define CCCI_IOC_ENTER_DEEP_FLIGHT _IO(MT6797_CCCI_MAGIC, 14)
|
||||
#define CCCI_IOC_LEAVE_DEEP_FLIGHT _IO(MT6797_CCCI_MAGIC, 15)
|
||||
|
||||
#endif /* _UAPI_LINUX_MT6797_CCCI_H */
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Loaded 100 of 816 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user