summaryrefslogtreecommitdiff
path: root/src/device/pnp_device.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2013-12-11 11:06:08 -0800
committerIsaac Christensen <isaac.christensen@se-eng.com>2014-09-17 17:34:16 +0200
commit0108b936bf0f2d185691d8719c30193af39abefe (patch)
tree558975d9ee4b78ac5a3638d30cf8e199e44507d5 /src/device/pnp_device.c
parenta7991515347364504d0bd319d6a41b3750488bf3 (diff)
downloadcoreboot-0108b936bf0f2d185691d8719c30193af39abefe.tar.xz
pnp: Allow setting of misc register 0xf4 in device tree
Change-Id: I602f970e0ee2fd634a74fd4c25358c2e78ca58f9 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: https://chromium-review.googlesource.com/179536 Commit-Queue: Stefan Reinauer <reinauer@chromium.org> Tested-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Shawn Nematbakhsh <shawnn@chromium.org> (cherry picked from commit 02b0583e632f1ba53557f8cfe4293ad4ed29ff4d) Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com> Reviewed-on: http://review.coreboot.org/6910 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/device/pnp_device.c')
-rw-r--r--src/device/pnp_device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device/pnp_device.c b/src/device/pnp_device.c
index 0aaadaac0a..e4aa4d3a96 100644
--- a/src/device/pnp_device.c
+++ b/src/device/pnp_device.c
@@ -300,6 +300,11 @@ static void get_resources(device_t dev, struct pnp_info *info)
resource->size = 1;
resource->flags |= IORESOURCE_IRQ;
}
+ if (info->flags & PNP_MSC4) {
+ resource = new_resource(dev, PNP_IDX_MSC4);
+ resource->size = 1;
+ resource->flags |= IORESOURCE_IRQ;
+ }
if (info->flags & PNP_MSC10) {
resource = new_resource(dev, PNP_IDX_MSC10);
resource->size = 1;