more chip stuff
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@990 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
object device.o
|
||||
object device_util.o
|
||||
object pci_device.o
|
||||
object chip.o
|
||||
|
@@ -10,6 +10,15 @@
|
||||
void
|
||||
chip_configure(struct chip *root, enum chip_pass pass)
|
||||
{
|
||||
while (root) {
|
||||
struct chip *c;
|
||||
|
||||
for (c = root; c; c = c->next) {
|
||||
if (root->control && root->control->enable)
|
||||
root->control->enable(root, pass);
|
||||
}
|
||||
|
||||
for (c = root; c; c = c->next) {
|
||||
if (root->children)
|
||||
chip_configure(root->children, pass);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user