winbond_w83627.h 1.1 KB

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