diff options
author | Stefan Reinauer <stepan@openbios.org> | 2006-08-07 16:48:11 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2006-08-07 16:48:11 +0000 |
commit | 4253844428c990324ee8f5a887e7af3b80db8b6e (patch) | |
tree | 494abcac6ac57c2f8ccd9b0e650676abb5f9180c /src/superio/ite/it8671f/it8671f_early_serial.c | |
parent | ac4ca2b17eb218c25663bcbb16e082506853f9d2 (diff) |
add support for ite/it8671f superio from Uwe Hermann.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2365 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/superio/ite/it8671f/it8671f_early_serial.c')
-rw-r--r-- | src/superio/ite/it8671f/it8671f_early_serial.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/superio/ite/it8671f/it8671f_early_serial.c b/src/superio/ite/it8671f/it8671f_early_serial.c new file mode 100644 index 0000000000..6af522e9d3 --- /dev/null +++ b/src/superio/ite/it8671f/it8671f_early_serial.c @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2006 Uwe Hermann <uwe@hermann-uwe.de> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <arch/romcc_io.h> +#include "it8671f.h" + +static void it8671f_enable_serial(device_t dev, unsigned iobase) +{ + pnp_set_logical_device(dev); + pnp_set_enable(dev, 1); + pnp_set_iobase(dev, PNP_IDX_IO0, iobase); + pnp_set_enable(dev, 1); +} + |