blob: 806ef56a539e332145a9ad81a521467c7c6fc57c [file] [log] [blame]
Sheetal Tigadoliad0943e2019-12-18 19:44:43 +05301/*
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
12typedef 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
23int scp_send_cmd(uint32_t cmd, uint32_t param, uint32_t timeout);
24
25#endif