Antonio Nino Diaz | 272e871 | 2018-09-18 01:36:00 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <stdint.h> |
| 8 | |
| 9 | #include "gxbb_private.h" |
| 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 | } |