1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef __SOC_QCOM_QUP_SE_H__ 4 #define __SOC_QCOM_QUP_SE_H__ 5 6 #include <console/console.h> 7 #include <device/mmio.h> 8 #include <gpio.h> 9 #include <soc/addressmap.h> 10 #include <timer.h> 11 #include <types.h> 12 13 enum qup_se { 14 QUPV3_0_SE0, 15 QUPV3_0_SE1, 16 QUPV3_0_SE2, 17 QUPV3_0_SE3, 18 QUPV3_0_SE4, 19 QUPV3_0_SE5, 20 QUPV3_0_SE6, 21 QUPV3_0_SE7, 22 QUPV3_1_SE0, 23 QUPV3_1_SE1, 24 QUPV3_1_SE2, 25 QUPV3_1_SE3, 26 QUPV3_1_SE4, 27 QUPV3_1_SE5, 28 QUPV3_1_SE6, 29 QUPV3_1_SE7, 30 QUPV3_SE_MAX, 31 }; 32 33 struct qup { 34 struct qup_regs *regs; 35 gpio_t pin[4]; 36 u8 func[4]; 37 }; 38 39 extern struct qup qup[QUPV3_SE_MAX]; 40 41 #define MAX_OFFSET_CFG_REG 0x000001c4 42 43 #endif /* __SOC_QCOM_QUP_SE_H__ */ 44