Sheetal Tigadoli | ad0943e | 2019-12-18 19:44:43 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017-2020, Broadcom |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef SCP_CMD_H |
Andre Przywara | 85956b0 | 2023-05-15 15:37:10 +0100 | [diff] [blame^] | 8 | #define SCP_CMD_H |
Sheetal Tigadoli | ad0943e | 2019-12-18 19:44:43 +0530 | [diff] [blame] | 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 |