Go to the documentation of this file. 1 #ifndef _ASM_M32R_M32R_H_
2 #define _ASM_M32R_M32R_H_
12 #if defined(CONFIG_CHIP_XNUX_MP) || defined(CONFIG_CHIP_XNUX2_MP)
14 #elif defined(CONFIG_CHIP_VDEC2) || defined(CONFIG_CHIP_XNUX2) \
15 || defined(CONFIG_CHIP_M32700) || defined(CONFIG_CHIP_M32102) \
16 || defined(CONFIG_CHIP_OPSP) || defined(CONFIG_CHIP_M32104)
21 #if defined(CONFIG_PLAT_M32700UT)
26 #define M32R_INT1ICU_ISTS PLD_ICUISTS
27 #define M32R_INT1ICU_IRQ_BASE M32700UT_PLD_IRQ_BASE
28 #define M32R_INT0ICU_ISTS M32700UT_LAN_ICUISTS
29 #define M32R_INT0ICU_IRQ_BASE M32700UT_LAN_PLD_IRQ_BASE
30 #define M32R_INT2ICU_ISTS M32700UT_LCD_ICUISTS
31 #define M32R_INT2ICU_IRQ_BASE M32700UT_LCD_PLD_IRQ_BASE
34 #if defined(CONFIG_PLAT_OPSPUT)
39 #define M32R_INT1ICU_ISTS PLD_ICUISTS
40 #define M32R_INT1ICU_IRQ_BASE OPSPUT_PLD_IRQ_BASE
41 #define M32R_INT0ICU_ISTS OPSPUT_LAN_ICUISTS
42 #define M32R_INT0ICU_IRQ_BASE OPSPUT_LAN_PLD_IRQ_BASE
43 #define M32R_INT2ICU_ISTS OPSPUT_LCD_ICUISTS
44 #define M32R_INT2ICU_IRQ_BASE OPSPUT_LCD_PLD_IRQ_BASE
47 #if defined(CONFIG_PLAT_MAPPI2)
51 #if defined(CONFIG_PLAT_MAPPI3)
55 #if defined(CONFIG_PLAT_USRV)
58 #define M32R_INT1ICU_ISTS PLD_ICUISTS
59 #define M32R_INT1ICU_IRQ_BASE M32700UT_PLD_IRQ_BASE
62 #if defined(CONFIG_PLAT_M32104UT)
65 #define M32R_INT1ICU_ISTS PLD_ICUISTS
66 #define M32R_INT1ICU_IRQ_BASE M32104UT_PLD_IRQ_BASE
77 #define MMU_REG_BASE (0xffff0000)
78 #define ITLB_BASE (0xfe000000)
79 #define DTLB_BASE (0xfe000800)
81 #define NR_TLB_ENTRIES CONFIG_TLB_ENTRIES
83 #define MATM MMU_REG_BASE
85 #define MPSZ (0x04 + MMU_REG_BASE)
86 #define MASID (0x08 + MMU_REG_BASE)
87 #define MESTS (0x0c + MMU_REG_BASE)
88 #define MDEVA (0x10 + MMU_REG_BASE)
90 #define MDEVP (0x14 + MMU_REG_BASE)
92 #define MPTB (0x18 + MMU_REG_BASE)
93 #define MSVA (0x20 + MMU_REG_BASE)
95 #define MTOP (0x24 + MMU_REG_BASE)
96 #define MIDXI (0x28 + MMU_REG_BASE)
98 #define MIDXD (0x2c + MMU_REG_BASE)
100 #define MATM_offset (MATM - MMU_REG_BASE)
101 #define MPSZ_offset (MPSZ - MMU_REG_BASE)
102 #define MASID_offset (MASID - MMU_REG_BASE)
103 #define MESTS_offset (MESTS - MMU_REG_BASE)
104 #define MDEVA_offset (MDEVA - MMU_REG_BASE)
105 #define MDEVP_offset (MDEVP - MMU_REG_BASE)
106 #define MPTB_offset (MPTB - MMU_REG_BASE)
107 #define MSVA_offset (MSVA - MMU_REG_BASE)
108 #define MTOP_offset (MTOP - MMU_REG_BASE)
109 #define MIDXI_offset (MIDXI - MMU_REG_BASE)
110 #define MIDXD_offset (MIDXD - MMU_REG_BASE)
112 #define MESTS_IT (1 << 0)
113 #define MESTS_IA (1 << 1)
114 #define MESTS_DT (1 << 4)
115 #define MESTS_DA (1 << 5)
116 #define MESTS_DRW (1 << 6)
123 #define M32R_PSW_BIT_SM (7)
124 #define M32R_PSW_BIT_IE (6)
125 #define M32R_PSW_BIT_PM (3)
126 #define M32R_PSW_BIT_C (0)
127 #define M32R_PSW_BIT_BSM (7+8)
128 #define M32R_PSW_BIT_BIE (6+8)
129 #define M32R_PSW_BIT_BPM (3+8)
130 #define M32R_PSW_BIT_BC (0+8)
133 #define M32R_PSW_SM (1UL<< M32R_PSW_BIT_SM)
134 #define M32R_PSW_IE (1UL<< M32R_PSW_BIT_IE)
135 #define M32R_PSW_PM (1UL<< M32R_PSW_BIT_PM)
136 #define M32R_PSW_C (1UL<< M32R_PSW_BIT_C)
137 #define M32R_PSW_BSM (1UL<< M32R_PSW_BIT_BSM)
138 #define M32R_PSW_BIE (1UL<< M32R_PSW_BIT_BIE)
139 #define M32R_PSW_BPM (1UL<< M32R_PSW_BIT_BPM)
140 #define M32R_PSW_BC (1UL<< M32R_PSW_BIT_BC)
146 #include <asm/page.h>
148 #define NONCACHE_OFFSET (__PAGE_OFFSET + 0x20000000)
150 #define NONCACHE_OFFSET __PAGE_OFFSET
153 #define M32R_ICU_ISTS_ADDR M32R_ICU_ISTS_PORTL+NONCACHE_OFFSET
154 #define M32R_ICU_IPICR_ADDR M32R_ICU_IPICR0_PORTL+NONCACHE_OFFSET
155 #define M32R_ICU_IMASK_ADDR M32R_ICU_IMASK_PORTL+NONCACHE_OFFSET
156 #define M32R_FPGA_CPU_NAME_ADDR M32R_FPGA_CPU_NAME0_PORTL+NONCACHE_OFFSET
157 #define M32R_FPGA_MODEL_ID_ADDR M32R_FPGA_MODEL_ID0_PORTL+NONCACHE_OFFSET
158 #define M32R_FPGA_VERSION_ADDR M32R_FPGA_VERSION0_PORTL+NONCACHE_OFFSET