blob: 268606cd9614b24dac1d6545f07116fc4ec66d5e [file] [log] [blame]
Antonio Nino Diaz7298c1f2018-12-05 00:09:30 +00001/*
Carlo Caionee5a30db2019-08-24 17:31:51 +01002 * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
Antonio Nino Diaz7298c1f2018-12-05 00:09:30 +00003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <stdint.h>
8
Carlo Caionee5a30db2019-08-24 17:31:51 +01009#include "aml_private.h"
Antonio Nino Diaz7298c1f2018-12-05 00:09:30 +000010
11static int32_t modules_initialized = -1;
12
13/*******************************************************************************
14 * Unknown commands related to something thermal-related
15 ******************************************************************************/
16void 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}