1 /* 2 * Copyright (c) 2017-2020, Broadcom 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef SCP_CMD_H 8 #define SCP_SMD_H 9 10 #include <stdint.h> 11 12 typedef struct { 13 int cmd; 14 int completed; 15 int ret; 16 } crmu_response_t; 17 18 19 #define SCP_CMD_MASK 0xffff 20 #define SCP_CMD_DEFAULT_TIMEOUT_US 1000 21 #define SCP_CMD_SCP_BOOT_TIMEOUT_US 5000 22 23 int scp_send_cmd(uint32_t cmd, uint32_t param, uint32_t timeout); 24 25 #endif 26