提交 34d9799d 编写于 作者: J Jianmin Lv 提交者: openeuler-sync-bot

irqchip/ACPI: Introduce ACPI_IRQ_MODEL_LPIC for LoongArch

LoongArch inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I6BWFP

--------------------------------

For LoongArch, ACPI_IRQ_MODEL_LPIC is introduced, and high
level trigger type is set for PCI devices legacy irq.

Change-Id: I5f9d44e2d9c7d3492fedf89b64becac5fb5cc270
Signed-off-by: NJianmin Lv <lvjianmin@loongson.cn>
(cherry picked from commit 2c1c0b0c)
上级 44b9464a
......@@ -165,6 +165,7 @@ static void __init acpi_process_madt(void)
acpi_table_parse_madt(ACPI_MADT_TYPE_EIO_PIC,
acpi_parse_eio_master, MAX_IO_PICS);
acpi_irq_model = ACPI_IRQ_MODEL_LPIC;
loongson_sysconf.nr_cpus = num_processors;
}
......
......@@ -405,8 +405,14 @@ int acpi_pci_irq_enable(struct pci_dev *dev)
* controller and must therefore be considered active high
* as default.
*/
#ifdef CONFIG_LOONGARCH
int polarity = acpi_irq_model == ACPI_IRQ_MODEL_GIC ||
acpi_irq_model == ACPI_IRQ_MODEL_LPIC ?
ACPI_ACTIVE_HIGH : ACPI_ACTIVE_LOW;
#else
int polarity = acpi_irq_model == ACPI_IRQ_MODEL_GIC ?
ACPI_ACTIVE_HIGH : ACPI_ACTIVE_LOW;
#endif
char *link = NULL;
char link_desc[16];
int rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册