patch-2.4.23 linux-2.4.23/arch/sh/kernel/setup_microdev.c
Next file: linux-2.4.23/arch/sh/kernel/setup_shmse.c
Previous file: linux-2.4.23/arch/sh/kernel/ptrace.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
2003-11-28 10:26:19.000000000 -0800
- Orig file:
linux-2.4.22/arch/sh/kernel/setup_microdev.c
- Orig date:
1969-12-31 16:00:00.000000000 -0800
diff -urN linux-2.4.22/arch/sh/kernel/setup_microdev.c linux-2.4.23/arch/sh/kernel/setup_microdev.c
@@ -0,0 +1,37 @@
+/*
+ * linux/arch/sh/kernel/setup_microdev.c
+ *
+ * Copyright (C) 2003 Sean McGoogan (Sean.McGoogan@superh.com)
+ *
+ * SuperH SH4-202 MicroDev board support.
+ *
+ * May be copied or modified under the terms of the GNU General Public
+ * License. See linux/COPYING for more information.
+ */
+
+#include <linux/config.h>
+#include <linux/init.h>
+#include <asm/io.h>
+
+ /* General-Purpose base address on CPU-board FPGA */
+#define MICRODEV_FPGA_GP_BASE 0xa6100000ul
+
+ /* Address of Cache Control Register */
+#define CCR 0xff00001cul
+
+/*
+ * Initialize the board
+ */
+void __init setup_microdev(void)
+{
+ int * const fpgaRevisionRegister = (int*)(MICRODEV_FPGA_GP_BASE + 0x8ul);
+ const int fpgaRevision = *fpgaRevisionRegister;
+ int * const CacheControlRegister = (int*)CCR;
+
+ printk("SuperH SH4-202 MicroDev board (FPGA rev: 0x%0x, CCR: 0x%0x)\n",
+ fpgaRevision, *CacheControlRegister);
+
+ return;
+}
+
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)