Bringing the m57sli to life. This includes changes to mcp55 and
mainboard that we learned with the serengeti that we needed. New function in pnp that is for reading. new prototype in pnp.h. New constants for ite8716f. This board does not build yet; we are exercising code in k8 north that the serengeti did not enable. More tomorrow. Now that we have two boards under way we can hopefully see our way to getting more put in. The 690 is the obvious next choice. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@876 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
eea8cca061
commit
76167990ed
8 changed files with 379 additions and 7 deletions
|
|
@ -52,7 +52,8 @@ void rawpnp_exit_ext_func_mode(u16 port)
|
|||
*
|
||||
* This is done by writing the register number to the port, and the value
|
||||
* into port + 1. This code assumes that the data port is always the
|
||||
* config-port plus 1, but luckily this is true for pretty much all devices.
|
||||
* config-port plus 1, but luckily this is true for pretty much all devices, since
|
||||
* it is part of the standard.
|
||||
*
|
||||
* @param port The device I/O port.
|
||||
* @param reg The register number.
|
||||
|
|
@ -64,6 +65,24 @@ void rawpnp_write_config(u16 port, u8 reg, u8 value)
|
|||
outb(value, port + 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Read an 8-bit pnp config value
|
||||
*
|
||||
* This is done by writing the register number to the port, and the value
|
||||
* into port + 1. This code assumes that the data port is always the
|
||||
* config-port plus 1, but luckily this is true for pretty much all devices, since
|
||||
* it is part of the standard.
|
||||
*
|
||||
* @param port The device I/O port.
|
||||
* @param reg The register number.
|
||||
* @returns value of the register
|
||||
*/
|
||||
u8 rawpnp_read_config(u16 port, u8 reg)
|
||||
{
|
||||
outb(reg, port);
|
||||
return inb(port + 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Select a logical device.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue