blob: 0a57f10f4efb2c1a0fd0a613f517548ab7ade4cb [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 ******************************************************************************/
Carlo Caione68aa5ee2019-08-25 18:09:59 +010016void aml_thermal_unknown(void)
Antonio Nino Diaz7298c1f2018-12-05 00:09:30 +000017{
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}