Antonio Nino Diaz | 272e871 | 2018-09-18 01:36:00 +0100 | [diff] [blame] | 1 | /* |
Carlo Caione | e5a30db | 2019-08-24 17:31:51 +0100 | [diff] [blame^] | 2 | * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. |
Antonio Nino Diaz | 272e871 | 2018-09-18 01:36:00 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <stdint.h> |
| 8 | |
Carlo Caione | e5a30db | 2019-08-24 17:31:51 +0100 | [diff] [blame^] | 9 | #include "aml_private.h" |
Antonio Nino Diaz | 272e871 | 2018-09-18 01:36:00 +0100 | [diff] [blame] | 10 | |
| 11 | static int32_t modules_initialized = -1; |
| 12 | |
| 13 | /******************************************************************************* |
| 14 | * Unknown commands related to something thermal-related |
| 15 | ******************************************************************************/ |
| 16 | void gxbb_thermal_unknown(void) |
| 17 | { |
| 18 | uint16_t ret; |
| 19 | |
| 20 | if (modules_initialized == -1) { |
| 21 | scpi_efuse_read(&ret, 0, 2); |
| 22 | modules_initialized = ret; |
| 23 | } |
| 24 | |
| 25 | scpi_unknown_thermal(10, 2, /* thermal */ |
| 26 | 13, 1); /* thermalver */ |
| 27 | } |