diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2007-03-02 12:29:40 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2007-03-02 12:29:40 +0000 |
commit | 412b8675c32bdd11723460a0b746cda5198f5995 (patch) | |
tree | 8faf018e2c453b0d60dde6bebea8acad89a418c8 /src/superio | |
parent | 53b9c1e798c00b790d346d8460c5a216d851af09 (diff) | |
download | coreboot-412b8675c32bdd11723460a0b746cda5198f5995.tar.xz |
Add missing it8716f_early_init.c file, which got lost in the commit of
http://www.openbios.org/pipermail/linuxbios/2007-February/018330.html
in revision 2559.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2566 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/superio')
-rw-r--r-- | src/superio/ite/it8716f/it8716f_early_init.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/superio/ite/it8716f/it8716f_early_init.c b/src/superio/ite/it8716f/it8716f_early_init.c new file mode 100644 index 0000000000..2ad1519614 --- /dev/null +++ b/src/superio/ite/it8716f/it8716f_early_init.c @@ -0,0 +1,38 @@ +/* + * This file is part of the LinuxBIOS project. + * + * Copyright (C) 2007 AMD + * Written by Yinghai Lu <yinghai.lu@amd.com> for AMD. + * + * 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 "it8716f.h" + +static void it8716f_disable_dev(device_t dev) +{ + pnp_set_logical_device(dev); + pnp_set_enable(dev, 0); +} + +static void it8716f_enable_dev(device_t dev, unsigned iobase) +{ + pnp_set_logical_device(dev); + pnp_set_enable(dev, 0); + pnp_set_iobase(dev, PNP_IDX_IO0, iobase); + pnp_set_enable(dev, 1); +} + |