diff options
Diffstat (limited to 'arch/arm/mach-shmobile/board-genmai.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-genmai.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/board-genmai.c b/arch/arm/mach-shmobile/board-genmai.c index 7bf2d8057535..ba545fc09649 100644 --- a/arch/arm/mach-shmobile/board-genmai.c +++ b/arch/arm/mach-shmobile/board-genmai.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | #include <linux/serial_sci.h> | 24 | #include <linux/serial_sci.h> |
25 | #include <linux/sh_eth.h> | 25 | #include <linux/sh_eth.h> |
26 | #include <linux/sh_timer.h> | ||
26 | #include <linux/spi/rspi.h> | 27 | #include <linux/spi/rspi.h> |
27 | #include <linux/spi/spi.h> | 28 | #include <linux/spi/spi.h> |
28 | 29 | ||
@@ -125,10 +126,21 @@ R7S72100_SCIF(7, 0xe800a800, gic_iid(249)); | |||
125 | &scif##index##_platform_data, \ | 126 | &scif##index##_platform_data, \ |
126 | sizeof(scif##index##_platform_data)) | 127 | sizeof(scif##index##_platform_data)) |
127 | 128 | ||
129 | static struct resource mtu2_resources[] __initdata = { | ||
130 | DEFINE_RES_MEM(0xfcff0000, 0x400), | ||
131 | DEFINE_RES_IRQ_NAMED(gic_iid(139), "tgi0a"), | ||
132 | }; | ||
133 | |||
134 | #define r7s72100_register_mtu2() \ | ||
135 | platform_device_register_resndata(&platform_bus, "sh-mtu2", \ | ||
136 | -1, mtu2_resources, \ | ||
137 | ARRAY_SIZE(mtu2_resources), \ | ||
138 | NULL, 0) | ||
139 | |||
128 | static void __init genmai_add_standard_devices(void) | 140 | static void __init genmai_add_standard_devices(void) |
129 | { | 141 | { |
130 | r7s72100_clock_init(); | 142 | r7s72100_clock_init(); |
131 | r7s72100_add_dt_devices(); | 143 | r7s72100_register_mtu2(); |
132 | 144 | ||
133 | platform_device_register_full(ðer_info); | 145 | platform_device_register_full(ðer_info); |
134 | 146 | ||