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