aml_thermal.c 670 B

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