1 /* 2 * Copyright (c) 2025, Mediatek Inc. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef MT_SPM_SSPM_INTC_H 8 #define MT_SPM_SSPM_INTC_H 9 10 #define MT_SPM_SSPM_INTC_SEL_0 0x10 11 #define MT_SPM_SSPM_INTC_SEL_1 0x20 12 #define MT_SPM_SSPM_INTC_SEL_2 0x40 13 #define MT_SPM_SSPM_INTC_SEL_3 0x80 14 15 #define MT_SPM_SSPM_INTC_TRIGGER(id, sg) \ 16 (((0x10 << (id)) | ((sg) << (id))) & 0xFF) 17 18 #define SSPM_CFGREG_ADDR(ofs) (SSPM_CFGREG_BASE + (ofs)) 19 #define AP_SSPM_IRQ SSPM_CFGREG_ADDR(0x018) 20 21 #define DO_SPM_SSPM_LP_NOTIFY() mmio_write_32(AP_SSPM_IRQ, 1) 22 23 #endif /* MT_SPM_SSPM_INTC_H */ 24