xref: /OK3568_Linux_fs/u-boot/arch/x86/include/asm/scu.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Copyright (c) 2017 Intel Corporation
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * SPDX-License-Identifier:	GPL-2.0+
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun #ifndef _X86_ASM_SCU_IPC_H_
7*4882a593Smuzhiyun #define _X86_ASM_SCU_IPC_H_
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun /* IPC defines the following message types */
10*4882a593Smuzhiyun #define IPCMSG_WARM_RESET	0xf0
11*4882a593Smuzhiyun #define IPCMSG_COLD_RESET	0xf1
12*4882a593Smuzhiyun #define IPCMSG_SOFT_RESET	0xf2
13*4882a593Smuzhiyun #define IPCMSG_COLD_BOOT	0xf3
14*4882a593Smuzhiyun #define IPCMSG_GET_FW_REVISION	0xf4
15*4882a593Smuzhiyun #define IPCMSG_WATCHDOG_TIMER	0xf8	/* Set Kernel Watchdog Threshold */
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun struct ipc_ifwi_version {
18*4882a593Smuzhiyun 	u16	minor;
19*4882a593Smuzhiyun 	u8	major;
20*4882a593Smuzhiyun 	u8	hardware_id;
21*4882a593Smuzhiyun 	u32	reserved[3];
22*4882a593Smuzhiyun };
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun /* Issue commands to the SCU with or without data */
25*4882a593Smuzhiyun int scu_ipc_simple_command(u32 cmd, u32 sub);
26*4882a593Smuzhiyun int scu_ipc_command(u32 cmd, u32 sub, u32 *in, int inlen, u32 *out, int outlen);
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif	/* _X86_ASM_SCU_IPC_H_ */
29