]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: irq: Support discrete PIRQ routing registers via device tree
authorBin Meng <bmeng.cn@gmail.com>
Tue, 12 Jun 2018 08:26:46 +0000 (01:26 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 13 Jun 2018 01:50:57 +0000 (09:50 +0800)
commit51050ff0a239f2640467d4c2fe54e0e8679a4093
tree538eaae07bfce8242a13905db8c0e6a6b1f1c883
parentdcec5d565a20e025d843828d8424851d0271677b
x86: irq: Support discrete PIRQ routing registers via device tree

Currently both pirq_reg_to_linkno() and pirq_linkno_to_reg() assume
consecutive PIRQ routing control registers. But this is not always
the case on some platforms. Introduce a new device tree property
intel,pirq-regmap to describe how the PIRQ routing register offset
is mapped to the link number and adjust the irq router driver to
utilize the mapping.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/irq.c
arch/x86/include/asm/irq.h
doc/device-tree-bindings/misc/intel,irq-router.txt