diff options
Diffstat (limited to 'src/mainboard/amd/solo/mainboard.c')
-rw-r--r-- | src/mainboard/amd/solo/mainboard.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mainboard/amd/solo/mainboard.c b/src/mainboard/amd/solo/mainboard.c index 155231b41c..12eeb6b537 100644 --- a/src/mainboard/amd/solo/mainboard.c +++ b/src/mainboard/amd/solo/mainboard.c @@ -9,7 +9,26 @@ #include "../../../northbridge/amd/amdk8/northbridge.h" #include "chip.h" +static void mainboard_init(device_t dev) +{ + root_dev_init(dev); +} -struct chip_operations mainboard_amd_solo_control = { +static struct device_operations mainboard_operations = { + .read_resources = root_dev_read_resources, + .set_resources = root_dev_set_resources, + .enable_resources = root_dev_enable_resources, + .init = mainboard_init, + .scan_bus = root_dev_scan_bus, + .enable = 0, +}; + +static void enable_dev(struct device *dev) +{ + dev->ops = &mainboard_operations; +} + +struct chip_operations mainboard_amd_solo_ops = { .name = "AMD Solo7 mainboard ", + .enable_dev = enable_dev, }; |