18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci#ifndef __IP30_COMMON_H 48c2ecf20Sopenharmony_ci#define __IP30_COMMON_H 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci/* 78c2ecf20Sopenharmony_ci * Power Switch is wired via BaseIO BRIDGE slot #6. 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * ACFail is wired via BaseIO BRIDGE slot #7. 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci#define IP30_POWER_IRQ HEART_L2_INT_POWER_BTN 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define IP30_HEART_L0_IRQ (MIPS_CPU_IRQ_BASE + 2) 148c2ecf20Sopenharmony_ci#define IP30_HEART_L1_IRQ (MIPS_CPU_IRQ_BASE + 3) 158c2ecf20Sopenharmony_ci#define IP30_HEART_L2_IRQ (MIPS_CPU_IRQ_BASE + 4) 168c2ecf20Sopenharmony_ci#define IP30_HEART_TIMER_IRQ (MIPS_CPU_IRQ_BASE + 5) 178c2ecf20Sopenharmony_ci#define IP30_HEART_ERR_IRQ (MIPS_CPU_IRQ_BASE + 6) 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciextern void __init ip30_install_ipi(void); 208c2ecf20Sopenharmony_ciextern struct plat_smp_ops ip30_smp_ops; 218c2ecf20Sopenharmony_ciextern void __init ip30_per_cpu_init(void); 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#endif /* __IP30_COMMON_H */ 24