Edward O'Callaghan | 5a032c6 | 2014-04-27 22:41:31 +1000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2014 Edward O'Callaghan <eocallaghan@alterapraxis.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Edward O'Callaghan | 5a032c6 | 2014-04-27 22:41:31 +1000 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #ifndef SUPERIO_WINBOND_COMMON_ROMSTAGE_H |
| 18 | #define SUPERIO_WINBOND_COMMON_ROMSTAGE_H |
| 19 | |
| 20 | #include <arch/io.h> |
| 21 | #include <stdint.h> |
| 22 | |
Timothy Pearson | e4cca16 | 2016-05-24 15:48:50 -0500 | [diff] [blame] | 23 | void winbond_enable_serial(pnp_devfn_t dev, uint16_t iobase); |
| 24 | void winbond_set_pinmux(pnp_devfn_t dev, uint8_t offset, uint8_t mask, uint8_t state); |
Edward O'Callaghan | 5a032c6 | 2014-04-27 22:41:31 +1000 | [diff] [blame] | 25 | |
Timothy Pearson | 9891b4a | 2016-05-18 13:31:05 -0500 | [diff] [blame] | 26 | void pnp_enter_conf_state(pnp_devfn_t dev); |
| 27 | void pnp_exit_conf_state(pnp_devfn_t dev); |
| 28 | |
Edward O'Callaghan | 5a032c6 | 2014-04-27 22:41:31 +1000 | [diff] [blame] | 29 | #endif /* SUPERIO_WINBOND_COMMON_ROMSTAGE_H */ |