blob: 53ed10323e6851633d7c8911acf166d2eab10826 [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) {
Carlo Caione7bb83022019-08-28 10:08:24 +010021 aml_scpi_efuse_read(&ret, 0, 2);
Antonio Nino Diaz7298c1f2018-12-05 00:09:30 +000022 modules_initialized = ret;
23 }
24
Carlo Caione7bb83022019-08-28 10:08:24 +010025 aml_scpi_unknown_thermal(10, 2, /* thermal */
26 13, 1); /* thermalver */
Antonio Nino Diaz7298c1f2018-12-05 00:09:30 +000027}