diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-10-22 14:07:57 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-10-22 14:07:57 +0000 |
commit | 5341f73ee49a13a510f6140f642d8775e8fe03ab (patch) | |
tree | 0a6e57fc0a6ea051d33b5dbf57810c2b15f922db /sys/dev/fdt/fdt_powerpc.c | |
parent | 4cea183859e615660d46fdb0a75f3411f2366de6 (diff) | |
download | FreeBSD-src-5341f73ee49a13a510f6140f642d8775e8fe03ab.zip FreeBSD-src-5341f73ee49a13a510f6140f642d8775e8fe03ab.tar.gz |
Standards-conformance and code deduplication:
- Use bus reference phandles in place of FDT offsets as IRQ domain keys
- Unify the identical macio/fdt/mambo OpenPIC drivers into one
- Be more forgiving (following ePAPR) about what we need from the device
tree to identify an OpenPIC
- Correctly map all IRQs into an interrupt domain
- Set IRQ_*_CONFORM for interrupts on an unknown PIC type instead of
failing attachment for that device.
Diffstat (limited to 'sys/dev/fdt/fdt_powerpc.c')
-rw-r--r-- | sys/dev/fdt/fdt_powerpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/fdt/fdt_powerpc.c b/sys/dev/fdt/fdt_powerpc.c index ac81c08..d3e9d4e 100644 --- a/sys/dev/fdt/fdt_powerpc.c +++ b/sys/dev/fdt/fdt_powerpc.c @@ -123,7 +123,8 @@ fdt_pic_decode_openpic(phandle_t node, pcell_t *intr, int *interrupt, int *trig, int *pol) { - if (!fdt_is_compatible(node, "chrp,open-pic")) + if (!fdt_is_compatible(node, "chrp,open-pic") && + !fdt_is_type(node, "open-pic")) return (ENXIO); /* |