aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-08-08 02:22:04 -0400
committerPaul Mundt <lethal@linux-sh.org>2007-09-20 22:57:48 -0400
commit94807a33dc4aaf522d3eab62db225361e5a97b2a (patch)
treefbfe908829b6a6067c200beae7cb1fed26040000 /arch/sh
parent8d797cd191397b2a92b190228f07c7715c1c832a (diff)
sh: Initial support for SH-X3 prototype board.
This adds initial support for the SH-X3 prototype board. Only simple logic for the IRQ controller and the heartbeat driver for now. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/Kconfig4
-rw-r--r--arch/sh/Makefile1
-rw-r--r--arch/sh/boards/renesas/x3proto/Makefile1
-rw-r--r--arch/sh/boards/renesas/x3proto/setup.c54
4 files changed, 60 insertions, 0 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 617765d5c9ab..24c33610615b 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -391,6 +391,10 @@ config SH_LBOX_RE2
391 help 391 help
392 Select L-BOX RE2 if configuring for the NTT COMWARE L-BOX RE2. 392 Select L-BOX RE2 if configuring for the NTT COMWARE L-BOX RE2.
393 393
394config SH_X3PROTO
395 bool "SH-X3 Prototype board"
396 depends on CPU_SUBTYPE_SHX3
397
394endmenu 398endmenu
395 399
396source "arch/sh/boards/renesas/hs7751rvoip/Kconfig" 400source "arch/sh/boards/renesas/hs7751rvoip/Kconfig"
diff --git a/arch/sh/Makefile b/arch/sh/Makefile
index 97ac58682d0f..37cf636fba55 100644
--- a/arch/sh/Makefile
+++ b/arch/sh/Makefile
@@ -118,6 +118,7 @@ machdir-$(CONFIG_SH_7751_SYSTEMH) += renesas/systemh
118machdir-$(CONFIG_SH_EDOSK7705) += renesas/edosk7705 118machdir-$(CONFIG_SH_EDOSK7705) += renesas/edosk7705
119machdir-$(CONFIG_SH_HIGHLANDER) += renesas/r7780rp 119machdir-$(CONFIG_SH_HIGHLANDER) += renesas/r7780rp
120machdir-$(CONFIG_SH_7710VOIPGW) += renesas/sh7710voipgw 120machdir-$(CONFIG_SH_7710VOIPGW) += renesas/sh7710voipgw
121machdir-$(CONFIG_SH_X3PROTO) += renesas/x3proto
121machdir-$(CONFIG_SH_SH4202_MICRODEV) += superh/microdev 122machdir-$(CONFIG_SH_SH4202_MICRODEV) += superh/microdev
122machdir-$(CONFIG_SH_LANDISK) += landisk 123machdir-$(CONFIG_SH_LANDISK) += landisk
123machdir-$(CONFIG_SH_TITAN) += titan 124machdir-$(CONFIG_SH_TITAN) += titan
diff --git a/arch/sh/boards/renesas/x3proto/Makefile b/arch/sh/boards/renesas/x3proto/Makefile
new file mode 100644
index 000000000000..2b9dba458932
--- /dev/null
+++ b/arch/sh/boards/renesas/x3proto/Makefile
@@ -0,0 +1 @@
obj-y += setup.o
diff --git a/arch/sh/boards/renesas/x3proto/setup.c b/arch/sh/boards/renesas/x3proto/setup.c
new file mode 100644
index 000000000000..5dfa0f31cd2d
--- /dev/null
+++ b/arch/sh/boards/renesas/x3proto/setup.c
@@ -0,0 +1,54 @@
1/*
2 * arch/sh/boards/renesas/x3proto/setup.c
3 *
4 * Renesas SH-X3 Prototype Board Support.
5 *
6 * Copyright (C) 2007 Paul Mundt
7 *
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file "COPYING" in the main directory of this archive
10 * for more details.
11 */
12#include <linux/init.h>
13#include <linux/platform_device.h>
14#include <linux/kernel.h>
15#include <linux/io.h>
16
17static struct resource heartbeat_resources[] = {
18 [0] = {
19 .start = 0xb8140020,
20 .end = 0xb8140020 + 8 - 1,
21 .flags = IORESOURCE_MEM,
22 },
23};
24
25static struct platform_device heartbeat_device = {
26 .name = "heartbeat",
27 .id = -1,
28 .num_resources = ARRAY_SIZE(heartbeat_resources),
29 .resource = heartbeat_resources,
30};
31
32static struct platform_device *x3proto_devices[] __initdata = {
33 &heartbeat_device,
34};
35
36static int __init x3proto_devices_setup(void)
37{
38 return platform_add_devices(x3proto_devices,
39 ARRAY_SIZE(x3proto_devices));
40}
41device_initcall(x3proto_devices_setup);
42
43static void __init x3proto_init_irq(void)
44{
45 plat_irq_setup_pins(IRQ_MODE_IRL3210);
46
47 /* Set ICR0.LVLMODE */
48 ctrl_outl(ctrl_inl(0xfe410000) | (1 << 21), 0xfe410000);
49}
50
51static struct sh_machine_vector mv_x3proto __initmv = {
52 .mv_name = "x3proto",
53 .mv_init_irq = x3proto_init_irq,
54};