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