winbond_w83627.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  4. */
  5. #ifndef _WINBOND_W83627_H_
  6. #define _WINBOND_W83627_H_
  7. /* I/O address of Winbond Super IO chip */
  8. #define WINBOND_IO_PORT 0x2e
  9. /* Logical device number */
  10. #define W83627DHG_FDC 0 /* Floppy */
  11. #define W83627DHG_PP 1 /* Parallel port */
  12. #define W83627DHG_SP1 2 /* Com1 */
  13. #define W83627DHG_SP2 3 /* Com2 */
  14. #define W83627DHG_KBC 5 /* PS/2 keyboard & mouse */
  15. #define W83627DHG_SPI 6 /* Serial peripheral interface */
  16. #define W83627DHG_WDTO_PLED 8 /* WDTO#, PLED */
  17. #define W83627DHG_ACPI 10 /* ACPI */
  18. #define W83627DHG_HWM 11 /* Hardware monitor */
  19. #define W83627DHG_PECI_SST 12 /* PECI, SST */
  20. /**
  21. * Configure the base I/O port of the specified serial device and enable the
  22. * serial device.
  23. *
  24. * @dev: high 8 bits = super I/O port, low 8 bits = logical device number
  25. * @iobase: processor I/O port address to assign to this serial device
  26. * @irq: processor IRQ number to assign to this serial device
  27. */
  28. void winbond_enable_serial(uint dev, uint iobase, uint irq);
  29. #endif /* _WINBOND_W83627_H_ */