summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/setup_od.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-06-19 22:45:37 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-06-19 22:45:37 +0000
commit6d403070f28cd44860fdb3a53be5da0275c65cf4 (patch)
tree0d0e7fe7b5fb7568d19e11d7d862b77a866ce081 /arch/sh/kernel/setup_od.c
parentecf1bf5f6c2e668d03b0a9fb026db7aa41e292e1 (diff)
Merge with 2.4.0-test1-ac21 + pile of MIPS cleanups to make merging
possible. Chainsawed RM200 kernel to compile again. Jazz machine status unknown.
Diffstat (limited to 'arch/sh/kernel/setup_od.c')
-rw-r--r--arch/sh/kernel/setup_od.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/sh/kernel/setup_od.c b/arch/sh/kernel/setup_od.c
new file mode 100644
index 000000000..f605bd20e
--- /dev/null
+++ b/arch/sh/kernel/setup_od.c
@@ -0,0 +1,35 @@
+/* $Id: setup_od.c,v 1.1 2000/06/14 09:35:59 stuart_menefy Exp $
+ *
+ * arch/sh/kernel/setup_od.c
+ *
+ * Copyright (C) 2000 Stuart Menefy
+ *
+ * STMicroelectronics Overdrive Support.
+ *
+ */
+
+#include <linux/config.h>
+#include <linux/kernel.h>
+#include <linux/init.h>
+
+/*
+ * Initialize the board
+ */
+int __init setup_od(void)
+{
+ /* Enable RS232 receive buffers */
+ volatile int* p = (volatile int*)0xa3000000;
+
+#if defined(CONFIG_SH_ORION)
+ *p=1;
+#elif defined(CONFIG_SH_OVERDRIVE)
+ *p=0x1e;
+#else
+#error Illegal configuration
+#endif
+
+ printk(KERN_INFO "STMicroelectronics Overdrive Setup...done\n");
+ return 0;
+}
+
+module_init(setup_od);