[coreboot] [PATCH] 1/3 virtual LDN for PNP

Rudolf Marek r.marek at assembler.cz
Sun Feb 17 01:24:09 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Some SIO/PNP devices are abusing register 0x30 for multiple LDN enables, like
mine W83627EHF.

This patch introduces a concept of virtual LDN. Each virtual LDN is unique, but
maps to original LDN and bit position in register 0x30.

VirtualLDN = origLDN[7:0] | bitpos[10:8]

For example mine GPIO5 device is on LDN 0x9 and bit position 3 -> virtualLDN is
0x309.

As the nice effect one can have now in Config.lb right enable:

device pnp 2e.309 on #GPIO5 on
end

Plus normal resources if it is a GAME port for example:

device pnp 2e.107 on #GAME on
io 0x60 = 0x201
end

This patch just modifies the core PNP subsystem, other patches will follow.

Signed-off-by: Rudolf Marek <r.marek at assembler.cz>

Thanks,

Rudolf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHt36p3J9wPJqZRNURAiWpAJ937dnfnFp5qhdwM33Y1sm/4p16BwCg4k1g
rdTZt5zuSFFEr1Qan1sO48M=
=e2Ax
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virtualLDNs.patch
Type: text/x-patch
Size: 1674 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20080217/15b8cfea/attachment.patch>


More information about the coreboot mailing list