From 3a54ac9c362d2e5900edd7e1c459ffea1e29df64 Mon Sep 17 00:00:00 2001 From: "Anish K. Patel" Date: Wed, 24 Feb 2010 16:36:56 +0000 Subject: Add Win Enterprises' PL6064 board Signed-off-by: Anish K. Patel Acked-by: Patrick Georgi git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5158 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/superio/winbond/w83627hf/superio.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/superio/winbond') diff --git a/src/superio/winbond/w83627hf/superio.c b/src/superio/winbond/w83627hf/superio.c index 8bcc815bab..1d9b31c928 100644 --- a/src/superio/winbond/w83627hf/superio.c +++ b/src/superio/winbond/w83627hf/superio.c @@ -4,6 +4,7 @@ * Copyright (C) 2000 AG Electronics Ltd. * Copyright (C) 2003-2004 Linux Networx * Copyright (C) 2004 Tyan By LYH change from PC87360 + * Copyright (C) 2010 Win Enterprises (anishp@win-ent.com) * * 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 @@ -56,6 +57,16 @@ static uint8_t pnp_read_index(unsigned long port_base, uint8_t reg) return inb(port_base + 1); } +static void w83627hf_16_bit_addr_qual(device_t dev) +{ + int port = dev->path.pnp.port >> 8; + pnp_enter_ext_func_mode(dev); + outb(0x24, port); + /* enable 16 bit address qualification */ + outb(inb(port + 1) | 0x80, port + 1); + pnp_exit_ext_func_mode(dev); +} + static void enable_hwm_smbus(device_t dev) { /* set the pin 91,92 as I2C bus */ -- cgit v1.2.3