From b1b071fe17dd472192de201e463ce3d5811a2957 Mon Sep 17 00:00:00 2001 From: Alex Mauer Date: Thu, 16 Oct 2008 17:45:25 +0000 Subject: * Add a new board, the BCom WinNET P680 * Add a function to change the 24/48Mhz clock input selector on the Winbond W83697 superio to 48Mhz, used by the WinNET P680 Signed-off-by: Alex Mauer Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3661 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/superio/winbond/w83697hf/w83697hf_early_serial.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/superio/winbond') diff --git a/src/superio/winbond/w83697hf/w83697hf_early_serial.c b/src/superio/winbond/w83697hf/w83697hf_early_serial.c index bf25231f35..858dc6c72a 100644 --- a/src/superio/winbond/w83697hf/w83697hf_early_serial.c +++ b/src/superio/winbond/w83697hf/w83697hf_early_serial.c @@ -35,6 +35,16 @@ static void pnp_exit_ext_func_mode(device_t dev) outb(0xaa, port); } +static void w83697hf_set_clksel_48(device_t dev) +{ + u16 port = dev >> 8; + pnp_enter_ext_func_mode(dev); + outb(0x24, port); + /* Set the clock input to 48Mhz */ + outb(inb(port+1)|0x40, port+1); + pnp_exit_ext_func_mode(dev); +} + static void w83697hf_enable_serial(device_t dev, u16 iobase) { pnp_enter_ext_func_mode(dev); -- cgit v1.2.3