nuvoton_nct6102d.h 790 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef _NUVOTON_NCT6102D_H_
  7. #define _NUVOTON_NCT6102D_H_
  8. /* I/O address of Nuvoton Super IO chip */
  9. #define NCT6102D_IO_PORT 0x4e
  10. /* Extended Function Enable Registers */
  11. #define NCT_EFER (NCT6102D_IO_PORT + 0)
  12. /* Extended Function Index Register (same as EFER) */
  13. #define NCT_EFIR (NCT6102D_IO_PORT + 0)
  14. /* Extended Function Data Register */
  15. #define NCT_EFDR (NCT_EFIR + 1)
  16. #define NCT_LD_SELECT_REG 0x07
  17. /* Logical device number */
  18. #define NCT6102D_LD_UARTA 0x02
  19. #define NCT6102D_LD_WDT 0x08
  20. #define NCT6102D_UARTA_ENABLE 0x30
  21. #define NCT6102D_WDT_TIMEOUT 0xf1
  22. #define NCT_ENTRY_KEY 0x87
  23. #define NCT_EXIT_KEY 0xaa
  24. int nct6102d_wdt_disable(void);
  25. #endif /* _NUVOTON_NCT6102D_H_ */