lpc.h 777 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * From coreboot soc/intel/broadwell/include/soc/lpc.h
  4. *
  5. * Copyright (C) 2016 Google Inc.
  6. */
  7. #ifndef _ASM_ARCH_LPC_H
  8. #define _ASM_ARCH_LPC_H
  9. #define GEN_PMCON_1 0xa0
  10. #define SMI_LOCK (1 << 4)
  11. #define GEN_PMCON_2 0xa2
  12. #define SYSTEM_RESET_STS (1 << 4)
  13. #define THERMTRIP_STS (1 << 3)
  14. #define SYSPWR_FLR (1 << 1)
  15. #define PWROK_FLR (1 << 0)
  16. #define GEN_PMCON_3 0xa4
  17. #define SUS_PWR_FLR (1 << 14)
  18. #define GEN_RST_STS (1 << 9)
  19. #define RTC_BATTERY_DEAD (1 << 2)
  20. #define PWR_FLR (1 << 1)
  21. #define SLEEP_AFTER_POWER_FAIL (1 << 0)
  22. #define GEN_PMCON_LOCK 0xa6
  23. #define SLP_STR_POL_LOCK (1 << 2)
  24. #define ACPI_BASE_LOCK (1 << 1)
  25. #define PMIR 0xac
  26. #define PMIR_CF9LOCK (1 << 31)
  27. #define PMIR_CF9GR (1 << 20)
  28. #endif