diff options
-rw-r--r-- | arch/m32r/Kconfig | 20 | ||||
-rw-r--r-- | include/asm-m32r/m32r.h | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/arch/m32r/Kconfig b/arch/m32r/Kconfig index 8ccf3e47bff8..bd5fe76401f1 100644 --- a/arch/m32r/Kconfig +++ b/arch/m32r/Kconfig | |||
@@ -57,9 +57,13 @@ config PLAT_MAPPI | |||
57 | 57 | ||
58 | config PLAT_USRV | 58 | config PLAT_USRV |
59 | bool "uServer" | 59 | bool "uServer" |
60 | select PLAT_HAS_INT1ICU | ||
60 | 61 | ||
61 | config PLAT_M32700UT | 62 | config PLAT_M32700UT |
62 | bool "M32700UT" | 63 | bool "M32700UT" |
64 | select PLAT_HAS_INT0ICU | ||
65 | select PLAT_HAS_INT1ICU | ||
66 | select PLAT_HAS_INT2ICU | ||
63 | help | 67 | help |
64 | The M3T-M32700UT is an evaluation board based on uT-Engine | 68 | The M3T-M32700UT is an evaluation board based on uT-Engine |
65 | specification. This board has an M32700 (Chaos) evaluation chip. | 69 | specification. This board has an M32700 (Chaos) evaluation chip. |
@@ -68,6 +72,9 @@ config PLAT_M32700UT | |||
68 | 72 | ||
69 | config PLAT_OPSPUT | 73 | config PLAT_OPSPUT |
70 | bool "OPSPUT" | 74 | bool "OPSPUT" |
75 | select PLAT_HAS_INT0ICU | ||
76 | select PLAT_HAS_INT1ICU | ||
77 | select PLAT_HAS_INT2ICU | ||
71 | help | 78 | help |
72 | The OPSPUT is an evaluation board based on uT-Engine | 79 | The OPSPUT is an evaluation board based on uT-Engine |
73 | specification. This board has a OPSP-REP chip. | 80 | specification. This board has a OPSP-REP chip. |
@@ -89,6 +96,7 @@ config PLAT_MAPPI3 | |||
89 | 96 | ||
90 | config PLAT_M32104UT | 97 | config PLAT_M32104UT |
91 | bool "M32104UT" | 98 | bool "M32104UT" |
99 | select PLAT_HAS_INT1ICU | ||
92 | help | 100 | help |
93 | The M3T-M32104UT is an reference board based on uT-Engine | 101 | The M3T-M32104UT is an reference board based on uT-Engine |
94 | specification. This board has a M32104 chip. | 102 | specification. This board has a M32104 chip. |
@@ -149,6 +157,18 @@ config ISA_DUAL_ISSUE | |||
149 | depends on CHIP_M32700 || CHIP_OPSP | 157 | depends on CHIP_M32700 || CHIP_OPSP |
150 | default y | 158 | default y |
151 | 159 | ||
160 | config PLAT_HAS_INT0ICU | ||
161 | bool | ||
162 | default n | ||
163 | |||
164 | config PLAT_HAS_INT1ICU | ||
165 | bool | ||
166 | default n | ||
167 | |||
168 | config PLAT_HAS_INT2ICU | ||
169 | bool | ||
170 | default n | ||
171 | |||
152 | config BUS_CLOCK | 172 | config BUS_CLOCK |
153 | int "Bus Clock [Hz] (integer)" | 173 | int "Bus Clock [Hz] (integer)" |
154 | default "70000000" if PLAT_MAPPI | 174 | default "70000000" if PLAT_MAPPI |
diff --git a/include/asm-m32r/m32r.h b/include/asm-m32r/m32r.h index decfc59907c7..214b44b40757 100644 --- a/include/asm-m32r/m32r.h +++ b/include/asm-m32r/m32r.h | |||
@@ -22,12 +22,26 @@ | |||
22 | #include <asm/m32700ut/m32700ut_pld.h> | 22 | #include <asm/m32700ut/m32700ut_pld.h> |
23 | #include <asm/m32700ut/m32700ut_lan.h> | 23 | #include <asm/m32700ut/m32700ut_lan.h> |
24 | #include <asm/m32700ut/m32700ut_lcd.h> | 24 | #include <asm/m32700ut/m32700ut_lcd.h> |
25 | /* for ei_handler:linux/arch/m32r/kernel/entry.S */ | ||
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 | ||
25 | #endif /* CONFIG_PLAT_M32700UT */ | 32 | #endif /* CONFIG_PLAT_M32700UT */ |
26 | 33 | ||
27 | #if defined(CONFIG_PLAT_OPSPUT) | 34 | #if defined(CONFIG_PLAT_OPSPUT) |
28 | #include <asm/opsput/opsput_pld.h> | 35 | #include <asm/opsput/opsput_pld.h> |
29 | #include <asm/opsput/opsput_lan.h> | 36 | #include <asm/opsput/opsput_lan.h> |
30 | #include <asm/opsput/opsput_lcd.h> | 37 | #include <asm/opsput/opsput_lcd.h> |
38 | /* for ei_handler:linux/arch/m32r/kernel/entry.S */ | ||
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 | ||
31 | #endif /* CONFIG_PLAT_OPSPUT */ | 45 | #endif /* CONFIG_PLAT_OPSPUT */ |
32 | 46 | ||
33 | #if defined(CONFIG_PLAT_MAPPI2) | 47 | #if defined(CONFIG_PLAT_MAPPI2) |
@@ -40,10 +54,16 @@ | |||
40 | 54 | ||
41 | #if defined(CONFIG_PLAT_USRV) | 55 | #if defined(CONFIG_PLAT_USRV) |
42 | #include <asm/m32700ut/m32700ut_pld.h> | 56 | #include <asm/m32700ut/m32700ut_pld.h> |
57 | /* for ei_handler:linux/arch/m32r/kernel/entry.S */ | ||
58 | #define M32R_INT1ICU_ISTS PLD_ICUISTS | ||
59 | #define M32R_INT1ICU_IRQ_BASE M32700UT_PLD_IRQ_BASE | ||
43 | #endif | 60 | #endif |
44 | 61 | ||
45 | #if defined(CONFIG_PLAT_M32104UT) | 62 | #if defined(CONFIG_PLAT_M32104UT) |
46 | #include <asm/m32104ut/m32104ut_pld.h> | 63 | #include <asm/m32104ut/m32104ut_pld.h> |
64 | /* for ei_handler:linux/arch/m32r/kernel/entry.S */ | ||
65 | #define M32R_INT1ICU_ISTS PLD_ICUISTS | ||
66 | #define M32R_INT1ICU_IRQ_BASE M32104UT_PLD_IRQ_BASE | ||
47 | #endif /* CONFIG_PLAT_M32104 */ | 67 | #endif /* CONFIG_PLAT_M32104 */ |
48 | 68 | ||
49 | /* | 69 | /* |