irqchip: add

Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
Yixun Lan
2025-11-11 17:57:32 +08:00
parent e5889e57e9
commit 1e80def62b
2 changed files with 24 additions and 4 deletions
+7 -4
View File
@@ -180,10 +180,13 @@ static int __init imsic_early_probe(struct fwnode_handle *fwnode)
}
/* Initialize IPI domain */
rc = imsic_ipi_domain_init();
if (rc) {
pr_err("%pfwP: Failed to initialize IPI domain\n", fwnode);
return rc;
if (!of_property_read_bool(to_of_node(fwnode), "no-imsic-ipi")) {
/* Initialize IPI domain */
rc = imsic_ipi_domain_init();
if (rc) {
pr_err("%pfwP: Failed to initialize IPI domain\n", fwnode);
return rc;
}
}
/* Setup chained handler to the parent domain interrupt */
+17
View File
@@ -58,6 +58,23 @@ static inline void imsic_csr_clear(unsigned long reg, unsigned long val)
struct imsic_priv *imsic;
struct irq_domain *imsic_get_irqdomain(void)
{
if (!imsic)
return NULL;
return imsic->base_domain;
}
EXPORT_SYMBOL_GPL(imsic_get_irqdomain);
const struct imsic_local_config *imsic_get_local_config(unsigned int cpu)
{
struct imsic_local_config *l = per_cpu_ptr(imsic->global.local, cpu);
return l;
}
EXPORT_SYMBOL_GPL(imsic_get_local_config);
const struct imsic_global_config *imsic_get_global_config(void)
{
return imsic ? &imsic->global : NULL;