* 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
This commit is contained in:
Alex Mauer
2008-10-16 17:45:25 +00:00
parent ca11e7c259
commit b1b071fe17
9 changed files with 617 additions and 0 deletions

View File

@@ -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);