2021-08-23 08:01:33 +00:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
|
2021-11-13 17:56:09 +00:00
|
|
|
#define AIC_REG_SIZE 0x8000
|
2021-08-23 08:01:33 +00:00
|
|
|
#define AIC_INFO 0x0004
|
|
|
|
#define AIC_WHOAMI 0x2000
|
|
|
|
#define AIC_EVENT 0x2004
|
|
|
|
#define AIC_IPI_SEND 0x2008
|
|
|
|
#define AIC_IPI_ACK 0x200c
|
|
|
|
#define AIC_IPI_MASK_SET 0x2024
|
|
|
|
#define AIC_IPI_MASK_CLR 0x2028
|
|
|
|
#define AIC_TARGET_CPU 0x3000
|
|
|
|
#define AIC_SW_SET 0x4000
|
|
|
|
#define AIC_SW_CLR 0x4080
|
|
|
|
#define AIC_MASK_SET 0x4100
|
|
|
|
#define AIC_MASK_CLR 0x4180
|
|
|
|
|
2021-11-02 06:27:21 +00:00
|
|
|
#define AIC_CPU_IPI_SET(cpu) (0x5008 + ((cpu) << 7))
|
|
|
|
#define AIC_CPU_IPI_CLR(cpu) (0x500c + ((cpu) << 7))
|
|
|
|
#define AIC_CPU_IPI_MASK_SET(cpu) (0x5024 + ((cpu) << 7))
|
|
|
|
#define AIC_CPU_IPI_MASK_CLR(cpu) (0x5028 + ((cpu) << 7))
|
|
|
|
|
|
|
|
#define AIC2_REG_SIZE 0x10000
|
2021-11-02 03:36:41 +00:00
|
|
|
#define AIC2_INFO 0x0004
|
|
|
|
#define AIC2_LATENCY 0x0204
|
|
|
|
#define AIC2_EVENT 0xc000
|
|
|
|
#define AIC2_TARGET_CPU 0x2000
|
|
|
|
#define AIC2_SW_SET 0x6000
|
|
|
|
#define AIC2_SW_CLR 0x6200
|
|
|
|
#define AIC2_MASK_SET 0x6400
|
|
|
|
#define AIC2_MASK_CLR 0x6800
|
|
|
|
|
2021-08-23 08:01:33 +00:00
|
|
|
#define AIC_INFO_NR_HW GENMASK(15, 0)
|
|
|
|
|
|
|
|
#define AIC_EVENT_TYPE GENMASK(31, 16)
|
|
|
|
#define AIC_EVENT_NUM GENMASK(15, 0)
|
|
|
|
|
|
|
|
#define AIC_EVENT_TYPE_HW 1
|
|
|
|
#define AIC_EVENT_TYPE_IPI 4
|
|
|
|
#define AIC_EVENT_IPI_OTHER 1
|
|
|
|
#define AIC_EVENT_IPI_SELF 2
|
|
|
|
|
|
|
|
#define AIC_IPI_SEND_CPU(cpu) BIT(cpu)
|
|
|
|
|
|
|
|
#define AIC_IPI_OTHER BIT(0)
|
|
|
|
#define AIC_IPI_SELF BIT(31)
|
|
|
|
|
2021-11-02 06:27:21 +00:00
|
|
|
#define AIC_MAX_HW_NUM (0x80 * 32)
|