blob: 6e67eeb83d77924ca823328fa430b52c69d03e59 [file] [log] [blame]
Edward O'Callaghan5a032c62014-04-27 22:41:31 +10001/*
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'Callaghan5a032c62014-04-27 22:41:31 +100015 */
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 Pearsone4cca162016-05-24 15:48:50 -050023void winbond_enable_serial(pnp_devfn_t dev, uint16_t iobase);
24void winbond_set_pinmux(pnp_devfn_t dev, uint8_t offset, uint8_t mask, uint8_t state);
Edward O'Callaghan5a032c62014-04-27 22:41:31 +100025
Timothy Pearson9891b4a2016-05-18 13:31:05 -050026void pnp_enter_conf_state(pnp_devfn_t dev);
27void pnp_exit_conf_state(pnp_devfn_t dev);
28
Edward O'Callaghan5a032c62014-04-27 22:41:31 +100029#endif /* SUPERIO_WINBOND_COMMON_ROMSTAGE_H */