2018-09-18 01:36:00 +01:00
|
|
|
/*
|
2019-08-24 17:31:51 +01:00
|
|
|
* Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
|
2018-09-18 01:36:00 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2019-08-24 17:31:51 +01:00
|
|
|
#include "aml_private.h"
|
2018-09-18 01:36:00 +01:00
|
|
|
|
|
|
|
static int32_t modules_initialized = -1;
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
* Unknown commands related to something thermal-related
|
|
|
|
******************************************************************************/
|
2019-08-25 18:09:59 +01:00
|
|
|
void aml_thermal_unknown(void)
|
2018-09-18 01:36:00 +01:00
|
|
|
{
|
|
|
|
uint16_t ret;
|
|
|
|
|
|
|
|
if (modules_initialized == -1) {
|
2019-08-28 10:08:24 +01:00
|
|
|
aml_scpi_efuse_read(&ret, 0, 2);
|
2018-09-18 01:36:00 +01:00
|
|
|
modules_initialized = ret;
|
|
|
|
}
|
|
|
|
|
2019-08-28 10:08:24 +01:00
|
|
|
aml_scpi_unknown_thermal(10, 2, /* thermal */
|
|
|
|
13, 1); /* thermalver */
|
2018-09-18 01:36:00 +01:00
|
|
|
}
|