nuvoton_nct6102d.h 790 B

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