diff options
| author | Tom Rini <trini@konsulko.com> | 2020-07-29 14:24:17 -0400 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2020-07-29 14:24:17 -0400 |
| commit | 8da75b1ddf966bd8457a2b5bf59dec0bfc9a1cd6 (patch) | |
| tree | 41d2ef5d35c09e393409d18fa329848774580592 /include/broadcom/chimp.h | |
| parent | 423e08cb77015beab6a81595765ec1faa34bedde (diff) | |
| parent | 2ae7adc659f7fca9ea65df4318e5bca2b8274310 (diff) | |
Merge branch '2020-07-29-add-brcm-ns3-support'
- Add initial Broadcom NS3 SoC support.
Diffstat (limited to 'include/broadcom/chimp.h')
| -rw-r--r-- | include/broadcom/chimp.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/broadcom/chimp.h b/include/broadcom/chimp.h new file mode 100644 index 00000000000..7f641529139 --- /dev/null +++ b/include/broadcom/chimp.h @@ -0,0 +1,43 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2020 Broadcom. + * + */ + +#ifndef __CHIMP_H__ +#define __CHIMP_H__ + +#include <linux/compiler.h> + +/** + * chimp_fastboot_optee() - api to load bnxt firmware + * + * @return: 0 on success and -ve on failure + */ +int chimp_fastboot_optee(void); + +/** + * chimp_health_status_optee() - get chimp health status + * + * Chimp health status could be firmware is in good condition or + * bad condition because of crash/hang. + * + * @status: pointer to get chimp health status + * + * @return: 0 on success and -ve on failure + */ +int chimp_health_status_optee(u32 *status); + +/** + * chimp_handshake_status_optee() - get chimp handshake status. + * + * To know firmware is loaded and running. + * + * @timeout: timeout value, if 0 then default timeout is considered by op-tee + * @hstatus: pointer to chimp handshake status + * + * @return: 0 on success and -ve on failure + */ +int chimp_handshake_status_optee(u32 timeout, u32 *hstatus); + +#endif |
