- First stab at running linuxbios without the old static device tree.
Things are close but not quite there yet. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1681 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
#define SIO_COM2_BASE 0x2F8
|
||||
#endif
|
||||
|
||||
extern struct chip_control superio_NSC_pc87360_control;
|
||||
struct chip_operations;
|
||||
extern struct chip_operations superio_NSC_pc87360_ops;
|
||||
|
||||
#include <pc80/keyboard.h>
|
||||
#include <uart8250.h>
|
||||
|
@@ -5,7 +5,6 @@
|
||||
#include <arch/io.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pnp.h>
|
||||
#include <device/chip.h>
|
||||
#include <console/console.h>
|
||||
#include <string.h>
|
||||
#include <bitops.h>
|
||||
@@ -24,7 +23,7 @@ static void init(device_t dev)
|
||||
if (!dev->enabled) {
|
||||
return;
|
||||
}
|
||||
conf = dev->chip->chip_info;
|
||||
conf = dev->chip_info;
|
||||
switch(dev->path.u.pnp.device) {
|
||||
case PC87360_SP1:
|
||||
res0 = find_resource(dev, PNP_IDX_IO0);
|
||||
@@ -65,13 +64,13 @@ static struct pnp_info pnp_dev_info[] = {
|
||||
};
|
||||
|
||||
|
||||
static void enumerate(struct chip *chip)
|
||||
static void enable_dev(struct device *dev)
|
||||
{
|
||||
pnp_enumerate(chip, sizeof(pnp_dev_info)/sizeof(pnp_dev_info[0]),
|
||||
&pnp_ops, pnp_dev_info);
|
||||
pnp_enable_devices(dev, &pnp_ops,
|
||||
sizeof(pnp_dev_info)/sizeof(pnp_dev_info[0]), pnp_dev_info);
|
||||
}
|
||||
|
||||
struct chip_control superio_NSC_pc87360_control = {
|
||||
.enumerate = enumerate,
|
||||
.name = "NSC 87360"
|
||||
struct chip_operations superio_NSC_pc87360_ops = {
|
||||
.name = "NSC 87360",
|
||||
.enable_dev = enable_dev,
|
||||
};
|
||||
|
@@ -5,7 +5,6 @@
|
||||
#include <arch/io.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pnp.h>
|
||||
#include <device/chip.h>
|
||||
#include <console/console.h>
|
||||
#include <string.h>
|
||||
#include <bitops.h>
|
||||
|
@@ -2,7 +2,6 @@
|
||||
/* This code is distributed without warranty under the GPL v2 (see COPYING) */
|
||||
|
||||
#include <arch/io.h>
|
||||
#include <device/chip.h>
|
||||
#include <console/console.h>
|
||||
#include "chip.h"
|
||||
|
||||
|
@@ -26,7 +26,6 @@
|
||||
#include <device/pci.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <device/pci_ids.h>
|
||||
#include <device/chip.h>
|
||||
#include <console/console.h>
|
||||
#include "vt1211.h"
|
||||
#include "chip.h"
|
||||
|
@@ -7,7 +7,6 @@
|
||||
#include <arch/io.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pnp.h>
|
||||
#include <device/chip.h>
|
||||
#include <console/console.h>
|
||||
#include <string.h>
|
||||
#include <bitops.h>
|
||||
|
@@ -7,7 +7,6 @@
|
||||
#include <arch/io.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pnp.h>
|
||||
#include <device/chip.h>
|
||||
#include <console/console.h>
|
||||
#include <string.h>
|
||||
#include <bitops.h>
|
||||
|
Reference in New Issue
Block a user