summaryrefslogtreecommitdiff
path: root/src/superio/winbond
diff options
context:
space:
mode:
authorAlex Mauer <hawke@hawkesnest.net>2008-10-16 17:45:25 +0000
committerAlex Mauer <hawke@hawkesnest.net>2008-10-16 17:45:25 +0000
commitb1b071fe17dd472192de201e463ce3d5811a2957 (patch)
treed2ae8ef95afcc2a0e0e9a2a031d7f014bebdcc1a /src/superio/winbond
parentca11e7c2590eba229ee62ccee86620a5d0ef7851 (diff)
* 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 <hawke@hawkesnest.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3661 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/superio/winbond')
-rw-r--r--src/superio/winbond/w83697hf/w83697hf_early_serial.c10
1 files changed, 10 insertions, 0 deletions
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);