| 1 |
/* |
| 2 |
* Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: BSD-3-Clause |
| 5 |
*/ |
| 6 |
|
| 7 |
#include <stdint.h> |
| 8 |
|
| 9 |
#include "aml_private.h" |
| 10 |
|
| 11 |
static int32_t modules_initialized = -1; |
| 12 |
|
| 13 |
/******************************************************************************* |
| 14 |
* Unknown commands related to something thermal-related |
| 15 |
******************************************************************************/ |
| 16 |
void aml_thermal_unknown(void) |
| 17 |
{ |
| 18 |
uint16_t ret; |
| 19 |
|
| 20 |
if (modules_initialized == -1) { |
| 21 |
aml_scpi_efuse_read(&ret, 0, 2); |
| 22 |
modules_initialized = ret; |
| 23 |
} |
| 24 |
|
| 25 |
aml_scpi_unknown_thermal(10, 2, /* thermal */ |
| 26 |
13, 1); /* thermalver */ |
| 27 |
} |