|
@@ -207,3 +207,108 @@
|
|
#define M32R_ICU_IPICR3_PORTL (0x2e8+M32R_ICU_OFFSET) /* IPI3 */
|
|
#define M32R_ICU_IPICR3_PORTL (0x2e8+M32R_ICU_OFFSET) /* IPI3 */
|
|
#define M32R_ICU_IPICR4_PORTL (0x2ec+M32R_ICU_OFFSET) /* IPI4 */
|
|
#define M32R_ICU_IPICR4_PORTL (0x2ec+M32R_ICU_OFFSET) /* IPI4 */
|
|
#define M32R_ICU_IPICR5_PORTL (0x2f0+M32R_ICU_OFFSET) /* IPI5 */
|
|
#define M32R_ICU_IPICR5_PORTL (0x2f0+M32R_ICU_OFFSET) /* IPI5 */
|
|
|
|
+#define M32R_ICU_IPICR6_PORTL (0x2f4+M32R_ICU_OFFSET) /* IPI6 */
|
|
|
|
+#define M32R_ICU_IPICR7_PORTL (0x2f8+M32R_ICU_OFFSET) /* IPI7 */
|
|
|
|
+#endif /* CONFIG_SMP */
|
|
|
|
+
|
|
|
|
+#define M32R_ICUIMASK_IMSK0 (0UL<<16) /* b13-b15: Disable interrupt */
|
|
|
|
+#define M32R_ICUIMASK_IMSK1 (1UL<<16) /* b13-b15: Enable level 0 interrupt */
|
|
|
|
+#define M32R_ICUIMASK_IMSK2 (2UL<<16) /* b13-b15: Enable level 0,1 interrupt */
|
|
|
|
+#define M32R_ICUIMASK_IMSK3 (3UL<<16) /* b13-b15: Enable level 0-2 interrupt */
|
|
|
|
+#define M32R_ICUIMASK_IMSK4 (4UL<<16) /* b13-b15: Enable level 0-3 interrupt */
|
|
|
|
+#define M32R_ICUIMASK_IMSK5 (5UL<<16) /* b13-b15: Enable level 0-4 interrupt */
|
|
|
|
+#define M32R_ICUIMASK_IMSK6 (6UL<<16) /* b13-b15: Enable level 0-5 interrupt */
|
|
|
|
+#define M32R_ICUIMASK_IMSK7 (7UL<<16) /* b13-b15: Enable level 0-6 interrupt */
|
|
|
|
+
|
|
|
|
+#define M32R_ICUCR_IEN (1UL<<12) /* b19: Interrupt enable */
|
|
|
|
+#define M32R_ICUCR_IRQ (1UL<<8) /* b23: Interrupt request */
|
|
|
|
+#define M32R_ICUCR_ISMOD00 (0UL<<4) /* b26-b27: Interrupt sense mode Edge HtoL */
|
|
|
|
+#define M32R_ICUCR_ISMOD01 (1UL<<4) /* b26-b27: Interrupt sense mode Level L */
|
|
|
|
+#define M32R_ICUCR_ISMOD10 (2UL<<4) /* b26-b27: Interrupt sense mode Edge LtoH*/
|
|
|
|
+#define M32R_ICUCR_ISMOD11 (3UL<<4) /* b26-b27: Interrupt sense mode Level H */
|
|
|
|
+#define M32R_ICUCR_ILEVEL0 (0UL<<0) /* b29-b31: Interrupt priority level 0 */
|
|
|
|
+#define M32R_ICUCR_ILEVEL1 (1UL<<0) /* b29-b31: Interrupt priority level 1 */
|
|
|
|
+#define M32R_ICUCR_ILEVEL2 (2UL<<0) /* b29-b31: Interrupt priority level 2 */
|
|
|
|
+#define M32R_ICUCR_ILEVEL3 (3UL<<0) /* b29-b31: Interrupt priority level 3 */
|
|
|
|
+#define M32R_ICUCR_ILEVEL4 (4UL<<0) /* b29-b31: Interrupt priority level 4 */
|
|
|
|
+#define M32R_ICUCR_ILEVEL5 (5UL<<0) /* b29-b31: Interrupt priority level 5 */
|
|
|
|
+#define M32R_ICUCR_ILEVEL6 (6UL<<0) /* b29-b31: Interrupt priority level 6 */
|
|
|
|
+#define M32R_ICUCR_ILEVEL7 (7UL<<0) /* b29-b31: Disable interrupt */
|
|
|
|
+
|
|
|
|
+#define M32R_IRQ_INT0 (1) /* INT0 */
|
|
|
|
+#define M32R_IRQ_INT1 (2) /* INT1 */
|
|
|
|
+#define M32R_IRQ_INT2 (3) /* INT2 */
|
|
|
|
+#define M32R_IRQ_INT3 (4) /* INT3 */
|
|
|
|
+#define M32R_IRQ_INT4 (5) /* INT4 */
|
|
|
|
+#define M32R_IRQ_INT5 (6) /* INT5 */
|
|
|
|
+#define M32R_IRQ_INT6 (7) /* INT6 */
|
|
|
|
+#define M32R_IRQ_MFT0 (16) /* MFT0 */
|
|
|
|
+#define M32R_IRQ_MFT1 (17) /* MFT1 */
|
|
|
|
+#define M32R_IRQ_MFT2 (18) /* MFT2 */
|
|
|
|
+#define M32R_IRQ_MFT3 (19) /* MFT3 */
|
|
|
|
+#ifdef CONFIG_CHIP_M32104
|
|
|
|
+#define M32R_IRQ_MFTX0 (24) /* MFTX0 */
|
|
|
|
+#define M32R_IRQ_MFTX1 (25) /* MFTX1 */
|
|
|
|
+#define M32R_IRQ_DMA0 (32) /* DMA0 */
|
|
|
|
+#define M32R_IRQ_DMA1 (33) /* DMA1 */
|
|
|
|
+#define M32R_IRQ_DMA2 (34) /* DMA2 */
|
|
|
|
+#define M32R_IRQ_DMA3 (35) /* DMA3 */
|
|
|
|
+#define M32R_IRQ_SIO0_R (40) /* SIO0 send */
|
|
|
|
+#define M32R_IRQ_SIO0_S (41) /* SIO0 receive */
|
|
|
|
+#define M32R_IRQ_SIO1_R (42) /* SIO1 send */
|
|
|
|
+#define M32R_IRQ_SIO1_S (43) /* SIO1 receive */
|
|
|
|
+#define M32R_IRQ_SIO2_R (44) /* SIO2 send */
|
|
|
|
+#define M32R_IRQ_SIO2_S (45) /* SIO2 receive */
|
|
|
|
+#define M32R_IRQ_SIO3_R (46) /* SIO3 send */
|
|
|
|
+#define M32R_IRQ_SIO3_S (47) /* SIO3 receive */
|
|
|
|
+#define M32R_IRQ_ADC (56) /* ADC */
|
|
|
|
+#define M32R_IRQ_PC (57) /* PC */
|
|
|
|
+#else /* ! M32104 */
|
|
|
|
+#define M32R_IRQ_DMA0 (32) /* DMA0 */
|
|
|
|
+#define M32R_IRQ_DMA1 (33) /* DMA1 */
|
|
|
|
+#define M32R_IRQ_SIO0_R (48) /* SIO0 send */
|
|
|
|
+#define M32R_IRQ_SIO0_S (49) /* SIO0 receive */
|
|
|
|
+#define M32R_IRQ_SIO1_R (50) /* SIO1 send */
|
|
|
|
+#define M32R_IRQ_SIO1_S (51) /* SIO1 receive */
|
|
|
|
+#define M32R_IRQ_SIO2_R (52) /* SIO2 send */
|
|
|
|
+#define M32R_IRQ_SIO2_S (53) /* SIO2 receive */
|
|
|
|
+#define M32R_IRQ_SIO3_R (54) /* SIO3 send */
|
|
|
|
+#define M32R_IRQ_SIO3_S (55) /* SIO3 receive */
|
|
|
|
+#define M32R_IRQ_SIO4_R (56) /* SIO4 send */
|
|
|
|
+#define M32R_IRQ_SIO4_S (57) /* SIO4 receive */
|
|
|
|
+#endif /* ! M32104 */
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_SMP
|
|
|
|
+#define M32R_IRQ_IPI0 (56)
|
|
|
|
+#define M32R_IRQ_IPI1 (57)
|
|
|
|
+#define M32R_IRQ_IPI2 (58)
|
|
|
|
+#define M32R_IRQ_IPI3 (59)
|
|
|
|
+#define M32R_IRQ_IPI4 (60)
|
|
|
|
+#define M32R_IRQ_IPI5 (61)
|
|
|
|
+#define M32R_IRQ_IPI6 (62)
|
|
|
|
+#define M32R_IRQ_IPI7 (63)
|
|
|
|
+#define M32R_CPUID_PORTL (0xffffffe0)
|
|
|
|
+
|
|
|
|
+#define M32R_FPGA_TOP (0x000F0000+M32R_SFR_OFFSET)
|
|
|
|
+
|
|
|
|
+#define M32R_FPGA_NUM_OF_CPUS_PORTL (0x00+M32R_FPGA_TOP)
|
|
|
|
+#define M32R_FPGA_CPU_NAME0_PORTL (0x10+M32R_FPGA_TOP)
|
|
|
|
+#define M32R_FPGA_CPU_NAME1_PORTL (0x14+M32R_FPGA_TOP)
|
|
|
|
+#define M32R_FPGA_CPU_NAME2_PORTL (0x18+M32R_FPGA_TOP)
|
|
|
|
+#define M32R_FPGA_CPU_NAME3_PORTL (0x1c+M32R_FPGA_TOP)
|
|
|
|
+#define M32R_FPGA_MODEL_ID0_PORTL (0x20+M32R_FPGA_TOP)
|
|
|
|
+#define M32R_FPGA_MODEL_ID1_PORTL (0x24+M32R_FPGA_TOP)
|
|
|
|
+#define M32R_FPGA_MODEL_ID2_PORTL (0x28+M32R_FPGA_TOP)
|
|
|
|
+#define M32R_FPGA_MODEL_ID3_PORTL (0x2c+M32R_FPGA_TOP)
|
|
|
|
+#define M32R_FPGA_VERSION0_PORTL (0x30+M32R_FPGA_TOP)
|
|
|
|
+#define M32R_FPGA_VERSION1_PORTL (0x34+M32R_FPGA_TOP)
|
|
|
|
+
|
|
|
|
+#endif /* CONFIG_SMP */
|
|
|
|
+
|
|
|
|
+#ifndef __ASSEMBLY__
|
|
|
|
+typedef struct {
|
|
|
|
+ unsigned long icucr; /* ICU Control Register */
|
|
|
|
+} icu_data_t;
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#endif /* _M32102_H_ */
|