@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user