Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=94807a33dc4aaf522d3eab62db225361e5a97b2a
Commit:     94807a33dc4aaf522d3eab62db225361e5a97b2a
Parent:     8d797cd191397b2a92b190228f07c7715c1c832a
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 8 15:22:04 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Fri Sep 21 11:57:48 2007 +0900

    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 <[EMAIL PROTECTED]>
---
 arch/sh/Kconfig                         |    4 ++
 arch/sh/Makefile                        |    1 +
 arch/sh/boards/renesas/x3proto/Makefile |    1 +
 arch/sh/boards/renesas/x3proto/setup.c  |   54 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+), 0 deletions(-)

diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 617765d..24c3361 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -391,6 +391,10 @@ config SH_LBOX_RE2
        help
          Select L-BOX RE2 if configuring for the NTT COMWARE L-BOX RE2.
 
+config SH_X3PROTO
+       bool "SH-X3 Prototype board"
+       depends on CPU_SUBTYPE_SHX3
+
 endmenu
 
 source "arch/sh/boards/renesas/hs7751rvoip/Kconfig"
diff --git a/arch/sh/Makefile b/arch/sh/Makefile
index 97ac586..37cf636 100644
--- a/arch/sh/Makefile
+++ b/arch/sh/Makefile
@@ -118,6 +118,7 @@ machdir-$(CONFIG_SH_7751_SYSTEMH)           += 
renesas/systemh
 machdir-$(CONFIG_SH_EDOSK7705)                 += renesas/edosk7705
 machdir-$(CONFIG_SH_HIGHLANDER)                        += renesas/r7780rp
 machdir-$(CONFIG_SH_7710VOIPGW)                        += renesas/sh7710voipgw
+machdir-$(CONFIG_SH_X3PROTO)                   += renesas/x3proto
 machdir-$(CONFIG_SH_SH4202_MICRODEV)           += superh/microdev
 machdir-$(CONFIG_SH_LANDISK)                   += landisk
 machdir-$(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 0000000..2b9dba4
--- /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 0000000..5dfa0f3
--- /dev/null
+++ b/arch/sh/boards/renesas/x3proto/setup.c
@@ -0,0 +1,54 @@
+/*
+ * arch/sh/boards/renesas/x3proto/setup.c
+ *
+ * Renesas SH-X3 Prototype Board Support.
+ *
+ * Copyright (C) 2007 Paul Mundt
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ */
+#include <linux/init.h>
+#include <linux/platform_device.h>
+#include <linux/kernel.h>
+#include <linux/io.h>
+
+static struct resource heartbeat_resources[] = {
+       [0] = {
+               .start  = 0xb8140020,
+               .end    = 0xb8140020 + 8 - 1,
+               .flags  = IORESOURCE_MEM,
+       },
+};
+
+static struct platform_device heartbeat_device = {
+       .name           = "heartbeat",
+       .id             = -1,
+       .num_resources  = ARRAY_SIZE(heartbeat_resources),
+       .resource       = heartbeat_resources,
+};
+
+static struct platform_device *x3proto_devices[] __initdata = {
+       &heartbeat_device,
+};
+
+static int __init x3proto_devices_setup(void)
+{
+       return platform_add_devices(x3proto_devices,
+                                   ARRAY_SIZE(x3proto_devices));
+}
+device_initcall(x3proto_devices_setup);
+
+static void __init x3proto_init_irq(void)
+{
+       plat_irq_setup_pins(IRQ_MODE_IRL3210);
+
+       /* Set ICR0.LVLMODE */
+       ctrl_outl(ctrl_inl(0xfe410000) | (1 << 21), 0xfe410000);
+}
+
+static struct sh_machine_vector mv_x3proto __initmv = {
+       .mv_name                = "x3proto",
+       .mv_init_irq            = x3proto_init_irq,
+};
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to